LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 02-15-2006, 09:22 AM   #1
kizersouzay
Member
 
Registered: Jul 2005
Distribution: CentOS 5.4
Posts: 58

Rep: Reputation: 15
using usb flash drive


i have slack 10.1
i am not really a newbie
but thing is that i have never used a flash usb drive before
so any idea how can i mount that
 
Old 02-15-2006, 09:25 AM   #2
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,464

Rep: Reputation: 46
depends on your kernel version.

but basically once the device gets created you can issue the mount command.

say its /dev/sda1

then 1st make a mount point "mkdir /mnt/usbstick" "chmod 777 /mnt/usbstick"

then "mount -t vfat /dev/sda1 /mnt/usbstick"


look at dmesg when you plug the device in. you can also add a permanent entry to /etc/fstab
 
Old 02-15-2006, 10:15 AM   #3
c.m.klaij
Member
 
Registered: Dec 2004
Location: netherlands
Distribution: suse, slackware, dsl, debian
Posts: 68

Rep: Reputation: 15
Default slack 10.1 uses the low performance usb drivers instead of scsi (see if # CONFIG_BLK_DEV_UB is set in the kernel config file), so it might be something like /dev/uba1 instead of /dev/sda1.
 
Old 02-17-2006, 03:02 PM   #4
thekid
Member
 
Registered: Jun 2005
Location: The Golden State
Distribution: Ubuntu 8.04
Posts: 190

Rep: Reputation: 30
I had to edit my /etc/fstab to include the usb line, and now I can manually mount it, but how do I get it to automatically mount when I plug it in. I am running 10.2 and I tend to do everything from the command line instead of running X.
 
Old 02-20-2006, 02:53 AM   #5
c.m.klaij
Member
 
Registered: Dec 2004
Location: netherlands
Distribution: suse, slackware, dsl, debian
Posts: 68

Rep: Reputation: 15
For automatic mounting check out submount:

http://submount.sourceforge.net/

(but what's wrong with manual mounting anyway?)
 
Old 02-21-2006, 11:40 AM   #6
thekid
Member
 
Registered: Jun 2005
Location: The Golden State
Distribution: Ubuntu 8.04
Posts: 190

Rep: Reputation: 30
Nothing's wrong with it, but I wold like to be able to mount my external HD just by plugging it in. I mean, isn't that what Hotplug is for?
 
Old 02-21-2006, 11:44 AM   #7
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,464

Rep: Reputation: 46
in that case you need to get Hal - hardware abstraction layer. I believe this also requires dbus.

http://www.linuxpackages.net/pkg_details.php?id=7730
 
Old 02-22-2006, 03:19 AM   #8
c.m.klaij
Member
 
Registered: Dec 2004
Location: netherlands
Distribution: suse, slackware, dsl, debian
Posts: 68

Rep: Reputation: 15
Quote:
isn't that what Hotplug is for?
Not really, hotplug allows you to use devices immediately, without configuring or rebooting, it has nothing to do with how you use them. As soon as you plug in your external HD, hotplug makes sure it can be mounted, but it doesn't mount it for you.

With submount, you'll have a deamon running in the background which checks whether you plug something in and, if possible, mounts it for you and opens your file browser. My experience is that it's much faster to manually mount it (cli) and use the ls command to check the content.
 
Old 02-22-2006, 10:34 AM   #9
thekid
Member
 
Registered: Jun 2005
Location: The Golden State
Distribution: Ubuntu 8.04
Posts: 190

Rep: Reputation: 30
Quote:
Originally Posted by c.m.klaij
Not really, hotplug allows you to use devices immediately, without configuring or rebooting, it has nothing to do with how you use them. As soon as you plug in your external HD, hotplug makes sure it can be mounted, but it doesn't mount it for you.

With submount, you'll have a deamon running in the background which checks whether you plug something in and, if possible, mounts it for you and opens your file browser. My experience is that it's much faster to manually mount it (cli) and use the ls command to check the content.
I primarily use cli so would submount work there? I don't have to have it work like that, though, so I'm not to worried about it.
 
Old 02-22-2006, 08:36 PM   #10
andeity
LQ Newbie
 
Registered: May 2005
Posts: 10

Rep: Reputation: 0
device?

How can you figure out what device your flash drive is assigned to, anyway? Yesterday I figured out that it was sdd1 by fdisking randomly, but today it's not sdd1 anymore.
 
Old 02-22-2006, 10:36 PM   #11
Crobat
Member
 
Registered: Dec 2005
Distribution: Slackware 10.2, Slackware 11.0
Posts: 135

Rep: Reputation: 15
try fdisk -l
 
Old 02-23-2006, 12:22 AM   #12
andeity
LQ Newbie
 
Registered: May 2005
Posts: 10

Rep: Reputation: 0
thanks a lot!

andeity <<
 
Old 04-10-2006, 12:27 PM   #13
kornerr
Member
 
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Rep: Reputation: 35
I can't get my usb flash working.
What do I need in kernel?
I have usb support, usb storage, scsi disk support, all built-in.
Do I need hotplug? I tried to load Linux with flash inside the usb port, but still no success.
mount -t vfat /dev/sda /mnt/usb_flash doesn't work for me, as well as mount -t vfat /dev/sda1 /mnt/usb_flash
What to do?

Thanks.
 
Old 04-10-2006, 12:30 PM   #14
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Could you be a bit more specific in what you mean when you say mounting doesn't work, please? What happens when you try to mount? Error messages? If so, what are they?
 
Old 04-10-2006, 12:32 PM   #15
kornerr
Member
 
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Rep: Reputation: 35
Code:
kornerr@kornerr:~$ sudo mount -t vfat /dev/sda /mnt/usb_flash/
mount: /dev/sda is not a valid block device
kornerr@kornerr:~$ sudo mount -t vfat /dev/sda1 /mnt/usb_flash/
mount: /dev/sda1 is not a valid block device
 
  


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
USB Flash Drive lyar1031 Linux - Newbie 1 01-30-2006 10:23 PM
USB Flash Drive TanSahara Mandriva 7 01-02-2006 12:06 AM
USB Flash Drive LunarEagle Linux - Newbie 5 03-22-2005 05:11 PM
usb flash drive 1337_n00b Amigo 1 02-13-2005 01:25 AM
USB Flash Drive Hady Linux - Hardware 1 11-20-2003 02:41 PM


All times are GMT -5. The time now is 06:02 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