Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 5754  / 1 Year ago, wed, march 8, 2023, 2:29:46

I have ubuntu 12.04 running on my system. I repartitioned my hard disk yesterday, I have an empty 40GiB partiton.



Can I mount it at say /data-part ? How do I do this ?



I have formatted it as ext4.


More From » mount

 Answers
0

=== EDIT STARTS ===



I am assuming you want it to be mounted every time you boot, if what you want is to mount it one time:



$ sudo mkdir /data-part
$ sudo mount /dev/sdaX /data-part


should do the trick.



=== EDIT ENDS ===



Sure you can. First you need to know device file of the partition you need to mount (it should be something like sda* in most cases). If you don't know, install and run gparted and find out device file of the partition.



gparted



Once you find the device file, fire up your favorite editor from terminal (assuming device file you want to mount is /dev/sdaX, replace accordingly):



$ sudo gedit /etc/fstab


When editor opens, go to the bottom of the file and add a line like:



/dev/sdaX /data-part ext4 defaults 0 0


And then, all you need to do is to create a directory at mount point:



$ sudo mkdir /data-part


After your next reboot, partition should be mounted at the mount point automatically.


[#32974] Thursday, March 9, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ncharm

Total Points: 255
Total Questions: 105
Total Answers: 118

Location: Virgin Islands (U.S.)
Member since Sat, May 6, 2023
1 Year ago
ncharm questions
;