Morten Christensen | 1 Jul 2007 17:38

Booting with grub on usb-flash-pen

I have installed grml-small 0.40 on an usb flash-pen with grml2hd.

When I try to boot it grub answers
root (hd1,0)
 Filesystem unknown, partition type 0x7

 Error 17: Cannot mount selected partition

Can any of you help me with, how to identify the flash-pen in grub? I 
expect to make several lines in the grub/menu, and choose between them 
depending on, if the PC already has a sata-harddisk or a pata-harddisk.

--

-- 
Morten Christensen

Michael Prokop | 1 Jul 2007 18:16
Favicon

Re: Booting with grub on usb-flash-pen

* Morten Christensen <mc-grml <at> mc.cx> [20070701 18:08]:
> I have installed grml-small 0.40 on an usb flash-pen with grml2hd.

> When I try to boot it grub answers
> root (hd1,0)
> Filesystem unknown, partition type 0x7

> Error 17: Cannot mount selected partition

> Can any of you help me with, how to identify the flash-pen in grub? I 
> expect to make several lines in the grub/menu, and choose between them 
> depending on, if the PC already has a sata-harddisk or a pata-harddisk.

Partition type 0x7 is HPFS/NTFS, looks like you are trying to access
the wrong boot device. :)

Try 'root (hd0,0)' instead - does this what you expect it to?

regards,
-mika-
--

-- 
 http://grml.org/            # Linux for texttool-users and sysadmins
 http://wiki.grml.org/       # share your knowledge
 http://grml.supersized.org/ # the grml development weblog
 #grml  <at>  irc.freenode.org    # meet us on irc
* Morten Christensen <mc-grml <at> mc.cx> [20070701 18:08]:
> I have installed grml-small 0.40 on an usb flash-pen with grml2hd.

(Continue reading)

Morten Christensen | 1 Jul 2007 20:46

Re: Booting with grub on usb-flash-pen

Michael Prokop skrev den 01-07-2007 18:16:
> * Morten Christensen <mc-grml <at> mc.cx> [20070701 18:08]:
>   
>> I have installed grml-small 0.40 on an usb flash-pen with grml2hd.
>> When I try to boot it grub answers
>> root (hd1,0)
>> Filesystem unknown, partition type 0x7
>> Error 17: Cannot mount selected partition
>> Can any of you help me with, how to identify the flash-pen in grub? I 
>> expect to make several lines in the grub/menu, and choose between them 
>> depending on, if the PC already has a sata-harddisk or a pata-harddisk.
>>     
>
> Partition type 0x7 is HPFS/NTFS, looks like you are trying to access
> the wrong boot device. :)
>
> Try 'root (hd0,0)' instead - does this what you expect it to?
>   

Yes, that did the trick. Now with (hd0,0) it boots on sdb1, where 
(hd1,0) tries to boot on sda1 - the sata-harddisk.

Maybee (hd0, ) is just the first disk in the boot-sequence.

Next question to someone : can I get this grub to boot from an iso-file 
like grml1.0 or even Knoppix or BartPE on the flash-pen ?

--

-- 
Morten Christensen

(Continue reading)

- Tong - | 3 Jul 2007 04:55
Picon
Favicon

Re: Booting with grub on usb-flash-pen

On Sun, 01 Jul 2007 20:46:02 +0200, Morten Christensen wrote:

> can I get this grub to boot from an iso-file 
> like grml1.0 or even Knoppix or BartPE on the flash-pen ?

Sure. Piece of cake. Ref:

http://xpt.sourceforge.net/techdocs/nix/live/grml/grml03-Cheatcodes/index.html#_Most_useful

Use the bootfrom cheatcodes eg,

 bootfrom=/dev/hda1/GRML.iso  

--

-- 
Tong (remove underscore(s) to reply)
  http://xpt.sf.net/techdocs/
  http://xpt.sf.net/tools/

Morten Christensen | 4 Jul 2007 23:20

Re: Re: Booting with grub on usb-flash-pen

- Tong - skrev den 03-07-2007 04:55:
> On Sun, 01 Jul 2007 20:46:02 +0200, Morten Christensen wrote:
>
>   
>> can I get this grub to boot from an iso-file 
>> like grml1.0 or even Knoppix or BartPE on the flash-pen ?
>>     
>
> Sure. Piece of cake. Ref:
>
> http://xpt.sourceforge.net/techdocs/nix/live/grml/grml03-Cheatcodes/index.html#_Most_useful
>
> Use the bootfrom cheatcodes eg,
>
>  bootfrom=/dev/hda1/GRML.iso

I don't think it is quite that easy.

