Slider[Style1]

Yui NgOprEk

learn,practice,share...

Automount NTFS partition in Ubuntu

Ubuntu could automatically detect ntfs partition, but its not automatically mounted at system startup. Here i want to make my ntfs partition mounted automatically.

first, type :

sudo fdisk -l to see the list of partition,

and this is the result in my sistem :

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x6ebabc82

Device Boot Start End Blocks Id System
/dev/sda1 * 1 3885 31205238+ 7 HPFS/NTFS
/dev/sda2 5604 19457 111282255 7 HPFS/NTFS
/dev/sda3 3886 5541 13301820 83 Linux
/dev/sda4 5542 5603 498015 82 Linux swap / Solaris

the /dev/sda1 (i store my vista system here), and /dev/sda2 (where i store all my datas) partitions are not mounted automatically, here i only want to make the /dev/sda2 to be automatically mounted when the system startup.

first, we should make a new directory inside the /media directory, i named the directory /data-yui :

sudo mkdir /media/data-yui

then open the file /etc/fstab to edit the mounting preferences :

sudo gedit /etc/fstab

then add this line :

/dev/sda2/media/data-yui auto defaults 0 1

Save the file, and reboot.


Change The Grub Menu's Background Image Ubuntu 8.10 (Intrepid Ibex)

The first thing i noticed after installing Ubuntu is the boot grub menu looks really sucks, B/W and plain , doesnt look pretty for my eyes...for a woman, outer appearance is important (at least for me..^_^)

I was installing mandrake years ago, and the first thing i remember was, i really loved the mandrake LILO menu's appearance..so i cant wait to ask my guru, his name is Google ^_^, he told me ways to change the hurting-my-eyes-Ubuntu's Grub menu's appearance.

So, i choose an image, open it with GIMP.

From Menu, Select Image -> Scale Image, Change the size to 640x480px.

I should change the color's composition since Grub only allowed maximum 14 colour, go to Image -> Mode -> Indexed

screenshot-aceryui2jpg-10-rgb-1-layer-640x480-e28093-gimp

fill 14, for maximum number of colors.

screenshot-indexed-color-conversion

also choose Floyd-Steinberg (reduced color bleeding) for color dithering,and enable dithering of transparency, this makes the pics look softer (imho).

Save the file in the format .xpm.gz

screenshot-save-image

Open terminal, goto directory where you save the file, i save the file in my home directory

cd /home/nurul

then copy the file to directory /boot/grub/splashimages

sudo cp yui.xpm.gz /boot/grub/splashimages

Then Open menu.lst file, type :

sudo gedit /boot/grub.menu.lst

in the menu.lst file, edit the splashimage section, change the image name with the name of image you desire to use as grub menu background, here is mine :

splashimage=(hd0,2)/boot/grub/splashimages/yui.xpm.gz

i also want to change the grub menu list, this is how my menu settings, (you can change it the way you like) :

screenshot-menulst-boot-grub-gedit-1

I've deleted some lists that i dont want it to appear when i see the grub menu by simply delete the line or added # in the beginning of the line.

Save the file.

Reboot.