Диски и разделы

Данный раздел содержит инструкции по работе с дисками и накопителями, включая съемные жесткие диски.

Проверить сколько доступно свободного места на диске.

There are several ways to see how much disk space is available on a Kubuntu™ system.

Check disk usage with the command line

  1. Open Konsole by going to K menuApplicationsSystemTerminal (Konsole).

  2. В командной строке введите df -h

Должен быть показан вывод , как приведенный ниже:

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda5              37G  7.6G   28G  22% /
/dev/sda1             122M   50M   67M  43% /boot
/dev/sda6              70G   34G   33G  52% /home

The command df reports file system disk space usage. The -h tells df to make the output human readable.

Check disk usage with the file manager

Диспетчеры файлов

The following procedure can be completed with either Dolphin or Konqueror.Dolphin will be shown in this example because it is the default file manager in Kubuntu™.

  1. Open Dolphin by going to K menuApplicationsSystemFile Manager (Dolphin).

  2. Нажмите на точку входа Корневая папка.

  3. To find out how much space is available in the root partition, right-click in any of the white space in the main window. Select Properties from the list that is displayed.

    Избегайте выделение значка

    When right-clicking in the white space, avoid accidentally highlighting any of the folder icons, because this will display information pertaining only to that folder.

    Example 1. Доступное свободное место для корневого устройства




Check disk usage with Partition Manager

By default in Kubuntu™, the application Partition Manager is not installed. Please install the Partition Manager package prior to doing the following procedure.

  1. Open Partition Manager by going to K menuApplicationsSystemPartition Editor (KDE Partition Manager). A password may be required.

  2. Нажмите на устройство в левой части главного окна программы в разделе Устройства .

  3. Remaining space can be determined by subtracting the amount in the Used column from the amount in the Size column. The information can also be displayed by right-clicking on the partition in the list and selecting Properties.

    Example 2. Свободное пространство на диске с Partition Manager




Как увеличить свободное место на диске?

Есть несколько способов сделать больше свободного места на диске:

  • Empty the trash. Open Dolphin by going to K menuApplicationsSystemFile Manager (Dolphin). Click the Trash on the left, right-click in the white space and select Empty Trash.

  • Remove software packages that are no longer being used. See Managing Software for information on removing packages.

  • Удалить файлы которые больше не нужны.

    Caution

    Будьте осторожны, не удалите нужные файлы!

Сжатия и архивирования старых, редко используемых документов:

  • Select the files and folders to be compressed, right click one of them and select CompressAs ZIP/TAR Archive or any of the other choices.

Разбиение диска на разделы

Partition Manager can be used to partition storage devices. Install the Partition Manager package first, as it is not installed by default in Kubuntu™. Once installed, open Partition Manager by going to K menuApplicationsSystemPartition Editor (KDE Partition Manager).

Caution

Будьте осторожны при изменении разделов, поскольку вы можете легко потерять данные из-за удаления или изменения не того раздела.

For more information on using Partition Manager to resize, copy, or install a new operating system, please review http://docs.kde.org/development/en/extragear-sysadmin/partitionmanager/index.html.

Форматирование раздела

Partition Manager can be used to format disk partitions. Please review http://docs.kde.org/development/en/extragear-sysadmin/partitionmanager/index.html.

Что такое форматирование?

To format a hard disk, device, or partition means to prepare that particular device to store data.

When a hard disk or partition is formatted, a specific data-storage format is applied to that device; this format is the file system.

A newly purchased disk is usually not formatted, and cannot yet be used for storing data. After the device has been formatted, the free space on it is less than the original size. Some of the disk space is used to make the device usable; this space is occupied by the file system. Also, disk manufacturers use different standards to express disk capacity, which results in further discrepancies.

Что такое файловая система

A file system is a particular way of storing and organizing files on a storage device such as a hard disk, and is an important part of an operating system. Without a file system, accessing and storing files would be difficult.

Существуют различные типы файловых систем. Наиболее распространённые:

  • ext2, ext3, and ext4: these are usually found on GNU™/Linux™ operating systems. Kubuntu™ uses ext4 as its default file system.

  • FAT16 and FAT32 are MicrosoftWindows™ file systems found on older computers. To share data between two computers, the FAT32 format is a good choice.

  • NTFS is the file system type used by more modern versions of MicrosoftWindows™.

  • HFS+ is the Mac OS X™ default file system type.

What is a partition?

A partition is a means of dividing the storage capacity of a device, such as a hard disk, into several parts which can then be treated as separate storage devices (logical devices).

Each logical device is seen by the operating system as a distinct device, and thus is treated as an independent disk.

Создание нескольких разделов на диске преследует несколько целей:

  • To retrieve free space.

  • Для установки других операционных систем.

  • Для лучшей организации данных на жёстком диске.

Подключение и отключение устройств

When a removable storage device is connected to a computer, it must be mounted by the operating system so the files on the device can be accessed.

When files are copied to a storage device, they are not always written to the device immediately. Instead, they are often stored in a queue so they can all be transferred to the device at the same time (for efficiency). If the device is disconnected before all files have been transferred, some or all of the files may be lost. To prevent this, a storage device must be unmounted before being disconnected.

Procedure 3. Подключение устройства

  1. Plug in the removable storage device.

  2. A notification menu and blue circle icon will appear in the bottom right corner of the screen. By clicking the device in the pop-up menu, the device will be mounted. As soon as it is mounted, either the file manager will appear or a dialog will be presented with a list of options for the device.

Procedure 4. Unmounting a device

  1. In the system tray, there is an icon that looks like a computer monitor which represents the Device Notifier. Click on the icon, and a pop-up menu will appear.

  2. Hovering above the device description with the cursor will display an eject icon on the right side. Click on the icon to unmount the removable device.