LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 11-30-2004, 09:28 AM   #1
ShamitSoneji
LQ Newbie
 
Registered: Nov 2004
Distribution: Ubuntu
Posts: 26

Rep: Reputation: 15
mounting usb pen drive; ntfs problem


I'm running FC3, and am having a problem mounting a new USB pen drive.

I tried:

mkdir media/pendirve
mount /dev/sda1 media/pendrive

but the contents of media/pendrive are nothing like what is on the pendrive. I tried sda2, and it complained of the kernal not having ntfs support.

Can I assume that it is trying sda2, but can't mount it due to the file system? If so, I guess I need to install the ntfs-kernel rpm to enable it? The lsusb command doesn't work on my system so I can't tell you what it reports.

Many thanks
 
Old 11-30-2004, 09:52 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
if you do a mount command, and get no errors, it normally means that the mounting was succesful. if you get to this point, try copying some files over to the mountpoint (in your example media/pendrive), then

umount media/pendrive

and then re-mount it and see if you have the files there. also, check that the led on your drive flashes when you copy/umount it.

if you get errors, then mount did not succeed. if the memory key's filesystem is ntfs, you're out of luck - linux can read ntfs filesystems, but writing to one is either impossible or very bad idea..I'd say use fat (vfat = fat32) filesystem, if you want to use it with windows machines too. but do not use ntfs. also, I have thought the fs would be fat anyway, since the memory keys are often meant to work in other windows' too than in xp or nt only...so are you sure it is sda2? I wouldn't be...
 
Old 11-30-2004, 10:24 AM   #3
ShamitSoneji
LQ Newbie
 
Registered: Nov 2004
Distribution: Ubuntu
Posts: 26

Original Poster
Rep: Reputation: 15
Thanks for the reply. I'm not sure if it is sda2 either. Before I upgraded form FC2 to FC3 I had no problems mounting a pendrive from sda1. Like I said, when I mounted sda1 the contents of media/pendrive were not what is on the drive (I copied one file over from a windows machine, which should be the only file on there). Also, the light does not flash when it is supposedly mounted.




Quote:
Originally posted by b0uncer
if you do a mount command, and get no errors, it normally means that the mounting was succesful. if you get to this point, try copying some files over to the mountpoint (in your example media/pendrive), then

umount media/pendrive

and then re-mount it and see if you have the files there. also, check that the led on your drive flashes when you copy/umount it.

if you get errors, then mount did not succeed. if the memory key's filesystem is ntfs, you're out of luck - linux can read ntfs filesystems, but writing to one is either impossible or very bad idea..I'd say use fat (vfat = fat32) filesystem, if you want to use it with windows machines too. but do not use ntfs. also, I have thought the fs would be fat anyway, since the memory keys are often meant to work in other windows' too than in xp or nt only...so are you sure it is sda2? I wouldn't be...
 
Old 11-30-2004, 10:49 AM   #4
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
You could have a try to look at the output of dmesg (shortly after plugging the drive in). This should show you as which device the drive has been recognized. Sometimes more than one partition is recognized on the drive (but only one of them can be mounted). It may also help to re-format the drive (better you use FAT32 instead of NTFS).
 
Old 11-30-2004, 11:53 AM   #5
ShamitSoneji
LQ Newbie
 
Registered: Nov 2004
Distribution: Ubuntu
Posts: 26

Original Poster
Rep: Reputation: 15
Ok, I found the lsusb command and got this when the drive was plugged in (various slots):

Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

does this mean it cant see it?
 
Old 11-30-2004, 12:01 PM   #6
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
I have no idea what that means!
Seems like it is not recognized by the system. May you'll need to activate USB in the BIOS?
Try dmesg (or /var/log/messages).
Are USB modules being loaded (lsmod)?
 
Old 11-30-2004, 12:08 PM   #7
ShamitSoneji
LQ Newbie
 
Registered: Nov 2004
Distribution: Ubuntu
Posts: 26

Original Poster
Rep: Reputation: 15
shall i post the output from dmesg for you to look at?
 
Old 11-30-2004, 12:19 PM   #8
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
Not all of it! In the last few lines there should appear something like this:
Code:
usb 3-1: new full speed USB device using address 3
scsi3 : SCSI emulation for USB Mass Storage devices
  Vendor: TwinMOS   Model: Mobile Disk       Rev: 1.11
  Type:   Direct-Access                      ANSI SCSI revision: 02
SCSI device sdb: 258048 512-byte hdwr sectors (132 MB)
sdb: assuming Write Enabled
sdb: assuming drive cache: write through
 sdb: sdb1
Attached scsi removable disk sdb at scsi3, channel 0, id 0, lun 0
Attached scsi generic sg1 at scsi3, channel 0, id 0, lun 0,  type 0
USB Mass Storage device found at 3
If you do not get anything related to USB, there is not use in posting it. You may post the output of 'dmesg | grep usb', but this information will not be complete.

But since lsusb doesn't show your drive, there is probably nothing in dmesg either. Unfortunately I have no clue about FC3's hotplug system.

Probably lsmod gives better information on what is going wrong...
 
Old 11-30-2004, 12:25 PM   #9
ShamitSoneji
LQ Newbie
 
Registered: Nov 2004
Distribution: Ubuntu
Posts: 26

Original Poster
Rep: Reputation: 15
heres what I get using dmesg and lsmod:

grep USB dm.txt
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
VBTN PCI0 USB0 USB1 USB2 PCI1 PCI2 PCI3 PCI4 KBD
ehci_hcd 0000:00:1d.7: new USB bus registered, assigned busnumber 1
ehci_hcd 0000:00:1d.7: USB 2.0 enabled, EHCI 1.00, driver 2004-May-10
hub 1-0:1.0: USB hub found
USB Universal Host Controller Interface driver v2.2
uhci_hcd 0000:00:1d.0: new USB bus registered, assigned busnumber 2
hub 2-0:1.0: USB hub found
uhci_hcd 0000:00:1d.1: new USB bus registered, assigned busnumber 3
hub 3-0:1.0: USB hub found
uhci_hcd 0000:00:1d.2: new USB bus registered, assigned busnumber 4
hub 4-0:1.0: USB hub found


lsmod:

Module Size Used by
vfat 16961 0
fat 44897 1 vfat
vmnet 31536 12
vmmon 47592 0
udf 80581 0
parport_pc 27777 1
lp 14893 0
parport 40969 2 parport_pc,lp
autofs4 21700 0
i2c_dev 13249 0
i2c_core 25921 1 i2c_dev
sunrpc 136997 1
ipt_REJECT 10433 1
ipt_state 5825 5
ip_conntrack 45701 1 ipt_state
iptable_filter 6721 1
ip_tables 20929 3 ipt_REJECT,ipt_state,iptable_filter
microcode 11489 0
dm_mod 56773 0
button 10449 0
battery 12485 0
ac 8773 0
md5 8001 1
ipv6 235105 12
ohci1394 35033 0
ieee1394 302965 1 ohci1394
uhci_hcd 32729 0
ehci_hcd 31941 0
snd_intel8x0 35853 1
snd_ac97_codec 65169 1 snd_intel8x0
snd_pcm_oss 50809 0
snd_mixer_oss 20929 1 snd_pcm_oss
snd_pcm 89669 2 snd_intel8x0,snd_pcm_oss
snd_timer 27077 1 snd_pcm
snd_page_alloc 13641 2 snd_intel8x0,snd_pcm
gameport 8513 1 snd_intel8x0
snd_mpu401_uart 11329 1 snd_intel8x0
snd_rawmidi 27109 1 snd_mpu401_uart
snd_seq_device 11849 1 snd_rawmidi
snd 54821 11 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi, snd_seq_device
soundcore 12961 1 snd
e1000 80205 0
floppy 57297 0
ext3 117961 3
jbd 59353 1 ext3
mptscsih 36605 0
mptbase 47201 1 mptscsih
sd_mod 20289 5
scsi_mod 112136 2 mptscsih,sd_mod
 
Old 11-30-2004, 12:34 PM   #10
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
Strange!

I expected usbcore to be loaded, since on my system o/u/ehci_hcd require usbcore.

Can you modprobe usbcore? Is this a 2.6 kernel?

Sorry, I have no ideas...
 
Old 11-30-2004, 12:39 PM   #11
ShamitSoneji
LQ Newbie
 
Registered: Nov 2004
Distribution: Ubuntu
Posts: 26

Original Poster
Rep: Reputation: 15
>modprobe usbcore
FATAL: Module usbcore not found.

I'm running the 2.6.9-1.667smp kernel. Do you think an update would help?

I really appreciate the effort you are putting into helping me!
 
Old 11-30-2004, 12:39 PM   #12
Joe47
Member
 
Registered: Dec 2002
Location: San Diego California
Distribution: Fedora Core 6
Posts: 64

Rep: Reputation: 15
USB automount

Doesn't FC3 autmount USB devices ?
USB thumb drives have become rather popular as a means of quick and easy removable data storage; accessing this under Linux used to mean finding the device name, mounting the device, accessing the data, then un-mounting it, all most likely via accessing the terminal. That's a thing of the past now!

The moment a USB thumb drive (including a digital camera) is plugged in, hotplug detects it, udev assigns it a device node, and with a message passed on via D-BUS to HAL, GNOME detects it and automatically mounts it as the user currently logged in. An icon for the drive is placed on the desktop (unless it is a digital camera, which is automatically mounted but behaves differently). A user can now access her files just by double-clicking on the icon placed on her desktop — when done simply closing the open window and ejecting the device is all that's required.

Such automated operation also extends to digital cameras (plug in your camera and if it detects new photos it offers to sync them), data and audio CDs, and portable MP3 devices like the popular iPod. The new File Alteration Monitor, gamin, provides notification to the GUI tools within the system about the file system when changes such as creation, modification, or removal occurs. Gamin prevents unnecessary “locking” of devices, even after they're used — a common problem that plagued older releases of Fedora.
 
Old 11-30-2004, 12:47 PM   #13
ShamitSoneji
LQ Newbie
 
Registered: Nov 2004
Distribution: Ubuntu
Posts: 26

Original Poster
Rep: Reputation: 15
So what you are saying is that I should be able to plug in my pendrive, and it will auto mount it (where?) and I should be able to use it straight away?

When I plug the drive in, nothing happens at all. Does hotplugging need to be enabled somewhere? Damn I'm getting confused here
 
Old 11-30-2004, 12:48 PM   #14
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
Quote:
I'm running the 2.6.9-1.667smp kernel. Do you think an update would help
No, since this is a very recent version. The usbcore is probably compiled into the kernel, sorry if I have caused confusion.

Like Joe47 mentioned, it is possible that FC3 has already automounted the drive and therefore you cannot mount it the classical way. However somewhere the drive should appear. Maybe you'll find information about that in /etc/fstab and /etc/mtab.
 
Old 11-30-2004, 01:12 PM   #15
ShamitSoneji
LQ Newbie
 
Registered: Nov 2004
Distribution: Ubuntu
Posts: 26

Original Poster
Rep: Reputation: 15
Here are those 2 files:

fstab:

# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
LABEL=/home /home ext3 defaults 1 2
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/sda6 swap swap defaults 0 0
/dev/hdd /media/cdrom auto pamconsole,ro,exec,noauto,managed 0 0
/dev/hdc /media/cdrecorder auto pamconsole,ro,exec,noauto,managed 0 0
/dev/fd0 /media/floppy auto pamconsole,exec,noauto,managed 0 0


mtab:

/dev/sda5 / ext3 rw 0 0
none /proc proc rw 0 0
none /sys sysfs rw 0 0
none /dev/pts devpts rw,gid=5,mode=620 0 0
usbfs /proc/bus/usb usbfs rw 0 0
/dev/sda3 /boot ext3 rw 0 0
none /dev/shm tmpfs rw 0 0
/dev/sda7 /home ext3 rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0

I dont see where autmounting will have occured. Am I correct?
 
  


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
Mounting a USB pen drive in Fedora Core 1 mrde50garfield Linux - Hardware 2 07-26-2010 02:14 AM
USB pen drive not mounting. /dev/sda1 not present! hamish Linux - Hardware 9 01-11-2010 09:25 PM
Mounting usb pen drive file permssions problems linuxmandrake Debian 1 10-10-2005 08:21 PM
Problem Mounting a USB Pen lawrencegoodman Linux - Hardware 1 02-19-2004 06:01 PM
problem with usb pen drive dryhte Slackware 3 05-20-2003 02:29 AM

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

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