LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-08-2004, 03:36 PM   #1
g4c9z
Member
 
Registered: May 2004
Location: Canada
Distribution: Gentoo
Posts: 36

Rep: Reputation: 15
How do disks appear automatically in /dev when inserted?


Hello,

I have a USB ZIP drive. On my old Mandrake system, when it was already plugged in and I inserted a disk into it, a device file for the disk appeared alongside the device file for the drive itself. Now I use Gentoo, and this doesn't happen. I can mount the disk after manually create the device file.

What was the component that was doing that automatic device creation for me? On my new Gentoo system, which uses a 2.6.5 kernel (Mandrake used 2.4) I currently have devfs compiled into the kernel and it's mounted, and I have hotplugging going (but something tells me hotplugging doesn't handle inserting disks anyway). Does it have something to do with this switch from devfs to udev, and removing things from devfs in newer kernels?
 
Old 06-08-2004, 05:02 PM   #2
alv6
LQ Newbie
 
Registered: Jun 2004
Distribution: Gentoo
Posts: 13

Rep: Reputation: 0
Hotplug and udev (the new hotness) are a bit immature, and do not handle quite a few devices yet, in a way that people want. Devfs (old and busted) has other issues. I believe that there may no longer be /dev/discs properly populated with usb discs (with 2.6), however /dev/sdX should still work. scsi_info /dev/sdX will tell you what it is.
 
Old 06-09-2004, 07:22 AM   #3
g4c9z
Member
 
Registered: May 2004
Location: Canada
Distribution: Gentoo
Posts: 36

Original Poster
Rep: Reputation: 15
So until udev is finished, is the best way to handle it to create the device file for the disk and for any other devices I need in a script that runs at startup?

By the way, I don't have the scsi_info command. Where do I get it or what package is it in?
 
Old 06-09-2004, 04:55 PM   #4
alv6
LQ Newbie
 
Registered: Jun 2004
Distribution: Gentoo
Posts: 13

Rep: Reputation: 0
Yes, probably. Keep using udev and devfs, they will not hurt, but do not be surprised that they will break things at the next kernel upgrade. Gentoo and other distros already have most devices. They are just named cryptically.

strangely scsi_info is in
sys-apps/pcmcia-cs-3.2.7
do not ask me why
if you do not wish to install it, all the info should be under /proc/scsi.

Oh and hotplugging does handle discs (USB drives at least), it just does not create the devices yet, I think.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I cannot access EITHER CD drive! And there's no /dev/hdc or /dev/hdd or /dev/cdrom! Dmalic Linux - Hardware 13 11-18-2005 07:11 PM
loading /dev/hdb automatically kevinm2 Linux - Software 4 06-12-2005 10:00 PM
whether cd or dvd is inserted? ur_prince Programming 0 12-22-2004 02:12 AM
whether cd or dvd is inserted? ur_prince Linux - Software 3 12-17-2004 11:40 AM
Installation Disks not recognized as official disks when booting with floppy coal-fire-ice Mandriva 13 12-09-2004 04:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration