Closed dbbbit closed 7 years ago
[ 1.748156] scsi host1: ata_piix [ 1.750041] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc080 irq 14 [ 1.750429] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc088 irq 15 [ 1.755023] tun: Universal TUN/TAP device driver, 1.6 [ 1.762189] i8042: PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12 [ 1.767877] serio: i8042 KBD port at 0x60,0x64 irq 1 [ 1.768768] serio: i8042 AUX port at 0x60,0x64 irq 12 [ 1.773432] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0 [ 1.775472] rtc_cmos 00:00: RTC can wake from S4 [ 1.777777] rtc_cmos 00:00: rtc core: registered rtc_cmos as rtc0 [ 1.779143] rtc_cmos 00:00: alarms up to one day, 114 bytes nvram, hpet irqs [ 1.792398] drop_monitor: Initializing network drop monitor service [ 1.795405] NET: Registered protocol family 17 [ 1.797080] 9pnet: Installing 9P2000 support [ 1.798156] Key type dns_resolver registered [ 1.800925] sched_clock: Marking stable (1800308330, 0)->(1912607278, -112298948) [ 1.806960] registered taskstats version 1 [ 1.810421] rtc_cmos 00:00: setting system clock to 2017-09-17 03:54:20 UTC (1505620460) [ 1.926686] ata2.00: ATAPI: QEMU DVD-ROM, 2.5+, max UDMA/100 [ 1.928785] ata2.00: configured for MWDMA2 [ 1.937838] scsi 1:0:0:0: CD-ROM QEMU QEMU DVD-ROM 2.5+ PQ: 0 ANSI: 5 [ 1.949431] VFS: Cannot open root device "vda1" or unknown-block(254,1): error -6 [ 1.949787] Please append a correct "root=" boot option; here are the available partitions: [ 1.951671] fe00 1025024 vda [ 1.951708] driver: virtio_blk [ 1.954568] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(254,1) [ 1.958654] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.13.2 #4 [ 1.959420] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Ubuntu-1.8.2-1ubuntu1 04/01/2014 [ 1.960457] Call Trace: [ 1.961302] ? dump_stack+0x5e/0x84 [ 1.961425] ? panic+0xd7/0x224 [ 1.962654] ? printk+0x43/0x4b [ 1.966143] ? mount_block_root+0x27b/0x292 [ 1.967354] ? prepare_namespace+0x136/0x16c [ 1.969235] ? kernel_init_freeable+0x1dd/0x1eb [ 1.970634] ? rest_init+0xb4/0xb4 [ 1.974318] ? kernel_init+0xa/0xf0 [ 1.974717] ? ret_from_fork+0x27/0x40 [ 1.976461] Kernel Offset: disabled [ 1.977074] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(254,1)
试过改 if=ide root=/dev/sda1 也是 panic
dbbbit@ubuntu:~/red/linux-4.13.2$ uname -a Linux ubuntu 4.4.0-57-generic #78-Ubuntu SMP Fri Dec 9 23:50:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
可能是什么问题呢
-kernel arch/x86_64/boot/bzImage \ + -initrd arch/x86_64/boot/initrd.img.4.13.2 \ -append "rw console=ttyS0 root=/dev/vda1 init=/bin/bash"
sloved
试过改 if=ide root=/dev/sda1 也是 panic
dbbbit@ubuntu:~/red/linux-4.13.2$ uname -a Linux ubuntu 4.4.0-57-generic #78-Ubuntu SMP Fri Dec 9 23:50:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
可能是什么问题呢