Mouse | 2 Dec 2011 06:35

Re: Relabel disk?

> My IPX won't boot because it's missing a disk label.  I can boot from
> the installation CD but I'm not sure how to restore the disk label on
> the disk without wiping and reinstalling everything.

sunlabel(8)?  I don't know whether it's on the install CD, but if you
extract it from the CD manually and make it available via NFS, you can
probably boot the install CD and run it off an NFS mount.

/~\ The ASCII				  Mouse
\ / Ribbon Campaign
 X  Against HTML		mouse <at> rodents-montreal.org
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B

Alexander Carver | 2 Dec 2011 07:00

Re: Relabel disk?

On 12/1/2011 21:35, Mouse wrote:
>> My IPX won't boot because it's missing a disk label.  I can boot from
>> the installation CD but I'm not sure how to restore the disk label on
>> the disk without wiping and reinstalling everything.
>
> sunlabel(8)?  I don't know whether it's on the install CD, but if you
> extract it from the CD manually and make it available via NFS, you can
> probably boot the install CD and run it off an NFS mount.

I found it in the base.tgz file.  I managed to extract it to one of the 
other system drives but it doesn't run:

# mount /dev/sd3c /mnt2
# mount_cd9660 /dev/cd0a /mnt
# cd /mnt2; mkdir cddata ; cd cddata
# tar -xzf /mnt/sparc/binary/sets/base.tgz "./usr/sbin/sunlabel"
./usr/sbin/sunlabel

# cd /mnt2/cddata/usr/sbin/
# ./sunlabel
sh: sunlabel: not found

Not found?  It's right there unless I missed something.

Mouse | 2 Dec 2011 07:14

Re: Relabel disk?

>> sunlabel(8)?
> I found it in the base.tgz file.  I managed to extract it to one of
> the other system drives but it doesn't run:

> # mount /dev/sd3c /mnt2
> # mount_cd9660 /dev/cd0a /mnt
> # cd /mnt2; mkdir cddata ; cd cddata
> # tar -xzf /mnt/sparc/binary/sets/base.tgz "./usr/sbin/sunlabel"
> ./usr/sbin/sunlabel
> 
> # cd /mnt2/cddata/usr/sbin/
> # ./sunlabel
> sh: sunlabel: not found

> Not found?  It's right there unless I missed something.

I don't see any ls or equivalent confirming that it is, though what you
quote certainly looks to me as though it should be.  I do note that
it's "sh: sunlabel: not found" rather than "sh: ./sunlabel: not found",
though I don't know enough to know whether that's significant.  It
strikes me that this could be a missing library; on a 5.1 machine I
have handy (I don't see anything saying what OS rev you're at) sunlabel
is linked dynamic with -ltermcap and -lutil as well as -lc, and I don't
know whether any of those are available in .so form on the install
pseudo-live-CD system.

If the disk label is the only thing that got destroyed, you should be
able to mount /dev/sd3c if your root partition begins at the beginning
of the disk.  Of course, if you split your system up into a lot of
partitions, just mounting root may not get you all that much.  (If it
(Continue reading)

AGC | 2 Dec 2011 07:46

Re: Relabel disk?

On 12/1/2011 22:14, Mouse wrote:
>>> sunlabel(8)?
>> I found it in the base.tgz file.  I managed to extract it to one of
>> the other system drives but it doesn't run:
>
>> # mount /dev/sd3c /mnt2
>> # mount_cd9660 /dev/cd0a /mnt
>> # cd /mnt2; mkdir cddata ; cd cddata
>> # tar -xzf /mnt/sparc/binary/sets/base.tgz "./usr/sbin/sunlabel"
>> ./usr/sbin/sunlabel
>>
>> # cd /mnt2/cddata/usr/sbin/
>> # ./sunlabel
>> sh: sunlabel: not found
>
>> Not found?  It's right there unless I missed something.
>
> I don't see any ls or equivalent confirming that it is, though what you
> quote certainly looks to me as though it should be.  I do note that
> it's "sh: sunlabel: not found" rather than "sh: ./sunlabel: not found",
> though I don't know enough to know whether that's significant.  It
> strikes me that this could be a missing library; on a 5.1 machine I
> have handy (I don't see anything saying what OS rev you're at) sunlabel
> is linked dynamic with -ltermcap and -lutil as well as -lc, and I don't
> know whether any of those are available in .so form on the install
> pseudo-live-CD system.
>
> If the disk label is the only thing that got destroyed, you should be
> able to mount /dev/sd3c if your root partition begins at the beginning
> of the disk.  Of course, if you split your system up into a lot of
(Continue reading)

River Tarnell | 2 Dec 2011 07:49

Re: Relabel disk?


AGC:
> It was only split into swap and root.  I'll just have to
> bite the bullet and reinstall.  Fortunately most of the data is
> located on the external disk packs so I won't lose much by
> reinstalling.

If you wait about an hour, I can build you a sparc 5.1 install CD with 
scan_ffs on it.  No guarantees it'll work, I don't have any SPARC 
hardware here at the moment.

	- river.
AGC | 2 Dec 2011 07:55

Re: Relabel disk?

On 12/1/2011 22:49, River Tarnell wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> AGC:
>> It was only split into swap and root.  I'll just have to
>> bite the bullet and reinstall.  Fortunately most of the data is
>> located on the external disk packs so I won't lose much by
>> reinstalling.
>
> If you wait about an hour, I can build you a sparc 5.1 install CD with
> scan_ffs on it.  No guarantees it'll work, I don't have any SPARC
> hardware here at the moment.

Thanks River but it's ok.  I don't want to waste anyone's time any more 
than I already have.  It was my own stupidity that manged to mangle the 
disklabel so I just have to deal with it.  The things I needed most are 
fortunately on a separate disk so I don't lose much except some 
configurations which I do have archived.  I just need to make sure the 
disks don't get unlabeled again.

In case anyone is wondering, I blew away the disk labels by accident 
when I was setting up two ccd drives (sd1 and sd2, sd3 is a standard 
drive and sd0 is the root drive).  Fat fingered the keyboard and typed 
/dev/sd0 where I should have typed /dev/sd1 and poof! away it went.  The 
lesson is: do not perform system maintenance at 3 AM after only four 
hours sleep the night before.  Bad Things (TM) will happen.

AGC | 2 Dec 2011 07:02

Re: Relabel disk?

On 12/1/2011 21:35, Mouse wrote:
>> My IPX won't boot because it's missing a disk label.  I can boot from
>> the installation CD but I'm not sure how to restore the disk label on
>> the disk without wiping and reinstalling everything.
>
> sunlabel(8)?  I don't know whether it's on the install CD, but if you
> extract it from the CD manually and make it available via NFS, you can
> probably boot the install CD and run it off an NFS mount.

I found it in the base.tgz file.  I managed to extract it to one of the 
other system drives but it doesn't run:

# mount /dev/sd3c /mnt2
# mount_cd9660 /dev/cd0a /mnt
# cd /mnt2; mkdir cddata ; cd cddata
# tar -xzf /mnt/sparc/binary/sets/base.tgz "./usr/sbin/sunlabel"
./usr/sbin/sunlabel

# cd /mnt2/cddata/usr/sbin/
# ./sunlabel
sh: sunlabel: not found

Not found?  It's right there unless I missed something.


Gmane