Another kudos on the pile from me; usb-boot took care of just about everything. My goal was to install the ubuntu-server image for raspberry pi on a 5TB hard drive, booting from the SD card. I had written the image to both devices, and usb-boot took care of booting to the HDD. The problem I have is that any kernel update packages aren't being picked up. Once the OS is running, /boot is mounted to the HDD; kernel images are written there, but the only kernel present on the SD card's /boot is the version from installation and that's what gets loaded.
I don't know if it's a compatibility with ubuntu-server; everything during the two executed steps (boot from SD to run from HDD, and GPT modification for >2TB disk) ran without errors. My /etc/fstab contains the following:
Code: Select all
$ cat /etc/fstab
PARTUUID=dca5f882-3528-47fd-93a9-101dd6b51719 / ext4 defaults 0 0
LABEL=system-boot /boot/firmware vfat defaults 0 1
And the system-boot label points to a partition on the HDD:
Code: Select all
$ ls -la /dev/disk/by-label/
total 0
drwxr-xr-x 2 root root 80 Sep 24 14:27 .
drwxr-xr-x 8 root root 160 Dec 31 1969 ..
lrwxrwxrwx 1 root root 10 Jan 4 15:03 system-boot -> ../../sda1
lrwxrwxrwx 1 root root 10 Jan 4 15:04 writable -> ../../sda2
The SD card is present with its partitions:
Code: Select all
$ sudo fdisk -l /dev/mmcblk0
Disk /dev/mmcblk0: 7.43 GiB, 7973371904 bytes, 15572992 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x254a9658
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 * 2048 526335 524288 256M c W95 FAT32 (LBA)
/dev/mmcblk0p2 526336 15572958 15046623 7.2G 83 Linux
When everything's running, should I see the SD card's /boot mounted (instead of the HDD)? Is that just a change to /etc/fstab & call it a day?