LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-27-2013, 10:40 PM   #1
neuro11
LQ Newbie
 
Registered: Dec 2007
Posts: 8

Rep: Reputation: 0
Mounting problem in centos


I first installed Centos 6.3 and then Centos 5.6 because some of my tools are not compatible with the latest version. Since installation of Centos 5.6 i can not boot 6.3 anymore. Then I tried to mount 6.3 partition in Centos 5.6 but it gives the message :

/dev/sda7 already mounted or /mnt/centos busy

Here is my disk details that i can find through fdisk command :

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 5 40131 de Dell Utility
/dev/sda2 * 6 1480 11845632 7 HPFS/NTFS
/dev/sda3 1480 33843 259952640 7 HPFS/NTFS
/dev/sda4 33843 60802 216546335+ f W95 Ext'd (LBA)
/dev/sda5 33843 41492 61438976 83 Linux
/dev/sda6 41492 41556 512000 83 Linux
/dev/sda7 41556 60802 154593280 8e Linux LVM

Centos 5.6 is in sda 5 (that currently i am using)
Centos 6.3 is in sda6 and sda7.

It would be better if i could boot in both but if not at least i would like mount Centos 6.3 partition on 5.6

Thank You
 
Old 01-27-2013, 10:45 PM   #2
John VV
Guru
 
Registered: Aug 2005
Posts: 13,051

Rep: Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741
Quote:
Since installation of Centos 5.6
Why 5.6 ?
the current and ONLY supported version in the old 5 series is 5.9

add the location of the 6.3 boot image to the 5.6 ( upgrade to 5.9 ASAP) grub.conf

However the centos 5 install should have auto detected the cent6 install and labeled it as "other" in the grub config
 
Old 01-28-2013, 12:01 AM   #3
neuro11
LQ Newbie
 
Registered: Dec 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by John VV View Post
Why 5.6 ?
the current and ONLY supported version in the old 5 series is 5.9
g system options. .... http://www.tecmint.com/install-softw...and-using-cent
add the location of the 6.3 boot image to the 5.6 ( upgrade to 5.9 ASAP) grub.conf

However the centos 5 install should have auto detected the cent6 install and labeled it as "other" in the grub config
Hi, thanks a lot for your reply. I had Windiws 7 and Centos 6.3 installed and it detected Windows automatically in 'Others' but did not Centos 6.3.

If i upgrade to 5.9 do you think it will affect on existing software installations. I have cadence installed in 5.6.


Thank You
 
Old 01-28-2013, 10:52 AM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 13,051

Rep: Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741
Quote:

If i upgrade to 5.9 do you think it will affect on existing software installations. I have cadence installed in 5.6.
it should not .
There are very RARE exceptions
But centos ONLY supports the ONE and only 1 current version of the RHEL supported series
that is CentOS 5.9 and CentOS 6.3 ( soon to be 6.4)

older versions will NEVER get any security/bug fixes

to upgrade
Code:
su -
yum --releasever=5.9 upgrade
 
Old 01-28-2013, 12:36 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,969

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
sda6 should be your /boot and sda7 which is the LVM partition should contain /root and swap as logical volumes if you selected the default installation. A LVM can not be directly mounted but you should be able to mount the logical volumes from version 5.6.

The steps to mount a logical volume:
Code:
vgscan (Will search and display volume group names)

vgchange -a y Vol_Group_name (Will activated volume group as displayed from previous command)

lvdisplay (will display logical volumes)

mount /dev/Vol_Group_name/Log_Vol_name /mnt/mount_point (To mount the logical volume)
You should also be able to add the 6.3 to the grub menu.
 
Old 01-29-2013, 05:41 AM   #6
neuro11
LQ Newbie
 
Registered: Dec 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Hi,thanks a lot for your reply. It upgraded to 5.9 without any problem.
One thing i forgot to tell is,when i was installing 5.6 i selected a new partition that i prepared in ext3 type for installing 5.6 . Then it prompted me to mount on somewhere and i selected /. Is it the reason for not being able to boot 6.3 and to not see that partition??

Thanks
Quote:
Originally Posted by John VV View Post
it should not .
There are very RARE exceptions
But centos ONLY supports the ONE and only 1 current version of the RHEL supported series
that is CentOS 5.9 and CentOS 6.3 ( soon to be 6.4)

older versions will NEVER get any security/bug fixes

to upgrade
Code:
su -
yum --releasever=5.9 upgrade


---------- Post added 01-29-13 at 06:42 AM ----------

Thanks for your reply. i will try this.

Quote:
Originally Posted by michaelk View Post
sda6 should be your /boot and sda7 which is the LVM partition should contain /root and swap as logical volumes if you selected the default installation. A LVM can not be directly mounted but you should be able to mount the logical volumes from version 5.6.

The steps to mount a logical volume:
Code:
vgscan (Will search and display volume group names)

vgchange -a y Vol_Group_name (Will activated volume group as displayed from previous command)

lvdisplay (will display logical volumes)

mount /dev/Vol_Group_name/Log_Vol_name /mnt/mount_point (To mount the logical volume)
You should also be able to add the 6.3 to the grub menu.
 
Old 01-30-2013, 06:44 AM   #7
neuro11
LQ Newbie
 
Registered: Dec 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Hi....thanks a lot. this has worked. i could mount following the commands. However when i restarted its demounted again. Can you tell me what should i write in\
fstab file to automount this.

And for dual boot i have edited the grub.conf as follows :
----------------------------------------------------
default=0
timeout=5
splashimage=(hd0,4)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-348.1.1.el5)
root (hd0,4)
kernel /boot/vmlinuz-2.6.18-348.1.1.el5 ro root=LABEL=/ rhgb quiet crashkernel=128M@16M
initrd /boot/initrd-2.6.18-348.1.1.el5.img
title CentOS (2.6.18-238.el5)
root (hd0,4)
kernel /boot/vmlinuz-2.6.18-238.el5 ro root=LABEL=/ rhgb quiet crashkernel=128M@16M
initrd /boot/initrd-2.6.18-238.el5.img
title CentOS (2.6.32-279.19.1.el6.x86_64)
root (hd0,4)
kernel /vmlinuz-2.6.32-279.19.1.el6.x86_64 ro root=/dev/mapper/vg_neuro-lv_root rd_NO_LUKS rd_LVM_LV=vg_neuro/lv_root rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M rd_LVM_LV=vg_neuro/lv_swap KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM LANG=en_US.UTF-8 rhgb quiet
initrd /initramfs-2.6.32-279.19.1.el6.x86_64.img
title Windows
rootnoverify (hd0,1)
chainloader +1

--------------------------------------------------------------
the third one is what i added for Centos 6.3 and i actually copied that part directly from previous grub.conf file.But its not working. Can you advise please thanks.

Quote:
Originally Posted by michaelk View Post
sda6 should be your /boot and sda7 which is the LVM partition should contain /root and swap as logical volumes if you selected the default installation. A LVM can not be directly mounted but you should be able to mount the logical volumes from version 5.6.

The steps to mount a logical volume:
Code:
vgscan (Will search and display volume group names)

vgchange -a y Vol_Group_name (Will activated volume group as displayed from previous command)

lvdisplay (will display logical volumes)

mount /dev/Vol_Group_name/Log_Vol_name /mnt/mount_point (To mount the logical volume)
You should also be able to add the 6.3 to the grub menu.
 
Old 01-30-2013, 07:06 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,969

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
The fstab entry should be like:
Quote:
/volume_group_name/logical_volume_name /mount_point ext3 defaults 1 2
Be sure use the actual volume, logical names and file system type for your system.
 
  


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
problem mounting NTFS partition on CentOS. avee137 Linux - Newbie 1 05-15-2010 03:37 PM
problem mounting ntfs partition on centos mia_tech Linux - General 4 08-05-2009 06:01 PM
Mounting second Harddisk in Centos 5 global888 Linux - Newbie 6 07-07-2009 06:26 AM
Mounting a cdrom in Centos myfriday Linux - Hardware 14 07-05-2009 04:59 AM
Problem mounting CDRW in Centos 5.1 nadsab Linux - Hardware 15 03-18-2008 06:03 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration