Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem mit selbst erstellter livecd
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
abcdeef
Tux's lil' helper
Tux's lil' helper


Joined: 24 Sep 2003
Posts: 88

PostPosted: Fri Apr 28, 2006 6:21 pm    Post subject: problem mit selbst erstellter livecd Reply with quote

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
View user's profile Send private message
blice
Guru
Guru


Joined: 12 Feb 2005
Posts: 598
Location: D- 26188

PostPosted: Fri Apr 28, 2006 8:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
abcdeef
Tux's lil' helper
Tux's lil' helper


Joined: 24 Sep 2003
Posts: 88

PostPosted: Fri Apr 28, 2006 10:59 pm    Post subject: Reply with quote

die bootparameter habe ich aus der howto von gentoo-wiki übernommen
http://de.gentoo-wiki.com/Eigene_LiveCD_bauen_ohne_catalyst
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2953
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Fri Apr 28, 2006 11:20 pm    Post subject: Reply with quote

"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
View user's profile Send private message
abcdeef
Tux's lil' helper
Tux's lil' helper


Joined: 24 Sep 2003
Posts: 88

PostPosted: Fri Apr 28, 2006 11:55 pm    Post subject: Reply with quote

fest
Back to top
View user's profile Send private message
doedel
Guru
Guru


Joined: 05 Feb 2006
Posts: 579
Location: Denmark

PostPosted: Sat Apr 29, 2006 5:47 am    Post subject: Reply with quote

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
View user's profile Send private message
abcdeef
Tux's lil' helper
Tux's lil' helper


Joined: 24 Sep 2003
Posts: 88

PostPosted: Tue May 02, 2006 7:48 am    Post subject: Reply with quote

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
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2953
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Tue May 02, 2006 8:05 am    Post subject: Reply with quote

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
View user's profile Send private message
abcdeef
Tux's lil' helper
Tux's lil' helper


Joined: 24 Sep 2003
Posts: 88

PostPosted: Tue May 02, 2006 10:18 am    Post subject: Reply with quote

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
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2953
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Tue May 02, 2006 6:44 pm    Post subject: Reply with quote

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. :x
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
abcdeef
Tux's lil' helper
Tux's lil' helper


Joined: 24 Sep 2003
Posts: 88

PostPosted: Tue May 02, 2006 8:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
abcdeef
Tux's lil' helper
Tux's lil' helper


Joined: 24 Sep 2003
Posts: 88

PostPosted: Tue May 02, 2006 8:32 pm    Post subject: Reply with quote

squashfs ist fest drin
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2953
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Tue May 02, 2006 10:00 pm    Post subject: Reply with quote

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 :)
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
abcdeef
Tux's lil' helper
Tux's lil' helper


Joined: 24 Sep 2003
Posts: 88

PostPosted: Wed May 03, 2006 8:40 am    Post subject: Reply with quote

die "echo" sehe ich garnicht
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2953
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Wed May 03, 2006 11:42 am    Post subject: Reply with quote

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
View user's profile Send private message
abcdeef
Tux's lil' helper
Tux's lil' helper


Joined: 24 Sep 2003
Posts: 88

PostPosted: Wed May 03, 2006 1:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2953
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Wed May 03, 2006 2:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
abcdeef
Tux's lil' helper
Tux's lil' helper


Joined: 24 Sep 2003
Posts: 88

PostPosted: Wed May 03, 2006 3:00 pm    Post subject: Reply with quote

screenshot
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2953
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Wed May 03, 2006 6:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
abcdeef
Tux's lil' helper
Tux's lil' helper


Joined: 24 Sep 2003
Posts: 88

PostPosted: Wed May 03, 2006 7:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
abcdeef
Tux's lil' helper
Tux's lil' helper


Joined: 24 Sep 2003
Posts: 88

PostPosted: Wed May 03, 2006 7:30 pm    Post subject: Reply with quote

und die config vom kernel ist weiter oben zu sehen
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2953
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Wed May 03, 2006 8:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
abcdeef
Tux's lil' helper
Tux's lil' helper


Joined: 24 Sep 2003
Posts: 88

PostPosted: Thu May 04, 2006 3:03 pm    Post subject: Reply with quote

@pablo_supertux kann ich deine kernel-config (der livecd) bekommen?
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2953
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Thu May 04, 2006 5:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
abcdeef
Tux's lil' helper
Tux's lil' helper


Joined: 24 Sep 2003
Posts: 88

PostPosted: Thu May 04, 2006 7:53 pm    Post subject: Reply with quote

das initrd ist das problem; gibt es eine möglichkeit es es zu überspringen?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum