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 I had a windows xp partition and an opensuse11.1 one. well I ran the repair because of some problems logging on and now when I go to start the computer I get the error No operating system installed I have ran every repair there is with no success (and I also thought that I had a XP backup disc, but as my luck turns out, it's nowhere to be found). Now when I go to a new install I get the following message: "Delete windows partition /dev/sda2 (my /c drive) Resize impossible due to inconsistent fs. Try checking fs under windows" Could anyone tell how this is possible, since I can't access windows now... is there a way to restore windows or is it F.U.B.A.R? thanks
The first thing is to check what is actually left on the machine. I suggest to boot a LiveCD: 1) Knoppix to explore the filesystem and eventually backup your files, 2) Gparted Live to explore the current partition scheme and eventually do some modification. I'm not sure, but I guess Knoppix provides Gparted so you can start from there and see what you can do.
ok well could you tell me the correct command in knoppix for reseting the windows boot loader. I googled it and got this sudo install-mbr /dev/hda and it didn't work...sudo: install-mbr command not found but I checked the package manager and it was installed so am I typing in a wrong command? Thanks
Before any other attempt, have you verified the integrity of the windows partition? Have you a backup of your data?
You should check the output of
Code:
fdisk -l
to see if your original partition scheme is still there. Then try to mount the windows partition and see if the directory tree is still intact. Do the same with the linux partition. If you see that all is good, try to reinstall grub. If not, maybe you have to reinstall windows, which probably means to reinstall all the system from zero, since the windows installer could destroy the linux partition.
also something interesting this may help... reset bios to default now not only at the startup screen do I get "No Operating system found" I also get "PXE-E53 no bootfile name recieved"
Ok. So you can proceed by re-installing grub on the Master Boot Record. First check the content of /boot/grub/menu.lst, that one of opensuse 11.1. You have to mount the linux /boot partition in read-write mode (from knoppix you can right click on the partition icon and chose "mount with write permissions" or something similar).
Then you have to determine which is the root partition (the same that contain the /boot directory) then just do (as root)
Code:
grub-install --root-directory=/mnt/hdaX /dev/hda
in particular you have to determine where knoppix mounts it. Suppose it is /dev/hda6 and knoppix mount it under /mnt/hda6... in that case the --root-directory is /mnt/hda6. I hope it is clear enough. For any doubt, post again and tell us more details (the content of the opensuse /boot/grub/menu.lst, the opensuse exact partition scheme, the kernel installed in opensuse).
alright, I get the following command when I execute grub-install --root-directory=/mnt/hda6 /dev/hda and hda6 is actually my root. INSTALL_DEVICE can be a GRUB device name or a system device filename.
grub-install copies GRUB images into the DIR/boot directory specfied by
--root-directory, and uses the grub shell to install grub into the boot
sector.
Report bugs to <bug-grub@gnu.org>.
root@Microknoppix:/home/knoppix# grub-install --root-directory=/mnt/hdaX /dev/hda
mkdir: cannot create directory `/mnt/hdaX/boot': No such file or directory
root@Microknoppix:/home/knoppix# grub-install --root-directory=/mnt/hda6 /dev/hda
grub-probe: error: Cannot find a GRUB drive for /dev/hda. Check your device.map.
so what now?
Last edited by threatingbehaviour; 06-20-2009 at 11:05 PM.
I'm no longer getting the "no operating system found" message I boot the computer says loading grub 1.5 please wait then it loads to a grub (version .97 I think) terminal like screen (though I think it's because grub is installed on my windows root not the linux because my /C shows grub as executiable files). Not the suse boot screen I had hoped for... so how do I get that back up and running
Last edited by threatingbehaviour; 06-21-2009 at 12:05 AM.
You need to edit your main Linux grub boot file so that it points to the correct drives and partition numbers. This is located in; /boot/grub/ and is called; menu.lst. So then as root user you open it with a text editor such as kwrite or kate in the KDE SUSE Linux. Then you can chainload to your other SUSE grub like this; root (hd0,5), makeactive, chainloader +1, if your SUSE Linux is installed on hda6 on hard drive 1,(grub does count from 0). You can also hit the e key at that grub screen to edit the boot commands for that one time boot.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.