[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Floppy disk filesystem



Hey,

I'm following Pocket Linux Guide from www.tldp.org. The 2nd chapter
2.3.1 talks about prepare the book disk media.

I got a blank floppy disk, inserted it in and did the following
$-----code1 begin---------$
ronie:~# dd if=/dev/zero of=/dev/fd0 bs=1k count=1440
dd: writing `/dev/fd0': Input/output error
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.803137 seconds, 0.0 kB/s
$-----code1 end--------$

After that I did mke2fs command as below:
$------------------Code2 begin-------------------$
ronie:~# mke2fs -m0 /dev/fd0
mke2fs 1.40-WIP (14-Nov-2006)
Warning: could not erase sector 2: Attempt to write block from
filesystem resulted in short write
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
184 inodes, 1440 blocks
0 blocks (0.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=1572864
1 block group
8192 blocks per group, 8192 fragments per group
184 inodes per group

Warning: could not read block 0: Attempt to read block from filesystem
resulted in short read
Warning: could not erase sector 0: Attempt to write block from
filesystem resulted in short write
Writing inode tables: done
Writing superblocks and filesystem accounting information:
Warning, had trouble writing out superblocks.done

This filesystem will be automatically checked every 26 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
$-------------------code2 end----------------$
After that, I found out I could not mount onto the floppy disk.

$------------------code3 begin-----------------------$
ronie:~# mount /dev/fd0 /mnt
mount: you must specify the filesystem type
ronie:~# mount -t ext2 /dev/fd0 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/fd0,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
$---------------code3 end----------------------------$


$---------------code4 begin-----------------------$
ronie:~# dmesg | tail
Buffer I/O error on device fd0, logical block 0
floppy0: data CRC error: track 1, head 0, sector 7, size 2
floppy0: data CRC error: track 1, head 0, sector 7, size 2
end_request: I/O error, dev fd0, sector 42
Buffer I/O error on device fd0, logical block 5
floppy0: data CRC error: track 0, head 0, sector 7, size 2
floppy0: data CRC error: track 0, head 0, sector 7, size 2
end_request: I/O error, dev fd0, sector 6
Buffer I/O error on device fd0, logical block 0
VFS: Can't find an ext2 filesystem on dev fd0.
$-------------------code4 end-------------------------$

What is the filesystem I should specify for this?

Thanks a lot in advance!

Rocky



Reply to: