LinuxQuestions.org
Register a domain and help support LQ
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 04-08-2008, 02:29 PM   #1
Cotobear
Member
 
Registered: Nov 2007
Location: Canada
Distribution: Slackware 12.0
Posts: 100

Rep: Reputation: 16
Probing USB devices


For the longest time I've been using 'fdisk -l' to find the device node of a usb drive. Obviously fdisk requires root privileges and so I was wondering if there was a better way of finding out what it is. Something that doesn't require root privileges would be nice.

Coto
 
Old 04-08-2008, 03:06 PM   #2
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,265

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Cotobear, maybe check the output of `dmesg` after plugging it in? (Should be right at the end)
 
Old 04-08-2008, 03:15 PM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,311

Rep: Reputation: Disabled
Perhaps that the output of '/sbin/blkid' will help you as non-root user.

Eric
 
Old 04-08-2008, 03:25 PM   #4
Cotobear
Member
 
Registered: Nov 2007
Location: Canada
Distribution: Slackware 12.0
Posts: 100

Original Poster
Rep: Reputation: 16
Thanks both. Problem solved.
 
Old 04-08-2008, 09:58 PM   #5
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,476

Rep: Reputation: Disabled
Quote:
Originally Posted by Alien Bob View Post
Perhaps that the output of '/sbin/blkid' will help you as non-root user.

Eric
Cool, thanks. I never knew about this. Very useful!

Brian
 
Old 04-12-2008, 02:25 AM   #6
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
i think this is the best
Code:
 lsscsi
and this one i learned from slack 11, boot screen
Code:
 /sbin/rescan-scsi-bus
which is there in rc.scanbus script
Quote:
sh /etc/rc.d/rc.scanluns
 
Old 04-12-2008, 02:28 AM   #7
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
strange problem while running /sbin/blkid

i jsut tried /sbin/blkid and the bash fonts got screwed up
Code:
bash-3.1$ /sbin/blkid 
/dev/hda9: UUID="f005cbfc-7216-11da-a190-379ae730a0ef" SEC_TYPE="ext2" TYPE="ext3" 
/dev/hda1: LABEL="‰G&‰G
                       ^_" UUID="D4EF-69CD" TYPE="┴▒├" 
/␍␊┴/⎽␍▒1: LABEL="           FAT32   ┬≠"├
                                             V" UUID="47DE-8133" TYPE="┴▒├" 
/␍␊┴/␤␍▒7: UUID="855197▒0-862-435-8␍82-02␉471␍559" SEC_TYPE="␊│├2" TYPE="␊│├3" 
/␍␊┴/␤␍▒5: LABEL="           FAT32   3ŽѼπŽ│" UUID="873B-0FA6" TYPE="┴▒├" 
␉▒⎽␤-3.1$
any idea?
 
Old 04-12-2008, 05:04 PM   #8
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,265

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
That sometimes happens with random commands for me too (not reproducible, and it hasn't happened for a while -- usually sometimes when switching from X to a VT) -- I think the solution is to issue `reset`, followed by Ctrl+L twice (instead of the enter key -- Ctrl+L I think is the line-feed key combo that should always work, even if the mapping of the enter key is screwed up). I don't have that memorized, so Ctrl+L is probably wrong, but try it anyway (enter may work as well). It should be noted that this is more of a workaround instead of a preventative solution.
 
Old 04-13-2008, 07:00 AM   #9
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
Code:
bash-3.1$ /sbin/blkid 
/dev/hda9: UUID="f005cbfc-7216-11da-a190-379ae730a0ef" SEC_TYPE="ext2" TYPE="ext3" 
/dev/hda1: LABEL="G&G
                       ^_" UUID="D4EF-69CD" TYPE="┴▒├" 
/␍␊┴/⎽␍▒1: LABEL="           FAT32   ┬≠"├
                                             V" UUID="47DE-8133" TYPE="┴▒├" 
/␍␊┴/␤␍▒7: UUID="855197▒0-862-435-8␍82-02␉471␍559" SEC_TYPE="␊│├2" TYPE="␊│├3" 
/␍␊┴/␤␍▒5: LABEL="           FAT32   3ɎѼπ│" UUID="873B-0FA6" TYPE="┴▒├" 
␉▒⎽␤-3.1$ ⎼␊⎽␊├   ---> reset
bash-3.1$ ls                                                                                            
bin  boot  data  dev  etc  home  lib  lost+found  media  mnt  opt  proc  root  sbin  srv  sys  tmp  usr  var
bash-3.1$
thank you,
that cntrl+l didnt worked
but the "reset" command helped,

earlier also i noticed that ,i got this kind of characters, what i used to do is. jsut close the terminal and open a new

just 'reset' saved me
but this is handy.. thankyou
 
Old 04-13-2008, 04:05 PM   #10
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,265

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
lol, Ctrl+L was stupid advice and I knew better. I use Ctrl+L to clear the console every day -- I don't know what I was thinking there. It should be Ctrl+J. And the instructions should have said Ctrl+J, followed by `reset`, followed by Ctrl+J. That way, if the enter key is messed up, you can proceed with Ctrl+J a first time to get a new line with no text on it, then type reset, then Ctrl+J to enter the command. But if the enter key still works, there's no need to use this Ctrl+J mumbo jumbo. (This info was all thanks to onebuck, so thank him, not me).
 
  


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
Booting from USB when BIOS does not recognise USB devices zani Linux - General 8 08-21-2007 01:58 PM
Suse 10.2: no usb-devices loaded, my usb-controller too old? Foxt_20 Suse/Novell 1 03-07-2007 12:02 PM
USB devices died after USB hub install Twistedlizzard Linux - Hardware 5 07-08-2005 06:17 AM
MDK 10.2: No USB at all (/proc/bus/usb/devices missing) shrodi Mandriva 5 07-01-2005 11:28 AM
USB module probing issues Floppy Linux - General 1 03-10-2002 09:25 PM


All times are GMT -5. The time now is 02:09 PM.

Main Menu
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