Announcement

Collapse
No announcement yet.

Lucid permissions problems for usb SOLVED!

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #46
    Re: Lucid permissions problems for usb

    Results from actions:

    Trying Greygeek's suggestions first because this system cache thing is worrying:

    su su - which will switch the Konsole to a root console.
    Then issue apt-get update to refresh the system cache, followed by
    apt-get -f install to hopefully fix anything that has been borked by an incomplete upgrade or install. Then do
    apt-get --reinstall ureadahead


    On my system switch to root using sudo su - , so I did that.
    Then apt-get update but it seems the system cache is up to date as it just read the package lists?
    Then apt-get -f install produced this:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
    linux-headers-2.6.32-21 linux-headers-2.6.32-22 libparted0
    linux-headers-2.6.32-21-generic linux-headers-2.6.32-22-generic
    Use 'apt-get autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    Then :~# apt-get --reinstall ureadahead
    E: Invalid operation ureadahead
    so I tried apt-get install ureadahead
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    ureadahead is already the newest version.
    ureadahead set to manually installed.
    The following packages were automatically installed and are no longer required:
    linux-headers-2.6.32-21 linux-headers-2.6.32-22 libparted0
    linux-headers-2.6.32-21-generic linux-headers-2.6.32-22-generic
    Use 'apt-get autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    So then I autoremoved those two two packages

    So now I think I can presume that everything's hunky dory with the system cache again.

    Trying Oshunluvrs suggestions:

    All those files under /media named usbX need to be removed. I suspect they're there from past removal of the usb drive without correctly unmounting.

    Removed all the files and now get this output from ls -l /media with no usb connected:

    lrwxrwxrwx 1 root root 6 2007-09-11 13:03 cdrom -> cdrom0
    drwxr-xr-x 2 root root 4096 2007-09-11 13:03 cdrom0
    drwxr-xr-x 2 root root 4096 2007-09-30 00:07 tsaihong
    lrwxrwxrwx 1 root root 4 2007-09-26 22:16 usb -> usb0

    now mounting usb
    SUCCESS! Can now write to it in the normal way!
    output from ls -l /media with usb connected:

    total 24
    lrwxrwxrwx 1 root root 6 2007-09-11 13:03 cdrom -> cdrom0
    drwxr-xr-x 2 root root 4096 2007-09-11 13:03 cdrom0
    drwxr-xr-x 14 bernie root 16384 1970-01-01 08:00 disk
    drwxr-xr-x 2 root root 4096 2007-09-30 00:07 tsaihong
    lrwxrwxrwx 1 root root 4 2007-09-26 22:16 usb -> usb0

    now dismounting through GUI - SUCCESS!
    removing usb
    output from ls -l /media after usb removal:

    total 8
    lrwxrwxrwx 1 root root 6 2007-09-11 13:03 cdrom -> cdrom0
    drwxr-xr-x 2 root root 4096 2007-09-11 13:03 cdrom0
    drwxr-xr-x 2 root root 4096 2007-09-30 00:07 tsaihong
    lrwxrwxrwx 1 root root 4 2007-09-26 22:16 usb -> usb0

    So now it looks like the inability to dismount my usb sticks was causing the permissions problems and that seems to be fixed now. I'll keep an eye on that situation in future through ls -l /media because I still don't know what caused it in the first place. BUT vbgunz has pointed me to a possible explanation. I never thought of checking the device notifier settings until I saw his (?) post and guess what? It was set to mount ALL media at login!!!! I definitely did not make that setting, so I think something in the Lucid upgrade in May did that. So I think that's why the media never unmounted. Doh!

    Thank you so much for your help with this! Will post this as solved now.
    I'm only here so often because I'm too blinking lazy to learn shell!

    Comment


      #47
      Re: Lucid permissions problems for usb

      @ bernieszu

      So the problem was most likely all those unused usbX folders in media? Also, Device notifier may have contributed to it considering you never mounted/unmounted on demand? Nice you solved your issue, everything is awesome when it works

      Just a note, next time you go to reinstall using apt-get, you have to also add install to your command. e.g., sudo apt-get install --reinstall ureadahead . No smiley face

      @GreyGeek
      Originally posted by GreyGeek
      Plugdev? Are YOU and the user "usbmux" members of plugdev?
      Using kuser, I can see I am in the plugdev group. I also see the system user usbmux is also in the plugdev group. I hope this is correct as I don't mess around with users at all. This is pretty much a single user system.

      Originally posted by GreyGeek
      You said you mounted sdh1 manually. How?
      In my code up above, I never mounted sdh1, I just attached it so you got it right.

      Comment


        #48
        Re: Lucid permissions problems for usb

        Originally posted by vbgunz
        @ bernieszu

        So the problem was most likely all those unused usbX folders in media? Also, Device notifier may have contributed to it considering you never mounted/unmounted on demand? Nice you solved your issue, everything is awesome when it works

        Just a note, next time you go to reinstall using apt-get, you have to also add install to your command. e.g., sudo apt-get install --reinstall ureadahead . No smiley face
        That was my typo, which she followed. Sorry about that.
        @GreyGeek
        Originally posted by GreyGeek
        Plugdev? Are YOU and the user "usbmux" members of plugdev?
        Using kuser, I can see I am in the plugdev group. I also see the system user usbmux is also in the plugdev group. I hope this is correct as I don't mess around with users at all. This is pretty much a single user system.
        It is correct.

        "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
        – John F. Kennedy, February 26, 1962.

        Comment

        Working...
        X