Partições e Arranque
Anterior
Próximo

Partições e Arranque

Editor de Partições Gráfico

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

  2. You can run the application with: K-Menu->System->QtParted

Verificar a utilização de espaço em disco e ver a tabela de partições

  1. Launch K-Menu->System Settings->Disks & 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

A listagem mostra o dispositivo (tal como uma partição do disco rígido), o ponto de montagem (onde acede aos ficheiros), o tipo de sistema de ficheiros e as opções de montagem.

Este exemplo mostra a partição de disco rígido hda2 montada como '/', com o tipo de sistema de ficheiros ext3. A partição está montada com duas opções, uma para permitir que o dispositivo possa ser lido e escrito e a outra para voltar a montar o dispositivo como apenas de leitura no evento de quaisquer erros.

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

Mount/Unmount Windows partitions

  1. Leia “Verificar a utilização de espaço em disco e ver a tabela de partições”

  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.

    Nota

    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. Leia “Verificar a utilização de espaço em disco e ver a tabela de partições”

  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.

    Nota

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

  5. Save the edited file (an example).

  6. Read “Remount /etc/fstab without rebooting”.

Remount /etc/fstab without rebooting

  • sudo mount -a

Run a system command automatically at Startup

Por vezes pode ser útil adicionar um comando personalizado ao processo de arranque de forma a que o computador o execute em cada arranque. Para isso:

  1. Edite crontab com privilégios administrativos (veja “Root e Sudo”):

    sudo crontab -e
  2. Insira a linha seguinte:

    @reboot /home/utilizador/comando

    Nota

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

  3. Grave o ficheiro e saia.

Mudar o Sistema Operativo por omissão no arranque

  1. Faça uma cópia de segurança do ficheiro de configuração de arranque, e abra o ficheiro num editor de texto:

    sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
    kdesu kate /boot/grub/menu.lst
  2. Procure esta linha:

    ...
    default 0
    ...
                        
  3. Substitua pela linha seguinte:

    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. Faça uma cópia de segurança do ficheiro de configuração de arranque, e abra o ficheiro num editor de texto:

    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)

Anterior
Próximo
Início