Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I created an image file with dd_rescue of a floppy disk which contained bad blocks. The instructions I read said to then run fsck.msdos on the image file, and then to mount it with the following command "mount -o loop floppy.img /mnt/floppy".
Running fsck.msdos on the image results in an input/output error.
Running the mount command comes back with "you must specify a filesystem type". If I run the above mount command with -t and specify either msdos or vfat (this is a windows formatted floppy), I get "wrong fs type, bad option, bad superblock on /dev/loop0". Running dmesg comes back with "can't find a valid fat filesystem on dev loop0".
I think I have a decent image of the floppy. If I could just get it mounted I could copy off the file I want to recover, but I can't seem to get the image mounted. I should point out that windows tells me that both FAT filetables on the disk are corrupt, however I'm able to mount the actual floppy in linux, and running ls returns the contents of the disk. Anyone know of a way for me to force the mount?
Also, anyone know of a way to copy files so that it will skip over bad blocks and continue copying instead of just terminating the way cp does? Using the actual floppy disk I'm able to copy off 8k of a 28k file before cp crashes, but if it could just skip the bad block I'm sure I could get more.