LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-05-2009, 12:56 PM   #1
mitchellray
Member
 
Registered: Feb 2009
Posts: 44

Rep: Reputation: 15
USB - Slackware12.2, Not able to Print, No Access to flash or ext. HD; They work w/FC


Hello,
I have been reading documentation for a couple of weeks and have been unable to understand how to solve.

I am unable to USB print and I am unable to open my USB flash and USB external HD. I do not know if the inability to print is related or not, but the printer doesn't work after adding it and the same driver choice that I use in FC5.
All of these work in FC5.
The devices show up when I view the controllers, but I am uncertain as to the path and how to access the files.
I see a device 'usbfs' which returns "already mounted".

Thanks.
Mitchell
 
Old 03-05-2009, 01:10 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2 on Lenovo Thinkpad W520
Posts: 7,098

Rep: Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243
Please send output of 'lsusb' (as root) when your devices are plugged-in, as well as relevant part of 'dmesg' output when you just mounted one: wait 30 seconds after that and issue 'dmesg|tail'; please do that for each of your usb devices.

And send output of 'ls -l /etc/rc.d|grep x' to see which startup scripts are executable.

Last edited by Didier Spaier; 03-05-2009 at 01:12 PM.
 
Old 03-05-2009, 09:27 PM   #3
mitchellray
Member
 
Registered: Feb 2009
Posts: 44

Original Poster
Rep: Reputation: 15
output 'lsusb', 'dmesg|tail'

lsusb
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

lsusb (after plugging in devices)
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 1058:0701 Western Digital Technologies, Inc.
Bus 001 Device 002: ID 0204:6025 Chipsbank Microelectronics Co., Ltd CBM2080 Flash drive controller
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub


dmesg|tail
sd 3:0:0:0: [sdb] Mode Sense: 27 00 00 00
sd 3:0:0:0: [sdb] Assuming drive cache: write through
sd 3:0:0:0: [sdb] 234441648 512-byte hardware sectors (120034 MB)
sd 3:0:0:0: [sdb] Write Protect is off
sd 3:0:0:0: [sdb] Mode Sense: 27 00 00 00
sd 3:0:0:0: [sdb] Assuming drive cache: write through
sdb: sdb1
sd 3:0:0:0: [sdb] Attached SCSI disk
sd 3:0:0:0: Attached scsi generic sg1 type 0
usb-storage: device scan complete

Will posting output of ls -l /etc/rc.d|grep x compromise the security of my system?
If so, which specific permissions are we seeking to confirm?
Thank you.
M
 
Old 03-06-2009, 12:19 AM   #4
mitchellray
Member
 
Registered: Feb 2009
Posts: 44

Original Poster
Rep: Reputation: 15
Hello,
I do not know if this is of importance here.


Here is the output from:
/proc/bus/usb# cat devices

T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0001 Rev= 2.06
S: Manufacturer=Linux 2.6.27.7 uhci_hcd
S: Product=UHCI Host Controller
S: SerialNumber=0000:00:07.3
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0001 Rev= 2.06
S: Manufacturer=Linux 2.6.27.7 uhci_hcd
S: Product=UHCI Host Controller
S: SerialNumber=0000:00:07.2
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1058 ProdID=0701 Rev= 2.40
S: Manufacturer=Western Digital
S: Product=External HDD
S: SerialNumber=DEF10BFD61C0
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 2mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=86(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=12ms

T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0204 ProdID=6025 Rev= 1.00
S: Manufacturer=USB0712B
S: Product=Flash Disk
S: SerialNumber=1015430066C68711
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms

M
 
Old 03-06-2009, 03:00 AM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2 on Lenovo Thinkpad W520
Posts: 7,098

Rep: Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243
OK then,

here:
Code:
lsusb (after plugging in devices)
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 1058:0701 Western Digital Technologies, Inc.
Bus 001 Device 002: ID 0204:6025 Chipsbank Microelectronics Co., Ltd CBM2080 Flash drive controller
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
We see your external hard disk in blue and your USB flash in red.

So far, so good.

Here:
Code:
dmesg|tail
sd 3:0:0:0: [sdb] Mode Sense: 27 00 00 00
sd 3:0:0:0: [sdb] Assuming drive cache: write through
sd 3:0:0:0: [sdb] 234441648 512-byte hardware sectors (120034 MB)
sd 3:0:0:0: [sdb] Write Protect is off
sd 3:0:0:0: [sdb] Mode Sense: 27 00 00 00
sd 3:0:0:0: [sdb] Assuming drive cache: write through
 sdb: sdb1
sd 3:0:0:0: [sdb] Attached SCSI disk
sd 3:0:0:0: Attached scsi generic sg1 type 0
usb-storage: device scan complete
We see that your external hard drive (120034MB) has been attached to the system as /dev/sdb1.

So far, so good.

Now you can mount it manually (as root) issuing following command:
Code:
mount -t auto /dev/sdb1 /media/memory0
Of course you can choose another mount point if you prefer, as long as it exists.

Then if you do 'ls /media/memory0' you will see your external disk's content.

If you use KDE, it should be automounted as long as both following conditions are met:

1) /etc/rc.d/rc.udev, /etc/rc.d/rc.hald and /etc/rc.messagebus are executable.

By the way there is nothing that can compromise the security of your system in posting output of 'ls -l /etc/rc.s|grep x'. It will only list all executable files in the /etc/rc.d directory, which is an easy way to check that the aforementioned files are executable.

If you prefer you can check yourself but believe me, this won't hurt .

If one of the files is not executable, you can change that with e.g. 'chmod +x /etc/rc.d/rc.hald' as root, then start this service with '/etc/rc.d/rc.hald start'

2) The username you use to log in should belong to the 'plugdev' group. You can check that with the command 'groups' e.g. (didier is my user name):
Code:
bash-3.1$ groups didier
users lp floppy audio video cdrom plugdev
bash-3.1$
If you don't see 'plugdev' in the list, do this as root:
Code:
gpasswd -a didier plugdev
If you have an HP printer, do that for the 'lp' group as well ('gpasswd -a didier lp').

Now automounting should work fo both your external hard drive and your usb key.

About your printer, please send the output of 'lsmod|tail' 30 seconds after having plug it in.

About '/proc/bus/usb# cat devices', this gives the same information as lsusb, only with more details. In fact the 'lsusb' command displays information found in /proc/bus/usb, only adding vendor and product names retrieved in the /usr/share/usb.ids file from the vendor and product numbers.

Last edited by Didier Spaier; 03-06-2009 at 01:54 PM. Reason: Typo
 
Old 03-09-2009, 02:54 AM   #6
mitchellray
Member
 
Registered: Feb 2009
Posts: 44

Original Poster
Rep: Reputation: 15
output /etc/rc.d/rc.udev; lsmod|tail; lsusb

Thank you Didier Spaier.
I am now able to manually mount and access my external media, but still do not get the kde automount storage media module when I plug the media in to the usb slot.
I changed the /etc/rc.d/rc.messagebus, /etc/rc.d/rc.hald, and /etc/rc.d/rc.udev following the command chmod +x for each one.
I then used the start command for each.
I received the following for this file.

/etc/rc.d/rc.udev start
Triggering udev events: /sbin/udevadm trigger --type=failed

My printer is a Brother 2040 and as I mentioned, I used the driver for the Brother 2060 which worked in Fedora 5, but doesn't print here in Slackware 12.2. The printer wakes up but doesn't do anything else.
Here is the output for lsmod|tail

gameport 9736 2 emu10k1_gp
soundcore 5728 1 snd
via686a 12812 0
hwmon 2196 1 via686a
usblp 11264 0
via_agp 8064 1
parport_pc 23972 1
shpchp 29076 0
agpgart 28080 1 via_agp
parport 30024 3 lp,ppdev,parport_pc

lsusb

Bus 002 Device 004: ID 04f9:0028 Brother Industries, Ltd Printer
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0204:6025 Chipsbank Microelectronics Co., Ltd CBM2080 Flash drive controller
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

M
 
Old 03-09-2009, 04:19 AM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
When you created your user-account ... did you make yourself member
of the relevant groups? E.g. audio cdrom floppy plugdev video ?

Most notably for your problem with KDE and plug&pray plugdev
is most relevant.


As for the printer: slackware has no detection tools for any
type of hardware (other than what comes for networking and with
X -configure); you'll need to manually add your printer via
CUPS' web-interface on http://localhost:631 (when prompted for
credentials in the admin section give your root account and password).



Cheers,
Tink
 
Old 03-09-2009, 04:28 AM   #8
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2 on Lenovo Thinkpad W520
Posts: 7,098

Rep: Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243
For the drivers, there seems to be no ppd file.

But there are Cups wrapper drivers provided by Brothers for the HL-2040 model that you can download here. They are only shipped as rpm or deb, thus you will have to try the rpm commands or rpm2tgz then installpkg.

Instructions for installing it are there.

For the kde automount, did you check that the username under which you log in is in the 'plugedv' group ?
 
Old 03-09-2009, 01:46 PM   #9
mitchellray
Member
 
Registered: Feb 2009
Posts: 44

Original Poster
Rep: Reputation: 15
add printer unsuccessful attempt

Hello,
I downloaded lpr and cupswrapper rpm(s). I rpm2tgz for each.
I installpkg for each file.
There was not any output confirmation on the console.
I went to http://localhost:631/printers and tried to register.
I also tried using the kde link from my menu list.
When I get to the Main/driver section, my particular model (HL-2040) is still not listed.
Instead, HL-2060 is listed as the recommended. This had not previously worked.

#lsmod|tail
tulip 48160 0
snd 46756 13 snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_emu10k1,snd_rawmidi,snd_ac97_codec,snd_pcm,snd_seq _device,snd_timer,snd_hwdep
soundcore 5728 1 snd
via686a 12812 0
via_agp 8064 1
parport_pc 23972 1
hwmon 2196 1 via686a
agpgart 28080 1 via_agp
shpchp 29076 0
parport 30024 3 lp,ppdev,parport_pc

M

Last edited by mitchellray; 03-09-2009 at 01:47 PM.
 
Old 03-09-2009, 01:58 PM   #10
mitchellray
Member
 
Registered: Feb 2009
Posts: 44

Original Poster
Rep: Reputation: 15
Automount usb external drives successful

Thank you Didier Spaier and Tinkster.
My Flash Drive and external HD did both automount when inserted into the usb slots and I was able to access the files.
M
 
Old 03-11-2009, 06:16 PM   #11
mitchellray
Member
 
Registered: Feb 2009
Posts: 44

Original Poster
Rep: Reputation: 15
End thread - Thank you for your assistance!

Thanks for your assistance.
Mitchellray
 
  


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 to access private partition in USB flash? Dr_Death_UAE Linux - Hardware 5 06-19-2008 04:09 AM
Access USB flash drive? Zeno McDohl Linux - Newbie 4 01-16-2006 01:47 PM
how can i access partitioned USB-flash? Mistreated Linux - Software 10 12-22-2005 07:53 PM
as a precaution: Does NForce2 Ultra400 and ext. USB Harddrive work with FC3? Patrique Fedora 0 11-14-2004 04:05 AM
How to access a USB flash drive captainpicard Linux - Hardware 1 04-20-2003 01:19 PM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration