Results 1 to 5 of 5
Hi everybody!
I have a question (obviously ) relating to mounting a directory. A few weeks back I noticed a new dir (/backup) which was setup by one of my ...
- 09-03-2004 #1Linux Newbie
- Join Date
- Feb 2004
- Posts
- 139
Stop an auto mounted dir
Hi everybody!
I have a question (obviously
) relating to mounting a directory. A few weeks back I noticed a new dir (/backup) which was setup by one of my servers' techs. I didn't realize until now when checking out a few things that it was mounted as /dev/hdd1, which is already mounted as /home/httpd. What I am looking for it how to find out how it is automatically mounted at boot up and how to stop it from being mounted automatically. I mount /home/httpd with putting the command: mount /dev/hdd1 /home/httpd in /etc/rc.local.
Can someone please help me out to unmount /backup at boot and mount /home/httpd when booted without having to use rc.local?
As always...any help appreciated!If you love something, emerge it
- 09-03-2004 #2
Erm...you should really just have the drives mounted in your /etc/fstab. Check that, though, to see if that's where the /backup is being mounted from.
"Time is an illusion. Lunchtime, doubly so."
~Douglas Adams, The Hitchhiker's Guide to the Galaxy
- 09-03-2004 #3Linux Newbie
- Join Date
- Feb 2004
- Posts
- 139
That is it. I knew there was a file for all of this stuff...
Anywhere, here is what it is:
What do I change to mount what is currently being mounted as /backup to mount as /home/httpd? The partition is /dev/hdd1.LABEL=/ / ext3 defaults,usrquota 1 1
LABEL=/backup /backup ext3 defaults 1 2
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda2 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0If you love something, emerge it
- 09-03-2004 #4Just Joined!
- Join Date
- Sep 2004
- Location
- Dallas, TX
- Posts
- 8
It looks like you tech applied a LABEL to the partition as can be seen from this in your fstab file.
LABEL=/backup
so you would need to add /dev/hd1 in it place in /etc/fstab, you can also relabel the partiton and use it's new label. I would recommended that you relabel the partition no matter what though so that there is no confusion on what that partition is for.
- 09-03-2004 #5Linux Newbie
- Join Date
- Feb 2004
- Posts
- 139
So would I just change the line
toLABEL=/backup /backup ext3 defaults 1 2
?LABEL=/home/httpd /home/httpd ext3 defaults 1 2If you love something, emerge it


Reply With Quote
