LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   changing default mount location (https://www.linuxquestions.org/questions/linux-hardware-18/changing-default-mount-location-123346/)

MeanJoshGreen 12-06-2003 05:00 PM

changing default mount location
 
i have two disk drives, /dev/cdrom (my DVD drive) and /dev/cdrom1 (my CD-R drive). they were mounting to /mnt/cdrom and /mnt/cdrom1 respectivly just fine (this is on a new install of Fedora)

I also have two fat32 HD's which i have installed... went into /etc/fstab and added the neccessary lines for them, worked fine, autorun and automount worked for the two CD drives.


Now, I wanted to change the locatsion that the CD's were mounted to, to /mnt/dvd and /mnt/cdr

I went into /etc/fstab and modifed the two lines from

Code:

/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,owner,kudzu,ro 0 0

to

Code:

/dev/cdrom /mnt/dvd udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1 /mnt/cdr udf,iso9660 noauto,owner,kudzu,ro 0 0

As su, i created the two directories (and yes they are correct) and then ran mount -a

Nothing happened. removing the disks and replacing them does nothing, but doing mount /dev/cdrom or mount /dev/cdrom1 does mount them, however, sometimes it won't let me umount or eject them.

Did I do something wrong? or am I missing a step? thanks again

/bin/bash 12-06-2003 08:02 PM

Look at the permissions and uid/gid of /mnt/cdrom and make sure that /mnt/dvd and /mnt/cdr are the same.

MeanJoshGreen 12-06-2003 09:56 PM

i deleted /mnt/cdrom and /mnt/cdrom1 :-(
Code:

drwxrwxrwx 2 root root 4096 Dec 6 16:42 cdr
drwxrwxrwx 2 root root 4096 Dec 6 16:41 dvd

thats what ls -la1 reports

/bin/bash 12-07-2003 02:19 AM

Mine are like this, so what you have should work fine. The noauto will keep them from being auto mounted with a mount -a command. I dont know why they would be mounted before you changed mount location?
Code:

drwxr-xr-x    2 root    root          48 Nov 18 23:05 cdrom/
drwxr-xr-x    2 root    root          48 Nov 18 23:05 cdrom2/



All times are GMT -5. The time now is 03:13 PM.