Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Problem with msdosfs disklabels and geometry
Hi everyone!
As suspending by zzz(8) and resuming works on my IBM Thinpad T43 i wanted to
try with
suspend-to-disk by using sysutils/tphdisk. As i got stuck with
'mount_msdos: /dev/wd0j on /mnt/test: Invalid argument'
for some time now and various fiddling with options on newfs and disklabel
didnt help,
i ask for help.
Here come the facts:
$ disklabel wd0
# /dev/rwd0d:
type: unknown
disk: FUJITSU MHV2120
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 232581
total sectors: 234441648
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 20978496 19760013 4.2BSD 2048 16384 0 # (Cyl. 19603*- 40415*)
b: 525861 40738509 swap # (Cyl. 40415*- 40936*)
c: 21504357 19760013 unused 0 0 # (Cyl. 19603*- 40936*)
d: 234441648 0 unused 0 0 # (Cyl. 0 - 232580)
e: 2464497 63 MSDOS # (Cyl. 0*- 2444)
k: 193171167 41264433 MSDOS # (Cyl. 40936*- 232574)
$ fdisk wd0
Disk: /dev/rwd0d
NetBSD disklabel disk geometry:
cylinders: 232581, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 234441648
BIOS disk geometry:
cylinders: 1023, heads: 240, sectors/track: 63 (15120 sectors/cylinder)
total sectors: 234441648
Partition table:
0: hidden Windows/95 FAT32 (sysid 27)
start 63, size 2464497 (1203 MB, Cyls 0-162)
1: <UNUSED>
2: Extended partition (sysid 5)
start 19759950, size 214675650 (104822 MB, Cyls 1306/210/1-15504)
3: <UNUSED>
Extended partition table:
E0: NetBSD (sysid 169)
bootmenu: netbsd
start 19760013, size 21504357 (10500 MB, Cyls 1306/210/1-2729/29/63)
E1: Primary DOS with 32 bit FAT - LBA (sysid 12)
start 41264433, size 193171167 (94322 MB, Cyls 2729/30/1-15504)
Bootselector enabled, timeout 4 seconds.
No active partition.
Drive serial number: 295375259 (0x119b119b)
Before everything began the disklabel looked like:
a: 20978496 19760013 4.2BSD 2048 16384 0 # (Cyl. 19603*- 40415*)
b: 525861 40738509 swap # (Cyl. 40415*- 40936*)
c: 21504357 19760013 unused 0 0 # (Cyl. 19603*- 40936*)
d: 234441648 0 unused 0 0 # (Cyl. 0 - 232580)
e: 198387 63 Linux Ext2 0 0 # (Cyl. 0*- 196*)
f: 19551105 208845 NTFS # (Cyl. 207*- 19603*)
k: 193171167 41264433 MSDOS # (Cyl. 40936*- 232574)
Then i removed my mostly unused winxp partition at the
beginning of my disk, cleared the area (somewath brutal?) with
'dd if=/dev/zero of=/dev/wd0d seek=1 bs=512 count=1000'
edited the disklabel, by combining slice e and f and changed type to MSDOS.
# newfs_msdos /dev/rwd0e
/dev/rwd0e: 233984608 sectors in 29248076 FAT32 clusters (4096 bytes/cluster)
MBR type: 11
bps=512 spc=8 res=32 nft=2 sec=234441648 mid=0xf0 spt=63 hds=16 hid=0
bsec=234441648 bspf=228501 rdcl=2 infs=1 bkbs=2
# mount_msdos /dev/wd0e /mnt/test
mount_msdos: /dev/wd0e on /mnt/test: Invalid argument
Has this something to do with ?
- the layout of the disk(-label)
- the difference in 'NetBSD disklabel disk geometry' and 'BIOS disk geometry'
as reported by fdisk
- a bug in {mount|newfs}_msdosfs
thx a lot for any clarification!
felix
--
Home |
Main Index |
Thread Index |
Old Index