I'm largely posting this so that if it comes up again I can find the record somewhere.
In attempting to get resume from suspend working on a thinkpad T42 I managed to make two basic errors. I made a setting change that caused Xorg to lock up the system and forgot to turn off automatic startup of the GUI. Without both of these errors I would never have learned something about single-user mode and zfs.
When booting into single-user mode the root filesystem is mounted read-only. That means any configuration changes don't get written. The regular tools to remount the system read-write don't work on zfs. I tried [cmd=]mount -o remount,rw[/cmd] and [cmd=]zfs mount -o remount,rw[/cmd]
The first doesn't work on a zfs filesystem and the second fails because the filesystem is in use as root. I believe that opensolaris mount does work with zfs.
Anyway, here's how to set a zfs root read-write in single-user mode.
[cmd=]zfs set readonly=off tank/root[/cmd]
In attempting to get resume from suspend working on a thinkpad T42 I managed to make two basic errors. I made a setting change that caused Xorg to lock up the system and forgot to turn off automatic startup of the GUI. Without both of these errors I would never have learned something about single-user mode and zfs.
When booting into single-user mode the root filesystem is mounted read-only. That means any configuration changes don't get written. The regular tools to remount the system read-write don't work on zfs. I tried [cmd=]mount -o remount,rw[/cmd] and [cmd=]zfs mount -o remount,rw[/cmd]
The first doesn't work on a zfs filesystem and the second fails because the filesystem is in use as root. I believe that opensolaris mount does work with zfs.
Anyway, here's how to set a zfs root read-write in single-user mode.
[cmd=]zfs set readonly=off tank/root[/cmd]