View previous topic :: View next topic |
Author |
Message |
fldc2 Tux's lil' helper
Joined: 14 Jun 2006 Posts: 112 Location: Motala, Sweden
|
Posted: Thu Jan 03, 2008 10:40 pm Post subject: Unable to open initial console after moving sys to new drive |
|
|
The problem is that when the kernel boots the error message "Unable to open initial console"
appears and no further boot messages is shown until agetty starts login, so everything starts up fine.
I guess this problem first appeared after i copied my old drive with 'cp -ax / /newdrive' to a new one and installed grub and booted it.
What could of gone wrong with this copy? |
|
Back to top |
|
|
Voltago Advocate
Joined: 02 Sep 2003 Posts: 2593 Location: userland
|
Posted: Thu Jan 03, 2008 11:35 pm Post subject: |
|
|
I guess you borked your /dev directory (copying device nodes needs some special options, see 'man cp'). A simple thing you could try is booting from live cd, chrooting into your system, and executing
|
|
Back to top |
|
|
fldc2 Tux's lil' helper
Joined: 14 Jun 2006 Posts: 112 Location: Motala, Sweden
|
Posted: Thu Jan 03, 2008 11:44 pm Post subject: |
|
|
Voltago wrote: | I guess you borked your /dev directory (copying device nodes needs some special options, see 'man cp'). A simple thing you could try is booting from live cd, chrooting into your system, and executing
|
As i said, my system still boots fine, i just can't see any boot messages when the kernel has finished loading.
I didn't want to copy my /dev, cp -a will properly copy them if not using -x as in this case, the system is using udev to populate /dev,
their all there upon boot. |
|
Back to top |
|
|
fldc2 Tux's lil' helper
Joined: 14 Jun 2006 Posts: 112 Location: Motala, Sweden
|
Posted: Thu Jan 03, 2008 11:54 pm Post subject: |
|
|
Thinking again, maybe i do need some basic devices like /dev/console upon boot before udev starts populating /dev? Seems logical, hehe |
|
Back to top |
|
|
healthkxy n00b
Joined: 28 Sep 2007 Posts: 11
|
Posted: Wed Jun 04, 2008 9:46 am Post subject: |
|
|
I have the same problem. I changed my harddisk. tar the whole / system ,and uncompressed to my new harddisk.then install grub.reboot.
excpet this warning: unable to open inital console,everything is ok.
I have the /dev/console and /dev/null. |
|
Back to top |
|
|
tarpman Veteran
Joined: 04 Nov 2004 Posts: 1083 Location: Victoria, BC, Canada
|
Posted: Fri Jun 06, 2008 6:20 pm Post subject: |
|
|
healthkxy wrote: | I have the /dev/console and /dev/null. |
You've checked that they are device nodes and not just regular files?
ls -l /dev/console /dev/null: | crw------- 1 root wheel 0, 29 6 Jun 10:58 /dev/console
crw-rw-rw- 1 root wheel 0, 12 6 Jun 11:11 /dev/null |
_________________ Saving the world, one kilobyte at a time. |
|
Back to top |
|
|
healthkxy n00b
Joined: 28 Sep 2007 Posts: 11
|
Posted: Sun Jun 08, 2008 3:21 pm Post subject: |
|
|
tarpman wrote: | healthkxy wrote: | I have the /dev/console and /dev/null. |
You've checked that they are device nodes and not just regular files?
ls -l /dev/console /dev/null: | crw------- 1 root wheel 0, 29 6 Jun 10:58 /dev/console
crw-rw-rw- 1 root wheel 0, 12 6 Jun 11:11 /dev/null |
|
# ls -l /dev/console /dev/null
crw------- 1 root root 5, 1 2008-06-09 /dev/console
crw-rw-rw- 1 root root 1, 3 2008-06-09 /dev/null |
|
Back to top |
|
|
|