Solved

How do you make a drive mount automatically at boot up?

Posted on 2006-07-24
5
203 Views
Last Modified: 2013-12-06
I have a Fedora Core 4 machine, I've installed a harddrive /dev/hdd and mount it with the following command "mount /dev/hdd /opt/lampp/htdocs" , but I have to do that at every boot up. How do I make it so that a drive will automatically mount at startup?

Thanks
0
Comment
Question by:jaycangel
  • 3
5 Comments
 
LVL 43

Expert Comment

by:ravenpl
Comment Utility
insert the mount entry into /etc/fstab
existing lines should tell everything about the syntax
0
 
LVL 22

Accepted Solution

by:
pjedmond earned 400 total points
Comment Utility
Add the following line to your /etc/fstab:

/dev/hdd1?            /opt/lampp/htdocs                   ext3    defaults        1 2

I suspect that you are /hddx? rather than just hdd? I'm also presuming ext3?

Alternatively, add your command line to the /etc/rc.local file. This will make the system run your command after all the other daemon processes are started.

(   (()
(`-' _\
 ''  ''


0
 
LVL 1

Author Comment

by:jaycangel
Comment Utility
Hi there,

The command I used to mount was "mount /dev/hdd /opt/lampp/htdocs" and it worked. Was that the wrong command?


Which is better to use fstab or rc.local method? Are there any benefits?
0
 
LVL 43

Assisted Solution

by:ravenpl
ravenpl earned 100 total points
Comment Utility
use /etc/fstab - it was designed for.
if the command works, then it's valid command.
0
 
LVL 43

Expert Comment

by:ravenpl
Comment Utility
Since You know howto use mount, I assumed that pointing You to /etc/fstab is enought.
Also - why only B?
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now