NetBSD-Users archive

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

problems format virtual disk FAT32 32GByte



For the purpose of migrating a Xen domU (containing Windows) to a bigger virtual disk I tried to prepare a virtual disk of 32GByte using FAT:

# vnconfig -c vnd1 /home/domains/WinXPSP2
# fdisk vnd1
fdisk: Cannot determine the number of heads
Disk: /dev/rvnd1d
NetBSD disklabel disk geometry:
cylinders: 32768, heads: 64, sectors/track: 32 (2048 sectors/cylinder)
total sectors: 67108864

BIOS disk geometry:
cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 67108864

Partition table:
0: Primary DOS with 32 bit FAT (sysid 11)
    start 63, size 67108801 (32768 MB, Cyls 0-4177/85/4)
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
Bootselector disabled.


# disklabel vnd1
# /dev/rvnd1d:
type: vnd
disk: vnd
label: fictitious
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 32768
total sectors: 67108864
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

5 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
d: 67108864 0 unused 0 0 # (Cyl. 0 - 32767) e: 67108801 63 MSDOS # (Cyl. 0*- 32767)
disklabel: boot block size 0
disklabel: super block size 0
# newfs_msdos /dev/vnd1e
newfs_msdos: warning: /dev/vnd1e is not a character device
/dev/vnd1e: 66977944 sectors in 8372243 FAT32 clusters (4096 bytes/cluster)
MBR type: 11
bps=512 spc=8 res=32 nft=2 mid=0xf8 spt=32 hds=64 hid=63 bsec=67108801 bspf=65409 rdcl=2 infs=1 bkbs=2
#

so far, everything looks okay, but FileSystemCheck fails:

# fsck /dev/vnd1e
** /dev/rvnd1e
** Phase 1 - Read and Compare FATs
No space for FAT clusters (133955920) (Cannot allocate memory)#

Although I can mount the filesystem, writing data to it will crash the entire system after some time / transfer volume.

Please explain how to properly create a FAT32 partition of 32GByte.

Kind Regards
Thomas Feddersen






Home | Main Index | Thread Index | Old Index