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
howto:install_sata [2016/05/12 14:42]
tomtom [Cleaning]
howto:install_sata [2019/05/20 01:07] (current)
tierce old revision restored (2018/12/08 22:28)
Line 28: Line 28:
 /​dev/​mmcblk0p1 /boot ext4       ​defaults ​       0       1 # /boot on the SD card /​dev/​mmcblk0p1 /boot ext4       ​defaults ​       0       1 # /boot on the SD card
 /dev/sda1 / ext4                defaults ​       0       1 # root on SATA drive /dev/sda1 / ext4                defaults ​       0       1 # root on SATA drive
 +</​code>​
 +
 +====== Stop services ======
 +You should stop this service before to proceed the copy, else there is a risk your mysql database to be corrupted.
 +<​code>​
 +root@yunohost:/​media#​ service nginx stop
 +root@yunohost:/​media#​ service mysql stop
 +root@yunohost:/​media#​ service postfix stop
 +root@yunohost:/​media#​ service rmilter stop
 +root@yunohost:/​media#​ service dovecot stop
 </​code>​ </​code>​
  
 ====== 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.
  • howto/install_sata.1463056970.txt.gz
  • Last modified: 2018/12/08 22:28
  • (external edit)