Wednesday, April 24, 2024
58
rated 0 times [  58] [ 0]  / answers: 1 / hits: 154054  / 2 Years ago, wed, june 29, 2022, 6:04:17

I am using Ubuntu Minimal + LXDE. I am wondering how can I auto-mount a partition (internal) on boot automatically. Currently I do something like



mount /dev/sda3 /media/works


But I want it to be permanent. Also I have GParted, but the Partition > UnMount is greyed out (yes, unmount, even though I haven't mounted it)


More From » partitioning

 Answers
0

Unmount is greyed out because the partition isn't there to be unmounted. You haven't mounted it yet.



To make the partition auto-mount, first find out the UUID of /dev/sda3 by doing:



sudo blkid


I'll assume you're using ext4 on /dev/sda3. Open up gedit like so:



sudo -H gedit /etc/fstab


(Or, in the command line, sudo vim or sudo nano instead of gksudo gedit.)



Now you want to add a line to the bottom of that file. It should look something like this (UUID will be different):



UUID=03ec5dd3-45c0-4f95-a363-61ff321a09ff /media/works ext4 defaults  0      2


For more info on fstab, this is a good resource.


[#44931] Thursday, June 30, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
herfor

Total Points: 490
Total Questions: 101
Total Answers: 110

Location: Guadeloupe
Member since Mon, Jan 24, 2022
2 Years ago
;