Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
HanischOffline
15 Post subject: GRUB2 problems  PostPosted: 16.09.2010, 17:02



Joined: 2010-09-16
Posts: 17

Status: Offline
hello,
I have upgraded to aposid now. Just changed to GRUB2.
1)
update-grub has all my installed Distributions on external USB-Harddisk integrated.
Now I have made an experimental trial to add chainloader to
/etc/grub.d/40_custom
with following contents:
      Code:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry "Other Distribution:  U b u n t u 9.04  ++++++++++++ (/dev/sdc1)"{
set root=(hd1,1)
chainloader +1
}

device.map is:
      Code:
(hd0)   /dev/disk/by-id/ata-WDC_WD2500BEVS-22UST0_WD-WXE807153958
(hd1)   /dev/disk/by-id/usb-SAMSUNG_HM320JI_1D0540565FFF-0:0

When I select in boot menu at last entry "Other Distribution ..."
an error occured:
      Code:
"error: no such partition
Beliebige Taste drücken, um fortzusetzen ..."

Where is the reason for this?

2)
How can I install other splashimages for GRUB2?

with regards
Ch. Hanisch


Last edited by Hanisch on 18.09.2010, 08:46; edited 1 time in total
 
 View user's profile Send private message  
Reply with quote Back to top
devilOffline
Post subject: RE: GRUB2 problems  PostPosted: 16.09.2010, 17:11



Joined: 2010-08-26
Posts: 491
Location: Berlin
Status: Offline
is (hd1,1) dev/sdb1 or /dev/sdb2 ?
the grub2 naming scheme is different from grub-legacy.
see: http://manual.aptosid.com/en/sys-admin- ... .htm#grub2
other good ressources for grub2 are:
https://wiki.ubuntu.com/Grub2
https://help.ubuntu.com/community/Grub2

greetz
devil
 
 View user's profile Send private message  
Reply with quote Back to top
HanischOffline
Post subject: Re: RE: GRUB2 problems  PostPosted: 16.09.2010, 17:18



Joined: 2010-09-16
Posts: 17

Status: Offline
      devil wrote:
is (hd1,1) dev/sdb1 or /dev/sdb2 ?

(hd1,1) is dev/sdc1

regards
Ch. Hanisch
 
 View user's profile Send private message  
Reply with quote Back to top
devilOffline
Post subject: RE: Re: RE: GRUB2 problems  PostPosted: 16.09.2010, 18:00



Joined: 2010-08-26
Posts: 491
Location: Berlin
Status: Offline
      Quote:

(hd1,1) is dev/sdc1

that would be wrong in grub and grub2
in grub2 notation dev/sdc1 is (hd2,1)

greetz
devil
 
 View user's profile Send private message  
Reply with quote Back to top
HanischOffline
Post subject: Re: RE: Re: RE: GRUB2 problems  PostPosted: 16.09.2010, 18:15



Joined: 2010-09-16
Posts: 17

Status: Offline
hello devil,
      Quote:

that would be wrong in grub and grub2
in grub2 notation dev/sdc1 is (hd2,1)

(hd2,1) is nothing. Please show my device map in my first Posting.
I think it is a bug again in GRUB2!

regards
Ch. Hanisch
 
 View user's profile Send private message  
Reply with quote Back to top
devilOffline
Post subject: RE: Re: RE: Re: RE: GRUB2 problems  PostPosted: 16.09.2010, 18:21



Joined: 2010-08-26
Posts: 491
Location: Berlin
Status: Offline
      Quote:

(hd1,1) is dev/sdc1

thats what YOU said
i guess we have a missunderstanding here.
your _custom file says set root=(hd1,1)
what device/partition is ubuntu on ?

greetz
devil
 
 View user's profile Send private message  
Reply with quote Back to top
HanischOffline
Post subject: Re: RE: Re: RE: Re: RE: GRUB2 problems  PostPosted: 16.09.2010, 18:29



Joined: 2010-09-16
Posts: 17

Status: Offline
hello devil,
      Quote:

your _custom file says set root=(hd1,1)
what device/partition is ubuntu on ?

      Code:
#blkid
/dev/sdc1: UUID="daedfcb1-ab50-4148-8e22-3fc212c7d735" SEC_TYPE="ext2" TYPE="ext3" LABEL="UBUNTU"


regards
Ch. Hanisch
 
 View user's profile Send private message  
Reply with quote Back to top
devilOffline
Post subject: RE: Re: RE: Re: RE: Re: RE: GRUB2 problems  PostPosted: 16.09.2010, 19:11



