LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 11-26-2003, 10:27 AM   #1
C.Loko
LQ Newbie
 
Registered: Jul 2003
Posts: 27

Rep: Reputation: 15
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?
 
Old 11-26-2003, 01:01 PM   #2
subekk0
Member
 
Registered: Sep 2003
Location: Dallas, TX.
Distribution: Slacking since '94
Posts: 153

Rep: Reputation: 32
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.
 
Old 11-26-2003, 04:01 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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
 
Old 11-27-2003, 12:18 PM   #4
C.Loko
LQ Newbie
 
Registered: Jul 2003
Posts: 27

Original Poster
Rep: Reputation: 15
so there is no another way to get the device without installing any package ??
 
Old 11-27-2003, 01:30 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How can I access my scsi hdd from dev/scsi/host1/bus0/target0/lun0 ?? marius7sv Linux - Hardware 0 09-06-2004 11:40 AM
Hotplug SCSI scanner or How to write to /proc/scsi/scsi from within a shell script. samac Linux - Hardware 1 08-30-2004 03:28 PM
Error editing /proc/scsi scsi file Thaidog Linux - Newbie 2 08-26-2004 09:19 AM
allow non root users add devices to /proc/scsi/scsi ? ewto Linux - Newbie 5 10-14-2003 12:36 PM
mounting 2 ide-scsi devices /dev/cdrom and /dev/cdrom1 issue penguin123 Linux - Hardware 3 09-26-2003 09:36 PM


All times are GMT -5. The time now is 11:41 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration