Linux Debian support - Boot without GRUB

This is Interesting: Free IT Magazines  
Home > Archive > Linux Debian support > December 2007 > Boot without GRUB





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Boot without GRUB
Christoph Egger

2007-11-27, 1:13 pm

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

I'm nearly there with my fresh Debian running. But now GRUB is fighting
and won't start. I know there was an easy way toinstall GRUB with
Knoppix but I can't make it work right now and don't find the resource
anymore.

Does anyone remember the resource an can point me to it or tell me what
exactly to do?

Christoph
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHTEHSy7PXBwNyJ10RApOgAJ41Jy+b3jgY
UbxOe8m253rmQVTGLwCeIBDh
XYEhT8fKChd2YswnKz1y5N8=
=ONw5
-----END PGP SIGNATURE-----
John F. Morse

2007-11-27, 1:13 pm

Christoph Egger wrote:
> Hi
>
> I'm nearly there with my fresh Debian running. But now GRUB is fighting
> and won't start. I know there was an easy way toinstall GRUB with
> Knoppix but I can't make it work right now and don't find the resource
> anymore.
>
> Does anyone remember the resource an can point me to it or tell me what
> exactly to do?



http://jbakshi.50webs.com/Linux_tut...simplified.html


--
John

No Microsoft products were used in the preparation or transmission of this message.

The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Christoph Egger

2007-11-27, 1:13 pm

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John F. Morse schrieb:
> Christoph Egger wrote:
>
>
> http://jbakshi.50webs.com/Linux_tut...simplified.html
>
>


Thanks for this seemingly quite useful collection of GRUB Hows. But I
can't find a hint of where to specify the /boot folder used by
grub-install (as it seems --root-directory= is not the solution).

Christoph
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHTE4Gy7PXBwNyJ10RAmloAJ9dW9+ZitqF
NEEa2UGdqOHnfre7GQCgiWgS
UQ0bkQLrrqn5M7zxl9/1JDQ=
=wosE
-----END PGP SIGNATURE-----
Christoph Egger

2007-11-27, 1:13 pm

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Christoph Egger schrieb:
> Hi
>
> I'm nearly there with my fresh Debian running. But now GRUB is fighting
> and won't start. I know there was an easy way toinstall GRUB with
> Knoppix but I can't make it work right now and don't find the resource
> anymore.
>
> Does anyone remember the resource an can point me to it or tell me what
> exactly to do?
>
> Christoph


I've bootet the rescue console on my Debian CD but when trying to write
a new grub to my USB-Stick on /dev/sdb it tells me that
"schwehrwiegender Fehler" occured. The same for trying to write to my
root Partition on /dev/sda3

Christoph
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHTFgxy7PXBwNyJ10RAtWaAJkBXqm/JLCEwn05Vuu+LygddWqUMgCdGS2o
HUml50Goqb3jHGygUC3qhK4=
=nap2
-----END PGP SIGNATURE-----
John F. Morse

2007-11-27, 1:13 pm

Christoph Egger wrote:
> John F. Morse schrieb:
>
>
> Thanks for this seemingly quite useful collection of GRUB Hows. But I
> can't find a hint of where to specify the /boot folder used by
> grub-install (as it seems --root-directory= is not the solution).
>
> Christoph
>



man grub-install

------------------------------------------------------------------------

GRUB-INSTALL(8)

<snip>

--root-directory=DIR
install GRUB images under the directory DIR instead of
the root directory

grub-install copies GRUB images into the DIR/boot directory specified by
--root-directory, and uses the grub shell to install grub into the boot
sector.

------------------------------------------------------------------------

You shouldn't need to specify an alternate root directory. It should use
/boot as the DIR. and /boot/grub as the sub-directory.

Here is a Debian 4.0 directory for GRUB:

