I wouldn't do a mkfs on a mounted file system. I think the system is
preventing you writing directly to /dev/fd0 while it is mounted.
umount /dev/fd0
then
mkfs .. /dev/fd0
--- In Jason Stahls <> wrote:
>
> craignied wrote:
> > I picked up a blank CF to play with (separate from the one that came in the
> > dev kit, so that if I thoroughly screw it up, it'll be OK,) put it into my
> > ubuntu 9.04 machine, and am tearing my hair out trying to format it in ext2.
> >
> > I plug in the CF into the USB connected reader. It mounts automagically.
> >
> > $ cat /etc/fstab
> > ...
> > /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
> > ...
> >
> > I try to make an ext2 filesystem on it
> >
> > $ sudo mkfs -t ext2 -v /dev/fd0
> > mke2fs 1.41.4 (27-Jan-2009)
> > fs_types for mke2fs.conf resolution: 'ext2', 'floppy'
> > /dev/fd0: Read-only file system while setting up superblock
> >
> > Am I going about this the right way?
>
> You've got the right idea, but the wrong device, /dev/fd0 is the first
> floppy device. I would guess that your USB reader would show up as
> /dev/sdX where X is some letter from a to z. IF you check the output of
> dmesg you should see the registration of the reader and what sd device
> was assigned. If it's a multi-card reader then it might create multiple
> sdX entries one for each card slot.
>
> --
> Jason Stahls
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|