Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cleaning up /dev [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
hitachi
Guru
Guru


Joined: 20 Feb 2006
Posts: 478
Location: Freiburg / Deutschland

PostPosted: Wed Oct 20, 2010 5:27 am    Post subject: cleaning up /dev [solved] Reply with quote

Hi,

I upgraded my kernel and while doing this, I also changed away from old ide to scsi. Therefor I used NeddySeagoon's guid https://forums.gentoo.org/viewtopic-p-6362608.html#6362608 My box runs without any signes of problem to the user, but somehow /dev looks strange.

Code:
ls /dev/h*

Quote:
/dev/hda /dev/hda6 /dev/hdb20 /dev/hdc17 /dev/hdd13 /dev/hde1 /dev/hde7 /dev/hdf3 /dev/hdg18 /dev/hdh14
/dev/hda1 /dev/hda7 /dev/hdb3 /dev/hdc18 /dev/hdd14 /dev/hde10 /dev/hde8 /dev/hdf4 /dev/hdg19 /dev/hdh15
/dev/hda10 /dev/hda8 /dev/hdb4 /dev/hdc19 /dev/hdd15 /dev/hde11 /dev/hde9 /dev/hdf5 /dev/hdg2 /dev/hdh16
/dev/hda11 /dev/hda9 /dev/hdb5 /dev/hdc2 /dev/hdd16 /dev/hde12 /dev/hdf /dev/hdf6 /dev/hdg20 /dev/hdh17
/dev/hda12 /dev/hdb /dev/hdb6 /dev/hdc20 /dev/hdd17 /dev/hde13 /dev/hdf1 /dev/hdf7 /dev/hdg3 /dev/hdh18
/dev/hda13 /dev/hdb1 /dev/hdb7 /dev/hdc3 /dev/hdd18 /dev/hde14 /dev/hdf10 /dev/hdf8 /dev/hdg4 /dev/hdh19
/dev/hda14 /dev/hdb10 /dev/hdb8 /dev/hdc4 /dev/hdd19 /dev/hde15 /dev/hdf11 /dev/hdf9 /dev/hdg5 /dev/hdh2
/dev/hda15 /dev/hdb11 /dev/hdb9 /dev/hdc5 /dev/hdd2 /dev/hde16 /dev/hdf12 /dev/hdg /dev/hdg6 /dev/hdh20
/dev/hda16 /dev/hdb12 /dev/hdc /dev/hdc6 /dev/hdd20 /dev/hde17 /dev/hdf13 /dev/hdg1 /dev/hdg7 /dev/hdh3
/dev/hda17 /dev/hdb13 /dev/hdc1 /dev/hdc7 /dev/hdd3 /dev/hde18 /dev/hdf14 /dev/hdg10 /dev/hdg8 /dev/hdh4
/dev/hda18 /dev/hdb14 /dev/hdc10 /dev/hdc8 /dev/hdd4 /dev/hde19 /dev/hdf15 /dev/hdg11 /dev/hdg9 /dev/hdh5
/dev/hda19 /dev/hdb15 /dev/hdc11 /dev/hdc9 /dev/hdd5 /dev/hde2 /dev/hdf16 /dev/hdg12 /dev/hdh /dev/hdh6
/dev/hda2 /dev/hdb16 /dev/hdc12 /dev/hdd /dev/hdd6 /dev/hde20 /dev/hdf17 /dev/hdg13 /dev/hdh1 /dev/hdh7
/dev/hda20 /dev/hdb17 /dev/hdc13 /dev/hdd1 /dev/hdd7 /dev/hde3 /dev/hdf18 /dev/hdg14 /dev/hdh10 /dev/hdh8
/dev/hda3 /dev/hdb18 /dev/hdc14 /dev/hdd10 /dev/hdd8 /dev/hde4 /dev/hdf19 /dev/hdg15 /dev/hdh11 /dev/hdh9
/dev/hda4 /dev/hdb19 /dev/hdc15 /dev/hdd11 /dev/hdd9 /dev/hde5 /dev/hdf2 /dev/hdg16 /dev/hdh12
/dev/hda5 /dev/hdb2 /dev/hdc16 /dev/hdd12 /dev/hde /dev/hde6 /dev/hdf20 /dev/hdg17 /dev/hdh13

The same for /dev/s* . The fstab is all sda ...

So can anyone tell my where I did something wrong?

Thanks


Last edited by hitachi on Wed Nov 10, 2010 9:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9690
Location: almost Mile High in the USA

PostPosted: Wed Oct 20, 2010 6:28 am    Post subject: Reply with quote

The default install is to use udev and a tmpfs /dev that automatically populates /dev with only relevant devices... Is this how you set up /dev ?

I also heard of some strange stuff related to having legacy EIDE drivers installed in the kernel as modules or even regular with newer versions of udev...

How is your machine set up now?
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
hitachi
Guru
Guru


Joined: 20 Feb 2006
Posts: 478
Location: Freiburg / Deutschland

PostPosted: Wed Oct 20, 2010 7:21 am    Post subject: Reply with quote

Hi,
I have udev installed and it shows up in rc-update show as udev-postmount | default.
Quote:
sys-fs/udev-151-r4 USE="extras old-hd-rules -devfs-compat (-selinux) -test"

I also Use hal and hald | default.
Quote:
sys-apps/hal-0.5.14-r2 USE="X acpi consolekit crypt -apm -debug -dell -disk-partition -doc -laptop -policykit (-selinux)"

Code:
uname -a
Quote:
Linux claudius 2.6.34-gentoo-r6 #2 SMP Tue Oct 19 20:21:56 CEST 2010 i686 Pentium III (Coppermine) GenuineIntel GNU/Linux
The kernel config can be found here: http://gentoo.pastebin.ca/1967756

Oh and it is not the box from the sig.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Wed Oct 20, 2010 7:08 pm    Post subject: Reply with quote

Quote:
sys-fs/udev-151-r4 USE="extras old-hd-rules -devfs-compat (-selinux) -test"
probable cause of excess obsoleted devices.
should not need -devfs-compat
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1931

PostPosted: Wed Oct 20, 2010 7:13 pm    Post subject: Reply with quote

If you have a relatively-recent kernel that has devtmpfs, and you have it enabled, you can go as far as to empty the /dev folder that's on the hard drive.
Back to top
View user's profile Send private message
hitachi
Guru
Guru


Joined: 20 Feb 2006
Posts: 478
Location: Freiburg / Deutschland

PostPosted: Mon Oct 25, 2010 2:49 pm    Post subject: Reply with quote

DONAHUE wrote:
Quote:
sys-fs/udev-151-r4 USE="extras old-hd-rules -devfs-compat (-selinux) -test"
probable cause of excess obsoleted devices.
should not need -devfs-compat


Changing to -old-hd-rules in udev did not change the behavier. Also trying to attach a usb device doesn't seem to be posible.
Code:
dmesg
Quote:
usb 1-2: new full speed USB device using uhci_hcd and address 2
scsi2 : usb-storage 1-2:1.0
scsi 2:0:0:0: Direct-Access WDC WD40 0EB-00CPF0 0000 PQ: 0 ANSI: 0
sd 2:0:0:0: Attached scsi generic sg4 type 0
sd 2:0:0:0: [sde] 78165360 512-byte logical blocks: (40.0 GB/37.2 GiB)
sd 2:0:0:0: [sde] Write Protect is off
sd 2:0:0:0: [sde] Mode Sense: 27 00 00 00
sd 2:0:0:0: [sde] Assuming drive cache: write through
sd 2:0:0:0: [sde] Assuming drive cache: write through
sde: sde1
sd 2:0:0:0: [sde] Assuming drive cache: write through
sd 2:0:0:0: [sde] Attached SCSI disk
but
Code:
ls /dev/sd*
does not show any sde stuff and
Code:
mount /dev/sde1 /mnt/usb/
shows
Quote:
mount: special device /dev/sde1 does not exist
Any more ideas?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Mon Oct 25, 2010 4:52 pm    Post subject: Reply with quote

Code:
nano /proc/devices
shows???
what version of udev? check your work against the udev guide Is udev-postmount in the default run level? If baselayout2/openrc is udev in sysinit run level?
Code:
zgrep -i CONFIG_SYSFS_DEPRECATED_V2 /proc/config.gz
should yield
Quote:
# CONFIG_SYSFS_DEPRECATED_V2 is not set


consider: boot rescue cd, mount gentoo partitions,
Code:
mv /mnt/gentoo/dev /mnt/gentoo/dev.old
mkdir /dev
reboot

be patient, then log in, follow the strange directions:
Quote:

-----------------------------------------------------
Your system seems to be missing critical device files
in /dev ! Although you may be running udev or devfs,
the root partition is missing these required files !

To rectify this situation, please do the following:
mkdir /mnt/fixit
mount --bind / /mnt/fixit
cp -a /dev/* /mnt/fixit/dev/
umount /mnt/fixit
rmdir /mnt/fixit

You may refer to these instructions at /etc/issue.
If you previously had an issue file, it has been
backed up at /etc/issue.devfix. Once you've fixed
your system, you will have to restore your old issue
file in order to get rid of this warning.

Thanks for using Gentoo ! :)
https://bugs.gentoo.org/show_bug.cgi?id=40987
-----------------------------------------------------


Edited after trying the mv. I use gpm, made this easy. And again to add sysfs check and udev stuff. Thanks Neddy.


Last edited by DONAHUE on Mon Oct 25, 2010 6:15 pm; edited 4 times in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Oct 25, 2010 5:44 pm    Post subject: Reply with quote

hitachi,

It looks like you have a static /dev

Is udev started?
_________________
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
hitachi
Guru
Guru


Joined: 20 Feb 2006
Posts: 478
Location: Freiburg / Deutschland

PostPosted: Mon Oct 25, 2010 8:04 pm    Post subject: Reply with quote

@ NeddySeagoon

now that you ask, I am not longer sure about that.

Code:
/etc/init.d/udev start
Quote:
* The udev init-script is written for baselayout-2!
* Please do not use it with baselayout-1!.


baselayout-2 is not stable, jet. So I am sure I am using baslayout-1.

@ DONAHUE

Quote:
Character devices:
1 mem
2 pty
3 ttyp
4 /dev/vc/0
4 tty
4 ttyS
5 /dev/tty
5 /dev/console
5 /dev/ptmx
7 vcs
10 misc
13 input
14 sound
21 sg
29 fb
108 ppp
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
254 usbmon

Block devices:
1 ramdisk
259 blkext
7 loop
8 sd
11 sr
65 sd
66 sd
67 sd
68 sd
69 sd
70 sd
71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
179 mmc
254 device-mapper


udev-151-r4

Regards
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Oct 25, 2010 8:25 pm    Post subject: Reply with quote

hitachi,

You are using baselayout1, so you don't need that script.

udev should be started for you at boot. Watch the kernel messages. You should see something about mounting /dev then later, populating /dev/ ... waiting for uevents to be processed.

If you don't have shmfs in your kernel, you can't have /dev/ in shmfs do df, does one line read something like
Code:
shm                    4092876       100   4092776   1% /dev/shm
The numbers are not important.

Without shmfs, your /dev will be on your hard drive. it can still be managed by udev but if it was populated with static entries beforehand, they will still be there. With udev and shmfs, udevs /dev/ is mounted over the top of anything else called /dev, so if you have both a static /dev, and a udev /dev/ the static /dev will be hidden.

You can boot a CD, mount your root on /mnt/gentoo, then look in /mnt/gentoo/dev to see if you have a static /dev. You need at most three entries, /dev/null, /dev/console and I forget the other but even these are not needed with later udev as it makes these nodes for you.
_________________
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
hitachi
Guru
Guru


Joined: 20 Feb 2006
Posts: 478
Location: Freiburg / Deutschland

PostPosted: Wed Nov 10, 2010 9:40 pm    Post subject: [solved] Reply with quote

Hey NeddySeagoon,

you solved my problem!

File systems --->
Pseudo filesystems --->
Virtual memory file system support (former shm fs)


It was disabled and now it is enabled. Everything is fine, now. Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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