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

Re (3): mkdosfs -C ...



From:	Klaus <klaus.doering999@gmail.com>
Date:	Wed, 05 Jun 2013 09:44:20 +0100
> Have you tried the mkdosfs on a file located somewhere else, ...

It works in directory FatTest in my home directory.
root@dalton:/home/peter# mkdosfs -C -v /home/peter/FatTest/FatFile 1024
mkdosfs 3.0.13 (30 Jun 2012)
/home/peter/FatTest/FatFile has 64 heads and 32 sectors per track,
logical sector size is 512,
using 0xf8 media descriptor, with 2048 sectors;
file system has 2 12-bit FATs and 4 sectors per cluster.
FAT size is 2 sectors, and provides 502 clusters.
There is 1 reserved sector.
Root directory contains 512 slots and uses 32 sectors.
Volume ID is e7f1f6a5, no volume label.

> have you tried to create a DOS filesystem 
> directly on the partition, i.e. without the "-C" option ?

That also works.
root@dalton:/# mkdosfs -v /dev/sdb1
mkdosfs 3.0.13 (30 Jun 2012)
/dev/sdb1 has 8 heads and 62 sectors per track,
logical sector size is 512,
using 0xf8 media descriptor, with 500736 sectors;
file system has 2 16-bit FATs and 8 sectors per cluster.
FAT size is 248 sectors, and provides 62525 clusters.
There are 8 reserved sectors.
Root directory contains 512 slots and uses 32 sectors.
Volume ID is fb793051, no volume label.

> Since you have mounted the USB device, there'll be a filesystem on there 
> already. Have you tried writing to it, like "touch /media/usb0/testfile"?

Also works.
root@dalton:/# mount /dev/sdb1 /media/usb0
root@dalton:/# mount | grep sdb
/dev/sdb1 on /media/usb0 type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=c
p437,iocharset=utf8,shortname=mixed,errors=remount-ro)
root@dalton:/# touch /media/usb0/FatFile
root@dalton:/# ls -l  /media/usb0
total 0
-rwxr-xr-x 1 root root 0 Jun  5 07:50 FatFile

A bug in mkdosfs shouldn't be ruled out absolutely.

Thanks for the feedback,       ... Peter E.

-- 
123456789 123456789 123456789 123456789 123456789 123456789 123456789 12
Tel +13606390202  Bcc: peasthope at shaw.ca  http://carnot.yi.org/  
"http://members.shaw.ca/peasthope/index.html#Itinerary "


Reply to: