Subject: disklabeling a 1.7 TB disk
To: None <current-users@netbsd.org>
From: Jan Schaumann <jschauma@netmeister.org>
List: current-users
Date: 02/27/2004 17:51:31
--32u276st3Jlj2kUU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Ok, I'm going completely insane here. I have a 1.7 TB disk, that I'm
desparately trying to disklabel. So:
# disklabel ld0
disklabel: Invalid signature in mbr record 0
# /dev/rld0d:
type: ld
disk: unknown
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: -869262
total sectors: -876216576
rpm: 7200
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0=20
4 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 3418750720 0 4.2BSD 0 0 0 #
d: 3418750720 0 unused 0 0 #
disklabel: boot block size 0
disklabel: super block size 0
#=20
Note how the 'size' is correct, but 'cylinders' and 'total sectors' is
wrong. Ok, so I guess I edit the label to adjust it:
disklabel -e ld0
I make some modifications, and of course, when I write and quite:
disklabel: line 10: bad cylinders: -869262
disklabel: line 11: bad total sectors: -876216576
disklabel: cylinders/unit 0
disklabel: partition a: partition extends past end of unit
disklabel: partition d: partition extends past end of unit
re-edit the label? [y]:=20
Ok, so I think: how about I correct the faulty fields? I fix 'total
sectors' and 'cylinders' to '3418750720' and '3391617' respectively.
Write and quit and all looks ok. But then:
# disklabel ld0
disklabel: Invalid signature in mbr record 0
# /dev/rld0d:
type: ld
disk: unknown
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 3391617
total sectors: 2147483647
rpm: 7200
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0=20
4 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 2147483647 0 4.2BSD 0 0 0 #
d: 2147483647 0 unused 0 0 #
So I can simply use the one large partition, create a filesystem from
the initial disklabel and it will correctly create a ~1.7TB filesystem.
But apparently it's impossible to partition this disk.
??
Help!
Thanks,
-Jan
--=20
Probability factor of one to one. We have normality. I repeat, we have=20
normality. Anything you still can't cope with is therefore your own lookout.
--32u276st3Jlj2kUU
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)
iD8DBQFAP8nzfFtkr68iakwRAlWvAKCEOMieduxeWNhf3R+rG2EfMUDEngCgz9yI
mF5Lb6nzDXAE4HlbySfDAKY=
=YDKN
-----END PGP SIGNATURE-----
--32u276st3Jlj2kUU--