I am still having issues with this. A few years ago I did asked about disklabel not showing up properly and I was told not to worry about, but now I need to increase the size of some partitions with unallocated space on my drive like Nick recommended to do. (:>

But my disklabel don't look right to me, however all works fine, so how can I make sure that after a reboot if I just do a disklabel wd0, it would be fine and look OK. I am a bit nervous before making changes to the disklabel obviously.

So, after a reboot I get:

# disklabel wd0
# /dev/rwd0c:
type: ESDI
disk: ESDI/IDE disk
label: ST340015A
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 16514064
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]
a: 524160 0 4.2BSD 2048 16384 16 # Cyl 0 - 519 b: 2097648 524160 swap # Cyl 520 - 2600 c: 78165360 0 unused 0 0 # Cyl 0 - 77544 d: 2097648 2621808 4.2BSD 2048 16384 16 # Cyl 2601 - 4681 e: 10486224 4719456 4.2BSD 2048 16384 16 # Cyl 4682 - 15084 f: 2097648 15205680 4.2BSD 2048 16384 16 # Cyl 15085 - 17165 g: 1048320 17303328 4.2BSD 2048 16384 16 # Cyl 17166 - 18205 h: 10486224 18351648 4.2BSD 2048 16384 16 # Cyl 18206 - 28608 i: 2097648 28837872 4.2BSD 2048 16384 16 # Cyl 28609 - 30689
disklabel: partition c: partition extends past end of unit
disklabel: partition f: partition extends past end of unit
disklabel: partition g: offset past end of unit
disklabel: partition g: partition extends past end of unit
disklabel: partition h: offset past end of unit
disklabel: partition h: partition extends past end of unit
disklabel: partition i: offset past end of unit
disklabel: partition i: partition extends past end of unit


=====================================

Now, I do:

# disklabel -E wd0
This platform requires that partition offsets/sizes be on cylinder boundaries. Partition offsets/sizes will be rounded to the nearest cylinder automatically.

Initial label editor (enter '?' for help at any prompt)
> g
[d]isk, [b]ios, or [u]ser geometry: [d] d
> w
> q
No label changes.

===================================

But then if I now do:

# disklabel wd0
# /dev/rwd0c:
type: ESDI
disk: ESDI/IDE disk
label: ST340015A
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 78165360
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]
a: 524160 0 4.2BSD 2048 16384 16 # Cyl 0 - 519 b: 2097648 524160 swap # Cyl 520 - 2600 c: 78165360 0 unused 0 0 # Cyl 0 - 77544 d: 2097648 2621808 4.2BSD 2048 16384 16 # Cyl 2601 - 4681 e: 10486224 4719456 4.2BSD 2048 16384 16 # Cyl 4682 - 15084 f: 2097648 15205680 4.2BSD 2048 16384 16 # Cyl 15085 - 17165 g: 1048320 17303328 4.2BSD 2048 16384 16 # Cyl 17166 - 18205 h: 10486224 18351648 4.2BSD 2048 16384 16 # Cyl 18206 - 28608 i: 2097648 28837872 4.2BSD 2048 16384 16 # Cyl 28609 - 30689

=================================

All look fine.

But a reboot comes back again with the warning on top of this email.

So, I take that as all been fine and good, but isn't it a way to really not see this warning.

I don't play with disklabel very often, but when I do and see this, it always make me pause first before I do anything stupid.

Any thoughts on this.

I guess I most likely over react, but I like to be safe.

Plus I do write the disklabel ( I think I do anyway as above), so why doesn't it see it?

Thanks

Daniel

Reply via email to