LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 07-14-2007, 11:33 AM   #1
laryy
LQ Newbie
 
Registered: Jul 2007
Posts: 2

Rep: Reputation: 0
USB flash memory


I got problem with my USB flash memory.
When I insert the USB flash memory, nothing happens.
 
Old 07-14-2007, 12:14 PM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You need to mount the partition on it to be able to access the files. After you plug the device in, run dmesg in a terminal and that will help you find out what the kernel is calling it. For example, here's the output after I plug mine in:

USB Mass Storage support registered.
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
scsi 2:0:0:0: Direct-Access Sony Storage Media 0100 PQ: 0 ANSI: 0 CCS
SCSI device sdb: 1966080 512-byte hdwr sectors (1007 MB)
sdb: Write Protect is off
sdb: Mode Sense: 43 00 00 00
sdb: assuming drive cache: write through
SCSI device sdb: 1966080 512-byte hdwr sectors (1007 MB)
sdb: Write Protect is off
sdb: Mode Sense: 43 00 00 00
sdb: assuming drive cache: write through
sdb: sdb1
sd 2:0:0:0: Attached scsi removable disk sdb
sd 2:0:0:0: Attached scsi generic sg1 type 0
usb-storage: device scan complete

The bit in bold tells me that the kernel's calling it /dev/sdb and that there's 1 partition on it (sdb1), which is the one I need to mount.

Once you find out this information you can then mount it with "mount device mount point -t filesystem type -o options"

For example, I can mount mine with "mount /dev/sdb1 /mnt/memory -t vfat", since the partition is formatted FAT32. You may not need to specify the filesystem type or any options. The mount point (/mnt/memory in my example) must exist before you try and mount, otherwise you'll get an error telling you it doesn't exist. You will need to be root to mount.

One thing to note: the device may not always be called the same thing. Say I have two memory sticks and I plug them in in different orders at different times. The one I plugged in first the first time will be sdb, but will be sdc the second time (I also have an SATA hard drive in my machine, which is sda). You'd probably like to assign meaningful, persistent names to your removable devices (for example, my memory sticks end up being called /dev/flash, rather than /dev/sdb), which you can do with udev and a 2.6.15.x kernel (or later).
 
Old 07-14-2007, 02:11 PM   #3
happyslacker
LQ Newbie
 
Registered: Jul 2007
Posts: 15

Rep: Reputation: 0
Try this program:
Using USB memory sticks with Slackware Linux
 
Old 07-15-2007, 06:27 PM   #4
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
in slackware 12 make sure dbus and hal are running.

chmod +x /etc/rc.d/rc.messagebus
chmod +x /etc/rc.d/rc.hal

reboot
 
Old 07-15-2007, 08:27 PM   #5
randomsel
Member
 
Registered: Oct 2006
Location: Wilmington, DE
Distribution: Slackware 11
Posts: 201

Rep: Reputation: 30
Quote:
Originally Posted by Boow
in slackware 12 make sure dbus and hal are running.

chmod +x /etc/rc.d/rc.messagebus
chmod +x /etc/rc.d/rc.hal

reboot
and add your users to the appropriate groups (check out the sticky in the forum)
 
Old 07-17-2007, 03:21 PM   #6
laryy
LQ Newbie
 
Registered: Jul 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Boow
in slackware 12 make sure dbus and hal are running.

chmod +x /etc/rc.d/rc.messagebus
chmod +x /etc/rc.d/rc.hal

reboot
Quote:
Originally Posted by randomsel
and add your users to the appropriate groups (check out the sticky in the forum)
Code:
larry@darkstar:~$ groups 
users floppy audio video cdrom plugdev
larry@darkstar:~$
Now USB work fine after "chmod +x rc.messagebus ; chmod +x rc.hal" and installation of vsupdfstab-0.1-noarch-0.tgz.

Quote:
The vsupdfstab automatically adds to fstab USB mass storage devices when they are plugged in, and removes them from fstab when they are removed. This program don't automatically mount devices, because this is incompatible with KDE.
 
Old 07-17-2007, 05:46 PM   #7
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,462
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
Quote:
Originally Posted by laryy
Now USB work fine after "chmod +x rc.messagebus ; chmod +x rc.hal" and installation of vsupdfstab
You shouldn't need vsupdfstab for HAL to work properly. I don't have it installed, and everything works for me.
 
Old 07-17-2007, 07:24 PM   #8
naflan
Member
 
Registered: May 2003
Location: NC, USA
Distribution: Slackware 14.0
Posts: 94

Rep: Reputation: 15
-Add required users to the group plugdev

-As root /etc/rc.d/rc.messagebus restart

-As root /etc/rc.d/rc.hald restart
 
Old 07-17-2007, 07:35 PM   #9
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Quote:
Originally Posted by rkelsen
You shouldn't need vsupdfstab for HAL to work properly. I don't have it installed, and everything works for me.
More importantly, I personally don't want anything but *me* editing /etc/fstab. I don't see the need for it anyway -- what's the point?

I've got ivman and pmount for 12.0 ready to commit at SlackBuilds.org, so I'll try to go ahead and get those pushed out tonight or tomorrow -- it seems that a lot of people are wanting that sort of functionality.
 
  


Reply

Tags
flash, memory, slackware, usb



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
USB memory, Compact Flash, Memory Stick energiza Linux - Hardware 2 08-22-2006 09:29 PM
Missing memory in USB stick, flash memory, removable hd etc bamboo_spider Linux - Newbie 3 06-14-2006 05:39 PM
USB Flash memory alanbarnard Linux - Hardware 2 10-25-2004 04:49 PM
where is the usb flash memory? chinaundead Mandriva 2 04-08-2004 12:52 PM
USB flash memory??? perdesiz Linux - Hardware 6 03-12-2004 10:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:47 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
Open Source Consulting | Domain Registration