mkfs.msdos, FAT 32 and wrong disksize

From: Lukas Ruf (ruf_at_rawip.org)
Date: 10/29/03

  • Next message: David Palmer.: "Re: netiquette: CCing on lists"
    Date: Wed, 29 Oct 2003 22:19:13 +0100
    To: Debian User <debian-user@lists.debian.org>
    
    

    Dear all,

    don't ask why but I have to prepare a disk with FAT32.

    The harddisk is rather large (160GB) and it should be put in some
    slices of about 16GB, I decided to make use of FAT32 and mount it as
    vfat afterwards. Working with cfdisk provides the results as expected
    -- at least, cfdisk consistently reports so.

    However, when creating a file system on it by
      mkfs.msdos -F 32 -n lpr -v -v -v /dev/hdd1
    The log is:
      mkfs.msdos 2.10 (22 Sep 2003)
      Boot jump code is eb 58
      Using 32 reserved sectors
      163846840 sectors for FAT+data, starting with 32 sectors/cluster
      Trying with 32 sectors/cluster:
      FAT12: #clu=5119276, fatlen=14998, maxclu=4080, limit=4080
      FAT12: too much clusters
      FAT16: #clu=5118964, fatlen=19996, maxclu=65520, limit=65520
      FAT16: too much clusters
      FAT16: would be misdetected as FAT12
      FAT32: #clu=5117714, fatlen=39983, maxclu=5117824, limit=268435440
      Using sector 6 as backup boot sector (0 = none)
      /dev/hdd1 has 255 heads and 63 sectors per track,
      logical sector size is 512,
      using 0xf8 media descriptor, with 163846872 sectors;
      file system has 2 32-bit FATs and 32 sectors per cluster.
      FAT size is 39983 sectors, and provides 5117714 clusters.
      Volume ID is 3fa02bee, volume label lpr .
    Mounting with
      mount -t vfat /dev/hdd1 /mnt_tmp
    and the disk-size reports
      /dev/hdd1 79G 16K 79G 1% /mnt_tmp
                             *** ***
    Which is completely wrong, because
      fdisk -l /dev/hdd
    results in
      Disk /dev/hdd: 163.9 GB, 163928604672 bytes
      255 heads, 63 sectors/track, 19929 cylinders
      Units = cylinders of 16065 * 512 = 8225280 bytes

         Device Boot Start End Blocks Id System
      /dev/hdd1 1 1992 16000708+ b W95 FAT32
      /dev/hdd2 10200 19929 78156225 7 HPFS/NTFS

    One difference I realized is the plus sign after 16000708 -- has this
    any special meaning?

    Thanks for any help!

    wbr,
    Lukas

    -- 
    Lukas Ruf           | Wanna know anything about raw |
    <http://www.lpr.ch> | IP?  <http://www.rawip.org>   |
    -- 
    To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: David Palmer.: "Re: netiquette: CCing on lists"

    Relevant Pages