Joined: 2010-08-26
Posts: 491
Location: Berlin
Status: Offline
oh, ok, it does exist Smile
devicemap has a different idea about that.
looking at your output again puzzles me.
      Quote:

menuentry "Other Distribution: U b u n t u 9.04 ++++++++++++ (/dev/sdc1)"{
set root=(hd1,1)

you said you wrote thast stanza
so, if ubuntu is on sdc1, why do yxou write set root=(hd1,1), which is sdb1.
you can add sdc to devicemap manualy as hd2

greetz
devil
 
 View user's profile Send private message  
Reply with quote Back to top
HanischOffline
Post subject: Re: RE: Re: RE: Re: RE: Re: RE: GRUB2 problems  PostPosted: 16.09.2010, 19:31



Joined: 2010-09-16
Posts: 17

Status: Offline
Hallo devil,
so wird das nichts.
      Code:
(hd1)   /dev/disk/by-id/usb-SAMSUNG_HM320JI_1D0540565FFF-0:0

(hd1) wird anhand der /dev/disk/by-id erkannt.
Was soll da noch einmal (hd2)?
Hat übrigens auch nicht funktioniert.

Die Sache ist doch eindeutig, (hd1,1) ist die erste Partition auf der externen USB-Festplatte, die über /dev/disk/by-id erkennbar ist, ob nun dev/sdb oder /dev/sdc.
Warum geht das nicht?

Gruß
Ch. Hanisch
 
 View user's profile Send private message  
Reply with quote Back to top
piperOffline
Post subject: RE: Re: RE: Re: RE: Re: RE: Re: RE: GRUB2 problems  PostPosted: 16.09.2010, 19:49
Moderator


Joined: 2010-09-11
Posts: 480
Location: cheektowaga, ny
Status: Offline
Whats the whole output of
      Code:
ls -la /dev/disk/by-uuid/

_________________
debian sid | apt-get into it
 
 View user's profile Send private message  
Reply with quote Back to top
HanischOffline
Post subject: Re: RE: Re: RE: Re: RE: Re: RE: Re: RE: GRUB2 problems  PostPosted: 16.09.2010, 19:55



Joined: 2010-09-16
Posts: 17

Status: Offline
      piper wrote:
Whats the whole output of
      Code:
ls -la /dev/disk/by-uuid/

      Code:
~$ ls -la /dev/disk/by-uuid/
insgesamt 0
drwxr-xr-x 2 root root 340 16. Sep 2010  .
drwxr-xr-x 6 root root 120 16. Sep 2010  ..
lrwxrwxrwx 1 root root  11 16. Sep 21:48 1827c27a-ba1c-4e8b-b69d-d03823393c5b -> ../../sdc10
lrwxrwxrwx 1 root root  10 16. Sep 21:48 27f82b83-13ef-4e4b-9d4e-8741b6c22111 -> ../../sdc5
lrwxrwxrwx 1 root root  10 16. Sep 21:48 2b26a93c-0ab8-4e95-a7e8-8e598fd12614 -> ../../sdc6
lrwxrwxrwx 1 root root  10 16. Sep 21:48 716b1346-b46f-4d2e-aa06-f10d9257854c -> ../../sdc8
lrwxrwxrwx 1 root root  10 16. Sep 21:48 7b7e9c7c-aeb9-4f49-84bf-f88ab3f6b59a -> ../../sdc4
lrwxrwxrwx 1 root root  10 16. Sep 21:48 834347c1-43c6-47b2-8fbd-747e0d30e3f6 -> ../../sdc3
lrwxrwxrwx 1 root root  11 16. Sep 21:48 85c96270-8113-44d1-9563-543e86e1cb18 -> ../../sdc11
lrwxrwxrwx 1 root root  10 16. Sep 21:48 8DE7-71BA -> ../../sda5
lrwxrwxrwx 1 root root  10 16. Sep 21:48 94ac3e57-0719-48da-b5ac-b24a32784716 -> ../../sdc7
lrwxrwxrwx 1 root root  10 16. Sep 21:48 9EC232B2C2328E91 -> ../../sda2
lrwxrwxrwx 1 root root  11 16. Sep 21:48 b6d7d644-78ca-407e-a6fc-751c46aa8879 -> ../../sdc12
lrwxrwxrwx 1 root root  11 16. Sep 21:48 c0fccb63-c332-469f-9044-6f7f624c7321 -> ../../sdc13
lrwxrwxrwx 1 root root  10 16. Sep 21:48 CF0D-DC0E -> ../../sda6
lrwxrwxrwx 1 root root  10 16. Sep 21:48 daedfcb1-ab50-4148-8e22-3fc212c7d735 -> ../../sdc1
lrwxrwxrwx 1 root root  10 16. Sep 21:48 fe387fe3-1b65-48e2-85f9-40b906f5393e -> ../../sdc9


Es funktioniert nur mit der /etc/grub.d/40_custom folgenden Inhalts:
      Code:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry "Other Distribution:  U b u n t u 9.04  ++++++++++++ (/dev/sdc1)"{
   insmod part_msdos
   insmod ext2
   set root='(hd1,msdos1)'
   search --no-floppy --fs-uuid --set daedfcb1-ab50-4148-8e22-3fc212c7d735
chainloader +1
}

Das habe ich mir aus dem automtischen GRUB2 Menü (/boot/grub/grub.cfg) genommen.
Aber das ist doch nicht im Sinne des Erfinders.

Gruß
Ch. Hanisch
 
 View user's profile Send private message  
Reply with quote Back to top
HanischOffline
Post subject:   PostPosted: 17.09.2010, 10:48



Joined: 2010-09-16
Posts: 17

Status: Offline
Hallo,
GRUB2 ist auf deutsch gesagt ganz große Kacke (understandable for Germans only).
Das Chainload auf externen USB-Platten funktioniert entgegen dem Handbuch:
      Code:
Dualboot und Multiboot mit Grub2

Grub2 besitzt eine modulare Konfiguration und erlaubt daher einen einfachen Befehl, um neu installierte Betriebssysteme zu finden, die automatisch in die Datei menu.cfg integriert werden. Der einfache Befehl lautet:

update-grub

Sollte ein benutzerdefinierter Eintrag in menu.cfg erwünscht sein oder falls 30_os-prober nicht die benötigten Chainload-Einträge durchführt, können Ergänzungen mit Hilfe eines Texteditors in der Datei /etc/grub.d/40_custom durchgeführt werden.

Beispiele für eine Adaptierung der Datei 40_custom:

menuentry "second mbr"{
set root=(hd1)
chainloader +1
}

menuentry "second partition"{
set root=(hd0,2)
chainloader +1
}

Nach Abspeicherung der Ändertungen müssen diese Grub übergeben werden:

nicht.

Nur mit der /etc/grub.d/40_custom folgenden Inhalts funktioniert der Aufruf von GRUB1 aus der Partition /dev/sdc1:
      Code:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry "Other Distribution:  U b u n t u 9.04  ++++++++++++ (/dev/sdc1)"{
set root=(hd1,1)
search --no-floppy --fs-uuid --set daedfcb1-ab50-4148-8e22-3fc212c7d735
chainloader +1
}


Was soll eigentlich der Satz:
      Code:
... falls 30_os-prober nicht die benötigten Chainload-Einträge durchführt

Der automatische Eintrag im Boot-Menu von GRUB2 enthält doch gar kein Chainload.

Was passiert eigentlich, wenn ein Betriebssystem per Update einen weiteren Kernel bekommt?

Das Booten mit GRUB2 von einer externen USB-Platte dauert jetzt mindestens dreimal so lange.

In den kryptischen Scripts in /etc/grub.d/ ist es nicht einmal auf einfache Weise möglich, das Boot-Splashimage zu ändern.

Mir scheint GRUB2 in der derzeitigen Form noch wenig ausgereift.

Aus Protest schreibe ich dies hier auf deutsch, weil ich mir das deutsche Sub-Forum analog zu Sidux zurückwünsche.

Gruß
Ch. Hanisch
 
 View user's profile Send private message  
Reply with quote Back to top
devilOffline
Post subject:   PostPosted: 17.09.2010, 11:20



Joined: 2010-08-26
Posts: 491
Location: Berlin
Status: Offline
please do not post german here. that will only leave questionmarks for most readers here
i think the reasons for aptosid.de as german community forum have been explained thoroughly and the pros beat the cons here.

greetz
devil
 
 View user's profile Send private message  
Reply with quote Back to top
BarlafussOffline
Post subject:   PostPosted: 17.09.2010, 16:21



Joined: 2010-09-14
Posts: 46

Status: Offline
thanks devil, it is really difficult to follow a so interesting post with google translate Wink

And thanks to Hanisch for sharing in English his experiences.

Barlafuss
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio