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.
Have a disk installed centos 5.0 and previously works fine (as a single disk in a computer).Now plug the disk to another computer as an external disk (use USB cable), which already running a windows xp. Now when I enter the boot menu, if choose boot from harddisk,it boots into windows xp (no problem) and if choose boot from usb, it start to boot into centos (but fail, only can see some message like booting into centos...).
I think the problem is the centos installed using the default settings, like /dev/mapper/VolGroup00-LogVol00...(pointed to /dev/sda),now it's as the second disk so system don't recognize it's /dev/sda. How can I manually modify this to make it work?
If I understand your situation correctly, you had a hard drive with only CentOS on it, no other operating systems. You took this drive and put it in another computer which has xp and you are trying to boot CentOS by changing the boot priority in the BIOS to boot from the disk on which you have CentOS? Or are you booting from an entry in the xp boot.ini file?
yancek,yes,almost there...just didn't change the BIOS, only press F12, will get a boot menu on the screen, which list can boot from CDROM, Harddisk,USB...
If you now have CentOS on a drive which already had xp on it, you will need to modify your bootloader. You can install Grub to the mbr of that disk and put an entry in /boot/grub/menu.lst for xp or you can modify the xp to boot CentOS. Never done that but the site below explains. It involves pputting Linux on a second drive so you will need to modify things a bit:
I think the problem is the centos installed using the default settings, like /dev/mapper/VolGroup00-LogVol00...(pointed to /dev/sda),now it's as the second disk so system don't recognize it's /dev/sda. How can I manually modify this to make it work?
everything you have to modify are entries in /etc/fstab/. The fstab file connects the physical partitions of your harddrive with the filesystem of your linux. With "fdisk -l" check the names of your partitions and change them in fstab, after doing this everything should work. To change fstab you should enter your system with a live-CD.
If you now have CentOS on a drive which already had xp on it, you will need to modify your bootloader. You can install Grub to the mbr of that disk and put an entry in /boot/grub/menu.lst for xp or you can modify the xp to boot CentOS. Never done that but the site below explains. It involves pputting Linux on a second drive so you will need to modify things a bit:
Not really need this (even this can save not press F12 and pop up the boot menu), since already can boot to GRUB (already have in the second disk) from the boot menu, just fail in next step
everything you have to modify are entries in /etc/fstab/. The fstab file connects the physical partitions of your harddrive with the filesystem of your linux. With "fdisk -l" check the names of your partitions and change them in fstab, after doing this everything should work. To change fstab you should enter your system with a live-CD.
Markus
1.It uses lv , not just simply change like /dev/sda1 to /dev/hda1 in /etc/fstab (plus I can't boot into the system atm)
...
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
...
2.I can boot to GRUB menu and did the following try.
1)press "a", boot to single, init=/bin/sh, emergency, but all fail
2)press "c" into command line,enter root (hd0,0) can find the second harddisk (first harddisk should be sda),enter find /grub/grub.conf can see the grub.conf,but enter kernel /vmliuz... it said can't find the file (the file it's there, use Tab key I can see what vm* files listed there)
3.Use live CD/first CD to boot (enter linux rescue), but in the last step, it said "no partition table in /etc/sdb" (not sure why the error said sdb not hda)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.