Mounting soft partitions from network boot?

Solaris, UNIX

Let’s say you hosed your root partition and have to boot from CD or network. You have data on soft partitions you need to access, which aren’t very easily accessible, becauseĀ  they are…well..soft. Here’s the answer. Just import the SVM configuration from the root disk and mount it up.

# mount -o ro /dev/dsk/c0t0d0s0 /a
# cp /a/kernel/drv/md.conf /kernel/drv/md.conf
# umount /a
# update_drv -fmd
Cannot unload module: md
Will be unloaded upon reboot.
Forcing update of md.conf.
devfsadm: mkdir fialed for /dev 0xled: Read-only file system
devfsadm: inst_sync failed for /etc/path_to_inst.1359: Read-only file system
devfsadm: WARNING: failed to update /etc/path_to_inst
# metainit -r
# mount /dev/md/dsk/d52 /mnt #(soft partition)
Share

4 Responses

  1. Melissa says:

    You are the biggest geek I know, but I will always love you.

  2. Kelly says:

    Very neat, thanks for sharing!

  3. I have no idea things know about say. this is definitely one of the better websites Ive read. Youre so insightful, have a whole lot real stuff to create on the table. I hope more and more people check this out and get a few things i got of computer: clls. Great job and great blog. I cant wait to see more, keep em comin!

  4. I admit, I individual not been on this webpage in a lengthened time? however it was another pleasance to see It is such an indispensable message and neglected by so numerous, equal professionals. I thank you to aid making group many knowledgeable of mathematical issueExcellent nonsensicality as veritable.