LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-27-2008, 03:30 AM   #1
akiskrimp
LQ Newbie
 
Registered: Sep 2006
Posts: 3

Rep: Reputation: 0
Mount second hdd Centos 5.2


Hello world!

I've just installed Centos 5.2 and I have 2 SATA hdd's.

I want to permanently mount my second hdd, refered as /dev/sda, in my filesystem under the direcory /mnt/backup

I know that I have to use the mount command and then edit /etc/fstab file.

But I am not pretty sure and I don't want to mess everything.

Thank you in advance for your help.

As a reference I attach the output of my fstab file. (more /etc/fstab)

LABEL=/ / ext3 defaults 1 1
LABEL=/var /var ext3 defaults 1 2
LABEL=/tmp /tmp ext3 defaults 1 2
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda5 swap swap defaults 0 0
 
Old 08-27-2008, 03:36 AM   #2
vkmgeek
Member
 
Registered: Feb 2006
Location: Ahmedabad
Distribution: rhel5
Posts: 185
Blog Entries: 2

Rep: Reputation: 31
Add
/dev/sda<x> /mnt/backup ext3 defaults 0 0
 
Old 08-27-2008, 03:46 AM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Once you've done that, "mount -a" will mount it for you
 
Old 08-27-2008, 03:48 AM   #4
akiskrimp
LQ Newbie
 
Registered: Sep 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you very much for the quick reply vkmgeek!

That is correct!
 
Old 08-27-2008, 03:57 AM   #5
akiskrimp
LQ Newbie
 
Registered: Sep 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you also billymayday!

Thanks for the quick answer!
 
Old 12-08-2008, 03:11 AM   #6
ShanevanJ
LQ Newbie
 
Registered: Dec 2008
Posts: 2

Rep: Reputation: 0
Permanemtly mounting a remote windows folder

Hi, I have the following mount to a remote windows folder (to ship backups for inclusion under the windows based backup system)

# mount -t cifs -o username=administrator,password=xxx //10.0.0.61/users /mnt/pbxbackup

I can acess the file system at /mnt/pbxbackup after this.

How do I make this permanent so if the system reboots etc it will make this connection again? I have tried editing fstab - but I am not sure how to deal with the username password parameters?

Shane
 
  


Reply

Tags
centos5, mount



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Make removable USB hdd mount at fixed mount point ctkroeker Linux - General 13 08-11-2009 08:49 AM
Solaris 10 can't mount a CentOS share ALUOp Linux - Networking 2 11-08-2008 06:32 AM
Mount USB drives in centOS chanakasri Linux - Newbie 2 02-12-2007 01:41 AM
CentOS can't detect my slave HDD twysm cAos 1 05-05-2005 06:50 PM
How to format & mount 2nd hdd after FedCor1 has been installed on 1st hdd? clay394 Fedora 1 05-18-2004 01:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration