Mount OpenSolaris ZFS partition and reinstalling GRUB using Live CD
This small tutorial will tell you how you can mount an OpenSolaris ZFS partition using the OpenSolaris Live CD.
This is really easy.
Put in the OpenSolaris Live CD and type the following:
pfexec zpool import
The above command will give you the disk number something like c3d0s0
pfexec zpool import -f rpool
pfexec mkdir /a
pfexec mount -F zfs rpool/ROOT/opensolaris /a
pfexec zfs set mountpoint=/a/rpool rpool
Now, if you want to access the home folder of your OpenSolaris, you need to mount that also
pfexec mkdir /a/export/home
pfexec mount -F zfs rpool/export/home /a/export/home
To install the GRUB, just do the following:
pfexec cd /a/boot/grub
pfexec installgrub stage1 stage2 /dev/rdsk/c3d0s0




Hi. If you follow your commands,you will find that it doesn't work.
you need to zfs set mountoint=legacy rpool/ROOT/opensolaris , then you can mount it.
Posted by Ricky Zhou on November 12, 2008 at 03:13 PM IST #