View previous topic :: View next topic |
Author |
Message |
MdaG l33t


Joined: 09 Nov 2004 Posts: 945 Location: Stockholm, Sverige
|
Posted: Mon Jan 17, 2005 10:02 pm Post subject: Borked my system after changing to udev[fixed!] |
|
|
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 |
|
 |
MdaG l33t


Joined: 09 Nov 2004 Posts: 945 Location: Stockholm, Sverige
|
Posted: Mon Jan 17, 2005 10:45 pm Post subject: |
|
|
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 |
|
 |
kamagurka Veteran


Joined: 25 Jan 2004 Posts: 1026 Location: /germany/munich
|
Posted: Mon Jan 17, 2005 11:11 pm Post subject: |
|
|
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 |
|
 |
MdaG l33t


Joined: 09 Nov 2004 Posts: 945 Location: Stockholm, Sverige
|
Posted: Mon Jan 17, 2005 11:17 pm Post subject: |
|
|
Can I add uid=$USER to my fstab? |
|
Back to top |
|
 |
kamagurka Veteran


Joined: 25 Jan 2004 Posts: 1026 Location: /germany/munich
|
Posted: Mon Jan 17, 2005 11:38 pm Post subject: |
|
|
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 |
|
 |
Trebiani Tux's lil' helper

Joined: 18 Dec 2003 Posts: 132 Location: Graz, AT
|
Posted: Tue Jan 18, 2005 11:42 am Post subject: |
|
|
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 |
|
 |
mattc n00b

Joined: 26 May 2003 Posts: 25 Location: Norderstedt, Germany
|
Posted: Wed Jan 19, 2005 11:42 am Post subject: How did you get it to work PLEASE |
|
|
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 |
|
 |
MdaG l33t


Joined: 09 Nov 2004 Posts: 945 Location: Stockholm, Sverige
|
Posted: Wed Jan 19, 2005 12:27 pm Post subject: |
|
|
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 |
|
 |
mattc n00b

Joined: 26 May 2003 Posts: 25 Location: Norderstedt, Germany
|
Posted: Thu Jan 20, 2005 6:43 am Post subject: Thanks |
|
|
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.
Matt |
|
Back to top |
|
 |
|