On Tue, May 17, 2011 at 12:43 PM, Bei Guan <
gbtju85@xxxxxxxxx> wrote:
>
>> > You appear to be getting dumped into a debug shell within the
>> > initramfs
>> > so you can quite easily have a poke around and see what's
>> > going on I
>> > think.
>> >
>> >
>> > Sorry, can you give me more detail about how to do this? What command
>> > or what others? Many thanks.
>>
>> It's a minimal Linux environment, you should have e.g. "ls" and "cat".
>> Try and find the mount command which is failing.
>
> I did the following command to find the failed mount command. But, it seems
> can't find that. So, is there any problem with my steps and what other work
> can I do?
When you get dropped into the minimal (initramfs) prompt it gives you
some good suggestions.
For example. You can do "ls /dev" and "cat /proc/modules" and you can
probably even try to run a mount command maybe. You can also
double-check things like "cat /proc/cmdline", etc.
See if you can determine what devices in /dev are actually available,
such as your sda, hda, or xvda devices.
Some boot information got from initramfs is list below. It seems that the /dev/sda9 is available, but there no drivers module in /proc/modules. I also can't mount /dev/sda9 to other directory. So, what's the problem with it? And if a device that need to be mount can't be found in the /dev, what should I do to make it available?
(initramfs) cat /proc/cmdline
nopat root=/dev/sda9 ro console=tty0 console=ttyS0,115200n8 console=hvc0 earlyprintk=xen nomodeset initcall_debug debug loglevel=10
(initramfs) ls /dev
console ttyS1 hvc6 tty41
null ttyS2 hvc7 tty44
pts ttyS3 ptmx tty43
loop0 rtc0 tty bsg
block rtc tty0 sg1
loop1 hidraw0 tty1 tty46
loop3 ttyS0 tty10 tty45
loop4 cpu tty11 tty47
loop5 sda tty12 tty48
loop2 disk tty13 tty49
loop7 full tty14 tty5
ram10 kmem tty15 tty50
ram7 kmsg tty16 tty51
loop6 mem tty17 tty52
ram1 oldmem tty18 tty53
ram0 port tty19 tty54
ram13 random tty2 tty55
ram11 urandom tty20 tty56
ram3 zero tty21 tty57
ram12 autofs tty22 tty58
ram15 blktap-control tty23 tty59
ram14 cpu_dma_latency tty24 tty6
ram9 mapper tty26 tty60
ram2 mcelog tty27 tty62
ram5 hpet tty28 tty61
ram4 network_latency tty29 tty7
ram8 network_throughput tty3 tty63
ram6 rfkill tty30 tty9
input snapshot tty32 tty8
char net tty31 vcs
usbmon3 vga_arbiter tty25 usbmon0
bus watchdog sr0 vcsa
adsp nvram scd0 vcs1
audio xen tty35 vcsa1
dsp sequencer tty36 sda8
snd sequencer2 tty34 sda2
mixer hvc0 tty37 sda7
usbmon1 hvc1 tty33 sda5
usbmon4 hvc2 tty39 sda6
usbmon5 hidraw1 tty38 sda9
usbmon6 hvc3 tty4 sda1
usbmon7 hvc4 tty42
usbmon2 hvc5 tty40
(initramfs) cat /proc/modules
(initramfs)
(initramfs) mount -o /dev/sda9 /root
mount: cannot read /etc/fstab: No such file or directory
(initramfs) ls /etc
modprobe.d default lvm console-setup udev
(initramfs) fstype /dev/sda9
FSTYPE=ext4dev
FSSIZE=33738981376
(initramfs) ls /
dev lib64 var init conf scripts proc
root lib bin etc sbin sys tmp
Hope that helps.
Thanks,
Todd
> (initramfs) dmeg | grep mount
> (initramfs)
> (initramfs) cat /proc/mounts
> rootfs / rootfs rw 0 0
> none /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
> none /proc proc rw,nosuid,nodev,noexec,relatime 0 0
> none /dev tmpfs rw,relatime,mode=755 0 0
> none /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0
> (initramfs)
>
> Thanks,
> Bei Guan
>
>>
>> Ian.
>> >
>> >
>> >
>> >
>> > Ian.
>> >
>> >
>> >
>>
>>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
>
>
--
Todd Deshane
http://www.linkedin.com/in/deshantm
http://www.xen.org/products/cloudxen.html
http://runningxen.com/