PDA

View Full Version : LPIC (Linux) Q.8. - Copying



ramesh
January 24, 2007, 12:33 PM
Which command will copy data from one floppy drive to another?

leoandru
January 24, 2007, 12:56 PM
I went with the first option even though i think the -R switch should be in there.

death_knight
January 24, 2007, 01:25 PM
why would it need a recursive switch? when your making an archive with tar you dont need to tell it to recursively add it adds a folder if it should. if you copy a folder it moves the folder and its contents. so option one definatly right

ramesh
January 24, 2007, 01:27 PM
I option one is right, why are the others wrong? ;)

leoandru
January 24, 2007, 01:50 PM
why would it need a recursive switch? when your making an archive with tar you dont need to tell it to recursively add it adds a folder if it should. if you copy a folder it moves the folder and its contents. so option one definatly right

it doesn't.. just realize that copying from device to device copies the blocks making up the disk. the -r switch is need if the disk were mounted to a directory and you tried to copy them that way. It would be needed in this case:

cp -r /mnt/fl0 /mnt/fl1

tech_guru
January 24, 2007, 05:44 PM
The third option is correct.

Think about it you only have one floppy drive therefore you need to create a temp file first...

Nice one Ramesh you caught me first up...

Virus
January 24, 2007, 08:38 PM
Wasnt really stated that we working with one drive... remi?

ramesh
January 24, 2007, 09:52 PM
Which command will copy data from one floppy drive to another?
Note, I did not say one floppy disk to another! But perhaps I'm giving too much away. :)

Anyway, I'm giving two days for this and future questions. Also, some of these questions I've made up on my own and not all from exam papers so they are subject to mistakes.

ramesh
January 26, 2007, 10:33 PM
The answer I was looking for is actually dd if=/dev/fd0 of=/dev/fd1, though thinking about it later, cp /dev/fd0 /dev/fd1 should work as well.

Option 3 is totally incorrect as the copying is being done between two floppies (read the question again to be sure). This command will make a duplicate of a floppy using the same drive.

Option 4 is also incorrect. It really does nothing, I just made it up! :)