Sign in with
Sign up | Sign in
Your question

How to change mount point for drive?

Tags:
  • File System
  • Linux
  • Ubuntu
Last response: in Linux/Free BSD
Share
March 8, 2014 2:23:14 PM

I just updated a MythTV system by doing a fresh install of Mythbuntu (was fedora), which is based on Ubuntu 12.04,3. I installed to a drive on /dev/hda, and the installer took care of partitioning that drive. I have another drive /dev/hdb (xfs file system) that stores videos that the installer did not mess with. However, I need to get that to mount as /video at system boot. How can I change the mount point? I found this https://help.ubuntu.com/community/AutomaticallyMountPar... which talks about using pysdm storage device manager, or editing fstab. I installed and tried to use the former to rename the disk, but it won't do it. I'm no Linux wizard, so I'm a little unsure how to edit fstab myself, and I know you can hose things pretty well be doing that. So I thought I would ask for advice here.

More about : change mount point drive

March 8, 2014 2:55:29 PM

I'm no expert so someone might come along and give a better answer

try this
create a folder, this can be anywhere in your system, this will become your mount point - "mkdir /video"
second you open the fstab file, this will mount your logical drive at the specified folder location - "sudo vim /etc/fstab"
initiate edit - "i"
add the line "/dev/hdb /video xfs defaults 0 0", the line is in the format <device name> <folder name> <file system> <I'm not so sure on the rest>
exit edit - escape key
save the edit - ":x", must be lower case
if you want to leave the file without saving changes then - ":q"
remount all drives - "mount -a"

navigate to the folder to see if your drive has been mounted to that point
if Linux doesn't like the edit it won't mount the drive

note:- I would've thought your filesystem would've been "ext4" and the device name should've been "/dev/hdb1" as this would be a partition on the drive rather than the drive itself
m
0
l
March 9, 2014 11:10:09 AM

Yes, that did it, thanks.
m
0
l
!