Re: Accidentally removed /dev/dsk/c* and /dev/dsk/r*
- From: "Daniel Rock" <v200608@xxxxxxxxxxx>
- Date: Sun, 26 Feb 2006 22:53:31 +0000 (UTC)
Dave Uhring <daveuhring@xxxxxxxxx> wrote:
On Sun, 26 Feb 2006 10:28:22 -0800, Arizona wrote:
I tried that but it didn't work.
You need to run devfsadm(1M) to rebuild /dev. After booting single user
from CDROM mount your / partition on /a. Then
You can also repair while booting from the corrupted disk as long as
/devices is intact.
(1) boot in "less then single-user" mode:
Solaris 10
boot -a -m milestone:none
Solaris 9 and earlier
boot -ab
The -a is just a reminder for you which root device you are using. Just
accept all the default values - but note the path for the question
"physical path for root filesystem"
(2) when you get to the shell prompt (after sulogin) you have to do everything
manually. Just the root filesystem is mounted read-only by the kernel
(a) remount your root-fs read-write:
/sbin/mount -o remount,rw /devices/<root-path from above> /
(b) remount other filesystems as needed (at least /usr and /var (if
separated from /)). Normally /usr and /var reside on the same disk
as the root filesystem. So you just have to change the slice from
the root path noted in step 1:
:a = s0, :b = s1, :c = s2, :d = s3, ...
Example:
. physical path for root filesystem:
/pci@0,0/pci-ide@7/ide@0/cmdk@0,0:a
. /var on slice 3
. /usr on slice 7
/sbin/mount /devices/pci@0,0/pci-ide@7/ide@0/cmdk@0,0:d /var
/sbin/mount /devices/pci@0,0/pci-ide@7/ide@0/cmdk@0,0:h /usr
(3) rebuild your /dev tree:
Solaris 8ff
devfsadm
all Solaris versions
drvconfig
devlinks
disks <-- should be sufficent in your case
(4) reboot again
/sbin/uadmin 2 1
Normally you should reboot with "init 6" but in above scenario I prefer
booting the quick way - no start scripts have been run, so no stop
scripts should also run.
--
Daniel
.
- References:
- Accidentally removed /dev/dsk/c* and /dev/dsk/r*
- From: Arizona
- Re: Accidentally removed /dev/dsk/c* and /dev/dsk/r*
- From: Arizona
- Re: Accidentally removed /dev/dsk/c* and /dev/dsk/r*
- From: Steve
- Re: Accidentally removed /dev/dsk/c* and /dev/dsk/r*
- From: Arizona
- Re: Accidentally removed /dev/dsk/c* and /dev/dsk/r*
- From: Dave Uhring
- Accidentally removed /dev/dsk/c* and /dev/dsk/r*
- Prev by Date: Help needed replacing OS version
- Next by Date: Re: Accidentally removed /dev/dsk/c* and /dev/dsk/r*
- Previous by thread: Re: Accidentally removed /dev/dsk/c* and /dev/dsk/r*
- Next by thread: Solaris 8 connecting to the Internet
- Index(es):
Relevant Pages
|