Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/dev explosion
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
bobicus
n00b
n00b


Joined: 25 Jan 2005
Posts: 2

PostPosted: Tue Jan 25, 2005 5:52 am    Post subject: /dev explosion Reply with quote

I just installed Gentoo on an iMac G4 also with OS X on it, and I was wondering if it is normal for the /dev directory to have over 1000 devices listed. Something seems wrong with that to me.

This is actually part of another question: I've got an external HFS firewire drive that I'm trying to mount, but I can't figure out which device it is. Is there an easy way to do this? Thanks for the help!
Back to top
View user's profile Send private message
gsurbey
Apprentice
Apprentice


Joined: 24 Mar 2003
Posts: 212
Location: Nashua, NH

PostPosted: Tue Jan 25, 2005 6:25 am    Post subject: Reply with quote

Now do you actually have a dual boot system or is it just Gentoo's portage technology running on top of OSX?
_________________
-Greg Surbey
Back to top
View user's profile Send private message
bobicus
n00b
n00b


Joined: 25 Jan 2005
Posts: 2

PostPosted: Tue Jan 25, 2005 6:52 am    Post subject: Reply with quote

Its actually a dual boot system using yaboot
Back to top
View user's profile Send private message
gnomeza
Tux's lil' helper
Tux's lil' helper


Joined: 31 Dec 2003
Posts: 97

PostPosted: Tue Jan 25, 2005 11:23 am    Post subject: Reply with quote

Generally that's not normal.
I have only 208 entries in /dev
Code:
gnome@omenbook ~ $ ls -1 /dev | wc -l
208


Even with devfs you shouldn't have that many. It's possible however that at some point when you booted, *neither* were running and whole bunch of device files were created. Once udev or devfs was running again those devices would still be there.

Finding which devices are managed by udev/devfs and which were created using the old style dev system (and hence can now be deleted) is a bit of a pain...

Try backup your /dev (using cp -a or tarring it)
Then delete everything in /dev that's not a symlink or directory except for the basics (null, zero, random, console, urandom)
I have done this (after I accidentally booted with udev turned off), but it's at your own risk...

Code:
gnome@omenbook /dev $ find . -maxdepth 1 ! -type l ! -type d | sort
./adb
./apm_bios
./console
./full
./gpmctl
./hda
./hda1
./hda10
./hda11
./hda12
./hda13
./hda14
./hda15
./hda2
./hda3
./hda4
./hda5
./hda6
./hda7
./hda8
./hda9
./hdc
./initctl
./kmsg
./kmem
./log
./mem
./mol
./null
./nvram
./port
./random
./sheep_net
./tty
./.udev
./urandom
./zero


The firewire drive: it'll be a scsi device so /dev/sda or similar. Have a look at dmesg to or /var/log/messages to see if it's recognized.
Make sure you have HFS+, Mac partition support, scsi, scsi disk support etc. configured in the kernel...
_________________
http://markferry.net
Back to top
View user's profile Send private message
gulivert
l33t
l33t


Joined: 17 Jun 2004
Posts: 863
Location: Switzerland

PostPosted: Tue Jan 25, 2005 7:16 pm    Post subject: Reply with quote

HI,

I have not Mac G3 G4 or G5 but ~x86, for my /dev

Quote:
ls -1 /dev | wc -l
1509


Sorry I speak french :?
_________________
Macbook Pro Unibody 9.1 - Kernel 4.4.6 - Awesome 3.5
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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