Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
If you edit /boot/grub/menu.lst and it boots then its not empty. purhaps more then one /boot/ dir on system. find grub and make sure you drill to the right /boot/grub/menu.lst and edit as root from any text editor and save. In PClinuxOS with a set up like yours we just insert the livecd and use the reMBR command from the menu and it does it all even the chain loader for windeez. With several drives it may ask which one you want grub to be located on just select it. And you can reinstall grub from the commandline, but I forgot how the other way is so easy. but it starts with find grub and the you select the real one you want if more then one are presented. then start grub and enter stuff. I think if you google grub you can get that grub install step by step from the grub site, its only a few steps and easy.
If I look in /boot its EMPTY, I tried going in as Single User but the file doesn't exist.
If, after following Pupthai's suggestion, you find that you're looking in the right place, it may be that /boot is on it's own partition and it's unmounted when it's not required.
In YaST click 'System in left panel'.
Click 'Boot Loader' in right panel
Select 'Section Management' tab which should be the one that opens by default.
Select 'Other' button in lower right.
Select 'Edit Configuration Files'.
Select from drop down menu in top box '/boot/grub/menu.lst'.
Now you can edit and then choose OK button and it will probably ask you if you want to save your changes.
Yes, in the terminal you can write: fdisk -l /dev/sda
that will list you partitions. You will then see if you have a separate boot partition or not.
First though, if your /boot directory is not empty, try to look for /boot/grub/grub.conf
Newer versions tend to use that as a config file now. The /boot/grub/menu.lst would normally be a link that points to the grub.conf file, but it is a chance your link file is missing, or pointing elsewhere.
If I remember when you try to find /boot you will not find anything but if you do /boot/grub/menu.lst even when the directory is in conf it will find it. If he uses my second recommendation and it can not find the file he needs to do a repair or reinstall or rebuild his directories.
Even logged in as root and using filefinder or typing gedit /boot/grub/menu.lst produces nothing.
If I do an fdsk -l /dev/sda, I have 3 partitions the first is the Windows 2000 partition, then I have a second partition which is the /boot partition and the 3rd partition is the LVM partition.
So, it looks like the /boot is not available after booting.but even if I set it to single when I boot, I still can't edit it.
I tried YaST but it always says it has a problem and won't save anything. probably something to do with the Windows partition.
I can only access the Windows 2000 partition from sdb because the sdb drive is a dual boot windows XP and Windows 2000, but windows 2000 is on sda. Sounds crazy but this machine was a windows machine long time ago and short of trashing everything and re-installing everything from scratch, that's the way it is.
What I do is just swap the boot drive in the BIOS if I want to use Windows (this is a lab test machine guys)
Can you boot Suse? Which version and desktop (kde or gnome) are you using if you can boot? We need to see your fdisk -l, not your description. What exactly happens when you boot, do you get an error or do you get a grub command (grub>)?
So the problem most likely is that the boot partition isn't mounted. To fix it just mount it manually (as root): "mount /dev/sda2 /boot". Then update the /boot/grub/menu.lst (or grub.conf). Also check that you have the correct mount points in /etc/fstab
So the problem most likely is that the boot partition isn't mounted. To fix it just mount it manually (as root): "mount /dev/sda2 /boot". Then update the /boot/grub/menu.lst (or grub.conf). Also check that you have the correct mount points in /etc/fstab
Mons
That is the reason I wanted to see fdisk -l, he may have swapped hd boot order. Also he may be booting the Safe Suse kernel being he can not edit and save anything.
Last edited by Larry Webb; 10-03-2008 at 12:15 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.