Feeds:
Posts
Comments

Posts Tagged ‘mount point’

If you’ve attached an external hard drive for backing up your files, or created a new partition for storage, only to find you don’t have the permissions to use it, you’d be understandably frustrated. But it’s actually quite easy to remedy by simply running a command in the terminal in the form of:

sudo chown -R username:username /partition/mount-point

Note that the above isn’t the actual command you’ll be using, as you’ll need to replace each instance of username with your actual username, and also determine your mount-point, which is not the device name (eg: /dev/sdb1).

To find the mount-point, run mount in the terminal, and locate the line that corresponds to the drive or partition in question. If you have never named (or set the label for) it, it will probably look something like:

/dev/sdb1 on /media/bf9a2c45-491a-4778-9d76-47832fe38820

If you have set the label with something descriptive, it should like similar to:

/dev/sdb1 on /media/1Tb Pocket Drive

As you can see, your mount-point will look something like /media/bf9a2c45-491a-4778-9d76-47832fe38820 or /media/1Tb Pocket Drive, so all you need to do now is run a command like one of the following, replacing the relevant info with what is appropriate to you:

sudo chown -R billgates:billgates /media/bf9a2c45-491a-4778-9d76-47832fe38820

sudo chown -R billgates:billgates '/media/1Tb Pocket Drive'

Note that if your custom label contains spaces (e.g. 1Tb Pocket Drive) , you will need to enclose the entire mount-point path in single quotes, but won’t need them if it’s a single word or multiple words joined by hyphens or underscores.

That’s it – you should now be able to do whatever you want with the drive or partition in question, as you’re now the owner.

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

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!

ption]

Read Full Post »

Every now and then, you’re going to need some technical info about your optical disc (CD or DVD) drive. For example, if you’re using a command like that outlined in Fix “Cannot find input plugin for MRL [dvd:/]” Error in Kaffeine, MPlayer & Other Media Players in Ubuntu, being sudo ln -s /media/cdrom0 /dev/dvd, it will be useless if /media/cdrom0 is not the actual mount point. Often I see in forums people complaining a command couldn’t find the disc drive, but the command would work if the correct mount point was specified (they’re not universal, which I think many people expect them to be).

But finding out the mount point of your CD or DVD drive is actually quite easy: insert a disc, wait for it to be mounted, and when a folder window opens to the drive automatically (if it doesn’t, open it manually), simply note the path/address in the Location bar! Yes, it’s that easy, since the location won’t be the disc’s label, but the mount point on your system.

Another way to do it is simply browse through the subfolders in /media (or could even be /mnt on older systems) until you find the one that shows your disc (you’ll need to have one in the drive, of course).

Or if you want to do it via the terminal, you can use mount|grep ^'/dev' which will display info as follows:

/dev/sda2 on / type ext3 (rw,relatime,errors=remount-ro)
/dev/sda1 on /media/Windows-XP-x64 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sr0 on /media/cdrom0 type iso9660 (ro,nosuid,nodev,user=ozzman)

In this case, /dev/sr0 is the device path, and /media/cdrom0 is the mount point, so if you ever come across a command for your disc drive where the mount point is specified as (for example) /media/disk1, you can pretty much expect it not to work, but at least you know that you can replace the incorrect value with /media/cdrom0 (or whatever your mount point actually is).

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

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 »