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 03-07-2007, 08:25 AM   #1
zulfahmi
LQ Newbie
 
Registered: Feb 2007
Posts: 22

Rep: Reputation: 15
Problem with USB


Hi there..

I got a problem here
i cant mount my usb pendrive
i juz a linux newbie and i still learning using this o/s
i had try the command mount/mnt/usb but i cant open the pendrive
so can anyone help me here on how to open my pendrive
 
Old 03-07-2007, 08:49 AM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
Quote:
Originally Posted by zulfahmi
i had try the command mount/mnt/usb but i cant open the pendrive
Hi, welcome to LQ.

You need to have an /etc/fstab entry for your usb pendrive to actually use mount command the way you are using.

Check if usb-storage kernel module is loaded.

Code:
lsmod | grep usb
If you don't see it, load it using modprobe command

Code:
modprobe usb-storage
Check out dmesg for the device node...using command

Code:
dmesg | tail
You'll see something like sda1 or sdb1.

Now, you can try mounting your drive using the full mount command like...

Code:
mount -t vfat -o rw /dev/<device name> /mnt/usb
BTW, you need to make the /mnt/usb directory first before mounting. Also you need to tell us what linux distribution you are using? Including that in your profile is recommended.

Last edited by tuxrules; 03-07-2007 at 08:51 AM.
 
Old 03-07-2007, 11:08 AM   #3
zulfahmi
LQ Newbie
 
Registered: Feb 2007
Posts: 22

Original Poster
Rep: Reputation: 15
i`m sorry for the lack of infomation
i`m using Red Hat 9 kernel 2.4.20-8
 
Old 03-07-2007, 11:32 AM   #4
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
Quote:
Originally Posted by zulfahmi
i`m sorry for the lack of infomation
i`m using Red Hat 9 kernel 2.4.20-8
RH 9 is unsupported since three years now and doesn't get any bugfixes. If you don't have a compelling reason to be with RH9, I suggest the best option for you is to upgrade your distro. If you have a newer hardware, it may not even work with RH 9.

Last edited by tuxrules; 03-07-2007 at 11:37 AM.
 
Old 03-07-2007, 12:07 PM   #5
zulfahmi
LQ Newbie
 
Registered: Feb 2007
Posts: 22

Original Poster
Rep: Reputation: 15
mmm
unfortunately i had to use RED HAT 9 because of that are we using for this time. i had no choice but had to used it for this time being. hahaha
so i had try the command u gave me
mount -t vfat -o rw /dev/ZACK /mnt/usb let said that my pendrive name ZACK but is replies
mount :special device /dev/ZACK does not exist
and not forgeting,i had made the /mnt/usb diretory as u suggest me to
i had done some research and from what i had understand that is mount points for different devices are configured in a file called /etc/fstab. so i think that i had to set the mounting point in the etc/fstab but when i run the command #cd etc/fstab i could not open the file or in the other word there no such file or directory
so do u think that i had run the wrong command or it juz a wrong step or the are some other way for i to set the mount point
 
Old 03-07-2007, 01:38 PM   #6
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
Quote:
Originally Posted by zulfahmi
so i had try the command u gave me
mount -t vfat -o rw /dev/ZACK /mnt/usb let said that my pendrive name ZACK but is replies
mount :special device /dev/ZACK does not exist
Where did you get this device name ZACK? Did you find out if usb-storage module is loaded??? Did you check the output of dmesg | tail? As I said, it will report with specific device...something like sda1, sdb1 or sdc1.

Quote:
Originally Posted by zulfahmi
so i think that i had to set the mounting point in the etc/fstab
You can set the mount point in fstab and it will be mounted automatically on the next boot. You can also mount a device by mount command. But editing /etc/fstab will not mount your device. You first need to make sure the device actually mounts and once you've confirmed everything, edit /etc/fstab to your device is mounted upon boot.

Quote:
Originally Posted by zulfahmi
but when i run the command #cd etc/fstab i could not open the file or in the other word there no such file or directory
/etc/fstab is a regular text file...you are trying to access it with a cd (change directory) command. Open up file in a regular text editor...you have to root to actually edit it.
Quote:
Originally Posted by zulfahmi
so do u think that i had run the wrong command or it juz a wrong step or the are some other way for i to set the mount point
Again, setting the mount point is only half the job. You need to first find out the device node your pen drive is using.
 
  


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 Scanner problem: usb 1-2: device not accepting address 3, error -71 lagartoflojo Slackware 1 11-13-2004 04:26 PM
USB problems: Memorex USB stick 256MB and PSX to USB adapter by Radio Shack Knuckles T15 Linux - Hardware 1 05-19-2004 06:58 PM
Problem with Mandrake 10.0 Community, Sagem usb modem and logitech usb mouse. al370601 Mandriva 4 04-29-2004 06:48 PM
HP Deskjet (USB) & CUPS & Slackware 9.1: Unable to open USB device "usb:/dev/usb/lp0&qu arnostienen Slackware 2 01-29-2004 03:22 PM
Problem with USB controllers and USB CD-Writer gary.chan Linux - Hardware 0 08-09-2003 03:41 AM


All times are GMT -5. The time now is 11:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration