Page 2 of 2

Re: IRIX 6.5.15m and upgrading

Posted: Mon May 29, 2017 6:57 am
by robespierre
ide doesn't need to be in the volume header, since it can be loaded from the filesystem with sash. It's used rarely enough that the additional steps aren't a problem (need to enter the command prompt and type "boot usr/stand/ide" instead of just clicking "diagnostics")

Re: IRIX 6.5.15m and upgrading

Posted: Mon May 29, 2017 7:59 am
by mazzinia
sorry to say, but

/usr/stand

doesn't exist on the disk ( I dumped the list of everything )
The only stand present is in the root
/stand

with fx and sash inside ( and now with symmon, too )

Re: IRIX 6.5.15m and upgrading

Posted: Mon May 29, 2017 2:38 pm
by foetz
mazzinia wrote:mmm I did initialize the disk using the graphical disk manager (aka there's a label)... but now I'm not sure if I did partition it

for low level stuff your best bet always is the terminal. here's how you prepare a disk as system disk:

Code: Select all

# fx -x
fx version 6.5, Oct  6, 2003
fx: "device-name" = (dksc)
fx: ctlr# = (0)
fx: drive# = (1) 3
fx: lun# = (0)
...opening dksc(0,3,0)

...

----- please choose one (? for help, .. to quit this menu)-----
[exi]t             [d]ebug/           [l]abel/           [a]uto
[b]adblock/        [exe]rcise/        [r]epartition/
fx> r

...

----- please choose one (? for help, .. to quit this menu)-----
[ro]otdrive        [u]srrootdrive     [o]ptiondrive      [re]size
fx/repartition> ro

fx/repartition/rootdrive: type of data partition = (xfs)
Warning: you will need to re-install all software and restore user data
from backups after changing the partition layout.  Changing partitions
will cause all data on the drive to be lost.  Be sure you have the drive
backed up if it contains any user data.  Continue? y

...

----- please choose one (? for help, .. to quit this menu)-----
[ro]otdrive        [u]srrootdrive     [o]ptiondrive      [re]size
fx/repartition> /l

----- please choose one (? for help, .. to quit this menu)-----
[sh]ow/         [sy]nc          [se]t/          [c]reate/
fx/label> sy

----- please choose one (? for help, .. to quit this menu)-----
[sh]ow/         [sy]nc          [se]t/          [c]reate/
fx/label> /exi

then format it:

Code: Select all

mkfs /hw/rdisk/dks0d3s0

up next: the volume header

Code: Select all

cd /stand
dvhtool -v creat sash sash /dev/rdsk/dks0d3vh
dvhtool -v creat ide ide /dev/rdsk/dks0d3vh


replace the s0d3 parts with whatever you need. the s0 is the controller number and the d3 is the disk id.
now mount the disk's s0 partition (dks0d3s0 in the example here) and start dragging the data over. xfsdump/restore is the recommended way but tar, cpio and alike should work as well.
after that unmount the disk and you're good to go :-)

Re: IRIX 6.5.15m and upgrading

Posted: Mon May 29, 2017 3:00 pm
by mazzinia
in theory those 3 steps were done

gui to initialize and put a label
script formatted and copied the header ( sash and symmon, in my case )

I checked the headers of the 2, and were identical

the only step I think I forgot to do, was to check the source partitioning, and to repartition the target

Re: IRIX 6.5.15m and upgrading

Posted: Tue May 30, 2017 6:12 am
by mazzinia
mmmm, indeed the 2 partitions are not identical

sgi115 2# prtvtoc
Printing label for root disk

* /dev/root (bootfile "/unix")
* 512 bytes/sector
* Unallocated space:
* Start Size
* 35546876 296794
*
Partition Type Fs Start: sec Size: sec Mount Directory
0 xfs yes 8392704 27154172
1 raw 4096 8388608
8 volhdr 0 4096
10 volume 0 35843670

sgi115 3# prtvtoc /dev/rdsk/dks0d9vh
* /dev/rdsk/dks0d9vh (bootfile "/unix")
* 512 bytes/sector
Partition Type Fs Start: sec Size: sec Mount Directory
7 xfs yes 4096 71128863
8 volhdr 0 4096
10 volume 0 71132959

sgi115 4#