View previous topic :: View next topic |
Author |
Message |
abcdeef Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 24 Sep 2003 Posts: 88
|
Posted: Fri Apr 28, 2006 6:21 pm Post subject: problem mit selbst erstellter livecd |
|
|
hi,
ich habe (ohne catalyst) eine livecd gebastelt; habe mich an die anleitung auf gentoo-wiki gehalten. nun habe ich folgendes problem:
"kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)" |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
blice Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 12 Feb 2005 Posts: 598 Location: D- 26188
|
Posted: Fri Apr 28, 2006 8:28 pm Post subject: |
|
|
du musst dem kernel nen korrekten Root angeben , ich habe mir zwar noch keine livecd gebastelt, aber hatte dieselbe meldung bei meinem kernel-umbau
vmlinuz-xxxxx splash=silent vga=ask root=/dev/ram0 real_root=/.... mit initrd
vmlinuz-xxxxx splash=silent vga=ask root=... ohne initrd
PS: Ein sehr weiser Mann hat mir mal gesagt -
"Basteln ist , wenn man nicht weiß was man tut" _________________ Gentoo seit 2004.3
Skype: bodokhan
SecondLife: Bodokhan Fall
Email: blice@gmx.de |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
abcdeef Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 24 Sep 2003 Posts: 88
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pablo_supertux Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/gallery/Mario/Mario_-_Yoshi2.gif)
Joined: 25 Jan 2004 Posts: 2953 Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
|
Posted: Fri Apr 28, 2006 11:20 pm Post subject: |
|
|
"Unable to mount root fs on unknown-block(1,0)" hast du im Kernel die Treiber des Dateisystem fest kompiliert oder als Modul? _________________ A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
abcdeef Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 24 Sep 2003 Posts: 88
|
Posted: Fri Apr 28, 2006 11:55 pm Post subject: |
|
|
fest |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
doedel Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/9049701224440b7441acd9.jpg)
Joined: 05 Feb 2006 Posts: 579 Location: Denmark
|
Posted: Sat Apr 29, 2006 5:47 am Post subject: |
|
|
ich hatte das problem mit der initramfs. wie blice geschrieben hat, ohne initramfs mal angeben. _________________ 1 ha == 1 Hekto-Ar == 1 Hektar |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
abcdeef Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 24 Sep 2003 Posts: 88
|
Posted: Tue May 02, 2006 7:48 am Post subject: |
|
|
hier mal meine grub konfiguration:
Code: | default 0
timeout 5
title=Gentoo Linux
root (cd)
kernel (cd)/boot/vmlinuz video=vesafb:1024x768-32 root=/dev/ram0 rw init=/linuxrc cdroot
#initrd (cd)/boot/initrd
|
der fehler tritt mit und ohne initrd-zeile auf. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pablo_supertux Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/gallery/Mario/Mario_-_Yoshi2.gif)
Joined: 25 Jan 2004 Posts: 2953 Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
|
Posted: Tue May 02, 2006 8:05 am Post subject: |
|
|
wird das linuxrc Skript von der initrd Datei vollständig ausgeführt? Vielleicht hast du da einen Fehler (Tippfehler, etwa?) _________________ A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
abcdeef Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 24 Sep 2003 Posts: 88
|
Posted: Tue May 02, 2006 10:18 am Post subject: |
|
|
pablo_supertux wrote: | wird das linuxrc Skript von der initrd Datei vollständig ausgeführt? |
wie finde ich das heraus;
wird das linuxrc script nicht nur ausgeführt wenn das initrd benutzt wird? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pablo_supertux Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/gallery/Mario/Mario_-_Yoshi2.gif)
Joined: 25 Jan 2004 Posts: 2953 Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
|
Posted: Tue May 02, 2006 6:44 pm Post subject: |
|
|
abcdeef wrote: | pablo_supertux wrote: | wird das linuxrc Skript von der initrd Datei vollständig ausgeführt? |
wie finde ich das heraus;
|
mit einem "echo debug blablabla" und vor dem pivot_root ein /bin/sh, damit du die Ausgaben sehen kannst und merken kannst, ob das Skript richtig läuft. Ich hab genauso getestet, als ich meine LiveDVD erstellt habe. Poste doch mal dein linuxrc
abcdeef wrote: |
wird das linuxrc script nicht nur ausgeführt wenn das initrd benutzt wird? |
ja, benutze das initrd Image
edit: mir ist grad eingefallen, dass ich dasselbe Problem hatte, als ich zum ersten Mal meine LiveCD getestet habe. Das Problem war, dass ich vergessen hatte, squashfs fest im Kernel zu kompilieren. ![Mad :x](images/smiles/icon_mad.gif) _________________ A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
abcdeef Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 24 Sep 2003 Posts: 88
|
Posted: Tue May 02, 2006 8:28 pm Post subject: |
|
|
Code: | #!/bin/sh
export PATH=/bin
# Speichern der Kernel CMDLINE
mount -t proc none /proc
CMDLINE=`cat /proc/cmdline`
umount /proc
# CD Laufwerk mounten
CDROM=""
for x in hda hdb hdc hdd cdroms/cdrom0 cdroms/cdrom1 cdroms/cdrom2 cdroms/cdrom3
do
mount -t iso9660 -r /dev/${x} /cdrom > /dev/null 2>&1
if [ "$?" = "0" ]
then
CDROM="${x}"
break
fi
done
# CD-Laufwerk nicht gefunden
if [ "${CDROM}" == "" ]
then
exec /bin/sh
exit
fi
echo 1
# Wurzelverzeichnis mounten und Verzeichnisse mit Lese- und Schreibzugriff erstellen
mount -t squashfs -o loop /cdrom/files/source.img /new > /dev/null 2>&1
mount -t tmpfs -o size=8m none /new/var > /dev/null 2>&1
mount -t tmpfs -o size=4m none /new/etc > /dev/null 2>&1
mount -t tmpfs -o size=32m none /new/tmp > /dev/null 2>&1
mount -t tmpfs -o size=32m none /new/root > /dev/null 2>&1
cd /new/var && tar xpf /cdrom/files/var.tar > /dev/null 2>&1
cd /new/etc && tar xpf /cdrom/files/etc.tar > /dev/null 2>&1
cd /new/root && tar xpf /cdrom/files/root.tar > /dev/null 2>&1
echo 2
# Wurzelverzeichnis umsetzen und den eigentlichen init-Vorgang starten
cd /new
pivot_root . newroot
exec chroot . /bin/sh <<- EOF >dev/console 2>&1
exec /sbin/init ${CMDLINE}
echo 3
EOF
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
abcdeef Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 24 Sep 2003 Posts: 88
|
Posted: Tue May 02, 2006 8:32 pm Post subject: |
|
|
squashfs ist fest drin |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pablo_supertux Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/gallery/Mario/Mario_-_Yoshi2.gif)
Joined: 25 Jan 2004 Posts: 2953 Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
|
Posted: Tue May 02, 2006 10:00 pm Post subject: |
|
|
also, die linuxrc sieht gut aus. Hast du wirklich alle "hda hdb hdc hdd cdroms/cdrom0 cdroms/cdrom1 cdroms/cdrom2 cdroms/cdrom3" devices da?
An welcher Stelle kommt denn die Meldung "kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)"? Vor, nach oder während des linuxrc Skriptes?
Das echo 3 würde ich da wegmachen, denn sonst kommt als Parameter in die chroot ![Smile :)](images/smiles/icon_smile.gif) _________________ A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
abcdeef Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 24 Sep 2003 Posts: 88
|
Posted: Wed May 03, 2006 8:40 am Post subject: |
|
|
die "echo" sehe ich garnicht |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pablo_supertux Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/gallery/Mario/Mario_-_Yoshi2.gif)
Joined: 25 Jan 2004 Posts: 2953 Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
|
Posted: Wed May 03, 2006 11:42 am Post subject: |
|
|
dann wird wahrscheinlich das initrd image gar nicht geladen. Hast du initrd im Kernel fest drin? Wie groß ist dein Image und wie viel unterstützt deinen Kernel? Welches Dateisystem hat dein initrd Image? Dieses Dateisystem muss ebenfalls fest im Kernel sein. _________________ A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
abcdeef Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 24 Sep 2003 Posts: 88
|
Posted: Wed May 03, 2006 1:55 pm Post subject: |
|
|
pablo_supertux wrote: | Hast du initrd im Kernel fest drin? Wie groß ist dein Image und wie viel unterstützt deinen Kernel? Welches Dateisystem hat dein initrd Image? Dieses Dateisystem muss ebenfalls fest im Kernel sein. |
ja,8mb,viel,ext2,ist
.config |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pablo_supertux Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/gallery/Mario/Mario_-_Yoshi2.gif)
Joined: 25 Jan 2004 Posts: 2953 Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
|
Posted: Wed May 03, 2006 2:41 pm Post subject: |
|
|
Kannst du vielleicht ein Bild posten, so dass ich sehen kann, wann sie genau auftritt? _________________ A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
abcdeef Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 24 Sep 2003 Posts: 88
|
Posted: Wed May 03, 2006 3:00 pm Post subject: |
|
|
screenshot |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pablo_supertux Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/gallery/Mario/Mario_-_Yoshi2.gif)
Joined: 25 Jan 2004 Posts: 2953 Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
|
Posted: Wed May 03, 2006 6:40 pm Post subject: |
|
|
ok, das initrd Image scheint nicht, geladen zu werden. Ich tippe darauf, dass das DAteisystem der initrd ncht im Kernel festkompiliert ist. Auf dem Screenshot ist da auch eine XFS Meldungen. Wo benutzt du XFS?
Ich habe selbst nach diesem Wiki-Beitrag meine LiveCD gebaut, die Anleitung funktioniert. _________________ A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
abcdeef Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 24 Sep 2003 Posts: 88
|
Posted: Wed May 03, 2006 7:23 pm Post subject: |
|
|
pablo_supertux wrote: | ok, das initrd Image scheint nicht, geladen zu werden. Ich tippe darauf, dass das DAteisystem der initrd ncht im Kernel festkompiliert ist. Auf dem Screenshot ist da auch eine XFS Meldungen. Wo benutzt du XFS?
Ich habe selbst nach diesem Wiki-Beitrag meine LiveCD gebaut, die Anleitung funktioniert. |
mit diesen script erstelle ich das initrd:
Code: | #!/bin/sh
rm -rf /boot/initrd
touch /boot/initrd
dd if=/dev/zero of=/boot/initrd bs=1024k count=8
losetup /dev/loop0 /boot/initrd
mke2fs /dev/loop0
rm -rf /mnt/initrd
mkdir /mnt/initrd
mount /dev/loop0 /mnt/initrd
cd /mnt/initrd
mkdir etc dev lib bin proc new cdrom
touch linuxrc
chmod +x linuxrc
touch etc/mtab
touch etc/fstab
for x in sh ls cat mount umount mkdir chroot tar
do
cp -v /bin/${x} /mnt/initrd/bin
done
cp -v /sbin/pivot_root /mnt/initrd/bin
cd /lib
for x in sh ls cat mount umount mkdir chroot tar
do
cp -v `ldd /bin/${x}|egrep lib|cut -d "=" -f1| cut -d " " -f1` /mnt/initrd/lib
done
cp -v `ldd /sbin/pivot_root|egrep lib|cut -d "=" -f1| cut -d " " -f1` /mnt/initrd/lib
mknod /mnt/initrd/dev/console c 5 1
mknod /mnt/initrd/dev/null c 1 3
mknod /mnt/initrd/dev/hda b 3 0
mknod /mnt/initrd/dev/hdb b 3 64
mknod /mnt/initrd/dev/hdc b 22 0
mknod /mnt/initrd/dev/hdd b 22 64
mknod /mnt/initrd/dev/tty c 4 0
mknod /mnt/initrd/dev/loop0 b 7 0
umount /mnt/initrd
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
abcdeef Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 24 Sep 2003 Posts: 88
|
Posted: Wed May 03, 2006 7:30 pm Post subject: |
|
|
und die config vom kernel ist weiter oben zu sehen |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pablo_supertux Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/gallery/Mario/Mario_-_Yoshi2.gif)
Joined: 25 Jan 2004 Posts: 2953 Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
|
Posted: Wed May 03, 2006 8:49 pm Post subject: |
|
|
das ist ganz seltsam... alles scheint im Ordnung zu sein. Dein initrd Image wird als ext2 formatiert und ext2 hast du fest im Kernel, das ist mir alles ein Rätsel, muss ich sagen. _________________ A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
abcdeef Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 24 Sep 2003 Posts: 88
|
Posted: Thu May 04, 2006 3:03 pm Post subject: |
|
|
@pablo_supertux kann ich deine kernel-config (der livecd) bekommen? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pablo_supertux Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/gallery/Mario/Mario_-_Yoshi2.gif)
Joined: 25 Jan 2004 Posts: 2953 Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
|
Posted: Thu May 04, 2006 5:46 pm Post subject: |
|
|
ja, aber ich habe SCSI Support im Kernel. DIe config hat keine Module (oder wenige), sondern fast alles im kernel fest.
config sys-kernel/gentoo-sources-2.6.16-r3 _________________ A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
abcdeef Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 24 Sep 2003 Posts: 88
|
Posted: Thu May 04, 2006 7:53 pm Post subject: |
|
|
das initrd ist das problem; gibt es eine möglichkeit es es zu überspringen? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|