Move the rootfs to a SATA DriveCurrently it’s impossible to boot from a SATA drive without a SD card. You will still need a small SD card for the bootloader. However, it is possible to adjust the bootscript (which is similar to a bootloader) on the SD card so that it points directly to your SATA drive. This way your system will boot the OS right from the SATA drive.
Here’s what you have to do:Note: all this commands require root privileges.
- Connect your SSD (of course :-) )
fdisk -land identify your SATA drive. In this example
/dev/sdarepresents the SSD disk.
- Prepare your disk
Delete all partitions using the “d” option
> fdisk /dev/sda
Create a new primary partition using the “n” option (you can accept all the defaults)
Use the “w” option the apply the changes.
Format the partition for rootfs with EXT4 filesystem
> mkfs.ext4 /dev/sda1
Copying RootfsI still assume that
/dev/sdarepresent the SATA drive
Change the kernel parameters in order to boot from the SSD drive
> mkdir /tmp/1 /tmp/target > mount /dev/mmcblk0p2 /tmp/1 > mount /dev/sda1 /tmp/target > (cd /tmp/1; tar --backup -c *) |tar -C /tmp/target -xv
Change the last line to:
> mkdir /tmp/boot > mount /dev/mmcblk0p1 /tmp/boot > vim /tmp/boot/uEnv.txt
Sync to disk and reboot to your hard drive
.. root=/dev/sda1 ...
You can test the result with:
> sync > reboot