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

Comments:

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 07:13 AM IST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

I am a Campus Ambassador, Amrita Vishwa Vidyapeetham. This is my technical-cum-non technical blog. You can also view my personal site: http://avinashjoshi.co.in

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today