LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 10-28-2008, 07:40 AM   #1
victorlin
LQ Newbie
 
Registered: Oct 2008
Posts: 2

Rep: Reputation: 0
Cannot open dev/console


Hi,

I am building a linux on USB disk. I compile linux kernel by myself. I have installed grub and linux-image , initrd-image and busybox into usb. I have boot successfully with qemu.


The screen shot


As you see I can boot under qemu. But when I think I did it... I boot it with real computer, I got error messages

Quote:
umount: devfs: not mounted
mount: unknown filesystem type 'devfs'
umount: devfs: not mounted
pivot_root: No such file or directory
/sbin/init: 432: cannot open dev/console: No such file
Kernel panic - not syncing: Attempted to kill init!
Why? What am I doing wrong? This is the configure of grub:

Code:
    default 0
    timeout 10

    title Victor’s USB Live Linux
    root (hd0,0)
    kernel /boot/linux.img-2.6.22.2
    initrd /boot/initrd.img-2.6.22.2
And I have created console and tty with mknod. I have no idea why it can't find dev/console.

Could someone help me? Thanks a lot.

Victor Lin.
 
Old 10-29-2008, 03:34 AM   #2
cladisch
Member
 
Registered: Oct 2008
Location: Earth
Distribution: Slackware
Posts: 228

Rep: Reputation: 54
Quote:
Originally Posted by victorlin View Post
Code:
mount: unknown filesystem type 'devfs'
Why? What am I doing wrong?
You are trying to use devfs, which was removed in 2.6.18.

You can either use udev (in which case you'd mount /dev as tmpfs and, of course, run udev), or you can use a static /dev (in which case you have to create the device nodes manually before booting that system).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
INIT: open(/dev/console): Input/output error pazkaw Slackware 13 03-25-2008 05:15 PM
"Cannot open dev/console" - New Kernel thyrf Linux - Software 1 02-11-2008 09:20 AM
INIT: open(/dev/console): Input/output error nykey Slackware 12 09-21-2006 03:30 PM
432 can't open /dev/console billdlv81 Debian 1 06-23-2006 11:37 AM
open(/dev/console): Input/Output error fintanmcevoy General 2 11-18-2005 06:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 11:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration