Solved

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

Posted on 2006-07-24
5
216 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
[X]
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
  • 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
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 how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…

749 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