LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Tags used in this thread
Popular LQ Tags

Reply
 
Thread Tools
Old 10-03-2009, 04:41 PM   #1
tronayne
Member
 
Registered: Oct 2003
Location: Michigan
Distribution: Slackware
Posts: 759
Thanked: 32
USB Flash Drive, Slackware 13.0 (32 bit)


[Log in to get rid of this advertisement]
I've been fighting with Slackware 13, Hal, flash drive and VirtualBox and I've managed to get totally lost.

I added myself to the plugdev group; when I plug a flash drive into a USB port, Hal seems to see it (damned if I can figure out where the the thing is though) because it pops up a little window that shows it. What I really want to do is copy files on and off the thing to transfer them to XP running in VirtualBox (XP does not see the drive and do its "new hardware" song and dance) -- mostly I'd just be happy if I could figure out how to access the blasted thing from my account and I'll deal with VirtualBox later.

Could some kind soul tell me what the heck I have to do to get a flash drive mounted so I can read and write to it, please (and what other groups do ordinary users need to belong to so stuff will work)?
linux tronayne is offline  
Tag This Post
Reply With Quote
Old 10-03-2009, 05:04 PM   #2
brianL
Senior Member
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Laptop: Slackware 13.0 // Desktop: ; Slackware64 13.0; Debian "lenny"
Posts: 2,935
Blog Entries: 20
Thanked: 128
Which version of VirtualBox have you got: OSE or PUEL?
Only the PUEL version offers USB support.
http://www.virtualbox.org/wiki/Editions

Last edited by brianL; 10-03-2009 at 05:06 PM..
windows_xp_2003 brianL is offline     Reply With Quote
Old 10-03-2009, 05:11 PM   #3
0rphu
LQ Newbie
 
Registered: Sep 2009
Posts: 5
Thanked: 1
Have you tried plugging the flash drive in while logged in as root? If that works, it's a permission problem, if not it's something deeper.

If I plug my sony ericsson w902 in as a mass storage, it won't get mounted for some reason. I haven't figured it out yet, I only noticed the CPU wait goes extremely high. Maybe we have a quirk in the kernel. Or a device for that matter... Regular USB card reader seems to be working fine.
linux 0rphu is offline     Reply With Quote
Old 10-03-2009, 05:35 PM   #4
tronayne
Member
 
Registered: Oct 2003
Location: Michigan
Distribution: Slackware
Posts: 759
Thanked: 32

Original Poster
Quote:
Have you tried plugging the flash drive in while logged in as root? If that works, it's a permission problem, if not it's something deeper.
Yup, and it works; i.e., these two entries show up when mount is executed:
Code:
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sdb1 on /media/disk type vfat (rw,nosuid,nodev,uhelper=hal,uid=0,utf8,shortname=mixed)
That begs the question, OK, so permission on what? /dev/sdb1, /proc/bus/usb (and which one of the four of them that are there), some other thing?

The further I go the behinder I seem to get...

Thanks.
linux tronayne is offline     Reply With Quote
Old 10-03-2009, 06:55 PM   #5
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 12.2 (2.6.27.7)
Posts: 1,846
Thanked: 92
As mentioned, the OSE version does not support USB --- directly. I get around that with a tiny bit of effort.

1. Insert the USB drive.

2. You mentioned a "little window" that shows the drive contents. Sounds like you are using KDE. Just ignore (Cancel) the window.

3. If you have not manually configured KDE for how the USB drive is mounted, then look in /media.

4. You'll need to know the mount location.

5. Start XP in VirtualBox.

6. In the VirtualBox Devices menu, select Shared Folders.

7. Select the "Add a new shared folder" button (the folder button with an addition sign).

8. In the subsequent dialog box, use the button next to the Folder Path text box to find the native USB path (for example, /media/usb).

9. Provide a shared folder name in the appropriate text box.

10. In XP, open file explorer.

11. From the Tools menu, select the "Map network drive..." option.

12. Use the Browse button to find the shared folder name.

13. Select a drive letter.

14. You now should be able to copy files from the USB drive to XP.

I needed more time to write these instructions then actually perform. Takes only a few seconds to perform.

You can make the shared folder permanent.

I hope that helps.
linux Woodsman is offline     Reply With Quote
Thanked by:
Old 10-04-2009, 09:09 AM   #6
tronayne
Member
 
Registered: Oct 2003
Location: Michigan
Distribution: Slackware
Posts: 759
Thanked: 32

Original Poster
The version I have is the "closed-source binary" one; i.e., VirtualBox-3.0.6-52128-Linux_x86.run. The GUI shows USB devices and can read the specifications from the flash drive (so I think -- think! -- I've got the right version).

I think the problem is that "I" can't mount the flash drive with or without have VirtualBox running (root, of course, can and does); I plug it in, Hal sees it but I can't see any content on it, just ain't there, and no amount of searching, reading manual pages, cussing and throwing things against the wall has found the simple, elegant magic trick to allow an ordinary user to read and write a flash drive (and reading the Changes and Hints document hasn't helped either -- that stuff about not putting entries in /etc/fstab and fiddling with su bits [what su bit, dangit!). Tiz a puzzlement.

Thank you for the above -- I'm going to try it and, if it works, hey, a kludge that works is always better than fighting to the death with some blasted thing that ought to just work by default.
linux tronayne is offline     Reply With Quote
Old 10-04-2009, 09:38 AM   #7
allend
Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 853
Thanked: 48
Quote:
[I plug it in, Hal sees it but I can't see any content on it,...
When you plug the flash drive and the "little window" (Device Notifier) pops up, all you should need to do is play your mouse cursor over the device in the Device Notifier and it should display "Open with Dolphin". Click with the mouse and your device should be automounted and a Dolphin window opened. Do you see this behaviour?
To unmount, you should be able just to click the arrow against the device in the Device Notifier that can be brought up just by playing your mouse cursor over the icon in the panel.
linuxslackware allend is offline     Reply With Quote
Old 10-04-2009, 10:14 AM   #8
tronayne
Member
 
Registered: Oct 2003
Location: Michigan
Distribution: Slackware
Posts: 759
Thanked: 32

Original Poster
Uh, yeah -- yesterday, no, today (after my normal Sunday-morning reboot), yes. Yesterday, Dolphin opened with the content of my home directory (no matter what I did), after this morning's reboot, it shows the content of the flash drive -- magical mystical tour, that.

And the relevant lines from mount show up as
Code:
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sdb1 on /media/disk type vfat (rw,nosuid,nodev,uhelper=hal,uid=1000,utf8,shortname=mixed)
Magic!

OK, so now it's off to see if I can get VirtualBox and XP to see the thing...

Thanks again for your help.
linux tronayne is offline     Reply With Quote
Old 10-04-2009, 12:23 PM   #9
tronayne
Member
 
Registered: Oct 2003
Location: Michigan
Distribution: Slackware
Posts: 759
Thanked: 32

Original Poster
Well, the shared folder trick works.

Thank you for your help.
linux tronayne is offline  
Tag This Post
Reply With Quote

Reply

Bookmarks


Thread Tools

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
Slackware on USB flash drive adds2one Slackware 5 03-19-2006 07:20 AM
How to mount a usb flash drive on Slackware Slackware user Linux - Software 3 03-02-2006 08:59 AM
Installing slackware from a usb flash drive? blacklabelrum Linux - Software 1 12-13-2005 01:42 AM
Slackware 10.1 and SanDisk USB Flash Drive bleedingturnips Linux - Hardware 2 09-14-2005 12:20 PM


All times are GMT -5. The time now is 03:40 AM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration