Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 3438  / 2 Years ago, wed, august 24, 2022, 12:20:28

Very very basic conceptual question. (Obviously from a beginner)



I want to manually mount an internal hard drive.



My drive in not mounted.



dir /media is empty.



I click on the drive in the GUI, it mounts.



Now /media has /media/myDrive



myDrive is sda



But, to manually mount my drive using mount, I know I am supposed the mkdir mountpoint in advance, so that I can do



sudo mount /dev/sda /media/myDrive


Question:
How come if I use the GUI, the mountpoint does not need to exist in advance?



If I want to mount my drive in a script, do I absolutely must mkdir /media/myDrive in advance?



Many thanks for clarifying a newbie misunderstanding.


More From » mount

 Answers
4

The GUI does the mkdir in advance for you. It deletes it when it's done.



You don't need to mount to /media/name/, there is a special folder called /mnt in your hard drive.


[#27722] Thursday, August 25, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ranquctive

Total Points: 391
Total Questions: 103
Total Answers: 104

Location: South Sudan
Member since Thu, Feb 4, 2021
3 Years ago
;