Can't mount USB stick automatically

Discussion in 'Linux' started by rodocisco, Sep 30, 2008.

  1. rodocisco

    rodocisco

    Joined:
    Sep 30, 2008
    Messages:
    3
    Likes Received:
    0
    Well this is my first post asking for help! ... 1 week ago I got Acer Aspire, originally it mounted the pendrive or USB stick automatically, but then I dont know what happened (?) :shock: that it doesnt work. Just I can do it if I log as' root ', but for this I must first open the terminal.
    It's very uncomfortable, I have sought information about HAL, / etc / ... / hal.conf, dbus, /etc/fstab, ... and information on the Internet disorderly ... I hope you can help to mount my USB stick automatically in mode 'user' ..... thanks
     
    rodocisco, Sep 30, 2008
    #1
  2. rodocisco

    ivor

    Joined:
    Sep 9, 2008
    Messages:
    52
    Likes Received:
    0
    Lets get the basics out of the way... what have you changed? are you on a standard acer linpus build or are you customised. and if so... what packages have you updated or upgraded?
    There are several components/options that may affect auto-mounting, and the fix will depend on whats broken.
     
    ivor, Sep 30, 2008
    #2
  3. rodocisco

    kevin

    Joined:
    Sep 18, 2008
    Messages:
    274
    Likes Received:
    0
    What does the output of dmesg show when you plug the stick in? Do any new directories appear in /media? Does anything happen in the file manager?
     
    kevin, Sep 30, 2008
    #3
  4. rodocisco

    rodocisco

    Joined:
    Sep 30, 2008
    Messages:
    3
    Likes Received:
    0
    Well, I just enable xfce-setting-show , mmm then i was looking my system, ... i realized that the permissions of /home/user have changed to 'root', i had to change to 'user' again, actually i didn't know why this happened ... anyway
    I have watch /etc/dbus-1/system.d/hal.conf, it seems be OK, but i cant't found exactly what happened,, maybe something related to permissions ...
    I hope your help patiently, THNX
     
    rodocisco, Sep 30, 2008
    #4
  5. rodocisco

    rodocisco

    Joined:
    Sep 30, 2008
    Messages:
    3
    Likes Received:
    0
    I need to know the original permissions on Linpus folders like /home, /mount /media and related to them, i think that I could changed persmissions for mistake, .... Thnx for your time,wait for your help ..
    cheerss!!
     
    rodocisco, Oct 2, 2008
    #5
  6. rodocisco

    kevin

    Joined:
    Sep 18, 2008
    Messages:
    274
    Likes Received:
    0
    /home, /mnt, and /media should all be owned by root, permissions 755.

    With all due respect, it's impossible the help you because you aren't describing the problem in enough detail, nor providing any diagnostic information. Please describe in detail the exact steps you follow, what happens at each step, and how that is different from what you expect to happen. Please post in the output from dmesg after you have inserted the stick, and the output of `ls -l /media'. Please describe what, if anything, you see in the file manager.
     
    kevin, Oct 2, 2008
    #6
  7. rodocisco

    knareweb

    Joined:
    Oct 9, 2008
    Messages:
    6
    Likes Received:
    0
    I've looked all over the forum to solve the same issue. None of my USB drives will mount, all with the same 'cant obtain lock on /media/.hal....' error

    I've tried most of the fixes suggested (deleting directories, autofs, panels.xml) etc.. with no joy :(

    so reading your post (kevin) and answering your questions... the output of DMESG is below
    Adding 1052248k swap on /dev/sda2. Priority:-1 extents:1 across:1052248k
    usb 1-3: new high speed USB device using ehci_hcd and address 3
    usb 1-3: configuration #1 chosen from 1 choice
    scsi2 : SCSI emulation for USB Mass Storage devices
    usb-storage: device found at 3
    usb-storage: waiting for device to settle before scanning
    usb-storage: device scan complete
    scsi 2:0:0:0: Direct-Access CBM Flash Disk 5.00 PQ: 0 ANSI: 2
    sd 2:0:0:0: [sdb] 2043392 512-byte hardware sectors (1046 MB)
    sd 2:0:0:0: [sdb] Write Protect is off
    sd 2:0:0:0: [sdb] Mode Sense: 0b 00 00 08
    sd 2:0:0:0: [sdb] Assuming drive cache: write through
    sd 2:0:0:0: [sdb] 2043392 512-byte hardware sectors (1046 MB)
    sd 2:0:0:0: [sdb] Write Protect is off
    sd 2:0:0:0: [sdb] Mode Sense: 0b 00 00 08
    sd 2:0:0:0: [sdb] Assuming drive cache: write through
    sdb: sdb1
    sd 2:0:0:0: [sdb] Attached SCSI removable disk
    sd 2:0:0:0: Attached scsi generic sg1 type 0

    which would suggest I could get to the drive at /dev/sda2 - no luck (its formatted in Fat 32)
    no directories / files created in my /media folder
    in file manager (thunar) I can see "USB_DRIVE" added as a removable drive but when i try to access it comes back with the same error as before.

    Pulling my hair out on this - everything is great on the 'One' i just cant get it to read USB devices !

    Any help would be greatly appreciated
     
    knareweb, Oct 24, 2008
    #7
  8. rodocisco

    rbil

    Joined:
    Aug 14, 2008
    Messages:
    730
    Likes Received:
    0
    Location:
    The Wet Coast, Canada
    /dev/sda2 is your swap partition. It certainly shouldn't be formatted FAT32!

    Cheers.
     
    rbil, Oct 24, 2008
    #8
  9. rodocisco

    knareweb

    Joined:
    Oct 9, 2008
    Messages:
    6
    Likes Received:
    0
    ah - my mistake - meant to say the usb stick is formatted as fat32.

    apologies :oops:
     
    knareweb, Oct 24, 2008
    #9
  10. rodocisco

    cpchan

    Joined:
    Sep 22, 2008
    Messages:
    201
    Likes Received:
    0
    What is the output of:

    Code:
    ls -la /media
    
    ?
     
    cpchan, Oct 24, 2008
    #10
  11. rodocisco

    knareweb

    Joined:
    Oct 9, 2008
    Messages:
    6
    Likes Received:
    0
    here you go:
    [user@localhost ~]$ ls -la /media
    total 4
    drwxr-xr-x 2 root root 0 2008-10-24 20:38 .
    drwxr-xr-x 28 root root 4096 2008-10-24 20:38 ..
     
    knareweb, Oct 24, 2008
    #11
  12. rodocisco

    cpchan

    Joined:
    Sep 22, 2008
    Messages:
    201
    Likes Received:
    0
    Do this:

    Code:
    sudo chown root:user /media
    sudo chmod 775 /media
    and try again.
     
    cpchan, Oct 24, 2008
    #12
  13. rodocisco

    knareweb

    Joined:
    Oct 9, 2008
    Messages:
    6
    Likes Received:
    0
    tried your suggestion, with the following output

    [user@localhost ~]$ sudo chown root:user /media
    [user@localhost ~]$ sudo chmod 775 /media
    [user@localhost ~]$ ls -la /media
    total 4
    drwxrwxr-x 2 root user 0 2008-10-24 21:00 .
    drwxr-xr-x 28 root root 4096 2008-10-24 21:00 ..

    still says usb cannot be mounted, tried re-inserting etc no joy
     
    knareweb, Oct 24, 2008
    #13
  14. rodocisco

    joe.pelayo

    Joined:
    Oct 12, 2008
    Messages:
    31
    Likes Received:
    0
    Have you updated anything? Last Friday I updated something and that happened to me. If so try updating PolicyKit (there is another package starting with "c" that is important, can't remember the name right now) since I think that is the one who manages permissions. Obviously if it tries to update the whole system with it stop and keep looking for a different solution. In any event back up everything and be ready to reinstall Linpus (in fact that is the easier solution for the problem, and takes about 20 minutes only, 40 if you count the creation of the liveUSB).

    In fact I found it quite useful to have a spare 2GB SD lying around with the live image of Linpus in case I need to format again. I use it with a USB adapter.

    Good luck.
    Joe.
     
    joe.pelayo, Oct 24, 2008
    #14
  15. rodocisco

    cpchan

    Joined:
    Sep 22, 2008
    Messages:
    201
    Likes Received:
    0
    Can you list all the things changed on your system since it last worked? It is very hard to debug the system without seating in front of the machine.

    You can also try backing up and replacing your /etc/PolicyKit/PolicyKit.conf with my personal version here:

    http://www.aspireoneuser.com/forum/download/file.php?id=495

    (don't forget to gunzip it), restart hald or reboot and see if it works.
     
    cpchan, Oct 24, 2008
    #15
  16. rodocisco

    knareweb

    Joined:
    Oct 9, 2008
    Messages:
    6
    Likes Received:
    0
    thanks, I downloaded and copied over the policykit conf file - still no joy. looks like somehing I have done when "playing" with Linpus (I'm a simple windows guy :)).

    Guess I'll rebuild from fresh and try again - especially if t only takes 20 minutes

    thanks for all your help
     
    knareweb, Oct 24, 2008
    #16
  17. rodocisco

    joe.pelayo

    Joined:
    Oct 12, 2008
    Messages:
    31
    Likes Received:
    0
    Might be the best option. Just bear in mind that if your One is SSD based you'd better be careful the next time so you won't need to install over and over because these SSDs have limited write cycles and would thus die faster the more you reformat.

    Good luck.
    Joe.
     
    joe.pelayo, Oct 24, 2008
    #17
  18. rodocisco

    knareweb

    Joined:
    Oct 9, 2008
    Messages:
    6
    Likes Received:
    0
    rebuild fixed it :)

    Now to re apply all the changes i did last time BUT will make sure USB works at each stage this time round.

    Thanks for the help
     
    knareweb, Oct 25, 2008
    #18
  19. rodocisco

    Carrotts

    Joined:
    Aug 28, 2008
    Messages:
    10
    Likes Received:
    0
    cpchan
    Used your policy file to get my usb automounting again and it worked a treat. Thank you very much. Can you explain what the difference between your file and the default are please? Just to help my knowledge.
    Cheers
    Carrotts
     
    Carrotts, Dec 7, 2008
    #19
  20. rodocisco

    cpchan

    Joined:
    Sep 22, 2008
    Messages:
    201
    Likes Received:
    0
    The difference is that the default one in Linpus only allows "root" access to the hardware devices. Where as mine adds the user "user" to be able to access all devices.
     
    cpchan, Dec 8, 2008
    #20
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.