For example you have just installing a new partition using gparted, now you could do these steps to access your new partition:

$ cd /
$ sudo mkdir /data
$ sudo mount -t ext3 /dev/hda4 /data

Now you already access the new partition. If you want to check whether your new partition already mounted, use this command:

$ df -h

if you don’t want to access your partition each time your computer restarting, execute:

$ sudo cp /etc/fstab /etc/fstab.backup
$ sudo nano /etc/fstab

And add this new line on the fstab.

/dev/hda4 /data ext3 nodev,nosuid 0 2

Save the file and iexit.

What if it doesn’t work?

If anything goes wrong, you could use livecd linux and copy fstab.backup that you have backuped by executing

$ sudo mv /etc/fstab.backup /etc/fstab

Tags: , , ,

First, login to your ubuntu. then:

  1. execute sudo gedit /boot/menu.lst
  2. The content will look like this

    ## default num
    # Set the default entry to the entry number NUM. Numbering starts from 0, and
    # the entry number 0 is the default if the command is not used.
    #
    # You can specify ’saved’ instead of a number. In this case, the default entry
    # is the entry saved with the command ’savedefault’.
    # WARNING: If you are using dmraid do not use ’savedefault’ or your
    # array will desync and will not let you boot your system.
    default 0
    …….
    …….
    title Ubuntu 8.04.1, kernel 2.6.24-19-generic
    root (hd0,5)
    kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=1737620b-6d81-47bd-9247-77ab2c121b8b ro quiet splash
    initrd /boot/initrd.img-2.6.24-19-generic
    quiet
    title Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
    root (hd0,5)
    kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=1737620b-6d81-47bd-9247-77ab2c121b8b ro single
    initrd /boot/initrd.img-2.6.24-19-generic
    title Ubuntu 8.04.1, kernel 2.6.24-18-generic
    root (hd0,5)
    kernel /boot/vmlinuz-2.6.24-18-generic root=UUID=1737620b-6d81-47bd-9247-77ab2c121b8b ro quiet splash
    initrd /boot/initrd.img-2.6.24-18-generic
    quiet
    title Ubuntu 8.04.1, kernel 2.6.24-18-generic (recovery mode)
    root (hd0,5)
    kernel /boot/vmlinuz-2.6.24-18-generic root=UUID=1737620b-6d81-47bd-9247-77ab2c121b8b ro single
    initrd /boot/initrd.img-2.6.24-18-generic
    …..
    …..
    ### END DEBIAN AUTOMAGIC KERNELS LIST
    # This is a divider, added to separate the menu items below from the Debian
    # ones.
    title Other operating systems:
    root
    # This entry automatically added by the Debian installer for a non-linux OS
    # on /dev/sda1
    title Microsoft Windows XP Professional
    root (hd0,0)
    savedefault
    makeactive
    chainloader +1
  3. You have to change the “default 0″ option to option for windows.
  4. For example above, you should change “default 0″ to “default 5″ and the work is done.

Tags: , ,