I am about to make the plunge, re-install now and wanted to check by assumptions and actions
From scan_ffs -l /dev/ad0 (could not figure out what some of the columnar display were defining, indicted by "?"; hope my other guesses are correct)
Code:
(bytes/Blk)
(512) (1024) (2048)
End Start ? ?? ? Mnt Pt. Blocks MB MB MB
=== ===== ==== ===== === ====== ======= ==== ==== ====
X: 1048576 0 4.2BSD 2048 16384 0 # / 1048576 2048 1024 512
X: 204800 63 4.2BSD 1024 8192 16 # / 262081 511.9 255.9 128
X: 4167680 1048576 4.2BSD 2048 16384 0 # /var 3119104 6092 3046 1523
X: 1048576* 5216256* 4.2BSD 2048 16384 0 # /mnt/tmp 4167680 8140 4070 2035
X: 73778432 6264832 4.2BSD 2048 16384 0 # /mnt/usr 67513600 131862.5 65931.3 32966
--------
These were the original sizes before the problem:
Code:
df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ad0s1a 496M 134M 323M 29% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ad0s1e 496M 14M 442M 3% /tmp
/dev/ad0s1f 34G 25G 6.7G 79% /usr
devfs 1.0K 1.0K 0B 100% /usr/var/named/dev
The Disk is a MAXTOR 5T040H4 40G disk, from BIOS 40983MB & CHS 19618/16/255
Confusion issues ==>
* Seems as if the order of "End" and "Start" is reversed here ?
I did not have an explicit swap partition on this disk (just raw undefined space), had them on the other disks
The /var slice was actually converted through a soft link to /usr/var, seems as if the /var slice is showing up from the livefs disk rather than the expected /dev/ad0s1d, nothing appears on the mnt/ad0d mount point.
--------
Assuming the ufs2 fs with 2084 byte blocks does it seem safe to use the following:
Code:
Slice Start End Mnt Pt. Blocks MB
===== ===== ====== ====== ====== =====
ad0s1a 0 1048576 / 1048576 512
ad0s1c 1048576 4167680 <NONE> 3119104 1497 SWAP
ad0s1d 4167680 5216256 /var 1048576 512
ad0s1e 5216256 6264832 /tmp 1048576 512
ad0s1f 6264832 73778432 /usr 67513600 32966
(I'll put in a swap partition here now)
----------------------------------------------------
Now the following are mountable from the livefs at mnt:
Slice
=====
Code:
ad0s1a "Operation not permitted"
ad0s1c "Operation not permitted"
ad0s1d Mounted OK !
ad0s1e Mounted OK !
ad0s1f Mounted OK !
Am I safe in assuming then that ad0s1a is damaged beyond repair or will be damaged in this procedure and will have to be restored from dump or tar after the GEOMETRY is reset, although /dev/ad0s1a is present
ad0s1c is probably raw swap or just empty
and that the other slices will suffer a similar faith as this will involve reformating of the discs
Thanks for all the help, much appreciated!