Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
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?


  Search this Thread
Old 08-27-2008, 04:30 AM   #1
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, 04:36 AM   #2
Registered: Feb 2006
Location: Ahmedabad
Distribution: rhel5
Posts: 185
Blog Entries: 2

Rep: Reputation: 31
/dev/sda<x> /mnt/backup ext3 defaults 0 0
Old 08-27-2008, 04:46 AM   #3
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, 04:48 AM   #4
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, 04:57 AM   #5
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, 04:11 AM   #6
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 // /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?



centos5, mount

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:49 AM
Solaris 10 can't mount a CentOS share ALUOp Linux - Networking 2 11-08-2008 07:32 AM
Mount USB drives in centOS chanakasri Linux - Newbie 2 02-12-2007 02:41 AM
CentOS can't detect my slave HDD twysm cAos 1 05-05-2005 07:50 PM
How to format & mount 2nd hdd after FedCor1 has been installed on 1st hdd? clay394 Fedora 1 05-18-2004 02:50 PM

All times are GMT -5. The time now is 07:33 PM.

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