Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No disk devices in /dev (solved)
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
mjs
Tux's lil' helper
Tux's lil' helper


Joined: 07 Mar 2007
Posts: 91
Location: Dallas, TX.

PostPosted: Fri Nov 09, 2012 8:47 pm    Post subject: No disk devices in /dev (solved) Reply with quote

I've got a bit of a dilemma with one of my very remote servers. I hadn't updated it in a while and when I did, it seemed to go ok with no errors. Upon reboot it comes up but doesn't mount the attached esata drive.

Running "fdisk -l" returns nothing. The sd* devices are missing from /dev. Upon further searching it seems this might be due to an out of date kernel. Assuming this is the issue, I've got a new kernel ready to go, but my /boot partition isn't mounted so I can't copy the bzImage file. I can't convert it to a /boot directory on the mounted rootfs partition as I can't run grub-install against /dev/sda as it doesn't exist.

Is there anything else I can do short of driving out to fix?

Thanks

Linux mon-rmc 2.6.31-gentoo-r6 #1 SMP Wed Jan 6 13:05:52 CST 2010 i686 Intel(R) Pentium(R) Dual CPU E2180 @ 2.00GHz GenuineIntel GNU/Linux


Last edited by mjs on Fri Nov 09, 2012 9:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31713
Location: 56N 3W

PostPosted: Fri Nov 09, 2012 8:55 pm    Post subject: Reply with quote

mjs,

Try mknod. The devices may well well be there but the device nodes are missing

Code:
mknod -m 660 /dev/sda1 b 8 1
Code:
$ ls -l /dev/sda*
brw-rw---- 1 root disk 8, 0 Nov  9 17:47 /dev/sda
brw-rw---- 1 root disk 8, 1 Nov  9 17:47 /dev/sda1
brw-rw---- 1 root disk 8, 2 Nov  9 17:47 /dev/sda2
brw-rw---- 1 root disk 8, 4 Nov  9 17:47 /dev/sda4
brw-rw---- 1 root disk 8, 5 Nov  9 17:47 /dev/sda5
brw-rw---- 1 root disk 8, 6 Nov  9 17:47 /dev/sda6
gives you major and minor numbers for sda to sda6.

You can find all the numbers in /usr/src/linux/Documentation/devies.txt

After you have mad e the nodes, try mounting the filesystems. I suspect udev is too new for your kernel and hasn't made any nodes.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
mjs
Tux's lil' helper
Tux's lil' helper


Joined: 07 Mar 2007
Posts: 91
Location: Dallas, TX.

PostPosted: Fri Nov 09, 2012 9:30 pm    Post subject: Reply with quote

mknod allowed me to mount the boot partition and copy the new kernel. I still had to modify the config a bit and recompile before udev would populate /dev namely this:

* CONFIG_SYSFS_DEPRECATED: should not be set. But it is.
* CONFIG_SYSFS_DEPRECATED_V2: should not be set. But it is.
* CONFIG_IDE: should not be set. But it is.
* CONFIG_BLK_DEV_BSG: is not set when it should be.

but that fixed it.

Thanks
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