I'm trying to set up boot from SSD drive, I followed this tutorial, but the raspberry pi 4 got stuck on the rainbow screen and did not boot up.
I copied the SD card to SSD using SD card copier, checked
fdisk -l to see the SSD drive, output:
... other devices, like SD card, RAM, etc. Disk /dev/sda: 223,6 GiB, 240057409536 bytes, 468862128 sectors Disk model: XPG EX500 Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: dos Disk identifier: 0x1a14c048 Device Boot Start End Sectors Size Id Type /dev/sda1 8192 532479 524288 256M c W95 FAT32 (LBA) /dev/sda2 532480 468862127 468329648 223,3G 83 Linux
Then i ran blkid, which outputed this:
/dev/mmcblk0p1: LABEL_FATBOOT="boot" LABEL="boot" UUID="69D5-9B27" TYPE="vfat" PARTUUID="d9b3f436-01" /dev/mmcblk0p2: LABEL="rootfs" UUID="24eaa08b-10f2-49e0-8283-359f7eb1a0b6" TYPE="ext4" PARTUUID="d9b3f436-02" /dev/sda1: LABEL_FATBOOT="boot" LABEL="boot" UUID="69D5-9B27" TYPE="vfat" PARTUUID="1a14c048-01" /dev/sda2: LABEL="rootfs" UUID="24eaa08b-10f2-49e0-8283-359f7eb1a0b6" TYPE="ext4" PARTUUID="1a14c048-02" /dev/mmcblk0: PTUUID="d9b3f436" PTTYPE="dos"
And finnaly edited cmdline.txt to this:
console=serial0,115200 console=tty1 root=PARTUUID=1a14c048-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
After this, I rebooted raspberry but then it got stuck on the rainbow screen, so I have to remove SD card and on other PC undo the edit made to cmdline.txt. The reason why I need to have everything on SSD is because the SD card is pretty small and I want to have samba to save files and have the web server with many websites and resources, so I need to have it all on SSD.
EDIT: I know that raspberry pi 4 can not directly boot from SSD and I still need the SD card. It should work in this way: the bootloader will load data from SD card and after it will start booting from the SSD drive so when the boot is completed, the SSD will be the main storage, so everything will be stored on it,e.g. /var/www/* etc.