DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Edit fstab Manually to Monnt A Specific Partition


  1. On the old Mint OS, create a new partition with "Disk" tools, copy "apps", "docs", etc folders to the new partition;

  2. Login Arch OS as root;

  3. Get the UUID (and label) of the "home" partition with command blkid or lsblk -f;

  4. Create user chad: useradd -m chad;

  5. Modify /etc/fstab of the Arch OS,

    $ cat /etc/fstab ... UUID=... /home/chad ext4 ... 0 2

  6. Reboot;

You can specify section in fstab (the first column) with "LABEL=..." instead of "UUID=...". Use e2label /dev/sda1 <label> to set partition label. But using UUID is a more reliable way.

Ref: Field definitions in fstab on Arch Wiki



Published

Jul 29, 2014

Last Updated

Jul 29, 2014

Category

Tech

Tags

  • fstab 1
  • linux 158

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor