Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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

  2. #2
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    3,682 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

  3. #3
    That is it. I knew there was a file for all of this stuff...

    Anywhere, here is what it is:
    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 0
    What do I change to mount what is currently being mounted as /backup to mount as /home/httpd? The partition is /dev/hdd1.
    If you love something, emerge it

  4. $spacer_open
  5. #4
    Just Joined!
    Join Date
    Sep 2004
    Dallas, TX
    It looks like you tech applied a LABEL to the partition as can be seen from this in your fstab file.


    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.

  6. #5
    So would I just change the line
    LABEL=/backup /backup ext3 defaults 1 2
    LABEL=/home/httpd /home/httpd ext3 defaults 1 2
    If you love something, emerge it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts