Hallo Janka,
3 Tage habe ich gekämpft, irgend etwas in Richtung bootfähiger Diskette zustandezubekommen. Leider kein Erfolg.
Gemäß Deinem letzten Tip müßte ja die Datei .../device.map erstmal auf die Diskette. Das habe ich mit Abwandlung des schon mal angeführten Scripts von DancingAnt S versucht:
Code: Select all
mke2fs /dev/fd0
mkdir /floppy
mount -t ext2 /dev/fd0 /floppy
mkdir /floppy/boot
cp -a /usr/lib/grub/ /floppy/boot/
cp /boot/grub/menu.lst /floppy/boot/grub/
cp /boot/grub/device.map /floppy/boot/grub/
grub
root (fd0)
setup (fd0)
quit
cd
umount /floppy
rmdir /floppy
Da habe ich die Zeile zu device.map ergänzt und eine neue Disk erzeugt.
Meldung:
Code: Select all
Passwort:
linux-3t4r:~ # mke2fs /dev/fd0
mke2fs 1.40.2 (12-Jul-2007)
/dev/fd0 is mounted; will not make a filesystem here!
linux-3t4r:~ # mkdir /floppy
mkdir: cannot create directory `/floppy': File exists
linux-3t4r:~ # mount -t ext2 /dev/fd0 /floppy
linux-3t4r:~ # mkdir /floppy/boot
linux-3t4r:~ # cp -a /usr/lib/grub/ /floppy/boot/
linux-3t4r:~ # cp /boot/grub/menu.lst /floppy/boot/grub/
linux-3t4r:~ # cp /boot/grub/device.map /floppy/boot/grub/
linux-3t4r:~ #
linux-3t4r:~ # grub
GNU GRUB version 0.97 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub>
root (fd0)
Filesystem type is ext2fs, using whole disk
grub> setup (fd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (fd0)"... failed (this is not fatal)
Running "embed /boot/grub/e2fs_stage1_5 (fd0)"... failed (this is not fatal)
Running "install /boot/grub/stage1 (fd0) /boot/grub/stage2 p /boot/grub/menu.lst "... succeeded
Done.
grub> quit
linux-3t4r:~ #
Ausgebunden hatte die Aktion keinen Erfolg... trotz "Meckerei" eingebunden aber schon.
Das Editieren der Datei gelang mir nicht mit pico oder vi. Der Editor der Konsole (nur lesen) zeigte lediglich eine leere Datei auf der Disk.
Mehrfach bemerkt habe ich beim Systemstart mit DVD, daß eine 'feuerrote' Meldung kam: Could not find the openSUSE repository Activatingmanual setup program unter >>> Linuxrc v 3.0.20 (Kernel 2.6.22.5-31-default)<<< obendrüber.
Nach Enter kommt dann etwas später eine Auswahlliste, die zwischen sda 1 ... sda 3 und sdb 2 ... sdb 4 als Startpartition auszuwählen erlaubt. (sdb 2 stimmt hier).
Zählt die swap- Partition hier nicht mit? Dann: root (hd1,0); zählen die 3 Partitionen der FP 1 als jeweils eigene FP? Dann: root (hd4,1 oder sogar hd4,0)?
Selbst im Hauptsystem scheint die (hd1,1) = sdb 2 nicht gelesen werden zu können, obwohl der Eintrag in der
Code: Select all
edit /boot/grub/device.map als root (von der sdb2):
(fd0) /dev/fd0
(hd0) /dev/sda
(hd1) /dev/sdb
~
~
1,1 All
erkennbar ist. Weitere Anzeigen:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Code: Select all
edit /boot/grub/menu.lst als root (von der sdb2)
# Modified by YaST2. Last modification on Fr Jan 16 21:38:03 CET 2009
default 0
timeout 8
gfxmenu (hd1,1)/boot/message
###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 10.3
root (hd1,1)
kernel /boot/vmlinuz-2.6.22.5-31-default root=/dev/disk/by-id/scsi-SATA_IC35L040AVER07-_SX0SXMQ2732-part2 vga=0x31a resume=/dev/sdb1 splash=silent showopts
initrd /boot/initrd-2.6.22.5-31-default
###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows
rootnoverify (hd1,1)
chainloader (hd0,0)+1
###Don't change this comment - YaST2 identifier: Original name: floppy###
title Diskette
rootnoverify (hd1,1)
chainloader (fd0)+1
###Don't change this comment - YaST2 identifier: Original name: failsafe###
"/boot/grub/menu.lst" 26L, 1083C 1,1 Top
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
edit /etc/grub.conf als root (von der sdb2)
setup --stage2=/boot/grub/stage2 (hd1,1) (hd1,1)
setup --stage2=/boot/grub/stage2 (hd1,1) (hd1,1)
quit
~
~
"/etc/grub.conf" 3L, 103C 1,1 All
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linux-3t4r:~ # ls -R -l /media/floppy
/media/floppy:
total 13
drwxr-xr-x 3 root root 1024 Jan 20 19:06 boot
drwx------ 2 root root 12288 Jan 20 18:26 lost+found
/media/floppy/boot:
total 1
drwxr-xr-x 2 root root 1024 Jan 20 19:08 grub
/media/floppy/boot/grub:
total 808
-rw------- 1 root root 45 Jan 20 19:08 device.map
-rw-r--r-- 1 root root 7576 Sep 21 2007 e2fs_stage1_5
-rw-r--r-- 1 root root 7424 Sep 21 2007 fat_stage1_5
-rw-r--r-- 1 root root 6664 Sep 21 2007 ffs_stage1_5
-rw-r--r-- 1 root root 6656 Sep 21 2007 iso9660_stage1_5
-rw-r--r-- 1 root root 8128 Sep 21 2007 jfs_stage1_5
-rw------- 1 root root 1083 Jan 20 19:08 menu.lst
-rw-r--r-- 1 root root 6844 Sep 21 2007 minix_stage1_5
-rw-r--r-- 1 root root 176228 Sep 21 2007 nbgrub
-rw-r--r-- 1 root root 177252 Sep 21 2007 pxegrub
-rw-r--r-- 1 root root 9160 Sep 21 2007 reiserfs_stage1_5
-rw-r--r-- 1 root root 512 Sep 21 2007 stage1
-rw-r--r-- 1 root root 103162 Sep 21 2007 stage2
-rw-r--r-- 1 root root 176868 Sep 21 2007 stage2.netboot
-rw-r--r-- 1 root root 103162 Sep 21 2007 stage2_eltorito
-rw-r--r-- 1 root root 7004 Sep 21 2007 ufs2_stage1_5
-rw-r--r-- 1 root root 6228 Sep 21 2007 vstafs_stage1_5
-rw-r--r-- 1 root root 8820 Sep 21 2007 xfs_stage1_5
/media/floppy/lost+found:
total 0
linux-3t4r:~ #
Die grub.conf erscheint mir seltsam (2 x gleiche Zeile). Ist das so richtig, oder kann hier schon der 'Bock' stecken?
Mit Deinem code... aus der letzten Antwort habe ich nichts erreicht; auf die Diskette nach der ersten Ausführung (s. weiter zuvor) ließ sich damit die device.map nicht ergänzen.
Ich habe noch weitere Möglichkeiten zur Erstellung einer Bootdiskette probiert, erreicht habe ich nichts, weil die Disketten jedesmal leer waren. Bei Interesse kann ich die Methoden kurz schildern.
Mit vielen Fragezeichen
Phoenix