big problem on IRIX due to an error on my part
#10
RE: big problem on IRIX due to an error on my part
HI jmjsgi,

Start by reading IRIX filesytem documentation: https://techpubs.jurassic.nl/library/man...index.html

This explains the XFS file system layout and naming conventions.

Your Boot Disk will have partition 0 (root) & 1 (swap) & optionally 6 (usr).

To find the disk do:
# ls /dev/rdsk
dks0d1s0 dks0d1vol dks2d0s7 dks2d1s7 dks2d3s0 dks2d3vol volume_header
dks0d1s1 dks1d2vh dks2d0vh dks2d1vh dks2d3s1 root
dks0d1vh dks1d2vol dks2d0vol dks2d1vol dks2d3vh swap

The disk will be one with:

dksXdYs0 & dksXdYs1 (ie with partition 0 & 1), where X == Controller & Y == disk

Once you identified the disk you can mount it read-only: https://help.graphica.com.au/irix-6.5.30/man/1M/mount

For example:
cd /tmp
mkdir BOOT
mount -t xfs -o ro /dev/dsk/dksXdYs0 /tmp/BOOT

If it fails to mount then it means there is not a valid xfs file-system on that partition and it is been clobbered.

Having the partition label saying it has XFS partition does not mean it has a valid file-system.

To make a valid file system you need to run the mkfs (make file system) command, this would need writable disk and really will clobber what ever you have on the disk.

Man Page for mkfs: https://help.graphica.com.au/irix-6.5.30/man/1M/mkfs

Here is example boot disk layout with fx:

# fx =x
fx version 6.5, Jul 20, 2006
fx: "device-name" = (dksc)
fx: ctlr# = (0) 2
fx: drive# = (1) 3
fx: lun# = (0) 0
...opening dksc(2,3,0)
...drive selftest...OK
Scsi drive type == ATA Samsung SSD 850 2B6Q

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

----- please choose one (? for help, .. to quit this menu)-----
[s]how/
fx/label> show

----- please choose one (? for help, .. to quit this menu)-----
[para]meters [part]itions [b]ootinfo [a]ll
[g]eometry [s]giinfo [d]irectory
fx/label/show> part

----- partitions-----
part type blocks Megabytes (base+size)
0: xfs 134221824 + 1819303344 65538 + 888332
1: raw 4096 + 134217728 2 + 65536
8: volhdr 0 + 4096 0 + 2
10: volume 0 + 1953525168 0 + 953870

----- please choose one (? for help, .. to quit this menu)-----
[para]meters [part]itions [b]ootinfo [a]ll
[g]eometry [s]giinfo [d]irectory
fx/label/show>



Cheers from Oz,

jwhat/John
(This post was last modified: 01-27-2024, 12:37 PM by jwhat.)
jwhat
Octane/O350/Fuel User

Trade Count: (0)
Posts: 513
Threads: 29
Joined: Jul 2018
Location: Australia
Find Reply
01-27-2024, 12:15 PM


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)