LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-05-2009, 12:42 PM   #1
johnweidauer
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Rep: Reputation: 0
CentOS 5 and I am having troubles adding secondary drive


Absolute newbie here.

I have a WD External USB device, so I pull the drive out and it's SATA, I throw it into my CentOS 5 box. In the LVM I can see the new device, /dev/sda & /dev/sdb as well as the VolGroup00 with the primary drive. I would like to add this newly added SATA drive, FAT32, as part of my CentOS 5 file server using SAMBA, but the problem is that I have data on this newly added drive, can I mount it without loosing the data by Initializing the Entity, or do I have to back it up first?

Once I am at the point of mounting, how do I do this as well? I have done this:

# mount -t vfat /dev/sdb /mnt/ExtData

and receive this message:

mount: /dev/sdb already mounted or /mnt/ExtData busy

So I am not sure if I even have the concept down. Help please
 
Old 11-05-2009, 03:33 PM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 216Reputation: 216Reputation: 216
Backups are always a good idea, even when things don't seem like they can go wrong.

Are you sure it's /dev/sda and /dev/sdb, what are the servers normal hard drives? Also give the output of the mount command, that will show if /dev/sdb is already mounted or if /mnt/ExtData is already in use. Also mount /dev/sdb isn't valid, with hard drives you should only be able to mount the partitions on it, so it's more likely to be something along the lines of /dev/sdb1 or /dev/sdb2.

Last edited by r3sistance; 11-05-2009 at 03:35 PM.
 
Old 11-05-2009, 04:00 PM   #3
johnweidauer
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Original Poster
Rep: Reputation: 0
yeah I'm sure. I actually pulled the drive out, copied it, put the drive back in and mounted it and junk through the lvm gui.
 
Old 11-05-2009, 04:10 PM   #4
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 216Reputation: 216Reputation: 216
As I requested before, the output of the mount command could help here. For example here is the mount command performed on one of the VPS on my own server.

[*******@********** ~]$ mount
/dev/xvda2 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/xvda3 on /tmp type ext3 (rw,noexec,nosuid,nodev)
/dev/xvda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
 
Old 11-05-2009, 05:27 PM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
The xv section of r3sistance's post may confuse many so I will post a more typical example:

Quote:
[fred@localhost ~]$ mount
/dev/hda2 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda5 on /home type ext3 (rw)
/dev/hda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda2 on /media/Storage type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
But there is still something a little odd. sdX is a physical drive while sdX1 is a partition(X being an integer). You are listing sda and sdb which would indicate two physical drives. In my example there are two physical drives hda(pata) and sda(sata). Each has multiple partitions, which is why you seen hda1,hda5,etc.
 
  


Reply


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
simply adding new virtual drive to centos web server slozzy Linux - Hardware 3 11-19-2008 04:20 AM
Adding a new hard drive in Centos 5.1 system; a few questions... nadsab Linux - Hardware 8 03-28-2008 03:33 PM
NTLDR error on start-up when adding secondary new drive neville310 Linux - Hardware 1 12-13-2007 06:54 PM
Adding New Hard Drive as Secondary Master derek8128 Linux - Newbie 4 10-24-2005 08:46 AM
Troubles adding another hard drive in openBSD xlobsterx *BSD 1 03-04-2005 01:08 AM


All times are GMT -5. The time now is 07:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration