LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-23-2004, 12:31 PM   #1
rosslaird
Member
 
Registered: Jul 2003
Location: Vancouver
Posts: 76

Rep: Reputation: 16
memory stick


I have a simple question (I hope):

How do I get my system to identify and use a memory stick?
 
Old 07-23-2004, 01:36 PM   #2
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Install hotplug and then mount your memory stick. To make mounting easier you can add a line for your memory stick into /etc/fstab.
 
Old 07-23-2004, 01:45 PM   #3
rosslaird
Member
 
Registered: Jul 2003
Location: Vancouver
Posts: 76

Original Poster
Rep: Reputation: 16
details...

Thanks for the reply.
But can you break it down a bit for me? I'm not so good at these types of things.

I do have hotplug, and I know how to make an entry into fstab (basically). What I don't know is how to find the stick. In other posts, it talks about /sda, but that's not on my system.
Where is it going to be?

Thanks.
 
Old 07-23-2004, 01:58 PM   #4
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Using /dev/sda1 seems to work for my memory stick (or "usbkey" or whatever they call it). Try that.
 
Old 07-23-2004, 07:22 PM   #5
rosslaird
Member
 
Registered: Jul 2003
Location: Vancouver
Posts: 76

Original Poster
Rep: Reputation: 16
progress

Yup, that worked. Thanks.

One more question: if I put the mount command in fstab, and the stick is not in the drive, will there be a problem? (I may not always have the stick in the drive when I boot.)

Also, once this is setup, I assume I can take the stick out and put it in at will when the machine is on. Yes?
 
Old 07-23-2004, 08:01 PM   #6
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
I don't know what will happen when your Linux kernel tries to boot a device that is not where it's supposed to be according to fstab (probably it just gives an error message) but I REALLY don't think that it's a good idea to remove the memory stick without unmounting it first.

Here's the fstab line for my memory stick:

/dev/sda1 /media/usbkey vfat rw,user,noauto 0 0

The "noauto" option means that it won't be mounted unless I use the "mount /media/usbkey" command. After doing "umount /media/usbkey" it's safe to remove the memory stick. And I can do this all as normal user, so it's really not much trouble at all.

And, to make things even easier, I've got on my wmaker desktop an icon to launch the "xvmount" program, which is a graphical frontend for mounting removable media. Xvmount is a handy utility, not only for mounting and unmounting my memory stick but also for quickly checking the current state of cdrom, floppy, and memory stick -- are they currently mounted or unmounted?

Some people like to dabble with error-prone automounting solutions but I find it safer to follow the KISS (Keep It Simple & Stable) principle. It's a bit more trouble to manually mount/unmount removable media, but it works every time.

Last edited by Dead Parrot; 07-23-2004 at 08:11 PM.
 
  


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
Missing memory in USB stick, flash memory, removable hd etc bamboo_spider Linux - Newbie 3 06-14-2006 05:39 PM
Using memory stick MalachiX Linux - Newbie 1 04-13-2005 12:13 AM
USB Memory Stick freddie_leaf Slackware 15 11-09-2004 01:41 AM
memory stick problems Coramoor Linux - Newbie 1 05-13-2003 05:37 PM
memory stick / CF memory card reader X-dazed Linux - Newbie 1 01-21-2003 12:32 AM

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

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