disklabel -d /dev/sd0i partitions

disklabel -d /dev/sd0i partitions

Post by Tom » Wed, 18 Dec 2002 15:38:56


I installed 3.2 on my friend's 36.7GB sd0 at offset 63 to 1.5GB.  My problem is
trying to label the FAT partitions for mounting because "disklabel sd0" only
shows sd0a to sd0f.  Meanwhile, "disklabel -nd sd0" will show the rest of the
FAT partitions.

So, how do I configure those devices or label the FAT partitions for mounting
without corrupting the data or requiring to format?

Did I overwrite something that prevents disklabel from normally reading beyond
sd0h partitions?

Thanks much, in advance!


disklabel -d /dev/sd0i partitions

Post by Tom » Wed, 25 Dec 2002 14:48:18

I've found an old BSD FAQ that provides a workaround for this problem.
Unfortunately, it's a little late after installing 3.2.


Happy Holidays!!


1. disklabel: partition c: partition extends past end of unit


I am currently running OpenBSD 3.2/i386 on a Quantum Fireball 3.2
GB IDE HD. The problem I am seeing is that I would like to change my
partitioning using disklabel -R -r wd0 /tmp/disklabel.wd0 but somehow it
doesn't change anything, I am doing that as root no worry. I think this
is because of a strange error which appears in my disklabel output as
you can see here:

% sudo disklabel wd0

# using MBR partition 3: type A6 off 63 (0x3f) size 6297921 (0x601941)
# /dev/rwd0c:
type: ESDI
disk: ad0s1
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 128
sectors/cylinder: 8064
cylinders: 781
total sectors: 6305985
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

8 partitions:
#        size   offset    fstype   [fsize bsize   cpg]
  a:  1225665       63    4.2BSD     1024  8192    16   # (Cyl.    0*-
  b:   129024  1225728      swap                        # (Cyl.  152 -
  c:  6305985       63    unused        0     0         # (Cyl.    0*-
disklabel: partition c: partition extends past end of unit

see that last message: disklabel: partition c: partition extends past
end of unit ?? What's wrong ?? How can I fix that ? I really need to add
new partitions to my disk...

Many thanks for the help



3. Disklabel problem with extended partition

4. any way to clean orphaned processes ?

5. disklabel on logical partition?

6. Recommendations on video card?

7. Partition crashes with BSD-Disklabels

8. help with setting up TCP/IP

9. How to tell the disklabel editor in which partition to create new slices ?

10. disklabel, extended partitions, swap, etc.

11. how to get Win85 Partition i display in disklabel during installaton.

12. Editing the disklabel/making the root partition bigger

13. disklabel -R with open a partition?