Tuesday, October 30, 2012

Auto-mounting doesn't work Ubuntu 12.10

I upgraded  my desktop to ubuntu 12.10 recently and frankly speaking, I regret it. The process went smoothly, received no errors whatsoever, but after restart I had many problems. The ATI driver not working at all, additional drivers option was omitted completely from Administration menu and I had to install it manually from ATI webiste ( failed as well).So right now I use the basic setup for vga ,, most of the decoding work is done on the CPU.

The other problem is auto-mounting ... i have many drivers connected to my PC  ,, one is SATA NTFS one.. the other is usb-fat ... initially I tried disk utility to mount them , didn't work , then i tried Gparted to see what's the problem ... the error message was vague and nothing specific to work on

 ...eventually It occurred to me to check fstab file,apparently there was problem adding entries to the file automatically , I added them manually,restarted the pc, worked =) !
 here is a brief how to...

1- open terminal,create empty folders in /media folder as mounting points for your drives (requires root privileges )
cd /media
sudo mkdir folder1 

2- type sudo blkid to get the information you need ,

sudo blkid

/dev/sda5: LABEL="HardStation" UUID="BC90354E9035107E" TYPE="ntfs" 

now it's time to modify fstab using your favourite editor,preceeded by sudo of course
sudo gedit /etc/fstab
insert this line and modify it accordingly
/dev/sdb1 /media/J3FR               vfat    defaults
/dev/sdb1 is the path for your drive, followed by space
/media/J3FR is the moutning point we created earlier
vfat is the type of the drive, other possible types:ext3,ext4,ntfs,etc..
the rest of the line is optional ,for more information, you can refer to this page.
in the terminal type
sudo mount -a

that's all =).

Monday, October 22, 2012

Python script to check integrity of SFV files ...

SFV Checker in Python...
I was looking for alternative to sfv checker I used to rely on when I use Linux regularly ... some alternative tools were created on windows  but I thought of making my own script ...Python was my first choice..
usually I use Perl for my scripts,although the same idea(sfv verification) was doable in Perl but requires installing some Modules, so I decided to stick to Python.

here is a link to the script
any feedback is welcomed =)

How to use the script:
providing python is installed
Python sfv.py "sfv_file.sfv" 

Sunday, October 7, 2012

How to merge audibook mp3 files into one ?

I have a first edition Nook e-reader for a quite long period of time, it's a good device that makes reading experience more enjoyable. Last week, my long beloved Ipod classic (along with the massive audiobooks lodaded) was stolen while I was in the hospital.So, I needed a replacement at least to pass the one hour I spend driving back and forth from the hospital, it was good to know Nook supports wide variety of audio files ,including mp3 and ogg =) , the problem was it's not as good as the I-pod, no ability to organize music libraries efficiently was one the cons,so you can imagine how navigating thru an audiobook with tens of mp3 files would be like, I decided to merge the mp3 files into one .
on linux you can do so by using this command (on windows you still can use it providing you installed Cygwin)

cat *.mp3 > the_audiobook_name.mp3

to fix the headers and the other tags using Foobar2000 in windows or Diags in linux
Thank you...