Thommy M. Malmström
2009-Jan-04 12:48 UTC
[zfs-discuss] How to mount rpool and edit vfstab from LiveCD?
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
kristof
2009-Jan-04 18:27 UTC
[zfs-discuss] How to mount rpool and edit vfstab from LiveCD?
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/opensolaris at xxxxx then you are lucky, you will find the original vfstab file in: /b/.zfs/<snapshotname>/etc/vfstab K -- This message posted from opensolaris.org
Patrik Greco
2009-Jan-04 18:31 UTC
[zfs-discuss] How to mount rpool and edit vfstab from LiveCD?
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