[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: initramfs prompt



Darac Marjal wrote:
add root=<device>:

Hello Darac.

# Partiton table:

#1  pri  ?      sda1       ?      ?         # make by OS automatically
#5  log  0.45   sda5   B   ext4   /
#6  log  12.0   sda6       ext4   /home
#7  log  9.6    sda7       ext4   /usr
#8  log  3.2    sda8       ext4   /var
#9  log  0.8    sda9       ext4   /swap
#10 log  0.5    sda10      ext4   /tmp
#11 log  1.0    sda11      ext4   /install
#2  pri  2.5    sda2       fat32  /windows
-------------------------------------------
my partition table is from sda5 - sda2, sda1 was make by OS automatically (from dmesg: [ 2.484098] sda: sda1 < sda5 sda6 sda7 sda8 sda9 sda10 sda11 > sda2). I put the bootflag on a logical partition (sda5), the debian installer warned me,
but i ignored it.

After the installation, for fix it, i make on the commandline of Grub:

parttool hd0,2 boot+

[to make the selected partition be the active (bootable) partition on its disk, clearing the active flag on all other partitions. - GNU GRUB Manual 2.00.html#parttool]
------------------------------------

# Grub boot menu completely after installation:

load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 6d0c6734-04ea-406d-8b23-e07ae7396fdd
echo 'Loading Linux 3.2.0-4-686-pae ...'
linux /boot/vmlinuz- 3.2.0-4-686-pae root=UUID=6d0c6734-04ea-406d-8b23-e07ae7396fdd
 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-4-686-pae
-----------------------------------------

In this constellation the initiation isn't sucessfully, only reach "pcmcia-sockets ...",
then the screen turns black and the initiation stops without a prompt.

Without "root=UUID=6d0c6734-04ea-406d-8b23-e07ae7396fdd" it reach the initramfs prompt.

"root=/dev/sda5" in the boot menu does the same as
"root=UUID=6d0c6734-04ea-406d-8b23-e07ae7396fdd".

Others as "hd0,msdos5", "hd0,5", "/dev/sda2", "label=rootfs", "Label=rootfs" reach only the initramfs prompt. (I have found rootfs in /proc/mount: rootfs /
rootfs rw 0 0)

With '--set=root 430a2f6f-b3ae-480f-959f-60568d6512f3' and 'root=UUID=430a2f6f- b3ae-480f-959f-60568d6512f3' (=sda2) not initiate and give message: "error: file not
found. error: you need to load the kernel first."
-------------------------------------------------

# output from ls
(initramfs) ls
bin conf dev etc init lib proc root run sbin scripts sys
tmp   var

(initramfs) ls /root
<empty>

(initramfs) ls /scripts
functions   init-bottom   init-top   local   local-premount   nfs

(initramfs) ls /sys
block bus class dev devices firmware fs hypervisor kernel
module   power

(initramfs) ls /conf
arch.conf   /conf.d/resume   initramfs.conf

(initramfs) ls /etc
ld.so.cache ld.so.conf /ld.so.conf.d/ /modprobe.d/ /udev/udev.conf

(initramfs) ls /init
/init <empty>



Julien wrote:
locate harddrive:

Hello Julien

(initramfs) sfdisk -l
/bin/sh: sfdisk: not found
#and
(initramfs) cd /bin
(initramfs) ln -s busybox sfdisk
(initramfs) sfdisk -l
/bin/sh: sfdisk: applet not found
---------------------------------

# Here the output of 'help' from busybox:
(initramfs) help
Built-in commands:
. : [ [[ alias bg break cd chdir command continue echo
eval   exec   exit   export   false   fg   getopts   hash   help   jobs
kill let local printf pwd read readonly return set shift source test times trap true type ulimit umask unalias unset
wait   [   [[   adjtimex   ar   arp   arping   ash   awk   basename
blockdev   brctl   bunzip2   bzcat   bzip2   cal   cat   chgrp   chmod
chown chroot chvt clear cmp cp cpio cttyhack cut date dc
dd   deallocvt   depmod   df   diff   dirname   dmesg   dnsdomainename
dos2unix du dumpkmap dumpleases echo egrep env expand expr false fgrep find fold free freeramdisk ftpget ftpput getopt
getty   grep   groups   gunzip   gzip   halt   head   hexdump   hostid
hostname httpd hwclock id ifconfig init insmod ionice ip ipcalc kill killall klogd last less ln loadfont loadkmap logger login logname logread losetup ls lsmod lzcat lzma md5sum mdev microcom mkdir mkfifo nknod mkswap mktemp modinfo modprobe more mount mt mv nameif nc netstat nslookup od openvt patch pidof ping ping6 pivot_root poweroff printf ps
pwd   rdate   readlink   realpath   reboot   renice   reset   rev   rm
rmdir rmmod route rpm rpm2cpio run-parts sed seq setkeycodes
setsid   sh   sha1sum   sha256sum   sha512sum   sleep   sort
start-stop-daemon stat strings stty swapoff swapon switch_root sync sysctl syslogd tac tail tar taskset tee telnet test tftp time timeout top touch tr traceroute traceroute6 true
tty   udhcpc   udhcpd   umount   uname   uncompress   unexpand   uniq
unix2dos unlzma unxz unzip uptime usleep uudecode uuencode vconfig vi watch watchdog wc wget which who whoami xargs
xz   xzcat   yes   zcat
-----------------------

# output from ls

(initramfs) ls /sbin
blkid   dmsetup   modprobe   rmmod   udevadm   udevd

(initramfs) ls /bin
busybox cat chroot cpio dd dmesg false fstype gunzip gzip halt insmod ipconfig kill kmod ln losetup ls minips mkdir mkfifo mknod mount mv nfsmount nuke pivot_root poweroff readlink
reboot   resume   run-init   sh   sleep   sync   true   umount   uname


Thanks for your help

P.S.:
When i posted "Initramfs prompt" first, i have thought in a solution for write on the disk of the laptop like 'sync' or 'freeramdisk' (but i don't
know much about Linux at all) for then after make it easier to find the
error at the DHCP server or ethernetcard configuration on my desktop PC. I wanted a new installation with pxe (The BIOS of my Laptop have the option
to boot from Lan).

bye




Reply to: