LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices

Reply
 
LinkBack Search this Thread
Old 05-17-2007, 05:44 PM   #1
gothicbob
Member
 
Registered: Sep 2005
Location: Birmingham / Bath Uk
Distribution: Kubuntu 8.10, Debain 4.0
Posts: 86

Rep: Reputation: 16
Unhappy Problems with grub on a toshiba portege M200


Ive got a Toshiba portege M200, and it had Xp tablet edition, on an 80gb harddrive so I resized the xp partition, and then used a nice program which allowed me to install grub from xp, which then loaded a suse install program, and then downloaded all the packages from the internet and installed fine.

When the installation got to installing and configuring grub, it said that there was an error and that it couldnt install. So I had to skip that section and carry on. So then I went back into the XP and tried to find a program to install grub from windows, i managed to find a couple, not quite sure what I did but it installed grub, and when I restarted I could only get to the grub command line.

I managed to boot the XP partition with
Code:
rootnoverify (hd0,0)
chainloader +1
boot
but when i tried to boot linux using:
Code:
root (hd0,5)
setup (hd0)
kernel (hd0,5)/boot/vmlinuz root=/dev/hda5
boot
i got an error about the root device not exsisting or something, i tried for quite a while doing different things and searching for soultions, but couldnt find anything so i decided to take out the hard drive from the laptop and connect it to my computer via usb cable.

What im wondering now is how would I go about installing grub from my current system? im still a bit of a noob at using linux so im not quite sure what i need to do.

Thanks in advance. Mat
 
Old 05-17-2007, 07:01 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: back to Arch
Posts: 16,668

Rep: Reputation: 425Reputation: 425Reputation: 425Reputation: 425Reputation: 425
When you install GRUB, you have to specify where it will find it's files (GRUB stage 1 gets hard-coded to point to the location). Thus--if you installed GRUB using Windows, how would you / did you establish this?

The reason it goes to a grub prompt is that it cannot find it's files.

In your second entry, you are mixing the commands for installing grub (setup) with the commands for booting.

Do you know what is on all the partitions?--For example, how did you determine that Linux was on hda5?

Finally, if hda5 is correct (and that is also where /boot is), then the root command would have to be "root (hd0,3)" (Remember that grub counts from zero)

The general form to boot from the grub prompt is:
root (hdX,Y) points grub to the location of /boot
kernel <path/>vmlinuz root=/dev/hdVW (here root is telling the kernel where to mount the filesystem (/) )
initrd <path/>initrd (If used)
boot

Suppose linux / and /boot are both on hda5, the commands would then be:
root (hd0,4)
kernel /boot/vmlinuz root=/dev/hda5
initrd....similar
boot


This may be of some help, also
 
Old 05-18-2007, 02:56 AM   #3
gothicbob
Member
 
Registered: Sep 2005
Location: Birmingham / Bath Uk
Distribution: Kubuntu 8.10, Debain 4.0
Posts: 86

Original Poster
Rep: Reputation: 16
ah that was probably the problem I was having,and it'd be quite simple to fix that if I hadn't already broken it some more. So if I had changed root to (hd0,4) it would have worked?

Ive now took the hard drive out, and im going to reinstall openSuse 10.2 onto this harddrive and install grub again, and hopefully it will work. But I tried to repair grub using the repair options in the installer, and it just said error try again? and however I configured the bootloader, it wouldnt be installed. So i dont know if its a problem with the drive or with windows been at the start of the drive?

I might just backup the xp partition and then format the drive, install linux on it, and plot xp at the end. But im not sure what tool to use to back up the partition? Cheers for your help
 
Old 05-18-2007, 08:04 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: back to Arch
Posts: 16,668

Rep: Reputation: 425Reputation: 425Reputation: 425Reputation: 425Reputation: 425
Quote:
ah that was probably the problem I was having,and it'd be quite simple to fix that if I hadn't already broken it some more. So if I had changed root to (hd0,4) it would have worked?
If that's where the Linux /boot directory is (was).

Not sure whay you are removing the drive in order to re-install Linux....

The cleanest way to proceed is to re-install XP--keeping the disk unpartitioned except for a 10-15GB Windows partition at the beginning. Then install Linux and grub.

To copy a partition, you can use dd
 
Old 05-18-2007, 08:05 PM   #5
gothicbob
Member
 
Registered: Sep 2005
Location: Birmingham / Bath Uk
Distribution: Kubuntu 8.10, Debain 4.0
Posts: 86

Original Poster
Rep: Reputation: 16
with no cd drive or floppy, this thing has been driving me pretty crazy. Ive been spending ages trying to get linux on it.

The problem has now chaned to that ive got

hd0,0 SWAP
hd0,1 /
hd0,2 /home
hd0,3 windows

and grub is now working nicely on the computer, however because I took the harddrive out and plugged it into my computer via a usb connector, the hard drives are not assigned the same names (on my computer it was assigned /dev/sdd1 - sdd4 ) now im not sure what the laptop would mount the harddrive as, so grub is passing the arguement to the kernel to look for root in a place that doenst exsist, and I end up in a minimalistic bash shell thing. and I have no idea how to work out what names i need to change.

I can take out the harddrive and simply change the grub settings so that it passed the right place to the kernel, but im not sure what they would be?

Sorry to keep coming back with more problems, but I felt ive learnt a great deal about linux and grub
 
Old 05-19-2007, 01:00 PM   #6
gothicbob
Member
 
Registered: Sep 2005
Location: Birmingham / Bath Uk
Distribution: Kubuntu 8.10, Debain 4.0
Posts: 86

Original Poster
Rep: Reputation: 16
i gave up trying to put linux on this way, and I have just given in and shelled out money for the special toshiba cd/dvd drive so that i can boot from cd.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Toshiba Portege A100 using intel 82852/855gm video card & suspend problems. tizza10 Linux - Hardware 0 12-03-2006 01:09 PM
What the f*ck is with my toshiba m200 krisealv Linux - Laptop and Netbook 7 02-07-2005 06:42 PM
Best distribution for a Toshiba Portege 7140 Ishkabibble Linux - Laptop and Netbook 1 12-02-2004 08:02 PM
Toshiba M200 and Bluetooth TheOracle Linux - Hardware 1 11-09-2004 05:16 AM
Toshiba Portege 3015CT Gerardoj Linux - Laptop and Netbook 1 03-27-2004 09:16 AM


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

Main Menu
 
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
Open Source Consulting | Domain Registration