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

Re: mkdosfs -C ...



On 04/06/13 07:15, Andrei POPESCU wrote:
On Lu, 03 iun 13, 15:06:05, peasthope@shaw.ca wrote:
Hi,

mkdosfs fails in this case.

=============
root@dalton:/media/9D7C-BB83# fdisk -l /dev/sdb

Disk /dev/sdb: 257 MB, 257425408 bytes
6 heads, 26 sectors/track, 3222 cylinders
Units = cylinders of 156 * 512 = 79872 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x8878a0ad

    Device Boot      Start         End      Blocks   Id  System
/dev/sdb1              14        3223      250368    6  FAT16
root@dalton:/media/9D7C-BB83# mount | grep sdb
/dev/sdb1 on /media/9D7C-BB83 type vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush)
root@dalton:/media/9D7C-BB83# mkdosfs -v -C /media/9D7C-BB83/FatFile  25
mkdosfs 3.0.9 (31 Jan 2010)
mkdosfs: unable to create /media/9D7C-BB83/FatFile

I get a different error with the version in unstable:

# mkdosfs -v -C FatFile 25
mkdosfs 3.0.16 (01 Mar 2013)
mkdosfs: Too few blocks for viable file system

Kind regards,
Andrei


Increase block count a little, and hey presto:

$ sudo mkdosfs -v -C FatFile2 1024
mkdosfs 3.0.16 (01 Mar 2013)
FatFile2 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 fa11e184, no volume label.


--
Klaus


Reply to: