Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to open initial console after moving sys to new drive
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
fldc2
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jun 2006
Posts: 112
Location: Motala, Sweden

PostPosted: Thu Jan 03, 2008 10:40 pm    Post subject: Unable to open initial console after moving sys to new drive Reply with quote

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
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Thu Jan 03, 2008 11:35 pm    Post subject: Reply with quote

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
Code:
MAKEDEV
Back to top
View user's profile Send private message
fldc2
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jun 2006
Posts: 112
Location: Motala, Sweden

PostPosted: Thu Jan 03, 2008 11:44 pm    Post subject: Reply with quote

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
Code:
MAKEDEV

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
View user's profile Send private message
fldc2
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jun 2006
Posts: 112
Location: Motala, Sweden

PostPosted: Thu Jan 03, 2008 11:54 pm    Post subject: Reply with quote

Thinking again, maybe i do need some basic devices like /dev/console upon boot before udev starts populating /dev? :D Seems logical, hehe
Back to top
View user's profile Send private message
healthkxy
n00b
n00b


Joined: 28 Sep 2007
Posts: 11

PostPosted: Wed Jun 04, 2008 9:46 am    Post subject: Reply with quote

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
View user's profile Send private message
tarpman
Veteran
Veteran


Joined: 04 Nov 2004
Posts: 1083
Location: Victoria, BC, Canada

PostPosted: Fri Jun 06, 2008 6:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
healthkxy
n00b
n00b


Joined: 28 Sep 2007
Posts: 11

PostPosted: Sun Jun 08, 2008 3:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum