Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Probleme beim booten (eventl Kernel?)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Bjay
n00b
n00b


Joined: 06 Oct 2005
Posts: 16

PostPosted: Mon Oct 10, 2005 11:43 am    Post subject: Probleme beim booten (eventl Kernel?) Reply with quote

Hallo, ich bastel derzeit ein livesystem das auf einem Usb Stick kommt
bin nach dem howto http://gentoo-wiki.com/HOWTO_build_a_LiveCD_from_scratch#Building_the_LiveCD vorgegangen.

Nun startet grub mit den kernel,

dann beim booten kommt die meldung Freeing unused Kernel memory 220k freed

danach direkt das er den usbstick erkannt hat
Code:

    Vendor : Kingston  Model: Datatraveler 2.0
    .
    .
    .
    //gekürzt
SCSI device sda: 1001472 512- Byte hdwr sectors (513 MB)
sda: Write Protect ist off
sda: assuming drive cache: write through
SCSI device sda: 1001472 512- Byte hdwr sectors (513 MB)
sda: Write Protect ist off
sda: assuming drive cache: write through

// das wird wirklich 2 mal geschrieben
sda: sda1
Attached scsi removable disk sda at scsi0, channel0,id 0 lun 0


menu.lst von grub
Code:

default 0
timeout 0

title= Linux
        root (hd0,0)
        kernel (hd0,0)/boot/vmlinuz root=/dev/ram0 rw init=/linuxrc cdroot
        initrd (hd0,0)/boot/initrd


initrd
Code:

drwxr-xr-x  10 root root  1024 Sep 14 09:01 .
drwxr-xr-x  11 root root  4096 Oct  4 11:24 ..
drwxr-xr-x   2 root root  1024 Sep 14 09:37 bin
drwxr-xr-x   2 root root  1024 Sep 12 10:17 cdrom
drwxr-xr-x   2 root root  1024 Sep 12 10:28 dev
drwxr-xr-x   2 root root  1024 Sep 12 10:18 etc
-rwxr-xr-x   1 root root   369 Sep 14 11:54 find
drwxr-xr-x   2 root root  1024 Sep 12 10:23 lib
-rwxr-xr-x   1 root root  1191 Oct 10 11:07 linuxrc
drwx------   2 root root 12288 Sep 12 10:17 lost+found
drwxr-xr-x   2 root root  1024 Sep 12 10:17 new
drwxr-xr-x   2 root root  1024 Sep 12 10:17 proc


linuxrc
Code:

#!/bin/sh
export PATH=/bin

# Get kernel CMDLINE
mount -t proc none /proc
CMDLINE=`cat /proc/cmdline`
umount /proc

# Mount CD device
CDROM=""

for x in sda sdb
do
  mount -t vfat -r /dev/${x} /cdrom > /dev/null 2>&1
  if [ "$?" = "0" ]
  then
    CDROM="${x}"
    break
  fi
done

#auskommentiert da es von usb booten soll
#for x in hda hdb hdc hdd
#do
#  mount -t iso9660 -r /dev/${x} /cdrom > /dev/null 2>&1
#  if [ "$?" = "0" ]
#  then
#    CDROM="${x}"
#    break
#  fi
#done

# CD not found
if [ "${CDROM}" == "" ]
then
  exec /bin/sh
  exit
fi

# Mount root and create read-write directories
mount -t squashfs -o loop /cdrom/files/source.img /new > /dev/null 2>&1
mount -t tmpfs -o size=32m none /new/var > /dev/null 2>&1
mount -t tmpfs -o size=32m 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

# Pivot root and start real init
cd /new
pivot_root . newroot
exec chroot . /bin/sh <<- EOF >dev/console 2>&1
exec /sbin/init ${CMDLINE}
EOF



kann mir jemand helfen wo mein fehler liegen könnte?
Back to top
View user's profile Send private message
Hungry Hugo
Apprentice
Apprentice


Joined: 23 Aug 2005
Posts: 261
Location: Germany FFM

PostPosted: Mon Oct 10, 2005 12:11 pm    Post subject: Reply with quote

Servus Bjay,

schau dir mal das HowTo von Inte an das ist wirklich spitze.

Gruß Hungry Hugo
_________________
Gentoo El Nino ( 2005.1 ) / Kernel 2.6.12-r6
Fujitsu-Siemens M7400
--
registered linux user # 398138
Back to top
View user's profile Send private message
Bjay
n00b
n00b


Joined: 06 Oct 2005
Posts: 16

PostPosted: Mon Oct 10, 2005 9:35 pm    Post subject: Reply with quote

Hi danke für den link aber auch mit deren kernel einstellungen tritt der gleiche fehler auf, der boot prozess ist ja auch identisch mit dem vom howto.

Irgendwie bin ich mit meinem latein am ende, dachte erst das er die images bzw die tar.gz's in den speicher läd nur ich sehe auf dem usb stick kein blinken.

nun stehe ich da und weis nicht weiter :(
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
Page 1 of 1

 
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