Advertisement
cribbageSTARSHIP

arch home migration

Jul 31st, 2015
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. fyi:
  2. My current fstab:
  3. # /etc/fstab: static file system information
  4. #
  5. # <file system> <dir> <type> <options> <dump> <pass>
  6. # UUID=0a5e1002-1ea4-4f94-8c56-117b3a18175d
  7. /dev/sda2 / ext4 rw,relatime,data=ordered 0 1
  8.  
  9. # UUID=91e17003-e956-4edd-baeb-11ff2eeb5b38
  10. /dev/sdb2 none swap defaults 0 0
  11.  
  12. blkid:
  13. /dev/sdb1: UUID="3220ee4f-841b-459e-bb59-14d13bc5020c" TYPE="ext4" PARTUUID="9d02913d-01"
  14. /dev/sdb2: UUID="91e17003-e956-4edd-baeb-11ff2eeb5b38" TYPE="swap" PARTUUID="9d02913d-02"
  15. /dev/sda1: UUID="0a8157e1-0f48-4e97-86bd-2b587798b2c2" TYPE="ext4" PARTUUID="0007c2fb-01"
  16. /dev/sda2: UUID="0a5e1002-1ea4-4f94-8c56-117b3a18175d" TYPE="ext4" PARTUUID="0007c2fb-02"
  17.  
  18. To remove all the hidden folders sdb2:
  19. sudo rm -rf /run/media/will/3220ee4f-841b-459e-bb59-14d13bc5020c/user/.*
  20.  
  21. Move all hidden files and dirs from ARCH home to sdb1:
  22. sudo cp -rp /home/user/.* /run/media/will/3220ee4f-841b-459e-bb59-14d13bc5020c/user/
  23.  
  24. Migrating /home procedure:
  25. Add line to fstab and save:
  26. "# UUID=3220ee4f-841b-459e-bb59-14d13bc5020c
  27. /dev/sdb1 /home ext4 rw,relatime,data=ordered 0 2"
  28.  
  29. then:
  30. sudo rm -rf /home
  31. sudo mkdir /home
  32. sudo mount -a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement