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.
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.
Comment