Reset Root Password Zfs Boot File System

3
{0} ok boot cdrom -s SC Alert: Host System has Reset Probing system devices Probing memory Probing I/O buses Sun Fire V240, No Keyboard Copyright 2007 Sun Microsystems, Inc. All rights reserved. OpenBoot 4.22.33, 8192 MB memory installed, Serial #63540901. Ethernet address 0:3:ba:c9:8e:a5, Host ID: 83c98ea5. SINGLE USER MODE # # format Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c1t1d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848> /pci@1c,600000/scsi@2/sd@1,0 Specify disk (enter its number): ^C # # zpool import -R /a rpool cannot mount '/a/export': failed to create mountpoint cannot mount '/a/export/home': failed to create mountpoint cannot mount '/a/rpool': failed to create mountpoint # zfs mount rpool/ROOT/zfsBE cannot open 'rpool/ROOT/zfsBE': dataset does not exist # zpool list NAME SIZE ALLOC FREE CAP HEALTH ALTROOT rpool 136G 22.8G 113G 16% ONLINE /a # zfs list NAME USED AVAIL REFER MOUNTPOINT rpool 24.9G 109G 97K /a/rpool rpool/ROOT 21.8G 109G 21K legacy rpool/ROOT/s10s_u9wos_14a 21.8G 109G 20.5G /a rpool/ROOT/s10s_u9wos_14a/var 1.29G 109G 1.29G /a/var rpool/dump 1.00G 109G 1.00G - rpool/export 44K 109G 23K /a/export rpool/export/home 21K 109G 21K /a/export/home rpool/swap 2.06G 111G 16K - # zfs mount rpool/ROOT/s10s_u9wos_14a

Transcript of Reset Root Password Zfs Boot File System

Page 1: Reset Root Password Zfs Boot File System

{0} ok boot cdrom -s

SC Alert: Host System has ResetProbing system devicesProbing memoryProbing I/O buses

Sun Fire V240, No KeyboardCopyright 2007 Sun Microsystems, Inc. All rights reserved.OpenBoot 4.22.33, 8192 MB memory installed, Serial #63540901.Ethernet address 0:3:ba:c9:8e:a5, Host ID: 83c98ea5.

SINGLE USER MODE# # formatSearching for disks...done

AVAILABLE DISK SELECTIONS: 0. c1t1d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848> /pci@1c,600000/scsi@2/sd@1,0Specify disk (enter its number): ^C# # zpool import -R /a rpoolcannot mount '/a/export': failed to create mountpointcannot mount '/a/export/home': failed to create mountpointcannot mount '/a/rpool': failed to create mountpoint# zfs mount rpool/ROOT/zfsBE cannot open 'rpool/ROOT/zfsBE': dataset does not exist# zpool listNAME SIZE ALLOC FREE CAP HEALTH ALTROOTrpool 136G 22.8G 113G 16% ONLINE /a# zfs listNAME USED AVAIL REFER MOUNTPOINTrpool 24.9G 109G 97K /a/rpoolrpool/ROOT 21.8G 109G 21K legacyrpool/ROOT/s10s_u9wos_14a 21.8G 109G 20.5G /arpool/ROOT/s10s_u9wos_14a/var 1.29G 109G 1.29G /a/varrpool/dump 1.00G 109G 1.00G -rpool/export 44K 109G 23K /a/exportrpool/export/home 21K 109G 21K /a/export/homerpool/swap 2.06G 111G 16K -# zfs mount rpool/ROOT/s10s_u9wos_14a # df -hFilesystem size used avail capacity Mounted on/ramdisk-root:a 197M 175M 2.3M 99% //devices 0K 0K 0K 0% /devicesctfs 0K 0K 0K 0% /system/contract

Page 2: Reset Root Password Zfs Boot File System

proc 0K 0K 0K 0% /procmnttab 0K 0K 0K 0% /etc/mnttabswap 7.5G 344K 7.5G 1% /etc/svc/volatileobjfs 0K 0K 0K 0% /system/objectsharefs 0K 0K 0K 0% /etc/dfs/sharetabswap 7.5G 592K 7.5G 1% /tmp/tmp/dev 7.5G 592K 7.5G 1% /devfd 0K 0K 0K 0% /dev/fd/devices/pci@1e,600000/ide@d/sd@0,0:f 2.1G 2.1G 0K 100% /cdromdf: cannot statvfs /platform/sun4u-us3/lib/libc_psr.so.1: Operation not applicabledf: cannot statvfs /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1: Operation not applicableswap 7.5G 8K 7.5G 1% /tmp/root/var/runrpool/ROOT/s10s_u9wos_14a 134G 20G 109G 16% /a# cd /a# ls# cd etc# TERM=vt100# export TERM# vi shadow

root::6445::::::daemon:NP:6445::::::bin:NP:6445::::::sys:NP:6445::::::adm:NP:6445::::::lp:NP:6445::::::uucp:NP:6445::::::nuucp:NP:6445::::::smmsp:NP:6445::::::listen:*LK*:::::::gdm:*LK*:::::::webservd:*LK*:::::::postgres:NP:::::::svctag:*LK*:6445::::::nobody:*LK*:6445::::::noaccess:*LK*:6445::::::nobody4:*LK*:6445::::::~~# # init 6Creating boot_archive for /aupdating /a/platform/sun4u/boot_archive#