CentOS 5 and I am having troubles adding secondary drive
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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)
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.