Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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

  2. #2
    Linux User
    Join Date
    Dec 2007
    Location
    Idaho USA
    Posts
    360
    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.

  3. #3
    Just Joined!
    Join Date
    Dec 2006
    Posts
    4

    thx for advise

    Quote Originally Posted by Lostfarmer View Post
    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.
    Thanx for advise. I will test. I hope I understand skip argument right.

  4. #4
    Just Joined!
    Join Date
    Dec 2006
    Posts
    4

    thx for advise

    Quote Originally Posted by Lostfarmer View Post
    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.
    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?

  5. #5
    Linux User
    Join Date
    Dec 2007
    Location
    Idaho USA
    Posts
    360
    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 ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •