Difference between revisions of "Booting a Linux SD card from Windows XP"

From LSDevLinux
Jump to: navigation, search
(New page: We (LSDev) have used this process to make a Windows based eee dual boot into Windows or Linux. This process does not require alteration of the [http://en.wikipedia.org/wiki/Master_boot_rec...)
 
Line 1: Line 1:
We (LSDev) have used this process to make a Windows based eee dual boot into Windows or Linux. This process does not require alteration of the [http://en.wikipedia.org/wiki/Master_boot_record MBR] (most dual boot processes require MBR alteration, which can render the computer unusable if done badly).
+
We (LSDev) have used this process to make a Windows based ''eee'' dual boot into Windows or Linux. This process does not require alteration of the [http://en.wikipedia.org/wiki/Master_boot_record MBR] (most dual boot processes require MBR alteration, which can render the computer unusable if done badly).
  
 
These instructions were compiled using Windows XP and Ubuntu Linux.
 
These instructions were compiled using Windows XP and Ubuntu Linux.
Line 18: Line 18:
  
 
* Make a folder called MyLinux (or whatever you like) in C:
 
* Make a folder called MyLinux (or whatever you like) in C:
* Copy a kernel and an initrd into this folder
+
* Copy a kernel and an initial ramdisk into this folder
* '''Instructions on how to get/make a kernel and initrd will be added here'''
+
** You can use just about any generic kernel and initial ramdisk. Copy them from /boot in your linux distribution. The files will be called something like vmlinuz... (the kernel) and initrd... (the initial ramdisk). On Ubuntu Jaunty for example, you have:
 +
/boot/vmlinuz-2.6.xx-xx-generic
 +
/boot/initrd.img-2.6.xx-xx-generic
  
 
== Tie them both together ==
 
== Tie them both together ==
Line 26: Line 28:
 
* Paste in the text below, replacing the text in <angle brackets>:
 
* Paste in the text below, replacing the text in <angle brackets>:
 
  root (hd0,0)
 
  root (hd0,0)
  kernel /<MyLinux>/vmlinuz-<Kernel Name> root=LABEL=<Your SD card label>
+
  kernel /<MyLinux>/<kernel file name> root=LABEL=<Your SD card label>
  initrd /<MyLinux>/initrd
+
  initrd /<MyLinux>/<initrd file name>
 +
The SD card label is the name of the partition on which your linux is installed.
 
* Save, choose 'All Files' as the type, and 'C:\menu.lst' as the name.
 
* Save, choose 'All Files' as the type, and 'C:\menu.lst' as the name.
 +
 +
== To do ==
 +
 +
This article needs updating with instructions on how to use kexec to switch to the kernel from the installed Linux distribution.

Revision as of 10:16, 25 August 2009

We (LSDev) have used this process to make a Windows based eee dual boot into Windows or Linux. This process does not require alteration of the MBR (most dual boot processes require MBR alteration, which can render the computer unusable if done badly).

These instructions were compiled using Windows XP and Ubuntu Linux.

Install GRUB4DOS

  • Download GRUB4DOS.
    • Look for the grub4dos-0.4.4.zip at the bottom of the page (the exact number may have changed since this was written).
  • Copy the grldr file from the downloaded zip file into your C: drive.
  • Right-click on 'My Computer' in the start menu, then 'Properties'
  • Click 'Advanced' and the 'Settings' button under 'Startup and Recovery'
  • Click 'Edit'
  • Add the following line to the end of the file
C:\grldr="Linux"
  • Save the file, and close Notepad.

Install Linux start up files

  • Make a folder called MyLinux (or whatever you like) in C:
  • Copy a kernel and an initial ramdisk into this folder
    • You can use just about any generic kernel and initial ramdisk. Copy them from /boot in your linux distribution. The files will be called something like vmlinuz... (the kernel) and initrd... (the initial ramdisk). On Ubuntu Jaunty for example, you have:
/boot/vmlinuz-2.6.xx-xx-generic
/boot/initrd.img-2.6.xx-xx-generic

Tie them both together

  • Open notepad.
  • Paste in the text below, replacing the text in <angle brackets>:
root (hd0,0)
kernel /<MyLinux>/<kernel file name> root=LABEL=<Your SD card label>
initrd /<MyLinux>/<initrd file name>

The SD card label is the name of the partition on which your linux is installed.

  • Save, choose 'All Files' as the type, and 'C:\menu.lst' as the name.

To do

This article needs updating with instructions on how to use kexec to switch to the kernel from the installed Linux distribution.