Feeds:
Posts
Comments

Posts Tagged ‘mount’

If you’ve upgraded your Ubuntu system only to find you don’t have permission to do pretty much anything, as I did after upgrading to 13.10, it can be pretty annoying even for an advanced user, and downright scary for a novice. The symptoms are pretty obvious, as when you go to install updates, all you get is an error message saying “This operation cannot continue since proper authorization was not provided“. And using the Shutdown button seems to do nothing, and even using a terminal command to power off might see the shutdown process halt half-way through, forcing you to use the PC’s power button.

On top of that, even mounting removable drives (or other partitions on your internal drive) ends in being told you can’t, and even trying to play a DVD ends with “Unable to access “DVDVIDEO”. Not authorized to perform operation.

While there are ways around all of these situations for more advanced users, those less experienced with Ubuntu/Linux would find it all quite daunting, and pretty much look at their system as unusable. And one shouldn’t have to go through the bother of manually mounting drives through the terminal, or invoking the Software Updater as superuser, or any other thing we usually take for granted.

Luckily, the fix – which involves PAM (Pluggable Authentication Modules) – is actually quite simple, and should have everything back to normal in no time.

In a terminal, enter the following command to edit the PAM authentication file for the LightDM display manager:

gksu gedit /etc/pam.d/lightdm

Under the first line “#%PAM-1.0” paste the following 2 lines:

session required pam_loginuid.so
session required pam_systemd.so

Save and exit the file, then log out and back in again, and all should now be fine (you shouldn’t need to reboot).

☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻

Another method, which fixed the problem for some (but not in my case, and many others) is to run:

sudo pam-auth-update --force

This opens PAM‘s config within the terminal, at which you either check or uncheck items, or just hit Tab to go to OK, and hit Enter.

☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻

If need be, like you have GDM installed and it is interfering with LightDM, run dpkg-reconfigure gdm and select lightdm (you may need to reboot).

☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻

Did this information make your day? Did it rescue you from hours of headache? Then please consider making a donation via PayPal, to buy me a donut, beer, or some fish’n’chips for my time and effort! Many thanks!

Buy Ubuntu Genius a Beer to say Thanks!

Advertisements

Read Full Post »

If you’ve come across some commands that require the actual device name of your CD/DVD drive (eg: /dev/dvd), rather than the mount point (eg: /media/cdrom0), it pays to know what it is, as commands won’t work if they’re looking in the wrong place. There are a couple of ways of doing this, and you’ll probably find they give conflicting outputs, but where one is not useful to you, the other will be; for example, if your drive is both /dev/scd0 and /dev/sr0, you might find /dev/sr0 works for most commands, and where it fails /dev/scd0 won’t.

Method 1:

To find out the name of the block device file representing your optical disc drive, enter the following into a terminal, without a disc in the drive:

wodim --devices

The information will be displayed as follows:

wodim: Overview of accessible drives (1 found) :
————————————————————————-
0 dev=’/dev/scd0‘ rwrw-- : ‘ASUS’ ‘DRW-24B1ST’
————————————————————————-

If there is a disc in the tray, you will see the following error, so just eject the disc and run the command again:

wodim: No such file or directory.
Cannot open SCSI driver!
For possible targets try ‘wodim --devices’
or ‘wodim -scanbus’.
For possible transport specifiers try ‘wodim
dev=help’.
For IDE/ATAPI devices configuration,
see the file README.ATAPI.setup from
the wodim documentation.

Method 2:

To find out the name of the block device file representing your optical disc drive, as well as its mount point, enter the following into a terminal:

mount|grep ^'/dev'

The output will look as follows:

/dev/sda3 on / type ext4 (rw)
/dev/sda1 on /media/Windows XP type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sr0 on /media/cdrom0 type iso9660 (ro,noexec,nosuid,nodev,unhide,user=ozzman)


°ºÒθÓº°¤°ºÒθÓº°¤°ºÒθÓº°

☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻

Did this information make your day? Did it rescue you from hours of headache? Then please consider making a donation via PayPal, to buy me a donut, beer, or some fish’n’chips for my time and effort! Many thanks!

Buy Ubuntu Genius a Beer to say Thanks!

Read Full Post »