1

I have recently imaged some floppy disks to img files. the disks had some bad blocks. So I am trying to figure out the File system type, so that i can mount, and repair the files. I tried $ sudo fdisk -l /dev/fd0 which returned nothing.

$ sudo file -Ls /dev/fd0
/dev/fd0: data

is data the FS type? How can I mount / repair this image type?

$ sudo file -Ls lisa1.img
    /dev/stdout: data
3
  • Are there any other clues with: sudo blkid /dev/fd0 ?
    – chili555
    Feb 25, 2014 at 3:01
  • Are you talking about the images or an actual floppy? If you have already made the image files, why are you checking /dev/fd0? What does file -Ls /path/to/floppy.img return?
    – terdon
    Feb 25, 2014 at 11:00
  • Do you think you could make one of these images available to us so we can try it out?
    – terdon
    Feb 25, 2014 at 13:47

1 Answer 1

3

Floppies are almost sure to be VFATmsdos, you can find out by running file on the actual image as I suggested in my comment:

file /path/to/floppy.img

However, that returns the file's type not the filesystem that the image contains. Filesystem image files are data and that's what file is telling you. I know that file will report the filesystem for .iso images but I don't know how it will deal with the ones you have.

Assuming they are indeed msdos, you can mount with

sudo mount -o loop -t msdos /path/to/floppy.img /mount/point
3
  • I have tried -o loop -t vfat I get error messages about incorrect FS type, and mtab
    – j0h
    Feb 25, 2014 at 13:44
  • @j0h argh, my bad, that should be file /path/to/floppy.img the -L and -s are not needed and might cause problems. Anyway, please edit your question and add the command you tried and the exact error message returned.
    – terdon
    Feb 25, 2014 at 13:46
  • @j0h see updated answer, it's been way too long since I had to use a floppy.
    – terdon
    Feb 25, 2014 at 13:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .