Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2006-07-24
5
213 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
ID: 17166106
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
ID: 17166111
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
ID: 17166301
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
ID: 17166331
use /etc/fstab - it was designed for.
if the command works, then it's valid command.
0
 
LVL 43

Expert Comment

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

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

856 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