Search This Blog

Tuesday 23 February 2010

Mounting a drive twice

I didn't think such a thing was possible. Not only is it so, but I have inadvertently done so, as I could see by my disk usage going haywire.

Disk space = 120GB.

Disk usage analyser shows 55GB taken, but df -h shows only around 5GB free. However, a glance at this post shows my problem.

The command of

sudo du -hx --max-depth=1 /media


produces this outcome:

root@ubuntu:~# sudo du -hx --max-depth=1 /media
4.0K    /media/floppy0
55G    /media/sdc1
4.0K    /media/cdrom0
4.0K    /media/sdb1
4.0K    /media/sda1
55G    /media

So it is mounted within itself.

But how to solve?

Well, fortunately it was no more difficult than umount /media/sdc1

But the shortage of space was still there, which after some investigating, and using Disk Usage Analyzer, seemed to be a result of logs

sudo du -h --max-depth=1 / | sort -n

and

tail /var/log/syslog

(and running the second command on other logs) allowed the culprits to be found, deleted, and space restored....

Wednesday 10 February 2010

Tuesday 9 February 2010

DVD not playing on Acer

My post and response on Ubuntu Forums:

My son has an Acer Aspire One running Ubuntu, and has VLC installed.

As this machine doesn't have a DVD drive, he has an external LiteOn DVD multiformat drive.

He decided last night he wanted to watch Paul Blart Mall Cop (he's only 8!). The DVD went in the drive, the DVD showed on the desktop, and the message came up about "Open with VLC". Which we tried - and VLC closed.

I tried various other ways to get the disk to play - opening VLC and then choosing disk, double clicking on mounted icon on desktop, none would work.

I then installed Totem Movie Player to see if that would cope any better. It didn't.

The one thing I am wondering is about region - we have used the DVD drive in the past to play region free DVDs that I had burned myself, but this may be the first time we have tried one with region encoding.

Could that be it? If so, how do I determine in Ubuntu what region I have and how can I amend it if necessary?

Response:

I think, DVD is encrypted.

You need to add medibuntu's repository, and install libdvdcss2 package.

Add repository first using

sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update

Then

sudo apt-get install libdvdcss2