I am trying to write a floppy boot image to my floppy drive (as root):
Code:
dd if=boot.img of=/dev/fd0
dd: opening `/dev/fd0': Read-only file system
But it is mounted as rw in my fstab:
Code:
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
When I try to mount it manually:
Code:
mount /dev/fd0
mount: block device /dev/fd0 is write-protected, mounting read-only
And it appears root has rw privileges:
Code:
ll /dev/fd0
brw-rw---- 1 root floppy 2, 0 2010-02-18 21:50 /dev/fd0
I also tried uncommenting the line in /etc/fstab, rebooting, then mounting it manually:
Code:
mount -t vfat /dev/fd0 /media/floppy
mount: block device /dev/fd0 is write-protected, mounting read-only
mount: /dev/fd0: can't read superblock
Here is the dmesg output:
Code:
[ 4775.928065] last result at 4296085528
[ 4775.928067] last redo_fd_request at 4296085528
[ 4775.928068] 20 0
[ 4775.928077] status=50
[ 4775.928079] fdc_busy=1
[ 4775.928080] do_floppy=ffffffffa01283bc
[ 4775.928082] fd_timer.function=ffffffffa012bb6b
[ 4775.928083] cont=ffffffffa012fe50
[ 4775.928085] current_req=ffff88005d4e4d20
[ 4775.928087] command_status=-1
[ 4775.928088]
[ 4775.928091] floppy0: floppy timeout called
[ 4775.928096] end_request: I/O error, dev fd0, sector 0
I have tried several disks, with the safety tab in both positions (to ensure that I tried it when it was unlocked), but it is always the same result.
What is the problem here?