May 29, 2012
tom

Change Hard Drive Mounted Location Debian

Question

I just realized my hard drive is mounted to the wrong directory, how many I change the directory in which it is mounted?

Thanks!

Asked by Belgin Fish

Answer

Edit the “/etc/fstab”file (as root). The syntax is:

/your/device    /dir/where/mounted    <type>    <opts>   <dump/pass>

You just need to fix the “/dir/where/mounted”, and reboot.

Or you can do it manually (after reboot, fstab will be read, and mounted ‘wrongly’ again):

umount /your/wrong/dir
mount /dev/yourdiskXY /your/right/dir
Answered by mulaz

Related posts:

  1. How to mount a second hard drive? Debian
  2. Hard drive mounting Question Debian Linux
  3. Unmount hard drive debian
  4. CIFS mounted drive setting “stick-bit” on all files, cannot change permissions or modify files
  5. Is there a reason to change a server’s hard drive before it faults?

Leave a comment