Beginners Guide: Migrating to SSD
#1
This is for Rock 64 LINUX beginners who wants to migrate their Debian Jessie/Stretch minimal from the SD card to a much faster (SSD) and/or bigger drive.

Assuming  the SSD has already been connected,  partitioned,  and formatted to EXT4, here are few simple steps to follow: :

1. Label the SSD partition where the root file systems will be migrated to.


Quote:sudo e2label /dev/sda1 rootfs


Here, my SSD partition is /dev/sda1 (yours maybe different) and I use rootfs as the label. You can use whatever label of your choice but make sure you use the same label on step 4. 

2. Mount the SSD drive


Quote:sudo mount /dev/sda1 /mnt


3. Copy (or move) the root file system from the SD card to the SSD partition.


Quote:sudo cp -avx  / /mnt 


4. Tell Linux where to find the root file system by editing the configuration file  /boot/efi/extlinux/extlinux.conf


Quote:sudo nano  /boot/efi/extlinux/extlinux.conf


In the editor, you will see the text as follows:

Quote:label kernel-4.4
    kernel /Image
    initrd /initrd.img
    fdt /dtb
    append earlycon=uart8250,mmio32,0xff130000 rw root=LABEL=linux-root rootwait rootfstype=ext4 init=/sbin/init coherent_pool=1M


Change LABEL=linux-root to LABEL=rootfs  or whatever label you used on step 1.

Save the change and exit the editor.

5. Reboot

After reboot and login back, you can verify with lsblk -f command.

Quote:sudo lsblk -f 


Have fun.
  Reply


Messages In This Thread
Beginners Guide: Migrating to SSD - by rontant - 08-19-2017, 12:59 AM
RE: Beginners Guide: Migrating to SSD - by rmbusy - 10-29-2017, 10:56 PM
RE: Beginners Guide: Migrating to SSD - by Luke - 10-30-2017, 02:58 AM
RE: Beginners Guide: Migrating to SSD - by GaryLa - 01-23-2018, 02:41 PM
RE: Beginners Guide: Migrating to SSD - by Luke - 01-23-2018, 03:30 PM
RE: Beginners Guide: Migrating to SSD - by GaryLa - 01-23-2018, 05:54 PM
RE: Beginners Guide: Migrating to SSD - by Luke - 01-24-2018, 05:37 PM
RE: Beginners Guide: Migrating to SSD - by svyt22 - 01-28-2018, 04:40 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Information Beginners Guide: Adding USB Storage, Linux Formatting and Permissions Ptheven 4 12,227 03-06-2021, 01:49 PM
Last Post: helpmerock
  Step by step guide PXE diskless configuration. burglar_ot 13 35,660 11-01-2020, 11:26 PM
Last Post: michael.gruner
Thumbs Up A guide for how I made RetroPie, RetroArch, and EmulationStation Work on the Rock64 Mrfixit2001 4 16,034 12-17-2018, 03:52 AM
Last Post: va88
  Guide - XRDP - Debian Stretch / Ubuntu Xenial / OMV S3phi40T 3 13,964 05-05-2018, 06:08 AM
Last Post: S3phi40T
Information Guide - Raid Array (Raid 0) Ptheven 0 4,812 10-07-2017, 09:22 AM
Last Post: Ptheven
Information Guide - Setting up a NFS Share Ptheven 0 5,466 09-26-2017, 04:44 AM
Last Post: Ptheven
  Guide - Setting up a SMB(Windows) file server Ptheven 0 12,572 08-21-2017, 08:54 AM
Last Post: Ptheven
Information Beginners Guide: Locating your board, connecting to it. Ptheven 5 15,859 08-21-2017, 04:12 AM
Last Post: Ptheven

Forum Jump:


Users browsing this thread: 2 Guest(s)