Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 6535  / 3 Years ago, sat, may 15, 2021, 12:04:36

Hello I searched for this query(mounting all partitions on system startup) and found answer near to it. I added this command to startup applications "/usr/bin/udisks --mount /dev/disk/by-uuid/A2E6A54AE6A52011" and other three partitions separately. When i close and open startup applications it wont save all three partitions. It is saving only the last command added. Is there any way i can mount all partitions at system startup ? And the above procedure i followed is also opening that system partition resulting to delay in boot. If possible tell how to just mount all partitions but not to open all. But i want all partitions to be mount automatically. Please help me.



Image of what i edited fstab



The last three lines are the lines I added.
According to your first suggestion.



According to your first suggestion



According to your second suggestion.



According to your second suggestion



This is the result of both edits.



Drives disappeared



Ok... Let me be more specific...The image below shows all the partitions of my internal hard disk.
1. I Just want to mount the partitions labeled
(a) Sumana(Backups),
(b) Movies,Doc's and Songs
(c) Personal
all partitions



This is the output of df -h



output of df -h



This is the output of cat /etc/fstab
output of cat...



And this is the uuid of all partitions



uuids'.



Now i want to mount sda3, sda5 and sda7 if possible even windows partition sda2.



Sorry if I'm bothering you brother. I had Unix as subject and now I'm interested in learning commands and customizing like this. And i wanted to mount.
Hope I've uploaded all outputs you want.


More From » startup

 Answers
1

You should add the partitions in question to your /etc/fstab. The following line will automatically mount /dev/hda2 at boot (that's hidden in the flag default).



/dev/hda2   /   ext2    defaults    1 1


If you don't want to mount, you would issue noauto amongst your options. In your question you appear to be using uuids to address your partitions. You should probably write something like:



UUID=A2E6A54AE6A52011   /mnt/somedisk  auto   defaults 0 0


Using man fstab you can learn the specifics of the file's syntax.






Update after you posted your fstab and so on.



You really did screw up the mounting. I am surprised you can boot with four devices mounted into the same mount point /. Presumably, it mounts the first (your all important root partiation /dev/sda8) and then fails with mount point not empty when it tries the others (or some other error dependent on the type of file systems involved)



At any rate, you need to learn about fstab. Have a look at some of the first google hits for understanding fstab.






So here is what you should do:



First create the mountpoints:



sudo mkdir /mnt/sda2 /mnt/sda3 /mnt/sda5 /mnt/sda7


If you wish you can be more creative with the names. You can also put them somewhere other than /mnt. Your choice.



Next edit your /etc/fstab and put in lines for each of them



/dev/sda2 /mnt/sda2 auto defaults 0 0
/dev/sda3 /mnt/sda3 auto defaults 0 0
/dev/sda5 /mnt/sda5 auto defaults 0 0
/dev/sda7 /mnt/sda7 auto defaults 0 0


I think you had a spare whitespace between the slash and the mnt/sda. These things matter since you broke the mount point into two.



Then, do not reboot. You should be able to test it saying:



sudo mount /mnt/sda2 # and so on for the other partitions


If that works, on next boot they should all come up. If you wish you can replace /dev/sda2 and so on with their respective UUID



footnote instead of screenshots, simple text would have made it possible for me to copy and paste your fstab. As it is, it's pretty but uses more bandwidth and conveys less usable information.


[#32576] Sunday, May 16, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tatoethin

Total Points: 377
Total Questions: 110
Total Answers: 98

Location: Saudi Arabia
Member since Sat, Aug 20, 2022
2 Years ago
;