john@debian4.0:/boot$ ls -al
total 16820
drwxr-xr-x 3 root root 1024 Oct 13 08:38 .
drwxr-xr-x 22 root root 1024 Aug 25 15:49 ..
-rw-r--r-- 1 root root 716728 May 9 2007 System.map-2.6.18-4-486
-rw-r--r-- 1 root root 717616 Oct 2 23:45 System.map-2.6.18-5-486
-rw-r--r-- 1 root root 71818 May 9 2007 config-2.6.18-4-486
-rw-r--r-- 1 root root 71695 Oct 2 18:31 config-2.6.18-5-486
drwxr-xr-x 2 root root 1024 Oct 13 08:38 grub
-rw-r--r-- 1 root root 4373756 Aug 25 15:49 initrd.img-2.6.18-4-486
-rw-r--r-- 1 root root 4373789 May 20 2007 initrd.img-2.6.18-4-486.bak
-rw-r--r-- 1 root root 4373407 Oct 13 08:38 initrd.img-2.6.18-5-486
-rw-r--r-- 1 root root 1220119 May 9 2007 vmlinuz-2.6.18-4-486
-rw-r--r-- 1 root root 1219422 Oct 2 23:45 vmlinuz-2.6.18-5-486

john@debian4.0:/boot$ cd grub

john@debian4.0:/boot/grub$ ls -al
total 172
drwxr-xr-x 2 root root 1024 Oct 13 08:38 .
drwxr-xr-x 3 root root 1024 Oct 13 08:38 ..
-rw-r--r-- 1 root root 197 Apr 18 2007 default
-rw-r--r-- 1 root root 15 Apr 18 2007 device.map
-rw-r--r-- 1 root root 7584 Apr 18 2007 e2fs_stage1_5
-rw-r--r-- 1 root root 7424 Apr 18 2007 fat_stage1_5
-rw-r--r-- 1 root root 8192 Apr 18 2007 jfs_stage1_5
-rw-r--r-- 1 root root 4179 Oct 13 08:38 menu.lst
-rw-r--r-- 1 root root 4179 Oct 13 08:38 menu.lst~
-rw-r--r-- 1 root root 6848 Apr 18 2007 minix_stage1_5
-rw-r--r-- 1 root root 9280 Apr 18 2007 reiserfs_stage1_5
-rw-r--r-- 1 root root 512 Apr 18 2007 stage1
-rw-r--r-- 1 root root 108360 Apr 18 2007 stage2
-rw-r--r-- 1 root root 8904 Apr 18 2007 xfs_stage1_5

Hope that helps.

Don't overlook man grub and man grub-install.


--
John

No Microsoft nor Apple products were used in the preparation or transmission of this message.

The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
John F. Morse

2007-11-27, 1:13 pm

Christoph Egger wrote:
> I've bootet the rescue console on my Debian CD but when trying to write
> a new grub to my USB-Stick on /dev/sdb it tells me that
> "schwehrwiegender Fehler" occured. The same for trying to write to my
> root Partition on /dev/sda3
>
> Christoph
>



I cannot translate "schwehrwiegender" into English. Can you describe
what kind of error this is?

Please look carefully at the Website I provided earlier:
http://jbakshi.50webs.com/Linux_tut...simplified.html

I would think one of the HOWTOs (listed in the left column) would be
what you are seeking, such as the "GRUB Pen Drive - stage1 and stage2 on
different media" link.


--
John

No Microsoft nor Apple products were used in the preparation or transmission of this message.

The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Christoph Egger

2007-11-27, 7:12 pm

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John F. Morse schrieb:
> Christoph Egger wrote:
>
>
> I cannot translate "schwehrwiegender" into English. Can you describe
> what kind of error this is?


It means something like very serious

>
> Please look carefully at the Website I provided earlier:
> http://jbakshi.50webs.com/Linux_tut...simplified.html
>
> I would think one of the HOWTOs (listed in the left column) would be
> what you are seeking, such as the "GRUB Pen Drive - stage1 and stage2 on
> different media" link.
>


