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/Bookmark
2 Comments

2 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!

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>