How to change mount point for drive?

cormanaz

Distinguished
Sep 4, 2010
73
0
18,640
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/AutomaticallyMountPartitions 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.
 

pauls3743

Distinguished
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