I've built the Boot-CD like it was told in this HowTo and can now boot
into my Debian install so it is some kind of solved I guess.

Christoph

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHTHE6y7PXBwNyJ10RApw3AJ9LFZBarovR
Z0SBOXkx0NqkCVp0XgCeI5QY
LRBsQ+gdTq8IzEwMkom5kB0=
=hhLD
-----END PGP SIGNATURE-----
John F. Morse

2007-11-27, 7:12 pm

Christoph Egger wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> John F. Morse schrieb:
>
>
> It means something like very serious
>



Verstanden. Danke.

Ich spreche nicht deutsch, und es wurde nicht durch die AltaVista Babel
Fische übersetzt. ;-)


>
> I've built the Boot-CD like it was told in this HowTo and can now boot
> into my Debian install so it is some kind of solved I guess.
>
> Christoph
>



Glad to hear you got it working. From what I've read at that site, it
looks like everything about GRUB is covered in detail.


--
John

No Microsoft nor Apple products were used in the preparation or transmission of this message.

The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Christoph Egger

2007-11-27, 7:12 pm

John F. Morse wrote:
>
>
> Glad to hear you got it working. From what I've read at that site, it
> looks like everything about GRUB is covered in detail.
>
>



Maybee the single problem really was me thinking of an simple line I
used last time and not being open for other solutions but nevermind

Christoph
Bob Hyam

2007-12-01, 7:14 pm

On Tue, 27 Nov 2007 22:03:58 +0100, Christoph Egger wrote:

> John F. Morse wrote:
>
>
> Maybee the single problem really was me thinking of an simple line I
> used last time and not being open for other solutions but nevermind
>
> Christoph


This may help someone in the future:

Procedure to re-install grub to first drive MBR


Boot Ubuntu ( This system sees SATA drives with BIOS set for native support )

1 - start shell window.

2 – ubuntu$ sudo mount /dev/sda3 /mnt ( / )

3 – ubuntu$ sudo mount /dev/sdb2 /mnt/usr (/usr)

4 – ubuntu$ sudo mount /dev/sda2 /mnt/boot (/boot)

5 – ubuntu$ cd /mnt

6 - /mnt$ sudo cp ./boot/grub/* ./usr/lib (grub-install looks for files in
/usr/lib)

7 - /mnt$ sudo grub-install –root-directory=/mnt /dev/sda

8 my result, yours will be different
(hd0) /dev/sda
(hd1) /dev/sdb
(hd2) /dev/sdc
(hd3) /dev/sdd

Take care, Bob
Christoph Egger

2007-12-02, 7:14 am

Bob Hyam wrote:
> On Tue, 27 Nov 2007 22:03:58 +0100, Christoph Egger wrote:
>
>
> This may help someone in the future:
>
> Procedure to re-install grub to first drive MBR
>
>
> Boot Ubuntu ( This system sees SATA drives with BIOS set for native support )
>
> 1 - start shell window.
>
> 2 – ubuntu$ sudo mount /dev/sda3 /mnt ( / )
>
> 3 – ubuntu$ sudo mount /dev/sdb2 /mnt/usr (/usr)
>
> 4 – ubuntu$ sudo mount /dev/sda2 /mnt/boot (/boot)
>
> 5 – ubuntu$ cd /mnt
>
> 6 - /mnt$ sudo cp ./boot/grub/* ./usr/lib (grub-install looks for filesin
> /usr/lib)
>
> 7 - /mnt$ sudo grub-install –root-directory=/mnt /dev/sda
>
> 8 my result, yours will be different
> (hd0) /dev/sda
> (hd1) /dev/sdb
> (hd2) /dev/sdc
> (hd3) /dev/sdd
>
> Take care, Bob


Hi

I guess this wouldn't have worked as my devices.map somehow was
unuseable and I finally only managed to write GRUB to the mbr by doing an

grub-install --root-directory=/tmp /dev/sda3

and copying the devices.map mack to /boot/grub but thanks for your
information

Christoph


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com