Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
howto:install_sata [2016/05/10 20:21]
tomtom
howto:install_sata [2016/05/15 21:39]
tomtom [Copying]
Line 32: Line 32:
 ====== Copying ====== ====== Copying ======
  
-Now you have to copy everything from the SD card to the disk.+Now you have to copy everything from the SD card to the disk. ([[https://​wiki.archlinux.org/​index.php/​Full_system_backup_with_rsync#​With_a_single_command|source]])
  
 <​code>​ <​code>​
 mkdir -p /tmp/sata mkdir -p /tmp/sata
 mount /dev/sda1 /tmp/sata mount /dev/sda1 /tmp/sata
-rsync -av / /tmp/sata/+rsync -aAXv --exclude={"​/dev/​*","/​proc/​*","/​sys/​*","​/tmp/*","​/run/​*","/​mnt/​*","/​media/​*","/​lost+found"​} / /tmp/sata
 </​code>​ </​code>​
 +
  
 Now, your SATA drive contains a complete copy of your system, but one important thing is missing: your kernel is in ''/​tmp/​sata/​boot'',​ but this folder should actually mount /​dev/​mmcblk0p1,​ which already contains the system you are currently running. Now, your SATA drive contains a complete copy of your system, but one important thing is missing: your kernel is in ''/​tmp/​sata/​boot'',​ but this folder should actually mount /​dev/​mmcblk0p1,​ which already contains the system you are currently running.
Line 58: Line 59:
 Can you log into your cube ? Congratulations ! It worked ! Can you log into your cube ? Congratulations ! It worked !
  
-====== Cleaning ======+====== Cleaning ​up ======
  
-Now, your old system is cluttering the ''/​boot''​ folder. To clean it up, you can remove everything in this folder, and then reinstall ​the kernel and everything necessary to boot.+Now, your old system is cluttering the ''/​boot''​ folder. To clean it up, you can remove everything in this folder, and reuse the ''/​boot.old''​ copy we did earlier.
  
 <​code>​ <​code>​
 cd /boot cd /boot
 rm -rf * # /!\ proceed carefully /!\ rm -rf * # /!\ proceed carefully /!\
-update-initramfs -u+mv /boot.old/* . 
 +rmdir /boot.old
 </​code>​ </​code>​
  
-Check if ''/​boot'' ​got repopulated by the last command. If soyou are good to go.+Everything should be fine now ! 
 + 
 +An alternative approach: remove everything from ''/​boot'', ​then run ''​update-initramfs -u''​. This will regenerate everything necessary inside ''/​boot''​.
  • howto/install_sata.txt
  • Last modified: 2019/05/20 01:07
  • by tierce