Solved

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

Posted on 2006-07-24
5
208 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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…
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.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

810 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