Nov 21, 2008

Missing fstab..............

I slipped on my own script, my fstab erased.......
It only contain a line to mount CD-ROM....wakakakaka

After googling, i found this
By reading this article, i assumed that we have to know the UUID for each drive, especially for the / and swap ( for windows disk can be done later )

First, used blkid from terminal by typing sudo blkid
here is the output

/dev/sda1: UUID="2C28F09028F059F2" TYPE="ntfs"
/dev/sda5: UUID="2C82313F7F68F931" TYPE="ntfs"
/dev/sda6: TYPE="swap" UUID="f2ea4d4c-ef3f-49dd-9f4a-ea140e93c69e"
/dev/sda7: UUID="ced3011b-4675-4790-8065-d8e0601f6bf1" TYPE="ext3"

I just have to copy / and swap UUID and paste to my (new)fstab,
after some editing, it looks like :
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
//192.168.1.100/shared /media/x cifs rw,uid=root,gid=root,file_mode=0777,dir_mode=0777,noperm 0 0
UUID=ced3011b-4675-4790-8065-d8e0601f6bf1 / ext3 relatime,errors=remount-ro 0 1
UUID=f2ea4d4c-ef3f-49dd-9f4a-ea140e93c69e none swap sw 0 0


After reboot, my system is back to normal
( I applied this to Hardy Heron, Intrepid Ibex and Mint Elyssa )

regards;
~E~

Nov 11, 2008

Mass rename and mass resize using gThumb

Sometimes we will feel reluctant if we want to rename so many files. But actually, it can be done once for many files at the same time. I was tried it by using gThumb

First, of course we have to install gThumb
Open terminal then type sudo apt-get install gthumb

Next, open gThumb and go to the folder which we will work for
The left panel will be the tree panel and the right panel will contains the files from a folder
After we meet the folder, choose some/all pictures which we want to rename from right panel
do right click, then choose rename, below dialog will appear then you can rename them up ( don't forget to click rename button )



Then, in order to do mass resize,
Go to Tools - Scale Images ( below box will appears )

Beside those two, we also can do mass rotate and mass convert by using gThumb

Regards;
~E~