SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-12-01 21:09:32

uden
New Member
Registered: 2009-06-15
Posts: 4

Howto boot from SD card with GRUB on HD

hi all,

i would like to run #! from SD card for a couple of reasons. The most important one is that i would like to run linux while the complete HD of my (company) laptop is encrypted and i can't make new partitions on it nor install #! to one of the partitions. In addition i expect the laptop to run longer as it doesn't need to keep the HD spinning.

i have manged to:

  • get GRUB (legacy) running and provide me with a list of options after starting the laptop. Windows can be started from the Grub menu.

  • have #! installed on a SD card (compleet with /boot-directory) as if it was installed directly onto the HD.

my problem:
how to configure the menu.lst such that grub finds #! on the SD card.

When i open the Grub prompt, i can only see the HD (i am not sure, but i think i used UUID which provides a list of devices and partitions with their UUID. Result: (hd0,0), (hd0,1), (hd0,2) and the last partition (hd0,3) does not show).
So the SD card is missing.

is there a possibility to mount the SD card in Grub?

Offline

Help fund CrunchBang, donate to the project!

#2 2012-12-02 11:02:41

fatmac
#! Die Hard
Registered: 2012-11-14
Posts: 1,948

Re: Howto boot from SD card with GRUB on HD

Use the UUID of the SD card as the disk, but use /dev in the kernel root= line; I think that should work.
(It will most likely be (hd1,0).)


Linux since 1999
Currently:  AntiX, & Crunchbang.
A good general beginners book for Linux :- http://rute.2038bug.com/index.html.gz
A good Debian read :- http://debian-handbook.info/get/now/

Offline

#3 2012-12-07 19:58:40

uden
New Member
Registered: 2009-06-15
Posts: 4

Re: Howto boot from SD card with GRUB on HD

Current problem is that i don't know the UUID of the SD card. It doesn't seem to be mounted.

is there a possibility to mount the SD card in Grub?

Offline

#4 2012-12-08 10:08:30

fatmac
#! Die Hard
Registered: 2012-11-14
Posts: 1,948

Re: Howto boot from SD card with GRUB on HD

You need to make an entry in your menu.lst for the SD card. Something on the lines of :-
title Linux
root (hd1,0)
kernel /boot/vmlinuz-3.2.0-4-amd64 ro root=/dev/sdb1
initrd /boot/initrd.img-3.2.0-4-amd64

Edit: If you want to find the UUID, run blkid as root.

Last edited by fatmac (2012-12-08 10:10:32)


Linux since 1999
Currently:  AntiX, & Crunchbang.
A good general beginners book for Linux :- http://rute.2038bug.com/index.html.gz
A good Debian read :- http://debian-handbook.info/get/now/

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo