LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 12-28-2004, 02:59 PM   #1
wisdom
Member
 
Registered: Feb 2004
Distribution: Fedora 9
Posts: 226

Rep: Reputation: 31
Usb Flash Pen Not Working


I have a 256mb usb flash pen which don't seem to work with linux distro mandrake 10.1 on my patriot laptop with intel celeron processor 1.2Ghz

Basically I put the pen in the usb port before truning on the laptop and it will load up the BIOS setting but before it reaches the OS option boot screen (lilo) it just sits there doing nothing.

Then when i take it out and put it in when its at the loading screen for loading an mounting the different drivers an file system it does not seem to even detect it when searching for new hard ware.. is there anyway i can mount it in terminal if so help me out please
 
Old 12-28-2004, 03:07 PM   #2
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
make a dir to mount it in (/mnt/usb) and from the terminal mount it like this:

$ mount /dev/sda1 -t vfat /mnt/usb

if that works, you're ready to add it to your fstab
 
Old 12-28-2004, 03:17 PM   #3
wisdom
Member
 
Registered: Feb 2004
Distribution: Fedora 9
Posts: 226

Original Poster
Rep: Reputation: 31
fstab how do i hadd it to my usb? an what does the ampersand meand i.e "$" and what dose the "-t" mean as well

whats the difference between "mount" and "supermount"
 
Old 12-28-2004, 03:28 PM   #4
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
$ serves to represent the command prompt as a normal user which reminds me that you may need to be root to mount so firts you'll have to do:

$ su

after which you'll be asked the root password

the promt will then change to #

-t is a flag used to indicate you're going to give the file system type (which probably is fat so in linux yuo'll need to say vfat)

To add your usb to fstab again you'll need to be root (at the console so if you exited do 'su' again - which mean super user)

then type

# emacs /etc/fstab

and add the line:

/dev/sda1 /mnt/usb auto rw,user,noauto 0 0

and save and exit.
 
Old 12-28-2004, 03:30 PM   #5
wisdom
Member
 
Registered: Feb 2004
Distribution: Fedora 9
Posts: 226

Original Poster
Rep: Reputation: 31
rite i have managed to mount the usb in /mnt/USB but only problem is that i cannot seem to access it using GUI in konqueror but can access it using root in the terminal and see all the listed files when i dir the folder
any ideas how i can access the pen as a normal user i tryed using the chown command but have had no joy
 
Old 12-28-2004, 03:30 PM   #6
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,834

Rep: Reputation: 47
You are kidding, right?
1. "$" sign as well as "#" sign stand for BASH
Practically, meaning that you open your console (terminal) and type configuration.
2. About "-t" in mount command, again simply open terminal and type
#man mount
3. you can edit your fstab with text editor whichever you like. there are hundreds of them.
Take Nano as an example:
#nano -w /etc/fstab


 
Old 12-28-2004, 05:50 PM   #7
|2ainman
Member
 
Registered: Mar 2004
Distribution: Slackware current, DSL 0.9.2
Posts: 133

Rep: Reputation: 15
RE: accessing usb in GUI

The reason that you cannot access the pendrive is because it was mounted as root, while the GUI you are running is just your normal user.
In the fstab entry, try changing "user" to "users" so that any user may interact with the pendrive. You may also want to look into having a sudo command set up to mount the usb pendrive.
In the sudoers file, which you have to edit via visudo you could have this ...
Code:
%users ALL=/sbin/mount /mnt/usb,/sbin/umount /mnt/usb
Where users is the group that you want to give access to, ALL is kind of like the location; if you put localhost, it would only allow people to do it who are logged in locally, which might be a better idea
 
Old 12-28-2004, 06:07 PM   #8
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Quote:
Originally posted by SlackerLX
You are kidding, right?
1. "$" sign as well as "#" sign stand for BASH
Practically, meaning that you open your console (terminal) and type configuration.
2. About "-t" in mount command, again simply open terminal and type
#man mount
3. you can edit your fstab with text editor whichever you like. there are hundreds of them.
Take Nano as an example:
#nano -w /etc/fstab
Try to go easy on those new to Linux or *nix in general. Everyone learns these things at one time or another and we shouldn't make people scared to ask such questions in the future. This is a newbie friendly site, lets keep it that way in more polite responses to educate those that don't know the simple things.

Regards.
 
Old 12-28-2004, 06:11 PM   #9
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,834

Rep: Reputation: 47
My apologies if I was insulting. Didn't mean that
 
Old 12-28-2004, 06:57 PM   #10
wisdom
Member
 
Registered: Feb 2004
Distribution: Fedora 9
Posts: 226

Original Poster
Rep: Reputation: 31
2 animan
The reason that you cannot access the pendrive is because it was mounted as root, while the GUI you are running is just your normal user.
In the fstab entry, try changing "user" to "users" so that any user may interact with the pendrive.
-------------------------------------------------------------------------

hey thanks alot for that worked like a charm soon as i change user to users and supermount to just mount thanks alot only thing i dont understamd was the extra command you put at the bottom ...


anyhow just another question does anyone know how i can scan for a new device thats been pluged in via usb without having to going to Drakconf control center? by just doing it in terminal , i am using mandrake 10.1
 
Old 12-29-2004, 01:35 AM   #11
FiveFlat
Member
 
Registered: May 2003
Location: N. California
Distribution: FC3 2.6.9
Posts: 110

Rep: Reputation: 15
I have Fedora Core 3 and a similar problem. when I plug my compactflash card into the reader it automatically mounts it to /media/usbdisk BUT if I browse it - nothing is there. Not until I manually
$mount /dev/sda1 /media/usbdisk
then I can browse it. How do I get it browseable without manually mounting it?

The reason for this is I have the reader on a server machine and want windows machines to be able to browse to it.
 
Old 12-29-2004, 07:46 AM   #12
wisdom
Member
 
Registered: Feb 2004
Distribution: Fedora 9
Posts: 226

Original Poster
Rep: Reputation: 31
hmm seems like this thing got issues when i remove the usb pen an plug it back it it worked fine but soon as i change the usb port that i orignally and normally plug it into it just went back to the same old problem of not been about to mount it as a normal user this is the configureation of my fstab file

/dev/hda6 / ext3 noatime 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hda7 /home ext2 noatime 1 2
/dev/hdc /mnt/cdrom auto user,unhide,umask=0,iocharset=iso8859-15,codepage=850,noauto,ro,exec,users 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0,iocharset=iso8859-15,sync,codepage=850 0 0
/dev/hda5 /mnt/windows vfat umask=0,iocharset=iso8859-15,codepage=850 0 0
//juillette-pc/xpfiles /mnt/xpfiles smbfs user,credentials=/etc/samba/auth.juillette-pc.nick,sync 0 0
none /proc proc defaults 0 0
/dev/hda1 swap swap defaults 0 0
/dev/sda1 /mnt/usb auto rw,users,auto 0 0
 
Old 01-01-2005, 05:17 AM   #13
|2ainman
Member
 
Registered: Mar 2004
Distribution: Slackware current, DSL 0.9.2
Posts: 133

Rep: Reputation: 15
I think if its in a different port, it may change to sdb and so on. To fix this I guess you could unload/reload the usb modules
# rmmod usb-storage
# modprobe usb-storage
although that might be unneccessary and/or a pain in the but to do every time. You may also want to put the modprobe/rmmod things in your sudoers file.
 
Old 01-07-2005, 07:47 PM   #14
fuzzyworm
Member
 
Registered: Sep 2003
Location: Stroud, UK
Distribution: Kubuntu, Debian
Posts: 149

Rep: Reputation: 15
Quote:
Originally posted by FiveFlat
I have Fedora Core 3 and a similar problem. when I plug my compactflash card into the reader it automatically mounts it to /media/usbdisk BUT if I browse it - nothing is there. Not until I manually
$mount /dev/sda1 /media/usbdisk
then I can browse it. How do I get it browseable without manually mounting it?

The reason for this is I have the reader on a server machine and want windows machines to be able to browse to it.
First step, if you haven't already, add it to the /etc/fstab file, using the line:

Code:
/dev/sda1 /media/usbdisk auto rw,user,noauto 0 0
then, all you need to do to mount it manually is type
Code:
$ mount /media/usbdisk
Are you using Konqueror (KDE)? If so, then access it through the devices menu in the tree, usually at the left hand side of the window. This will mount it automatically.

Hope this is of some use.
 
  


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 working slow zivs Linux - Newbie 4 11-22-2005 04:16 PM
automatic USB pen drive working fakie_flip Ubuntu 2 09-29-2005 09:29 AM
Usb pen not working in additional usb port ago.homer Linux - Hardware 3 07-26-2005 10:51 AM
Can't mount USB FLASH (Pen driver) vador Linux - Software 5 10-09-2004 02:49 PM
USB flash pen/stick/card cannot access mudelf Linux - Hardware 5 09-26-2003 06:58 AM


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