Partitions and Booting
Prev
Next

Partitions and Booting

Graphical Partition Editor

  1. Install the qtparted package (see the section called “Managing Repositories”).

  2. You can run the application with: K-MenuSystemQtParted

Check disk space usage and view the partition table

  1. Launch K-MenuSystem SettingsDisks & Filesystems

  2. Each partition will be listed under Available Disks and Filesystems details of each partition.

List mounted devices in a terminal

To list mounted devices in a terminal, run the following command:

mount

The listing shows the device (such as a hard disk partition), the mount point (where you access the files), the filesystem type and the mount options.

This example shows the hda2 hard disk partition mounted as '/', with the filesystem type ext3. The partition is mounted with two options, one to allow the device to be read from and wrote to and the other to remount the device as read only in the event of any errors.

/dev/hda2 on / type ext3 (rw,errors=remount-ro)

Mount/Unmount Windows partitions

  1. Read the section called “Check disk space usage and view the partition table”

  2. First, make a directory where the partition can be mounted:

    sudo mkdir /mnt/windows
  3. Next, run the following command to mount an NTFS Windows Partition and allow read-only access:

    sudo mount /dev/hdaX /mnt/windows/ -t ntfs -o ro,umask=0222

    If your Windows partition uses the FAT32 filesystem, it is safe to allow read-write access to the partition. Run the command

    sudo mount /dev/hdaX /mnt/windows/ -t vfat -o umask=0000

    instead of the one above.

    Note

    Replace /dev/hdaX with the correct device name for your partition.

  4. To unmount the partition, run the following command:

    sudo umount /mnt/windows/

Mount Windows partitions on boot-up

  1. Read the section called “Check disk space usage and view the partition table”

  2. First, make a directory where the partition can be mounted:

    sudo mkdir /mnt/windows
  3. Next, backup your configuration file for mounting drives and open the file in a text editor with administrative privileges:

    sudo cp /etc/fstab /etc/fstab_backup kdesu kate /etc/fstab
  4. If your Windows partition uses the NTFS filesystem, append the following line at the end of file

    /dev/hdaX /mnt/windows ntfs ro,umask=0222 0 0

    If your Windows partition uses the FAT32 filesystem, it is safe to allow read-write access to the partition. Append the following line at the end of the file

    /dev/hdaX /mnt/windows vfat umask=0000 0 0

    instead of the one above.

    Note

    Replace /dev/hdaX with the correct device name for your partition.

  5. Save the edited file (an example).

  6. Read the section called “Remount /etc/fstab without rebooting”.

Remount /etc/fstab without rebooting

  • sudo mount -a

Run a system command automatically at Startup

Sometimes it can be useful to add a custom command to the startup process so that your computer executes it on every boot. To do this:

  1. Edit the crontab with administrative privileges (see the section called “Root And Sudo”):

    sudo crontab -e
  2. Insert the following line:

    @reboot /home/user/command

    Note

    Replace /home/user/command with the full path to your command.

  3. Save the file and exit.

Change default Operating System at boot

  1. Make a backup of your boot configuration file, and open it in a text editor:

    sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup kdesu kate /boot/grub/menu.lst
  2. Find this line:

    ... default 0 ...
  3. Replace with the following line:

    default X_sequence
  4. Save the edited file ( an example)

Making the Boot Menu Visible

By default, the boot menu is hidden and you will need to hit Esc to see the boot menu. By following the following steps, it will be visible by default.

  1. Make a backup of your boot configuration file, and open it in a text editor:

    sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup kdesu kate /boot/grub/menu.lst
  2. Find this line

    # hiddenmenu

    and uncomment it by removing the # in front of the line so that it looks like:

    hiddenmenu

    Save the edited file ( an example)

Change the timeout for boot menu

  1. sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup kdesu kate /boot/grub/menu.lst

  2. Find this line

    ... timeout 3 ...
  3. Replace with the following line

    timeout X_seconds
  4. Save the edited file ( an example)

Prev
Next
Home