Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Borked my system after changing to udev[fixed!]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
MdaG
l33t
l33t


Joined: 09 Nov 2004
Posts: 945
Location: Stockholm, Sverige

PostPosted: Mon Jan 17, 2005 10:02 pm    Post subject: Borked my system after changing to udev[fixed!] Reply with quote

As the title suggest it's not working anymore. I followed the Gentoo udev-guide with

Code:
# genkernel --udev --menuconfig all
# emerge udev


Removing support in menuconfig for devfs which was a huge mistake. Now it doesn't recognise my root (hda4) and won't boot.

This is the error message:
Code:
.
.
.
>> Block device /dev/hda4 is not a valid root device...
>> The root block device is unspecified or not detected.
.
.
.


How do I fix this. I know I could boot up with the live-CD and reenable the option for devfs, but I'm suppose to be able to live without that, or?
I'm not good at chrooting and such either, if I have to do some of that how is it done?


Last edited by MdaG on Mon Jan 17, 2005 10:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
MdaG
l33t
l33t


Joined: 09 Nov 2004
Posts: 945
Location: Stockholm, Sverige

PostPosted: Mon Jan 17, 2005 10:45 pm    Post subject: Reply with quote

Nevermind that chrooting part, I managed on my own. It's working fine. But even though I've enables udev. I still can't access external devices with regular users.
Back to top
View user's profile Send private message
kamagurka
Veteran
Veteran


Joined: 25 Jan 2004
Posts: 1026
Location: /germany/munich

PostPosted: Mon Jan 17, 2005 11:11 pm    Post subject: Reply with quote

MdaG wrote:
Nevermind that chrooting part, I managed on my own. It's working fine. But even though I've enables udev. I still can't access external devices with regular users.

i don't think udev is supposed to give your users access to external drives (i suppose you are talking about usb-drives and the likes), unless there is some option in the config you have to activate. just write a rule for the device so it always connects at the same node, then put it in fstab with "user" in the options. or mount the thing as root with "-o uid=$USER".
_________________
If you loved me, you'd all kill yourselves today.
--Spider Jerusalem, the Word
Back to top
View user's profile Send private message
MdaG
l33t
l33t


Joined: 09 Nov 2004
Posts: 945
Location: Stockholm, Sverige

PostPosted: Mon Jan 17, 2005 11:17 pm    Post subject: Reply with quote

Can I add uid=$USER to my fstab?
Back to top
View user's profile Send private message
kamagurka
Veteran
Veteran


Joined: 25 Jan 2004
Posts: 1026
Location: /germany/munich

PostPosted: Mon Jan 17, 2005 11:38 pm    Post subject: Reply with quote

i think so. but with the user option, uid will be set to the user who issued the mounting command anyways.
_________________
If you loved me, you'd all kill yourselves today.
--Spider Jerusalem, the Word
Back to top
View user's profile Send private message
Trebiani
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2003
Posts: 132
Location: Graz, AT

PostPosted: Tue Jan 18, 2005 11:42 am    Post subject: Reply with quote

MdaG wrote:
Nevermind that chrooting part, I managed on my own. It's working fine. But even though I've enables udev. I still can't access external devices with regular users.


how did you get it working? i had no luck with "pure" udev .....
thanx in advance,
treb
Back to top
View user's profile Send private message
mattc
n00b
n00b


Joined: 26 May 2003
Posts: 25
Location: Norderstedt, Germany

PostPosted: Wed Jan 19, 2005 11:42 am    Post subject: How did you get it to work PLEASE Reply with quote

I have the same error.

.
.
.
>> Block device /dev/hda3 is not a valid root device...
>> The root block device is unspecified or not detected.
.
.
Please tell me how you got it to work .

Thanks in advance
Matt
Back to top
View user's profile Send private message
MdaG
l33t
l33t


Joined: 09 Nov 2004
Posts: 945
Location: Stockholm, Sverige

PostPosted: Wed Jan 19, 2005 12:27 pm    Post subject: Reply with quote

I assume you're talking about the chrooting part...

... if so, boot up with the live CD and do:

Code:
# mount /dev/<root> /mnt/gentoo
# swapon /dev/<swap>
# mount /dev/<boot> /mnt/gentoo/boot
# mount -t proc none /mnt/gentoo/proc
# chroot /mnt/gentoo /bin/bash
# env-update
# source /etc/profile


and rebuild your kernel with the options you used to have.

ex.) If you used genkernel:

Code:
# genkernel --menuconfig --oldconfig all
Back to top
View user's profile Send private message
mattc
n00b
n00b


Joined: 26 May 2003
Posts: 25
Location: Norderstedt, Germany

PostPosted: Thu Jan 20, 2005 6:43 am    Post subject: Thanks Reply with quote

It wasn't the chroot stuff I needed, but the fact that you need to recompile the kernel. Did that, still didn't work. Then I found the magic 2 part solution:

hotplug --> Must be started at boot level not the default level
add gentoo=nodevfs to the kernel boot line in grub / lilo

My system now works well.

:D Matt
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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