LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Some info about '/proc/scsi/scsi' and '/dev' (https://www.linuxquestions.org/questions/slackware-14/some-info-about-%27-proc-scsi-scsi%27-and-%27-dev%27-120134/)

C.Loko 11-26-2003 09:27 AM

Some info about '/proc/scsi/scsi' and '/dev'
 
i have an external usb hd.I wanna mount it to slack9.1.
the method i used up to now to determine in which /dev/sdxx my hd is, i did
"/dev$ ls | grep sd*", but that's not very handy.
When i write "cat proc/scsi/scsi" i get some info about my drive but i cannot understand in which devise(/dev) is attached to.
Any ideas?

subekk0 11-26-2003 12:01 PM

The addresses are exact hardware locations
For example when I run cat /proc/scsi/scsi I get:
----------------------------------------------------------------------------
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: Slimtype Model: COMBO LSC-24081M Rev: 3GM7
Type: CD-ROM ANSI SCSI revision: 02
----------------------------------------------------------------------------
This just gives hardware addresses. You will need to map the /dev/usb portion to /dev/scd0 in order to mount the drive and define it in /etc/fstab

Try installing the app usbview-1.0-i686-1jto.tgz from http://linuxpackages.net and see if that will provide some more information about what is connected to your usb ports.

Tinkster 11-26-2003 03:01 PM

Re: Some info about '/proc/scsi/scsi' and '/dev'
 
Quote:

Originally posted by C.Loko
i have an external usb hd.I wanna mount it to slack9.1.
the method i used up to now to determine in which /dev/sdxx my hd is, i did
"/dev$ ls | grep sd*", but that's not very handy.
When i write "cat proc/scsi/scsi" i get some info about my drive but i cannot understand in which devise(/dev) is attached to.
Any ideas?
You shouldn't need either ... the devices always
get "numbered" starting from a, and cd's and hdd's
in SCSI are distinct, so it's safe to assume that it
will always be /dev/sda (if you don't attach another
hdd at the same time, that is).


I'd recommend having a look at
http://www.dotaster.com/~shuu/linux/usbmgr/

It will allow you to have the HDD mounted
automagically on plug-in (no, it can't unmount
it safely if you pull the plug first ;})



Cheers,
Tink

C.Loko 11-27-2003 11:18 AM

so there is no another way to get the device without installing any package ??

Tinkster 11-27-2003 12:30 PM

Sure is ... as I said: it's safe to assume that
it will always be /dev/sda

All you need to do manually is to
load the relevant modules (maybe
slack 9.x's hotplug does that auto-
magically for you?)
uhci/ohci/ehci-hcd (whichever is valid for you)
usbcore
usbscsi
scsi_mod
sd_mod
sg

And then mount it as per usual, you can even
put the appropriate entry in /etc/fstab and
allow users to do it.

usbmgr would just make it nicer :}


Cheers,
Tink


All times are GMT -5. The time now is 03:12 PM.