Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Using Grub To Dual Boot With Opensuse And Dsl


3 replies to this topic

#1 jesseruu

    Newbie [Level 1]

  • Kontributors
  • Pip
  • 23 posts

Posted 06 September 2008 - 07:52 AM

Hey,

I am running opensuse 10.2 using its the opensuse grub boot loader.

Now I want to dual boot with DSL running off my SD card in my laptops inbouilt cardreader.

I know all I most probably have to do is add a few lines to some file. But since I don't want to spend days trying to figure out how to add a OS to grub.

DSL says the SD card is 'sda1'.

My computer is an EeePc. :)


Thanks

#2 truefusion

    Coincidence is non-sequitur, therefore everything has a reason for its existence (except if they are eternal).

  • [MODERATOR]
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 3,216 posts
  • Gender:Male
  • Location:No, not there. Not there either. Yes, you'll never figure it out.
  • Interests:God, Christianity.
  • myCENT:86.16

Posted 07 September 2008 - 07:02 PM

In OpenSuSE, go to the directory where GRUB is installed, probably /boot/grub. In that directory open the file device.map to see where GRUB considers your current hardware set-up. Check what HD number is given to /dev/sda and remember it. If you do not see it in the device.map file, then you'll have to tell GRUB to regenerate the device.map file (see below). Open up /boot/grub/grub.conf for editing, as root. We'll just add three new lines for DSL (you can remove the comments):
title DSL
# replace "hd0,0" with the location of the SD card
# View http://gentoo-wiki.com/HOWTO_Quick_GRUB#Step_2:_The_GRUB_Prompt for more info concerning HD numbering
# Also, replace "/boot/kernel" with the actual path to the DSL Kernel
kernel (hd0,0)/boot/kernel root=/dev/sda1
# replace "/boot/initrd" with the actual path to the DSL initramfs file
initrd /boot/initrd
Save, restart and see if it boots DSL. If it doesn't, then double check all paths.

[hr=noshade] [/hr]
If device.map does not show your SD card position, then do the following:
In order to invoke GRUB, you have to be in a chroot environment:
CONSOLE
sudo chroot /
You need to remove the current device.map file, but we'll back it up instead, just in case (assuming it's located at /boot/grub/device.map):
CONSOLE
mv /boot/grub/device.map /boot/grub/device.map.backup
Now make sure your SD card is plugged in. Then we tell GRUB to regenerate the device map (assuming device.map was located at /boot/grub/device.map):
CONSOLE
grub --device-map=/boot/grub/device.map
Then exit completely.

#3 jesseruu

    Newbie [Level 1]

  • Kontributors
  • Pip
  • 23 posts

Posted 08 September 2008 - 04:42 AM

View Posttruefusion, on Sep 8 2008, 05:02 AM, said:

In OpenSuSE, go to the directory where GRUB is installed, probably /boot/grub. In that directory open the file device.map to see where GRUB considers your current hardware set-up. Check what HD number is given to /dev/sda and remember it. If you do not see it in the device.map file, then you'll have to tell GRUB to regenerate the device.map file (see below). Open up /boot/grub/grub.conf for editing, as root. We'll just add three new lines for DSL (you can remove the comments):
title DSL
# replace "hd0,0" with the location of the SD card
# View http://gentoo-wiki.com/HOWTO_Quick_GRUB#Step_2:_The_GRUB_Prompt for more info concerning HD numbering
# Also, replace "/boot/kernel" with the actual path to the DSL Kernel
kernel (hd0,0)/boot/kernel root=/dev/sda1
# replace "/boot/initrd" with the actual path to the DSL initramfs file
initrd /boot/initrd
Save, restart and see if it boots DSL. If it doesn't, then double check all paths.

[hr=noshade] [/hr]
If device.map does not show your SD card position, then do the following:
In order to invoke GRUB, you have to be in a chroot environment:
CONSOLE
sudo chroot /
You need to remove the current device.map file, but we'll back it up instead, just in case (assuming it's located at /boot/grub/device.map):
CONSOLE
mv /boot/grub/device.map /boot/grub/device.map.backup
Now make sure your SD card is plugged in. Then we tell GRUB to regenerate the device map (assuming device.map was located at /boot/grub/device.map):
CONSOLE
grub --device-map=/boot/grub/device.map
Then exit completely.

Hey,

What is 'kernal' and 'initrd'? I don't know which file is which. :)

According to device.map my sd card is 'hd0'.

I am really confused...

#4 truefusion

    Coincidence is non-sequitur, therefore everything has a reason for its existence (except if they are eternal).

  • [MODERATOR]
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 3,216 posts
  • Gender:Male
  • Location:No, not there. Not there either. Yes, you'll never figure it out.
  • Interests:God, Christianity.
  • myCENT:86.16

Posted 08 September 2008 - 02:30 PM

View Postjesseruu, on Sep 8 2008, 12:42 AM, said:

Hey,

What is 'kernal' and 'initrd'? I don't know which file is which. :)

According to device.map my sd card is 'hd0'.

I am really confused...
Can you provide me with a list of the files located in your /boot directory in the DSL partition? I may then be able to help point out which is your kernel for DSL and which is the initramfs file for your DSL set-up. These two parts are very important. Without them you will not be able to boot into your DSL set-up.




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users