zfsonlinux / pkg-zfs

Native ZFS packaging for Debian and Ubuntu
https://launchpad.net/~zfs-native/+archive/daily
308 stars 55 forks source link

update guide to native zfs root from Ubuntu 12.04 to final 13.04 #96

Closed minhgi closed 8 years ago

minhgi commented 11 years ago

Hello,

Will there be an updated guide for native zfs root Ubuntu since it is now in final stage? I have trouble with installing a new install of Ubuntu 13.04 with the 12.04.2 guide. I seem to run into the reboot problem where grub2 can not found root file and load the kernel.

I am itching to get this working.

Thanks

minhgi commented 11 years ago

This is what I get from grub.cfg

root@ubuntu:/# grep boot=zfs /boot/grub/grub.cfg linux /ROOT/ubuntu-1/@/ROOT/ubuntu-1@//boot/vmlinuz-3.8.0-19-generic root=ZFS=rpool/ROOT/ubuntu-1/@/ROOT/ubuntu-1 ro boot=zfs $bootfs quiet splash $vt_handoff linux /ROOT/ubuntu-1/@/ROOT/ubuntu-1@//boot/vmlinuz-3.8.0-19-generic root=ZFS=rpool/ROOT/ubuntu-1/@/ROOT/ubuntu-1 ro boot=zfs $bootfs quiet splash $vt_handoff linux /ROOT/ubuntu-1/@/ROOT/ubuntu-1@//boot/vmlinuz-3.8.0-19-generic root=ZFS=rpool/ROOT/ubuntu-1/@/ROOT/ubuntu-1 ro single nomodeset boot=zfs $bootfs

hendismurf1 commented 11 years ago

How did you solve the problem? Cause i´m running into the same when setting up an new ubuntu 13.04 zfs installation.

minhgi commented 11 years ago

On 04/27/2013 11:48 AM, hendismurf1 wrote:

How did you solve the problem? Cause i´m running into the same when setting up an new ubuntu 13.04 zfs installation.

— Reply to this email directly or view it on GitHub https://github.com/zfsonlinux/pkg-zfs/issues/96#issuecomment-17119255.

It was not resolve. I had ask the developer to up date the guide.

rrossouw commented 11 years ago

I had the same problem on Ubuntu 13.04 and only way to boot was to fix /boot/grub/grub.cfg. To first boot just manually edit the grub boot entries. I still saw a "missing label" error but it still boots.

I temporarily fixed two lines in /boot/grub/grub.cfg as follow for subsequent boots:

_#linux /ROOT/ubuntu-1/@/ROOT/ubuntu-1@//boot/vmlinuz-3.8.0-19-generic root=ZFS=rpool/ROOT/ubuntu-1/@/ROOT/ubuntu-1 ro boot=zfs $bootfs quiet splash $vthandoff linux /ROOT/ubuntu-1/@/boot/vmlinuz-3.8.0-19-generic root=/dev/sda2 ro boot=zfs $bootfs quiet splash $vt_handoff

#initrd /ROOT/ubuntu-1/@/ROOT/ubuntu-1@//boot/initrd.img-3.8.0-19-generic initrd /ROOT/ubuntu-1/@/boot/initrd.img-3.8.0-19-generic

dajhorn commented 11 years ago

This is being worked on in zfsonlinux/zfs#1441. This ticket seems to be accidentally closed, so I've reopened it.