Results 1 to 5 of 5
Hello. Could you help me please. I need to restore some data from floppy. I need to backup sectors 91-117 . I tryied something like
dd if=/dev/fd0 of=/images/floppy bs=512 count=26 ...
- 04-15-2008 #1Just Joined!
- Join Date
- Dec 2006
- Posts
- 4
dd command to restore fd
Hello. Could you help me please. I need to restore some data from floppy. I need to backup sectors 91-117 . I tryied something like
dd if=/dev/fd0 of=/images/floppy bs=512 count=26 skip=90
but I dont know if this could work.
I need to skip 90 sectors and begin restoration at 91st to 117th sector.
Thanx
- 04-16-2008 #2Linux User
- Join Date
- Dec 2007
- Location
- Idaho USA
- Posts
- 340
One must remember sector count start at 0(zero) not at one. So if you need to start at sector 91 and include sector 117 you need : (count=117-91+1)
skip=91 count=27
"of=/images/floppy" that will write to directory images and file named floppy. You may need to verify that there is a directory named /images. I do not know if dd will make a directory or not.
You may wish to wait till some one else verifies the above.
- 04-16-2008 #3Just Joined!
- Join Date
- Dec 2006
- Posts
- 4
- 04-16-2008 #4Just Joined!
- Join Date
- Dec 2006
- Posts
- 4
thx for advise
Thanx for advise. I will test. I hope I understand skip argument right.
PS:
I think I had an error in the statement, it should be so:
dd if=/dev/fd0 of=/images/floppy bs=512 count=117 skip=90
and shifted because of 1st sector=0 ...
dd if=/dev/fd0 of=/images/floppy bs=512 count=118 skip=91
maybe?
- 04-16-2008 #5Linux User
- Join Date
- Dec 2007
- Location
- Idaho USA
- Posts
- 340
With what you posted first, your count is wrong.
count will be {(last sector to copy - starting copy sector) +1}.
If first sector =5 and last sector =10 then count=6
The skip will be the same number as the first sector to copy.
Just how are you determining the start and stop sectors from the floppy you want to copy ?


Reply With Quote

