The way block devices [should] work (was: diskcopy a: a: sto Linux)

Giorgos Keramidas keramida at ceid.upatras.gr
Mon Sep 11 11:10:08 EEST 2000


On Mon, Sep 11, 2000 at 10:14:10AM +0300, Giannis Papaioannou wrote:
> 
> 
> On Sun, 10 Sep 2000, Balis George wrote:
> > On Sat, 9 Sep 2000, Bassoukos Tassos wrote:
> > > Ena aplo cp den kanei thn douleia ?
> > > eg:
> > > cp /dev/fd0 /tmp/fd0
> > > cp /tmp/fd0 /dev/fd0
> > 
> > oxi giati to /dev/fd0 den einai ayta pou vriskonta mesa sth disketa sou
> > alla to device floppy. Ayta pou vriskontai mesa sthn disketa sou einai sto
> 
> den eimai sigouros an einai 8ema to 2.2 pyrhna h' twn newn gnu-fileutils
> alla mporeis ontws na pareis to image enos device me thn cp

Ej' apo aneka8en h cp(1) mporei na antigrapsei ta periexomena enos
device.  Autos einai ki o logos pou o device driver kserei me pio block
size tha prepei na diabasei apo to device, h me poio block size na
grapsei.  An auto den douleuei, tote exei xa8ei kapou h "shmeiologia"
tou pws douleuei to device, kai einai lathos ulopoihsh tou device
driver, ki oxi ths cp(1).

Akoma ki an ena device epistrefei sto read blocks megethous 512 bytes,
ki esu ta diabazeis ena ena, o driver *ofeilei* na sou parousiasei ta
dedomena me ton tropo akribws pou zhthses (ena ena byte), anejarthta apo
to pws o idios ta diabazei apo to device.

Telspa, mporoume pisteuo na skotwsoume auto to thread.

-- 
Giorgos Keramidas, <keramida at ceid.upatras.gr>
For my public pgp2 key: finger -l keramida at diogenis.ceid.upatras.gr

--
linux-greek-users mailing list -- http://lists.hellug.gr




More information about the Linux-greek-users mailing list