Hallo,
entsprechend der Anweisung von haveaniceday mache ich zu meinem Problem ein neues Thema auf (s. http://www.linux-club.de/ftopic86190.html )
Situation: Installation von grub in Boot-Sektor der /boot-Partition von openSuse 10.3 (liegt auf /dev/sda6), bisher hatte ich es immer so eingerichtet, dass durch Kopieren des Bootsektors von /dev/sda6 in eine Datei bootsek.lin, die nach C:\ kopiert wird, der XP-Bootloader grub lädt.
Wie gesagt, grub-install.unsupported gibt einen Fehler nach dem Aufruf:
Die von haveaniceday gewünschte Ausgabe:
Und ja, ich war root beim Aufruf.
Danke für alle Hinweise,
AlGaN
entsprechend der Anweisung von haveaniceday mache ich zu meinem Problem ein neues Thema auf (s. http://www.linux-club.de/ftopic86190.html )
Situation: Installation von grub in Boot-Sektor der /boot-Partition von openSuse 10.3 (liegt auf /dev/sda6), bisher hatte ich es immer so eingerichtet, dass durch Kopieren des Bootsektors von /dev/sda6 in eine Datei bootsek.lin, die nach C:\ kopiert wird, der XP-Bootloader grub lädt.
Wie gesagt, grub-install.unsupported gibt einen Fehler nach dem Aufruf:
Code:
/usr/sbin/grub-install.unsupported /dev/sda6
Die von haveaniceday gewünschte Ausgabe:
core2:~ # bash -x usr/sbin/grub-install.unsupported /dev/sda6
+ prefix=/usr
+ exec_prefix=/usr
+ sbindir=/usr/sbin
+ libdir=/usr/lib
+ PACKAGE=grub
+ VERSION=0.97
+ host_cpu=i386
+ host_os=linux-gnu
+ host_vendor=suse
+ pkglibdir=/usr/lib/grub/
+ grub_shell=/usr/sbin/grub
+ grub_set_default=/usr/sbin/grub-set-default
+ log_file=/tmp/grub-install.log.6348
+ img_file=/tmp/grub-install.img.6348
+ rootdir=
+ grub_prefix=/boot/grub
+ install_device=
+ no_floppy=
+ force_lba=
+ recheck=no
+ debug=no
+ test -x /bin/tempfile
+ test -x /bin/mktemp
+ mklog='/bin/mktemp /tmp/grub-install.log.XXXXXX'
+ mkimg='/bin/mktemp /tmp/grub-install.img.XXXXXX'
+ for option in '"$@"'
+ case "$option" in
+ test x '!=' x
+ install_device=/dev/sda6
+ test x/dev/sda6 = x
+ test no = yes
+ case "$host_os" in
+ bootdir=/boot
+ grubdir=/boot/grub
+ device_map=/boot/grub/device.map
+ set /usr/sbin/grub dummy
+ test -f /usr/sbin/grub
+ :
+ test -f /usr/lib/grub//stage1
+ :
+ test -f /usr/lib/grub//stage2
+ :
+ test -d /boot
+ test -d /boot/grub
+ test no = yes
+ test -f /boot/grub/device.map
+ :
++ sed -n '/^([fh]d[0-9]*)/s/\(^(.*)\).*/\1/p' /boot/grub/device.map
++ sort
++ uniq -d
++ sed -n 1p
+ tmp=
+ test -n ''
+ case "$install_device" in
++ resolve_symlink /dev/sda6
++ tmp_fname=/dev/sda6
++ test -L /dev/sda6
++ echo /dev/sda6
+ install_device=/dev/sda6
++ convert /dev/sda6
++ test -e /dev/sda6
++ :
++ case "$host_os" in
+++ echo /dev/sda6
+++ sed -e 's%\([sh]d[a-z]\)[0-9]*$%\1%' -e 's%\(d[0-9]*\)p[0-9]*$%\1%' -e 's%\(fd[0-9]*\)$%\1%' -e 's%/part[0-9]*$%/disc%' -e 's%\(c[0-7]d[0-9]*\).*$%\1%'
++ tmp_disk=/dev/sda
+++ echo /dev/sda6
+++ sed -e 's%.*/[sh]d[a-z]\([0-9]*\)$%\1%' -e 's%.*d[0-9]*p%%' -e 's%.*/fd[0-9]*$%%' -e 's%.*/floppy/[0-9]*$%%' -e 's%.*/\(disc\|part\([0-9]*\)\)$%\2%' -e 's%.*c[0-7]d[0-9]*p%%'
++ tmp_part=6
+++ grep -v '^#' /boot/grub/device.map
+++ grep '/dev/sda *$'
+++ sed 's%.*\(([hf]d[0-9][a-g0-9,]*)\).*%\1%'
++ tmp_drive='(hd0)'
++ test 'x(hd0)' = x
++ test x6 '!=' x
++ case "$host_os" in
++ echo '(hd0)'
+++ expr 6 - 1
++ sed 's%)$%,5)%'
+ install_drive='(hd0,5)'
+ test 'x(hd0,5)' = x
++ find_device
+++ df /
+++ awk '/\/dev\/|LABEL=|UUID=/{ print $1 }'
++ tmp_fname=/dev/sda7
++ grep -q LABEL=
++ grep -q UUID=
++ test -z /dev/sda7
+++ resolve_symlink /dev/sda7
+++ tmp_fname=/dev/sda7
+++ test -L /dev/sda7
+++ echo /dev/sda7
++ tmp_fname=/dev/sda7
++ echo /dev/sda7
+ root_device=/dev/sda7
++ find_device /boot
+++ df /boot/
+++ awk '/\/dev\/|LABEL=|UUID=/{ print $1 }'
++ tmp_fname=/dev/sda6
++ grep -q LABEL=
++ grep -q UUID=
++ test -z /dev/sda6
+++ resolve_symlink /dev/sda6
+++ tmp_fname=/dev/sda6
+++ test -L /dev/sda6
+++ echo /dev/sda6
++ tmp_fname=/dev/sda6
++ echo /dev/sda6
+ bootdir_device=/dev/sda6
+ test x/dev/sda7 '!=' x/dev/sda6
+ root_device=/dev/sda6
+ grub_prefix=/grub
++ convert /dev/sda6
++ test -e /dev/sda6
++ :
++ case "$host_os" in
+++ echo /dev/sda6
+++ sed -e 's%\([sh]d[a-z]\)[0-9]*$%\1%' -e 's%\(d[0-9]*\)p[0-9]*$%\1%' -e 's%\(fd[0-9]*\)$%\1%' -e 's%/part[0-9]*$%/disc%' -e 's%\(c[0-7]d[0-9]*\).*$%\1%'
++ tmp_disk=/dev/sda
+++ echo /dev/sda6
+++ sed -e 's%.*/[sh]d[a-z]\([0-9]*\)$%\1%' -e 's%.*d[0-9]*p%%' -e 's%.*/fd[0-9]*$%%' -e 's%.*/floppy/[0-9]*$%%' -e 's%.*/\(disc\|part\([0-9]*\)\)$%\2%' -e 's%.*c[0-7]d[0-9]*p%%'
++ tmp_part=6
+++ grep -v '^#' /boot/grub/device.map
+++ grep '/dev/sda *$'
+++ sed 's%.*\(([hf]d[0-9][a-g0-9,]*)\).*%\1%'
++ tmp_drive='(hd0)'
++ test 'x(hd0)' = x
++ test x6 '!=' x
++ case "$host_os" in
++ echo '(hd0)'
+++ expr 6 - 1
++ sed 's%)$%,5)%'
+ root_drive='(hd0,5)'
+ test 'x(hd0,5)' = x
++ find_device /boot/grub
+++ df /boot/grub/
+++ awk '/\/dev\/|LABEL=|UUID=/{ print $1 }'
++ tmp_fname=/dev/sda6
++ grep -q LABEL=
++ grep -q UUID=
++ test -z /dev/sda6
+++ resolve_symlink /dev/sda6
+++ tmp_fname=/dev/sda6
+++ test -L /dev/sda6
+++ echo /dev/sda6
++ tmp_fname=/dev/sda6
++ echo /dev/sda6
+ grubdir_device=/dev/sda6
+ test x/dev/sda6 '!=' x/dev/sda6
+ /usr/sbin/grub-set-default --root-directory= default
+ test -n '/bin/mktemp /tmp/grub-install.img.XXXXXX'
++ /bin/mktemp /tmp/grub-install.img.XXXXXX
+ img_file=/tmp/grub-install.img.Ba6413
+ test -n '/bin/mktemp /tmp/grub-install.log.XXXXXX'
++ /bin/mktemp /tmp/grub-install.log.XXXXXX
+ log_file=/tmp/grub-install.log.dA6414
+ for file in '${grubdir}/stage1' '${grubdir}/stage2' '${grubdir}/*stage1_5'
+ count=5
++ echo /boot/grub/stage1
++ sed 's|^/boot/grub|/grub|'
+ tmp=/grub/stage1
+ test 5 -gt 0
+ /usr/sbin/grub --batch --device-map=/boot/grub/device.map
+ grep 'Error [0-9]*: ' /tmp/grub-install.log.dA6414
+ :
+ sleep 1
++ expr 5 - 1
+ count=4
+ test 4 -gt 0
+ /usr/sbin/grub --batch --device-map=/boot/grub/device.map
+ grep 'Error [0-9]*: ' /tmp/grub-install.log.dA6414
+ :
+ sleep 1
++ expr 4 - 1
+ count=3
+ test 3 -gt 0
+ /usr/sbin/grub --batch --device-map=/boot/grub/device.map
+ grep 'Error [0-9]*: ' /tmp/grub-install.log.dA6414
+ :
+ sleep 1
++ expr 3 - 1
+ count=2
+ test 2 -gt 0
+ /usr/sbin/grub --batch --device-map=/boot/grub/device.map
+ grep 'Error [0-9]*: ' /tmp/grub-install.log.dA6414
+ :
+ sleep 1
++ expr 2 - 1
+ count=1
+ test 1 -gt 0
+ /usr/sbin/grub --batch --device-map=/boot/grub/device.map
+ grep 'Error [0-9]*: ' /tmp/grub-install.log.dA6414
+ :
+ sleep 1
++ expr 1 - 1
+ count=0
+ test 0 -gt 0
+ test 0 -eq 0
+ echo 'The file /boot/grub/stage1 not read correctly.'
The file /boot/grub/stage1 not read correctly.
+ exit 1
Und ja, ich war root beim Aufruf.
Danke für alle Hinweise,
AlGaN