{"id":956,"date":"2016-05-09T15:54:36","date_gmt":"2016-05-09T22:54:36","guid":{"rendered":"http:\/\/blog.ls-al.com\/?p=956"},"modified":"2016-05-09T15:54:36","modified_gmt":"2016-05-09T22:54:36","slug":"migrating-ubuntu-on-a-zfs-root-file-system","status":"publish","type":"post","link":"https:\/\/blog.ls-al.com\/migrating-ubuntu-on-a-zfs-root-file-system\/","title":{"rendered":"Migrating Ubuntu On a ZFS Root File System"},"content":{"rendered":"
I have written a couple articles about this here http:\/\/blog.ls-al.com\/ubuntu-on-a-zfs-root-file-system-for-ubuntu-15-04\/ and here http:\/\/blog.ls-al.com\/ubuntu-on-a-zfs-root-file-system-for-ubuntu-14-04\/<\/p>\n
This is a quick update. After using virtualbox to export and import on a new machine my guest did not boot up all the way. I suspect I was just not seeing the message about manual\/skip check of a file system and that the fstab entry for sda1 changed. Here is what I did. On bootup try \"S\" for skip if you are stuck. In my case I was stuck after a message about enabling encryption devices or something to that effect.<\/p>\n
Check fstab and note disk device name.<\/p>\n
\r\nroot@ubuntu:~# cat \/etc\/fstab\r\n\/dev\/disk\/by-id\/ata-VBOX_HARDDISK_VB7e932a52-ef3c41b0-part1 \/boot\/grub auto defaults 0 1 \r\n<\/pre>\nCheck if this device exists.<\/p>\n
\r\nroot@ubuntu:~# ls -l \/dev\/disk\/by-id\/ata-VBOX_HARDDISK_VB7e932a52-ef3c41b0*\r\nls: cannot access \/dev\/disk\/by-id\/ata-VBOX_HARDDISK_VB7e932a52-ef3c41b0*: No such file or directory\r\n<\/pre>\nWhat is the correct device name.<\/p>\n
\r\nroot@ubuntu:~# ls -l \/dev\/disk\/by-id\/ata-VBOX_HARDDISK* \r\nlrwxrwxrwx 1 root root 9 May 9 15:38 \/dev\/disk\/by-id\/ata-VBOX_HARDDISK_VBb0249023-5afef528 -> ..\/..\/sda\r\nlrwxrwxrwx 1 root root 10 May 9 15:38 \/dev\/disk\/by-id\/ata-VBOX_HARDDISK_VBb0249023-5afef528-part1 -> ..\/..\/sda1\r\nlrwxrwxrwx 1 root root 10 May 9 15:38 \/dev\/disk\/by-id\/ata-VBOX_HARDDISK_VBb0249023-5afef528-part2 -> ..\/..\/sda2\r\n<\/pre>\nKeep old fstab and update with correct name.<\/p>\n
\r\nroot@ubuntu:~# cp \/etc\/fstab \/root\r\n\r\nroot@ubuntu:~# vi \/etc\/fstab\r\nroot@ubuntu:~# sync\r\nroot@ubuntu:~# diff \/etc\/fstab \/root\/fstab \r\n1c1\r\n< \/dev\/disk\/by-id\/ata-VBOX_HARDDISK_VBb0249023-5afef528-part1 \/boot\/grub auto defaults 0 1 \r\n---\r\n> \/dev\/disk\/by-id\/ata-VBOX_HARDDISK_VB7e932a52-ef3c41b0-part1 \/boot\/grub auto defaults 0 1 \r\n<\/pre>\nTry rebooting now.<\/p>\n","protected":false},"excerpt":{"rendered":"
I have written a couple articles about this here http:\/\/blog.ls-al.com\/ubuntu-on-a-zfs-root-file-system-for-ubuntu-15-04\/ and here http:\/\/blog.ls-al.com\/ubuntu-on-a-zfs-root-file-system-for-ubuntu-14-04\/ This is a quick update. After using<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,30],"tags":[],"class_list":["post-956","post","type-post","status-publish","format-standard","hentry","category-linux","category-zfs"],"_links":{"self":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/956","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/comments?post=956"}],"version-history":[{"count":0,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/956\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/media?parent=956"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/categories?post=956"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/tags?post=956"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}