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.
Hello World
i am using dual bootable system as windows xp and CentOS 5.5 system, i partitioned like 50 Gb in each c,d,e drives in windows, after that i installed Centos 5.5 sd /boot 2gb
/home 90gb
/var 40gb
/temp 15 gb
/usr 30 gb
/opt 25 gb
/swap 8 gb
/ 50 gb
i wrongly deleted boot files after...it was showing [Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename]
grub> for i install grub with using linux rescue mode after that i did /sbin/grub-install-/dev/sda7
it showed no error reported installation successful but after booting now it showing only GRUB please let me know how to solve the problem
Change sda7 to sda if you want grub installed to the MBR
Looks like GRUB already is installed to the MBR if he/she is getting a GRUB prompt.
My guess is that GRUB is installed fine, but it can't find the rest of the necessary files (namely, menu.lst / grub.cfg; I don't remember whether or not CentOS 5.5 has GRUB2, but I don't think it does...).
Afsar: is /dev/sda7 the partition you installed / to? If so, try the following in the GRUB prompt:
Code:
root (hd0,7)
If that command works without shouting at you, then we're in good shape, and can probably run the rest of the steps needed to actually boot:
If not, then you might want to consider reinstalling with the / (or a separate /boot partition if CentOS 5.5 can use it) having a lower partition number (i.e. sda2 or sda3), since high partition numbers on MBR-formatted drives tend to be problematic as boot partitions for most operating systems, Linux included.
I was trying to read between the lines on this lol. The op had said that he deleted the boot partition and didn't mention anything about recreating the boot partition. The MBR grub is most likely looking in the wrong partition for the grub files and therefore will need to be reinstalled.
Last edited by colorpurple21859; 09-11-2013 at 01:56 PM.
The op had said that he deleted the boot partition
He actually said he deleted the boot 'files'. That sounds like an interesting story for another time?
If the Grub files are on sda7, then the command would be: root (hd0,6) as Grub Legacy counts partitions from zero.
Quote:
/sbin/grub-install-/dev/sda7
If the above command is actually what was used, it won't work. Perhaps just a typo, there should be a space after 'install' and no dash (-). It isn't clear from the original post whether you have a separate /boot partition or if the boot directory was on the / partition which is sda7?
Your partition information is a little confusing. It seems that you resized your windows partitions (c,d and e) by freeing 50GB in each??
You then list what would seem to be several different partitions totally 260GB??
If this is a new install, your best option is to start over and try not to delete boot files.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.