AFAIK this bootfrom cheatcode only works with iso's, that use the same 
kernel. That does not go very well together with my idea of having GRML 
and Knoppix on the same usb-pen.

Because of that problem, I tried an grml2hd install on the flashpen, and 
now I have en ordinary grub bootmanager to work with and not syslinux.

--
Morten Christensen

Ulrich Dangel | 4 Jul 2007 23:34
Gravatar

Re: Re: Booting with grub on usb-flash-pen

On Wednesday 04 July 2007 23:20:57 Morten Christensen wrote:
>
>
> Because of that problem, I tried an grml2hd install on the flashpen, and
> now I have en ordinary grub bootmanager to work with and not syslinux.

To have grub on a boot cd just read 
http://www.gnu.org/software/grub/manual/html_node/Making-a-GRUB-bootable-CD-ROM.html 
and have fun. This works pretty forward.

> --
> Morten Christensen

Uli
Andreas.Trawoeger | 5 Jul 2007 18:28
Picon

Help needed for OLPC-Austria - School on a Stick


Hi to everybody!

Is anybody from the grml community interested to help the 'school on a stick' project from OLPC-Austria (http://olpcaustria.org/mediawiki/index.php/School_on_a_stick)?

The idea is to provide every pupil in a class with its own bootable usb-stick running Linux.

Currently we have:
- A school in Vienna for testing
- 18 brand new PCs which will be delivered next week.
- A bunch of kids who will return from hiding on 3.Sep.2007.

So everything that is left to do is buying a couple of usb-sticks and finding a Linux distribution that is able to boot from an usb-stick :-))


cu andreas
<div>
<br>Hi to everybody!
<br><br>Is anybody from the grml community interested
to help the 'school on a stick' project from OLPC-Austria (http://olpcaustria.org/mediawiki/index.php/School_on_a_stick)?
<br><br>The idea is to provide every pupil in
a class with its own bootable usb-stick running Linux.
<br><br>Currently we have:
<br>- A school in Vienna for testing
<br>- 18 brand new PCs which will be delivered
next week.
<br>- A bunch of kids who will return from
hiding on 3.Sep.2007.
<br><br>So everything that is left to do is
buying a couple of usb-sticks and finding a Linux distribution that is
able to boot from an usb-stick :-))
<br><br><br>cu andreas</div>
Andri Handoko | 6 Jul 2007 02:45
Picon
Favicon

how to turn off / control the usb led display?

Hi,
  I'm using the grml small 0.4. I created a hotplug event that automatically
copy files to the USB stick when it's plugin. The stick is Sandisk micro
cruzer 2G USB stick. Here is the dilema: I don't know when the copy will be
completed without looking at the monitor, and I'm planning not to use any
monitor. Is there a way to control the led; make it blinks every second when
files are being copy to the stick, and/or (the most importance part) to turn
OFF the led when the device is unmounted? (the "other" popular OS turns off
the led when the "Safely remove hardware" is selected). Can Grml do the same
action?

Another question, since I need to recompile the kernel to support more than
4 serial ports (haven't have a big success yet, newbie :) ), is there a
default date configuration that I can modify to make the kernel date start
from Jan 1, 2007? so it will keep running for 50+ years from now :P

Thanks and Cheers
Andri

 
____________________________________________________________________________________
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121
Michael Prokop | 6 Jul 2007 12:54
Favicon

Re: Help needed for OLPC-Austria - School on a Stick

* Andreas.Trawoeger <at> wgkk.at <Andreas.Trawoeger <at> wgkk.at> [20070705 21:15]:

> Is anybody from the grml community interested to help the 'school on a 
> stick' project from OLPC-Austria (
> http://olpcaustria.org/mediawiki/index.php/School_on_a_stick)?

Depends on what you exactly need. :) But basically: yes.

> The idea is to provide every pupil in a class with its own bootable 
> usb-stick running Linux.

> Currently we have:
> - A school in Vienna for testing
> - 18 brand new PCs which will be delivered next week.
> - A bunch of kids who will return from hiding on 3.Sep.2007.

> So everything that is left to do is buying a couple of usb-sticks and 
> finding a Linux distribution that is able to boot from an usb-stick :-))

Well, grml can boot from USB (no matter whether harddisk or usb pen)
straight out-of-the-box. :)

So please feel free to contact me off the list if you need any
further information/assistance/.... (I'm speaking austrian german as
well, JFYI. ;))

regards,
-mika-
-- 
 http://grml.org/            # Linux for texttool-users and sysadmins
 http://wiki.grml.org/       # share your knowledge
 http://grml.supersized.org/ # the grml development weblog
 #grml  <at>  irc.freenode.org    # meet us on irc
