Getting aux to use all of a quantum 105
Don Gilbert
gilbertd at silver.ucs.indiana.edu
Wed Dec 26 03:03:06 AEST 1990
I recently went through this hassle also, trying to find and mount
the extra 240 MB partition on a wrenrunner disk. I'd used
SilverLining to partition it with the default A/UX configuration,
which made a large extra partition called "Unreserved 1". After
two failed attempts in which I installed A/UX from CD then wiped
it out the entirely, I found a way. Here is a commented log file
of the 3rd, successful try. '***' are comments.
After installing A/UX, I used it's disk partition (dp) and new file
system (newfs) commands. You should refer especially to CHapter 5 of
the A/UX Local System Administration manual (Preparing and Apple HD SC
for A/UX). The first part of this manual refers only to Apple's HD SC
Setup program, but the remainder (Using dp, Making and Mounting an A/UX
File System) applies to any disk partitioned for A/UX.
If you don't have this manual, see man pages for dp, disktab, newfs, mount
and fsentry.
*******************************************************************************
* *
* W E L C O M E T O A / U X *
* *
*******************************************************************************
Fri Dec 21 10:15:53 PST 1990
/
FILES lib/ nextunix users/
Useful Commands/ lost+found/ root/ usr/
bin/ mac/ shlib/
dev/ mnt/ tmp/
etc/ newunix unix*
*** list all partitions on entire disk on SCSI 2
# dp /dev/rdsk/c2d0s31
"/dev/rdsk/c2d0s31" 9 partitions, 9 allocated 640299 blocks
*** list partition 8 (last)
Command? p 8
DPM Index: 8
Name: "Extra", Type: "Apple_Free"
Physical: 13 @ 640270, Logical: 13 @ 0
Status:
valid alloc in_use not boot
read write
No Block Zero Block
**** list partition 7. This is the one I want to mount
Command? p 7
DPM Index: 7
Name: "Unreserved 1", Type: "Apple_UNIX_SVR2"
Physical: 480000 @ 160270, Logical: 480000 @ 0
Status:
valid alloc in_use not boot
read write
Slice 3
Regular UNIX File System (1)
Cluster: 0 Type: FS Inode: 1
Made: [0] Wed Dec 31 16:00:00 1969
Mount: [0] Wed Dec 31 16:00:00 1969
Umount: [0] Wed Dec 31 16:00:00 1969
No AltBlk map
Command? q
*** I need a disktab entry for the wrenrunner
*** this was not supplied, so I added one to /etc/disktab.
*** Save original disktab in case I mess up
# cp /etc/disktab /etc/disktab.0
*** using TextEditor. You will need to look thru the docs on
*** your brand of disk, and find statistics for number of
*** sectors/track (ns), no. tracks/cylinder (nt) and no. cylinders
*** on the disk (nc).
*** The wrenrunner disktab looks like this
# Wren Runner (CDC Wren 4 FH)
#
WrenRunner|WRENRUNNER|wrenrunner:\
:ty=winchester:ns#46:nt#9:nc#1555:
*** use new file system (newfs) to mount the "Unreserved 1"
*** partition, slice 3, on the wrenrunner.
*** Look for a 'c2d0s3' slice to mount in /dev/rdsk
# newfs -v /dev/rdsk/c2d0s3 wrenrunner
newfs: /dev/rdsk/c2d0s3: No such file or directory
*** Can't find one!
*** I failed here twice before when I used c2d0s31, until
*** I waded thru enough of the manuals to see that this refered
*** to the entire disk, NOT the unmounted slice 3 on that disk
# ls /dev/rdsk/c2*
/dev/rdsk/c2d0s0
/dev/rdsk/c2d0s1
/dev/rdsk/c2d0s2
/dev/rdsk/c2d0s30
/dev/rdsk/c2d0s31
/dev/rdsk/c2d0s4
/dev/rdsk/c2d0s5
/dev/rdsk/c2d0s6
*** at this point, I waded thru the manuals again and found
*** that I could use dp to assign a slice number, 4, that IS found
*** in /dev/rdsk.
# dp /dev/rdsk/c2d0s31
"/dev/rdsk/c2d0s31" 9 partitions, 9 allocated 640299 blocks
Command? p 7
DPM Index: 7
Name: "Unreserved 1", Type: "Apple_UNIX_SVR2"
Physical: 480000 @ 160270, Logical: 480000 @ 0
Status:
valid alloc in_use not boot
read write
Slice 3
Regular UNIX File System (1)
Cluster: 0 Type: FS Inode: 1
Made: [0] Wed Dec 31 16:00:00 1969
Mount: [0] Wed Dec 31 16:00:00 1969
Umount: [0] Wed Dec 31 16:00:00 1969
No AltBlk map
Command? c 7
DPME Field? b
BZB Field? s
*** change slice number from 3 to 4
Slice number + 1 [4]: 5
BZB Field? p
Slice 4
Regular UNIX File System (1)
Cluster: 0 Type: FS Inode: 1
Made: [0] Wed Dec 31 16:00:00 1969
Mount: [0] Wed Dec 31 16:00:00 1969
Umount: [0] Wed Dec 31 16:00:00 1969
No AltBlk map
BZB Field? q
DPME Field? q
*** write out changes
Command? w
Command? q
*** now make a new file system of the partition
# newfs -v /dev/rdsk/c2d0s4 wrenrunner
/etc/fs/ufs/mkfs /dev/rdsk/c2d0s4 480000 46 9 4096 1024 16 10 60 2048 t
Warning: 240 sector(s) in last cylinder unallocated
/dev/rdsk/c2d0s4: 480000 sectors in 1160 cylinders of 9 tracks, 46 sectors
245.8Mb in 73 cyl groups (16 c/g, 3.39Mb/g, 1536 i/g)
super-block backups (for fsck -b#) at:
16, 6688, 13360, 20032, 26704, 33376, 40048, 46720, 53392, 60064,
66736, 73408, 80080, 86752, 93424, 100096, 106000, 112672, 119344, 126016,
132688, 139360, 146032, 152704, 159376, 166048, 172720, 179392, 186064, 192736,
199408, 206080, 211984, 218656, 225328, 232000, 238672, 245344, 252016, 258688,
265360, 272032, 278704, 285376, 292048, 298720, 305392, 312064, 317968, 324640,
331312, 337984, 344656, 351328, 358000, 364672, 371344, 378016, 384688, 391360,
398032, 404704, 411376, 418048, 423952, 430624, 437296, 443968, 450640, 457312,
463984, 470656, 477328,
*** lets see if this worked, check new file system
# fsck -y /dev/rdsk/c2d0s4
** /dev/rdsk/c2d0s4
** Last Mounted on
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
2 files, 5 used, 225385 free (5 frags, 56345 blocks, 0.0% fragmentation)
*** now find a good subdirectory to mount it on /
# ls -C
%TextEditor.Scratch lib shlib
FILES lost+found tmp
TextEditor.Scratch mac unix
Useful Commands mnt users
bin newunix usr
dev nextunix
etc root
*** the A/UX manual recommends 'users'. That's fine with me,
*** but it already exists and has some files.
# ls -F users
Guest/
start/
start.bak/
*** so rename users and make a new, empty 'users' directory
*** for the new file system
# mv users user0
# mkdir /users
*** now mount it
# mount -v /dev/rdsk/c2d0s4 /users
mount: /dev/rdsk/c2d0s4 on /users: Block device required [errno: 15]
mount: giving up on /users
*** Oops, try /dev/dsk instead, as the manual suggests.
# mount -v /dev/dsk/c2d0s4 /users
/dev/dsk/c2d0s4 mounted on /users
# ls -a /users
.
..
lost+found
*** check if new partition can read and write
# cp /etc/passwd /users/mount.test
# cat /users/mount.test
daemon:xxxxxxxxxxxxx:1:1::/:
bin:xxxxxxxxxxxxx:2:2::/bin:
*** looks fine
# rm /users/mount.test
*** update the mount entries in /etc/fstab
*** to make this permanent
# cp /etc/fstab /etc/fstab.0
# fsentry -t 4.2 /dev/dsk/c2d0s4 /users
fsentry: could not mount /dev/dsk/c2d0s4
mount: /dev/dsk/c2d0s4 already mounted
--
Don.Gilbert at Iubio.Bio.Indiana.Edu
biocomputing office, indiana univ., bloomington, in 47405, usa
More information about the Comp.unix.aux
mailing list