# devfsadm
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t2d0 <DEFAULT cyl 14086 alt 2 hd 24 sec 424>
/pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@2,0
1. c0t3d0 <SUN72G cyl 14086 alt 2 hd 24 sec 424>
/pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@3,0
Specify disk (enter its number): 1
selecting c0t3d0
[disk formatted]
format> fdisk
Total disk size is 14089 cylinders
Cylinder size is 10176 (512 byte) blocks
Cylinders
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
1 Active Solaris2 1 14088 14088 100
partition> print
Current partition table (original):
Total disk cylinders available: 14084 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 1 - 26 129.19MB (26/0/0) 264576
1 unassigned wm 27 - 52 129.19MB (26/0/0) 264576
2 backup wu 0 - 14088 68.36GB (14089/0/0) 143369664
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 53 - 14086 68.10GB (14034/0/0) 142809984
7 unassigned wm 0 0 (0/0/0) 0
8 boot wu 0 - 0 4.97MB (1/0/0) 10176
9 unassigned wm 0 0 (0/0/0) 0
partition> quit
format> quit
# newfs /dev/rdsk/c0t3d0s2
newfs: construct a new file system /dev/rdsk/c0t3d0s2: (y/n)? y
Warning: 5224 sector(s) in last cylinder unallocated
/dev/rdsk/c0t3d0s2: 143315864 sectors in 23327 cylinders of 48 tracks, 128 sectors
69978.5MB in 1458 cyl groups (16 c/g, 48.00MB/g, 5824 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488, 885920,
Initializing cylinder groups:
............................
super-block backups for last 10 cylinder groups at:
142349344, 142447776, 142546208, 142644640, 142743072, 142841504, 142939936,
143038368, 143136800, 143235232
# mount /dev/dsk/c0t3d0s2 /mnt
# ls /mnt/
lost+found
# umount /mnt
# vi /etc/vfstab
/dev/dsk/c0t3d0s2 /dev/rdsk/c0t3d0s2 /export/home ufs 1 no -
# mount /export/home
# ls /export/home
lost+found
--
JesseSuen - 02 Mar 2006