LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   dell xps: linux won't boot now... only windows!! (http://www.linuxquestions.org/questions/linux-software-2/dell-xps-linux-wont-boot-now-only-windows-492383/)

deiz92 10-14-2006 11:19 AM

dell xps: linux won't boot now... only windows!! **update* now ONLY linux!
 
hi,

i just installed suse10.1 on my dell xps laptop, all went ok, linux loaded grub and i got the choices, but since i left linux and told it to restart into windows i haven't seen the grub bootloader to get back into the choices, windows said my drive was dirty and ran chkdsk which was ok, but all this happened since chkdsk happened? unless it happened since i went into the dell media direct hidden partition

does anyone have any ideas?

dell has 4 partitions on the hard-drive, 1 is hidden and has media direct software on it, not even linux saw this one, the other 3 are dell diagnostics windows and recovery, i shrinked the windows partition and created the linux partition for the root, i didn't do a swap file as it was too hard to do it, something about maximum numbers of partitions (4?), i even tried an extended partition in the hope i could do partitions inside that one, but again suse didn't let me, anyway, it all worked ok until the above problem, i hope someone can help, is there a windows boot file i can edit, or something in the bios?

thanks

jonaskoelker 10-14-2006 01:25 PM

Here's what to do:
  • Download and burn the latest knoppix
  • Start it up
  • create a new mount point /foobar
  • mount all your usual stuff inside /foobar
  • chroot to /foobar
  • run the grub installation (grub-install, I think) from there. Read up on the grub manual if you're unsure about how to install grub from the command line, or come back and ask.

Having a knoppix CD handy at all times will prove useful ;-)

deiz92 10-14-2006 04:08 PM

if it's a live cd why do i want to create a mount point? not doubting you here just not sure, i think the main problem is that my grub is after the windows partition.

i will work on a live cd for sure, i am sure it will save many computers from the wrath of windows havoc! as it will for mind soon enough! fingers crossed... i may come back with 'noobie like' questions

thanks so much

mmiikkee12 10-14-2006 04:41 PM

Quote:

Originally Posted by deiz92
if it's a live cd why do i want to create a mount point? not doubting you here just not sure, i think the main problem is that my grub is after the windows partition.

You want to mount your root partition on it so you can chroot to it, and run grub setup.
Something like this should work. (from a terminal, or konsole, or whatever knoppix has)
Code:

su (assuming knoppix doesn't already make you root, I don't know)
mkdir /mnt/root
mount /dev/YOUR_ROOT_PARTITION_HERE /mnt/root
cd /mnt/root
(if you have more than one partition, mount it/them:)
mount /dev/YOUR_BOOT_PARTITION_HERE boot/
chroot . /bin/bash
grub

Then, from the grub shell run:
Code:

grub> root (hd0,1) (this is your linux root partition, not the root of the drive)
grub> setup (hd0) (this one is your whole drive)


deiz92 10-14-2006 05:03 PM

ok i worked out i can reinstall suse and go to repair option, and from then onto the linux partition on my harddrive, what i think the problem is is the way dell have set up the stupid partitions, i have sda then sda1 (dell diagnostics), sda2 (windows), sda3 (linux), sda4 (recovery) and also another hidden partition somewhere, i tried moving the boot loader to the windows partition, but that didn't work as it goes to the start of that partition and reloads the grub loaded, i tried in partition 1 it reloads into grub again, and i tried putting it in the master boot record, again it goes back into grub or loads just linux! this is soo bad! any ideas now, i have full access to the yast boot configuration now, so fire away with ideas....

thanks guys

mmiikkee12 10-20-2006 04:22 PM

Quote:

Originally Posted by deiz92
ok i worked out i can reinstall suse and go to repair option, and from then onto the linux partition on my harddrive, what i think the problem is is the way dell have set up the stupid partitions, i have sda then sda1 (dell diagnostics), sda2 (windows), sda3 (linux), sda4 (recovery) and also another hidden partition somewhere, i tried moving the boot loader to the windows partition, but that didn't work as it goes to the start of that partition and reloads the grub loaded, i tried in partition 1 it reloads into grub again, and i tried putting it in the master boot record, again it goes back into grub or loads just linux! this is soo bad! any ideas now, i have full access to the yast boot configuration now, so fire away with ideas....

thanks guys

Do you have your /boot/grub/menu.lst? I've never use suse or yast before, so I can't help much with that. But it sounds like all you have in your menu.lst is Linux. Add this:

Code:

title Windows
root (hd0,0)
chainloader +1

And make sure you install to the MBR and not the Windows partition, otherwise booting Windows will give you an infinite loop with that code.


All times are GMT -5. The time now is 04:48 AM.