LinuxQuestions.org
Review your favorite Linux distribution.
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 06-01-2006, 05:07 AM   #1
hernanimagal
LQ Newbie
 
Registered: May 2006
Posts: 2

Rep: Reputation: 0
flash disk


As Im new in Linux - Ubuntu, I know how to read and copy from a flash disk by mounting the device:

sudo mount /dev/sda1 /xxx/yyyy -t vfat,

is the command I use. But I would like to know if there is any chance of doing the same but in a automatic way. By other side, when I make the /xxx/yyy equal to /home/hernani,the sistem don't work. Why?
Sorry my poor english, but I only study english for 3 years there is 35 years ago.
Thanks,
Hernani
 
Old 06-01-2006, 05:33 AM   #2
krussell
Member
 
Registered: Jul 2003
Location: dhaka
Distribution: Slackware 11 (fixed), MEPIS
Posts: 241

Rep: Reputation: 30
hello
you can add a line in the /etc/fstab for your flash drive:

/dev/sda1 /mnt/flash vfat noauto,user,rw,owner,umask=000 0 1

now, since you are using ubuntu, it will automatically detect the drive and mount in in /mnt/flash (make sure you create a folder named "flash" in /mnt)
and the "umask=000 " is necessary for vfat.
hope this helps you.
 
Old 06-01-2006, 06:49 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
quote: when I make the /xxx/yyy equal to /home/hernani,the sistem don't work.

This is because you are mounting over your home directory.
 
Old 06-05-2006, 06:45 AM   #4
hernanimagal
LQ Newbie
 
Registered: May 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Smile

Quote:
Originally Posted by krussell
hello
you can add a line in the /etc/fstab for your flash drive:

/dev/sda1 /mnt/flash vfat noauto,user,rw,owner,umask=000 0 1

now, since you are using ubuntu, it will automatically detect the drive and mount in in /mnt/flash (make sure you create a folder named "flash" in /mnt)
and the "umask=000 " is necessary for vfat.
hope this helps you.

Thanks. It works!
Hernani
 
Old 06-05-2006, 09:02 AM   #5
krussell
Member
 
Registered: Jul 2003
Location: dhaka
Distribution: Slackware 11 (fixed), MEPIS
Posts: 241

Rep: Reputation: 30
Quote:
Originally Posted by hernanimagal
Thanks. It works!
Hernani
Nice , and if sometimes you have trouble, instead of sda1, try sda2 or just sda
 
  


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
I can't mount Flash disk bileed Linux - Hardware 1 03-31-2006 12:33 AM
USB Flash Disk zillah Fedora 3 05-22-2005 04:25 AM
USB flash disk. ValidiusMaximus Linux - Software 0 12-30-2004 03:45 PM
mounting a flash disk ekoome Red Hat 2 09-24-2003 02:34 AM
Installation on a flash disk boisseaud Linux - Software 0 03-27-2002 12:45 PM


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