4th November 2016, 22:34
(4th November 2016, 20:48)leszek Wrote: First you need to become root by executing
sudo -i
Then you land on a root shell and can edit the file with a text editor like nano or vi.
As for the contents please take a look at the documentations around the web like this one for example: https://help.ubuntu.com/community/Fstab
Hi Leszek,
After reading the link you sent I got these:
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 94873575 94871528 45.2G 7 HPFS/NTFS/exFAT
/dev/sda2 94873598 594198527 499324930 238.1G 5 Extended
/dev/sda3 594198528 625142447 30943920 14.8G 12 Compaq diagnostics
/dev/sda5 94873600 138276863 43403264 20.7G 83 Linux
/dev/sda6 581179392 594198527 13019136 6.2G 82 Linux swap / Solaris
/dev/sda7 138278912 181680127 43401216 20.7G 83 Linux
/dev/sda8 181682176 225083391 43401216 20.7G 83 Linux
/dev/sda9 225085440 268486655 43401216 20.7G 83 Linux
/dev/sda10 268488704 581167103 312678400 149.1G 83 Linux
Partition table entries are not in disk order.
root@qrious4ever-pc:~# sudo blkid
/dev/sda1: UUID="42BA1F42BA1F3241" TYPE="ntfs" PARTUUID="c3ffc3ff-01"
/dev/sda3: UUID="A2BEC2F7BEC2C2D1" TYPE="ntfs" PARTUUID="c3ffc3ff-03"
/dev/sda5: UUID="f6ee6ec7-d558-47e6-93ac-a3b67d35f038" TYPE="ext4" PARTUUID="c3ffc3ff-05"
/dev/sda6: UUID="3889ebb4-bc33-46f8-8aa2-067015d2203a" TYPE="swap" PARTUUID="c3ffc3ff-06"
/dev/sda7: UUID="dfff2087-f741-4fe9-9f5a-464fcf5abc0c" TYPE="ext4" PARTUUID="c3ffc3ff-07"
/dev/sda8: UUID="b7d3fee0-8ae7-42a5-9ecb-2509e27b02bc" TYPE="ext4" PARTUUID="c3ffc3ff-08"
/dev/sda9: UUID="34aabf9d-82a4-45e2-898f-94a79b5df6eb" TYPE="ext4" PARTUUID="c3ffc3ff-09"
/dev/sda10: UUID="39425f7b-aac8-4604-955e-70170224c550" TYPE="ext4" PARTUUID="c3ffc3ff-0a"
root@qrious4ever-pc:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=dfff2087-f741-4fe9-9f5a-464fcf5abc0c / ext4 defaults,noatime 0 1
UUID=3889ebb4-bc33-46f8-8aa2-067015d2203a swap swap defaults,noatime 0 0
UUID=13799536-81fa-42ff-8ecf-6a5218bbb8c9 swap swap defaults,noatime 0 0
Will it be correct if I add this line to fstab?
UUID=39425f7b-aac8-4604-955e-70170224c550 /home ext4 defaults,noatime 0 0
or this
UUID=39425f7b-aac8-4604-955e-70170224c550 /home ext4 defaults,noatime 0 2
/dev/sda6 581179392 594198527 13019136 6.2G 82 Linux swap / Solaris (This was created by me)
Why is there another swap created?
Thanks for all your help!