Re: etch; possibly just mkfs problem [it helped - but another problem persists]
Title: Re: etch; possibly just mkfs problem [it helped -
but anot
At 10:02 -0500 23/02/07, Matthew K Poer wrote:
On Fri, 2007-02-23 at 14:51 +0100, Glenn
Moeller-Holst wrote:
> I have problems using the mkfs command i a newly updated debian
etch
> distribution.
>
> I have followed the description on this page:
> http://aragorn.kortex.jyu.fi:8080/h6300/
> The memory card Transcend SD 512MB 80x lists ( ls -la /dev/sd* )
up
> as /dev/sdc1.
> In ( fdisk /dev/sdc1 ) it prints ( p ):
> Was danish - but used the english desciptions:
> Device Boot
Start
End Blocks Id
System
> /dev/sdc1p1
1
99 49873 b
W95 FAT32
> /dev/sdc1p2
100 1010
451856 83 Linux
>
> But I can not figure out how to format the two partitions -
tried:
>
> pc:/dev#umount sdc1
> (comment: The icon disappear from the desktop)
> pc:/dev#mkfs -t vfat /dev/sdc1p1
> mkfs.vfat: (was danish; translated to) "No such file or
catalog/directory"
> pc:/dev#mkfs -t vfat /dev/sdc1
> mkfs.vfat: (was danish; translated to) "No such file or
catalog/directory"
> pc:/dev#mkfs.vfat /dev/sdc1
> bash: mkfs.vfat: command not found
> pc:/dev#mkfs.vfat /dev/sdc1p1
> bash: mkfs.vfat: command not found
> /Glenn
I'm not sure, but could parted (or
QTParted, it's GUI cousin) help
repartition and reformat the disk?
If you want to 'mkfs.vfat' try 'apt-get
install dosfstools' as it
handles FAT systems.
That helped - Thanks.
It seems that mkfs.vfat and others are some sort of alias to the
command mkdosfs.
Odd: I was wondering earlier how to reformat my USB MSD. I guess
mkfs
will do it. I probably wouldn't have remembered the command 'mkfs' if
it
hadn't been for your question, so thank you.
--
Matthew K Poer
Now another problem appears - that also was there before.
mkfs.vfat can not see the first partition only:
pc:/dev#mkfs.vfat -f 1 /dev/sdc1
The command:
pc:/dev#mkfs.ext2 /dev/sdd2
mke2fs 1.40-WIP (14-Nov-2006)
Could not stat /dev/sdc2 - - - No such file or
catalog/directory.
The device apparently does not exist; did you specify it
correctly?
pc:/dev#
Apparently the mkfs.vfat command formated the whole SD card... -
not just the first partition - and destroyed the partitions.
/Glenn
Reply to: