LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-06-2008, 11:09 AM   #16
Polanski
Member
 
Registered: Sep 2004
Posts: 234

Original Poster
Rep: Reputation: 30

Any kind of help would be greatly appreciated.
 
Old 12-06-2008, 11:30 AM   #17
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Try mounting it in the shell first to see if it will mount. Did you monitor the kernel messages when inserting it.
You need to find out if the filesystem is mountable. If the pendrive itself is bad, you could waste a lot of time screwing up your system.

A) What is the device? (Try right clicking on the icon and selecting properties)
B) What does "udevinfo -q env -n </dev/sd##>" say, where ## is the device and number, for example /dev/sdc1.
Here is an example:
Code:
udevinfo -q env -n /dev/sdk1
ID_VENDOR=SanDisk
ID_MODEL=Cruzer_Mini
ID_REVISION=0.2
ID_SERIAL=SanDisk_Cruzer_Mini_20043513721b2c90edb5-0:0
ID_SERIAL_SHORT=20043513721b2c90edb5
ID_TYPE=disk
ID_INSTANCE=0:0
ID_BUS=usb
ID_PATH=pci-0000:00:0b.1-usb-0:5.4:1.0-scsi-0:0:0:0
ID_FS_USAGE=filesystem
ID_FS_TYPE=vfat
ID_FS_VERSION=FAT16
ID_FS_UUID=486F-D871
ID_FS_UUID_ENC=486F-D871
ID_FS_LABEL=podcasts
ID_FS_LABEL_ENC=podcasts
ID_FS_LABEL_SAFE=podcasts
C) Does the eeePC use HAL and udev daemons? ( Check with "ps -u root | egrep 'hal|udev' )
example:
Code:
sudo ps -u root | egrep 'hal|udev'
root's password:
  710 ?        00:00:01 udevd
 2420 ?        00:00:00 hald-runner
 2476 ?        00:00:00 hald-addon-cpuf
 2478 ?        00:00:00 hald-addon-inpu
 2483 ?        00:00:00 hald-addon-stor
 2485 ?        00:00:00 hald-addon-stor
 
Old 12-06-2008, 12:04 PM   #18
Polanski
Member
 
Registered: Sep 2004
Posts: 234

Original Poster
Rep: Reputation: 30
Here's what happens when I run the sudo tail command:

sudo tail -f /var/log/messages
Dec 6 09:49:29 tyon-laptop kernel: [ 391.475221] USB Mass Storage support registered.
Dec 6 09:49:34 tyon-laptop kernel: [ 396.716369] scsi 2:0:0:0: Direct-Access SanDisk U3 Cruzer Micro 2.18 PQ: 0 ANSI: 2
Dec 6 09:49:34 tyon-laptop kernel: [ 396.719058] sd 2:0:0:0: [sdc] 8027793 512-byte hardware sectors (4110 MB)
Dec 6 09:49:34 tyon-laptop kernel: [ 396.719845] sd 2:0:0:0: [sdc] Write Protect is off
Dec 6 09:49:34 tyon-laptop kernel: [ 396.725467] sd 2:0:0:0: [sdc] 8027793 512-byte hardware sectors (4110 MB)
Dec 6 09:49:34 tyon-laptop kernel: [ 396.727174] sd 2:0:0:0: [sdc] Write Protect is off
Dec 6 09:49:34 tyon-laptop kernel: [ 396.727227] sdc: sdc1
Dec 6 09:49:34 tyon-laptop kernel: [ 396.731961] sd 2:0:0:0: [sdc] Attached SCSI removable disk
Dec 6 09:49:34 tyon-laptop kernel: [ 396.732134] sd 2:0:0:0: Attached scsi generic sg2 type 0
Dec 6 09:59:16 tyon-laptop kernel: [ 1007.464032] usb 5-4: USB disconnect, address 3
Dec 6 10:00:00 tyon-laptop kernel: [ 1053.441449] usb 5-4: new high speed USB device using ehci_hcd and address 4
Dec 6 10:00:00 tyon-laptop kernel: [ 1053.581578] usb 5-4: configuration #1 chosen from 1 choice
Dec 6 10:00:00 tyon-laptop kernel: [ 1053.583229] scsi3 : SCSI emulation for USB Mass Storage devices
Dec 6 10:00:05 tyon-laptop kernel: [ 1058.828291] scsi 3:0:0:0: Direct-Access SanDisk U3 Cruzer Micro 2.18 PQ: 0 ANSI: 2
Dec 6 10:00:05 tyon-laptop kernel: [ 1058.832847] sd 3:0:0:0: [sdc] 8027793 512-byte hardware sectors (4110 MB)
Dec 6 10:00:05 tyon-laptop kernel: [ 1058.834292] sd 3:0:0:0: [sdc] Write Protect is off
Dec 6 10:00:05 tyon-laptop kernel: [ 1058.838972] sd 3:0:0:0: [sdc] 8027793 512-byte hardware sectors (4110 MB)
Dec 6 10:00:05 tyon-laptop kernel: [ 1058.840196] sd 3:0:0:0: [sdc] Write Protect is off
Dec 6 10:00:05 tyon-laptop kernel: [ 1058.840260] sdc: sdc1
Dec 6 10:00:05 tyon-laptop kernel: [ 1058.844961] sd 3:0:0:0: [sdc] Attached SCSI removable disk
Dec 6 10:00:05 tyon-laptop kernel: [ 1058.845136] sd 3:0:0:0: Attached scsi generic sg2 type 0


And it does run the hal daemon.
 
Old 12-08-2008, 07:37 AM   #19
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
See if you man mount it manually. For example:
sudo mkdir /mnt/sdc1
sudo mount -t vfat /dev/sdc1 /mnt/sdc1

Also check that the "vfat" kernel module is loaded.
lsmod | grep vfat

If not, modprobe it:
sudo /sbin/modprobe vfat

I just tried out the live SuSE 11.1 distro. One thing I had to do before some things would work is to add my username to the "polkituser" group. If your distro uses policy kit, you may need to do that before automounting will work.

Look at "grep polkit /etc/group". If you see "polkituser:!:105:" (the group id may be different) add your user name to the group.

Since you see that the device was assigned /dev/sdc1, look at
"udevinfo -q env -n /dev/sdc1". This should print out information about the filesystem.

Here is an example after I inserted a 2GB pendrive:
Code:
 udevinfo -q env -n /dev/sdc1
ID_VENDOR=
ID_MODEL=USB_Flash_Memory
ID_REVISION=1.00
ID_SERIAL=_USB_Flash_Memory_0802212144490-0:0
ID_SERIAL_SHORT=0802212144490
ID_TYPE=disk
ID_INSTANCE=0:0
ID_BUS=usb
ID_PATH=pci-0000:00:1d.7-usb-0:3:1.0-scsi-0:0:0:0
ID_FS_USAGE=filesystem
ID_FS_TYPE=vfat
ID_FS_VERSION=FAT16
ID_FS_UUID=6239-4981
ID_FS_UUID_ENC=6239-4981
ID_FS_LABEL=
ID_FS_LABEL_ENC=
ID_FS_LABEL_SAFE=
Here is what /var/log/messages looked like after inserting the device and letting kde automount it. I echoed it through " | cat -n" to add line numbers.

Code:
     1  Dec  8 06:39:40 qosmio kernel: usb 8-3: new high speed USB device using ehci_hcd and address 4
     2  Dec  8 06:39:40 qosmio kernel: usb 8-3: configuration #1 chosen from 1 choice
     3  Dec  8 06:39:40 qosmio kernel: usb 8-3: New USB device found, idVendor=0930, idProduct=6544
     4  Dec  8 06:39:40 qosmio kernel: usb 8-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
     5  Dec  8 06:39:40 qosmio kernel: usb 8-3: Product: USB Flash Memory
     6  Dec  8 06:39:40 qosmio kernel: usb 8-3: Manufacturer:
     7  Dec  8 06:39:40 qosmio kernel: usb 8-3: SerialNumber: 0802212144490
     8  Dec  8 06:39:40 qosmio kernel: Initializing USB Mass Storage driver...
     9  Dec  8 06:39:40 qosmio kernel: scsi6 : SCSI emulation for USB Mass Storage devices
    10  Dec  8 06:39:40 qosmio kernel: usbcore: registered new interface driver usb-storage
    11  Dec  8 06:39:40 qosmio kernel: USB Mass Storage support registered.
    12  Dec  8 06:39:40 qosmio kernel: usb-storage: device found at 4
    13  Dec  8 06:39:40 qosmio kernel: usb-storage: waiting for device to settle before scanning
    14  Dec  8 06:39:41 qosmio kernel: scsi 6:0:0:0: Direct-Access              USB Flash Memory 1.00 PQ: 0 ANSI: 2
    15  Dec  8 06:39:41 qosmio kernel: sd 6:0:0:0: [sdc] 3946367 512-byte hardware sectors (2021 MB)
    16  Dec  8 06:39:41 qosmio kernel: sd 6:0:0:0: [sdc] Write Protect is off
    17  Dec  8 06:39:41 qosmio kernel: sd 6:0:0:0: [sdc] Mode Sense: 0b 00 00 08
    18  Dec  8 06:39:41 qosmio kernel: sd 6:0:0:0: [sdc] Assuming drive cache: write through
    19  Dec  8 06:39:41 qosmio kernel: sd 6:0:0:0: [sdc] 3946367 512-byte hardware sectors (2021 MB)
    20  Dec  8 06:39:41 qosmio kernel: sd 6:0:0:0: [sdc] Write Protect is off
    21  Dec  8 06:39:41 qosmio kernel: sd 6:0:0:0: [sdc] Mode Sense: 0b 00 00 08
    22  Dec  8 06:39:41 qosmio kernel: sd 6:0:0:0: [sdc] Assuming drive cache: write through
    23  Dec  8 06:39:41 qosmio kernel:  sdc: sdc1
    24  Dec  8 06:39:41 qosmio kernel: sd 6:0:0:0: [sdc] Attached SCSI removable disk
    25  Dec  8 06:39:41 qosmio kernel: sd 6:0:0:0: Attached scsi generic sg3 type 0
    26  Dec  8 06:39:41 qosmio kernel: usb-storage: device scan complete
    27  Dec  8 06:39:41 qosmio hald: mounted /dev/sdc1 on behalf of uid 1000
Your results look similar up to "Attached scsi generic sg2 type 0".
The last to lines are missing. Check if you have the "usb-module" kernel module modprobed:
lsmod | grep storage

If not, then modprobe it:
sudo /sbin/modprobe usb-storage

In the last line, the hal daemon indicates that the drive is mounted. This depends on hald, udevd and your desktop environment.

I tried to show the dbus communications, but I had logged into kde3 instead of kde4. So this part of the equation is evolving. Since you use gnome and an Ubuntu flaver, your system probably handles this part differently.

I noticed a difference between your fstab and tredegar's. The usb entry used the "uhelper=hal" option. I don't know if ubuntu and kubuntu both use this option.

Summary:
A) Try to mount /dev/sdc1 manually. This will test if you are missing a kernel module (like vfat) or if the filesystem on the pendrive is faulty. Use "sudo file -s /dev/sdc1" and see if it understands the filesystem.

B) Check if the "usb-storage" module is loaded.

C) Check if your system uses "PolicyKit". If it does, then make sure you are a member of the "polkituser" group.
Ca) If your system has a "hotpluguser" or "hotplug" group, add yourself to that group.

D) Try the "uhelper=hal" option. If it doesn't work, you can remove it.
 
Old 12-19-2008, 08:50 AM   #20
th00ht
LQ Newbie
 
Registered: Dec 2008
Posts: 2

Rep: Reputation: 0
Installation device

I have run into this problem now a number of times and I am surprise that you unix cracks do not find this out. If one installs GNU-Linux from a USB stick it gets mounted as /dev/sdc on /media/cdrom0. And it will be so in the fstab. This will effectively prevent anything other insert to be recognized.

One could even regard this as an bug as it will systematically occur for every installation of GNU-Linux (at least Ubuntu) from a USB stick at the moment when the user is most apprehensive of confusing problems.

this is my fstab after installation
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/sda2
UUID=a8ce2b6f-8819-4156-9e48-dd15b86b5b42 /               ext2    noatime,nodiratime,errors=remount-ro 0       1
# /dev/sda1
UUID=54b43216-fed0-4a30-9580-f4d9d75780e7 /boot           ext2    noatime        0       2
# /dev/sdb1
UUID=61b6fa7f-4dac-4d85-8b75-834d9a133c41 /home           ext3    noatime,nodiratime        0       2
/dev/sdc1       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
this is it with the installation medium excluded:
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/sda2
UUID=a8ce2b6f-8819-4156-9e48-dd15b86b5b42 /               ext2    noatime,nodiratime,errors=remount-ro 0       1
# /dev/sda1
UUID=54b43216-fed0-4a30-9580-f4d9d75780e7 /boot           ext2    noatime        0       2
# /dev/sdb1
UUID=61b6fa7f-4dac-4d85-8b75-834d9a133c41 /home           ext3    noatime,nodiratime        0       2
# /dev/sdc1       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
Now could someone include this in the standard installation process? After the installation commenced the installation device is no longer needed.
 
  


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
cd/dvd automounting problem after replacing dvd-drive (Ubuntu Hardy 8.04) ErV Ubuntu 2 09-22-2008 01:47 AM
automounting USB Flash Drive BigWaveDave Linux - Embedded & Single-board computer 10 06-06-2008 09:34 AM
automounting usb drive with -noexec off Rohan_mk1 Linux - Software 0 12-13-2006 09:53 AM
automounting my USB flash drive Artex Linux - Newbie 2 08-27-2006 10:27 PM
ubuntu partitioning tool does not see external usb hard drive when installing ubuntu fakie_flip Linux - Software 2 07-30-2006 12:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02: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
Open Source Consulting | Domain Registration