Pevné disky - rozdělení a zavádění systému (Booting)
Předcházející
Další

Pevné disky - rozdělení a zavádění systému (Booting)

Grafický editor oddílů

  1. Install the qtparted package (refer to the Adding Applications documentation for more help on installing applications).

  2. Once installed, open QtParted by going to KMenuSystemQtParted.

Kontrola využití disku a prohlídka tabulky oddílů

  1. Open System Settings by going to KMenuSystem Settings. Select the Advanced tab and then select Disks & Filesystems.

  2. Každý oddíl bude zobrazen

Seznam připojených zařízení v terminálu

  1. Open Konsole by going to KMenuSystemKonsole - Terminal Program.

  2. To list the mounted devices type the following and then press the Enter key:

    mount

Seznam obsahuje zařízení (jako diskový oddíl), připojovací bod (místo v kterém můžete přistupovat k souborům), typ souborového systému a volby připojení.

Tento příklad ukazuje oddíl hda2 připojený jako '/', se souborovým systémem ext3. Oddíl je připojen s následujícími volbami, jedna dovoluje číst a zapisovat na něj a znovu připojit jen pro čtení při nějaké chybě.


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

Připojování/odpojování windowsovských oddílů

NTFS nebo FAT32

For NTFS drives refer to step 4. For FAT32 drives refer to step 5. NTFS allows only read-only access whereas FAT32 allows both read and write access.

  1. Čtěte „Kontrola využití disku a prohlídka tabulky oddílů“

  2. Open Konsole by going to KMenuSystemKonsole - Terminal Program.

  3. First, make a directory where the partition can be mounted. To do so, type the following at the command prompt followed by pressing the Enter key (if asked for a password, enter your user password and press the Enter key):

    sudo mkdir /media/windows
    

  4. Next, type the following command to mount an NTFS Windows Partition and allow read-only access followed by pressing the Enter key (if asked for a password, enter your user password and press the Enter key):

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

  5. If your Windows partition uses the FAT32 filesystem, it is safe to allow read-write access to the partition. To do so, type the following command at the prompt followed by the Enter key (if asked for a password, enter your user password and press the Enter key):

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

    Poznámka

    Nahraďte /dev/hdaX správným jménem zařízení.

  6. To unmount the partition, type the following command at the prompt followed by the Enter key (if asked for a password, enter your user password and press the Enter key):

    sudo umount /media/windows/
    

Připojení windowsovských oddílů při startu

  1. Čtěte „Kontrola využití disku a prohlídka tabulky oddílů“

  2. Open Konsole by going to KMenuSystemKonsole - Terminal Program.

  3. First, make a directory where the partition can be mounted. To do so, type the following at the command prompt followed by pressing the Enter key (if asked for a password, enter your user password and press the Enter key):

    sudo mkdir /media/windows
    

  4. Next, backup your configuration file for mounting drives and open the file in a text editor with administrative privileges. To do so, type the following at the prompt followed by pressing the Enter key (if asked for a password, enter your user password and press the Enter key):

    sudo cp /etc/fstab /etc/fstab_backup
    

  5. Edit your /etc/fstab by pressing Alt+F2 and then typing kdesu kate /etc/fstab in the Run Command dialog followed by pressing the OK button.

  6. If your Windows partition uses the NTFS filesystem, append the following line at the end of file:

    /dev/hdaX /media/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 /media/windows vfat umask=0000 0 0

    instead of the one above.

    Poznámka

    Nahraďte /dev/hdaX správným jménem zařízení.

  7. Save and close out of the edited file.

  8. Čtěte „Znovupřipojení /etc/fstab bez restartu“.

Znovupřipojení /etc/fstab bez restartu

  1. Open Konsole by going to KMenuSystemKonsole - Terminal Program.

  2. At the prompt, type the following and then press the Enter key (if asked for a password, enter your user password and press the Enter key):

    sudo mount -a
    

Spuštění systémových příkazů automaticky při startu

Sometimes it can be useful to add a custom command to the startup process so that your computer executes it on every boot. Refer to the following procedure in order to set this up.

  1. Open Konsole by going to KMenuSystemKonsole - Terminal Program.

  2. Edit the crontab with administrative privileges. To do so, type the following at the command prompt followed by the Enter key (if asked for a password, enter your user password and press the Enter key):

    sudo crontab -e
    

  3. Insert the following line:

    @reboot /home/user/command
    

    Poznámka

    Nahraďte /home/user/command za cestu k Vašemu příkazu.

  4. Save the file and exit. If using Nano as the default command line editor, press Ctrl+X followed by Y for Yes and then the Enter key.

Změna výchozího Systému při startu

  1. Open Konsole by going to KMenuSystemKonsole - Terminal Program.

  2. Make a backup of your boot configuration file. To do so, type the following at the command prompt followed by the Enter key (if asked for a password, enter your user password and press the Enter key):

    sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
    

  3. Edit the menu.lst file by pressing Alt+F2 and then typing kdesu kwrite /boot/grub/menu.lst followed by pressing the OK button.

  4. Locate the following line:

    ...
    default 0
    ...
    

    and replace it with the following line:

    default X_sequence

  5. Save and close out of the edited file.

Zobrazení startovacího menu

Defaultně je startovací menu skryto a musíte ho zobrazit stiskem Esc. Následující kroky ho udělají viditelné defaultně:

  1. Open Konsole by going to KMenuSystemKonsole - Terminal Program.

  2. Make a backup of your boot configuration file. To do so, type the following at the command prompt followed by the Enter key (if asked for a password, enter your user password and press the Enter key):

    sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
    

  3. Edit the menu.lst file by pressing Alt+F2 and then typing kdesu kwrite /boot/grub/menu.lst in the Run Command dialog followed by pressing the OK button.

  4. Locate the following line:

    # hiddenmenu
    

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

    hiddenmenu
    

  5. Save and close out of the edited file.

Změna doby zobrazení startovacího menu

  1. Open Konsole by going to KMenuSystemKonsole - Terminal Program.

  2. Make a backup of your boot configuration file. To do so, type the following at the command prompt followed by the Enter key (if asked for a password, enter your user password and press the Enter key):

    sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
    

  3. Edit the menu.lst file by pressing Alt+F2 and then typing kdesu kwrite /boot/grub/menu.lst in the Run Command dialog followed by pressing the OK button.

  4. Locate the following line:

    ...
    timeout 3
    ...
    

    and replace it with the following line:

    timeout X_seconds
    

  5. Save and close out of the edited file.

Předcházející
Další
Domů