LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 10-14-2006, 12:19 PM   #1
deiz92
Member
 
Registered: Aug 2006
Distribution: Suse 10.2
Posts: 32

Rep: Reputation: 15
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

Last edited by deiz92; 10-14-2006 at 06:32 PM.
 
Old 10-14-2006, 02:25 PM   #2
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 46
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 ;-)
 
Old 10-14-2006, 05:08 PM   #3
deiz92
Member
 
Registered: Aug 2006
Distribution: Suse 10.2
Posts: 32

Original Poster
Rep: Reputation: 15
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
 
Old 10-14-2006, 05:41 PM   #4
mmiikkee12
LQ Newbie
 
Registered: Oct 2006
Location: Earth
Distribution: Between distros
Posts: 14

Rep: Reputation: 0
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)
 
Old 10-14-2006, 06:03 PM   #5
deiz92
Member
 
Registered: Aug 2006
Distribution: Suse 10.2
Posts: 32

Original Poster
Rep: Reputation: 15
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
 
Old 10-20-2006, 05:22 PM   #6
mmiikkee12
LQ Newbie
 
Registered: Oct 2006
Location: Earth
Distribution: Between distros
Posts: 14

Rep: Reputation: 0
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.
 
  


Reply

Tags
boot, boot loader, dell, grub, suse, suse10, windows


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux and Dell XPS Laptop plythgam Linux - Hardware 5 12-04-2011 09:06 PM
Linux Lock Up Issue On Dell Inspiron XPS saintmovius Linux - Laptop and Netbook 1 04-18-2006 03:59 PM
linux on dell inspiron XPS jjean LinuxQuestions.org Member Intro 2 12-27-2004 05:08 AM
X on Dell Inspiron XPS jdozarchuk Linux - Laptop and Netbook 0 11-16-2004 12:41 PM
Dell Dimension XPS swingheim Mandriva 3 09-08-2003 05:30 PM


All times are GMT -5. The time now is 12:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration