Жорсткі диски - Розділи та Завантаження
назад
далі

Жорсткі диски - Розділи та Завантаження

Графічний редактор розділів

  1. Встановіть пакет qtparted (див. Додавання програми для отримання довідки про встановлення програм).

  2. Після встановлення відкрийте QtParted, натиснувши KMenuСистемаQtParted.

Перевірка використаного простору і перегляд таблиці розділу

  1. Відкрийте System Settings, натиснувши KMenuSystem Settings. Оберіть вкладку Advanced і натисніть на Disks & Filesystems.

  2. Кожен розділ буде видно у списку Доступні диски і файлові системи.

Список підключених пристроїв у терміналі

  1. ВідкрийтеKonsole, перейшовши по KMenuСистемаKonsole - Програма Терміналу.

  2. Для перегляду списку підключених пристроїв натисніть Enter після набору команди:

    mount

У списку з'являться пристрої (такі як розділи жорстких дисків), точки монтування (де знаходяться доступні вам файли), файлові системи та опції монтування.

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)

Підключення/Вимкнення розділів Windows

NTFS або 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. Читайте “Перевірка використаного простору і перегляд таблиці розділу”

  2. ВідкрийтеKonsole, перейшовши по KMenuСистемаKonsole - Програма Терміналу.

  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
    

    Примітка

    Замініть /dev/hdaX правильним іменем пристрою вашого розділу.

  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/
    

Автоматично підключити розділи Windows при запуску

  1. Читайте “Перевірка використаного простору і перегляд таблиці розділу”

  2. ВідкрийтеKonsole, перейшовши по KMenuСистемаKonsole - Програма Терміналу.

  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. Якщо ваш розділ Windows використовує файлову систему NTFS, то додайте наступний рядок у кінець файлу:

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

    Якщо ваш розділ Windows використовує файлову систему FAT32, то можливо безпечно дозволити доступ на читання/запис цього розділу. Додайте наступний рядок у кінець файлу:

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

    замість вищевказаного.

    Примітка

    Замініть /dev/hdaX правильним іменем пристрою вашого розділу.

  7. Збережіть і закрийте відредактований файл.

  8. Читайте “Перепідключення /etc/fstab без перезавантаження”.

Перепідключення /etc/fstab без перезавантаження

  1. ВідкрийтеKonsole, перейшовши по KMenuСистемаKonsole - Програма Терміналу.

  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
    

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. Refer to the following procedure in order to set this up.

  1. ВідкрийтеKonsole, перейшовши по KMenuСистемаKonsole - Програма Терміналу.

  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
    

    Примітка

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

  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.

Change default Operating System at boot

  1. ВідкрийтеKonsole, перейшовши по KMenuСистемаKonsole - Програма Терміналу.

  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. Збережіть і закрийте відредактований файл.

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. ВідкрийтеKonsole, перейшовши по KMenuСистемаKonsole - Програма Терміналу.

  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. Збережіть і закрийте відредактований файл.

Change the timeout for boot menu

  1. ВідкрийтеKonsole, перейшовши по KMenuСистемаKonsole - Програма Терміналу.

  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. Збережіть і закрийте відредактований файл.

назад
далі
Початок