* Andreas.Trawoeger <at> wgkk.at <Andreas.Trawoeger <at> wgkk.at> [20070705 21:15]:

> Is anybody from the grml community interested to help the 'school on a 
> stick' project from OLPC-Austria (
> http://olpcaustria.org/mediawiki/index.php/School_on_a_stick)?

Depends on what you exactly need. :) But basically: yes.

> The idea is to provide every pupil in a class with its own bootable 
> usb-stick running Linux.

> Currently we have:
> - A school in Vienna for testing
> - 18 brand new PCs which will be delivered next week.
> - A bunch of kids who will return from hiding on 3.Sep.2007.

> So everything that is left to do is buying a couple of usb-sticks and 
> finding a Linux distribution that is able to boot from an usb-stick :-))

Well, grml can boot from USB (no matter whether harddisk or usb pen)
straight out-of-the-box. :)

So please feel free to contact me off the list if you need any
further information/assistance/.... (I'm speaking austrian german as
well, JFYI. ;))

regards,
-mika-
--

-- 
 http://grml.org/            # Linux for texttool-users and sysadmins
 http://wiki.grml.org/       # share your knowledge
 http://grml.supersized.org/ # the grml development weblog
 #grml  <at>  irc.freenode.org    # meet us on irc
Michael Prokop | 11 Jul 2007 14:38
Favicon

Re: how to turn off / control the usb led display?

* Andri Handoko <aphandoko <at> yahoo.com> [20070706 03:15]:

>   I'm using the grml small 0.4. I created a hotplug event that automatically
> copy files to the USB stick when it's plugin. The stick is Sandisk micro
> cruzer 2G USB stick. Here is the dilema: I don't know when the copy will be
> completed without looking at the monitor, and I'm planning not to use any
> monitor. Is there a way to control the led; make it blinks every second when
> files are being copy to the stick, and/or (the most importance part) to turn
> OFF the led when the device is unmounted? (the "other" popular OS turns off
> the led when the "Safely remove hardware" is selected). Can Grml do the same
> action?

Does manually loading the usbled kernel module help?

If you want to trigger the *keyboard* LEDs on your own: there exist
several tools:

% acs led blink | grep -ie led -ie blink
blinkd - Blinks keyboard LEDs e.g. for answering machine or fax
ixbiff - notify user when mail arrives by blinking keyboard LEDs
ledcontrol - scriptable keyboard led control
ledcontrol-gtk - frontend for ledcontrol
libparportled - manage an LED device plugged on a parallel port
libparportled-dev - manage an LED device plugged on a parallel port - development files
mailleds - Blink the keyboard-LEDs for incoming mail
tleds - blinks keyboard LEDs for TX and RX network packets

regards,
-mika-
-- 
 http://grml.org/            # Linux for texttool-users and sysadmins
 http://wiki.grml.org/       # share your knowledge
 http://grml.supersized.org/ # the grml development weblog
 #grml  <at>  irc.freenode.org    # meet us on irc
* Andri Handoko <aphandoko <at> yahoo.com> [20070706 03:15]:

>   I'm using the grml small 0.4. I created a hotplug event that automatically
> copy files to the USB stick when it's plugin. The stick is Sandisk micro
> cruzer 2G USB stick. Here is the dilema: I don't know when the copy will be
> completed without looking at the monitor, and I'm planning not to use any
> monitor. Is there a way to control the led; make it blinks every second when
> files are being copy to the stick, and/or (the most importance part) to turn
> OFF the led when the device is unmounted? (the "other" popular OS turns off
> the led when the "Safely remove hardware" is selected). Can Grml do the same
> action?

Does manually loading the usbled kernel module help?

If you want to trigger the *keyboard* LEDs on your own: there exist
several tools:

% acs led blink | grep -ie led -ie blink
blinkd - Blinks keyboard LEDs e.g. for answering machine or fax
ixbiff - notify user when mail arrives by blinking keyboard LEDs
ledcontrol - scriptable keyboard led control
ledcontrol-gtk - frontend for ledcontrol
libparportled - manage an LED device plugged on a parallel port
libparportled-dev - manage an LED device plugged on a parallel port - development files
mailleds - Blink the keyboard-LEDs for incoming mail
tleds - blinks keyboard LEDs for TX and RX network packets

regards,
-mika-
--

-- 
 http://grml.org/            # Linux for texttool-users and sysadmins
 http://wiki.grml.org/       # share your knowledge
 http://grml.supersized.org/ # the grml development weblog
 #grml  <at>  irc.freenode.org    # meet us on irc

Gmane