Re: [zfs-discuss] How to mount rpool and edit vfstab from LiveCD?

2009-01-04 Thread Patrik Greco
Problem Solved!

I mounted wrong zfs pool.
wrong commad = zfs set mountpoint=/b xpool/ROOT/opensolaris

right commad = zfs set mountpoint=/b xpool/ROOT/opensolaris[b]-1[/b]
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


[zfs-discuss] How to mount rpool and edit vfstab from LiveCD?

2009-01-04 Thread Thommy M . Malmström
My son (15 years old) has installed OpenSolaris 2008.11 on disk on
his system and everything was OK until he made a newbie mistake and
edited the /etc/vfstab file incorrectly, that now prevents him from
booting. (Think he had done too much Linux...)
It just hangs on the splash screen.

My idea was to try to do a live cd boot, import the rpool on the disk,
mount my ZFS root filesystem somewhere, and then edit the
misconfigured vfstab, save it and reboot from disk.

Here's the commands he tried after some ideas from me was...

1. zpool import

   Shows the rpool with a long id number

2. zpool import -f long id number xpool

3. mkdir /b

4. zfs set mountpoint=/b xpool/ROOT/opensolaris

5. zfs mount xpool/ROOT/opensolaris

6. cat /b/etc/vfstab

But he can't see the edits that he made.

So, how do he get the real file mounted?
He made a _LOT_ of additions and upgrades after the initial install
and do really want to recover...
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] How to mount rpool and edit vfstab from LiveCD?

2009-01-04 Thread kristof
If you have snapshots of the root filesystem, you can recover the file.

To check for snapshots run:

zfs list - t all

If you see something like

rpool/ROOT/opensola...@x

then you are lucky, you will find the original vfstab file in:

/b/.zfs/snapshotname/etc/vfstab

K
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss