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

This section provides instructions on how to handle disks and drives such as removable hard disks.

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

Существует несколько способов, чтобы проверить, сколько дискового пространства доступно в Kubuntu.

Проверить, сколько свободного места на диске с помощью командной строки

  1. Откройте Терминал, перейдя Меню запуска приложений Kickoff ->Приложения->Система->Терминал (Konsole).

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

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

Файловая система   Разм.   Исп.   Исп      Исп% смонтировано на
/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.

Проверить, сколько свободного места на диске с помощью диспетчера файлов

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

Следующее действие может быть выполнено, либо в Dolphin, либо в Konqueror. В этом примере будет показан Dolphin, т.к в Kubuntu он диспетчер файлов по умолчанию.

  1. Откройте Dolphin, перейдя Меню запуска приложений Kickoff ->Приложения->Система->Диспетчер файлов (Dolphin).

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

  3. Чтобы узнать, сколько свободного места осталось в корневом разделе, для это щелкните правой кнопкой мыши в любой свободной области главного окна. Выберите Свойства из списка, который отобразится.

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

    Когда делаете щелчок правой кнопкой мыши в пустом пространстве, избегайте случайного выделения значка любой папки, потому что отобразится информация, относящаяся только к этой папке.

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



Проверить, используя Partition Manager

По умолчанию в Kubuntu, приложение Partition Manager не установлено. Пожалуйста, установите Partition Manager, перейдя по следующей ссылки.

  1. Откройте Partition Manager, перейдя Меню запуска приложений Kickoff->Приложения->Система->Partition Editor (KDE Partition Manager). Может потребоваться пароль.

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

  3. Оставшееся пространство можно определить путем вычитания из столбца Размер столбец Использовано. Также можно получить информацию щёлкнув правой клавишей мыши на раздел и в списке выбрать Свойства.

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



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

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

  • Очистите корзину. Откройте Dolphin, перейдя Меню запуска приложений Kickoff->Приложения->Система->Диспетчер файлов (Dolphin). Нажмите слева Корзина, щёлкните правой кнопкой мыши в свободной области и выберите Очистить корзину.

  • Установите Computer Janitor. После установки, откройте Computer Janitor, перейдя Меню запуска приложений Kickoff->Приложения->Система->Computer Janitor. Выберите Пакеты, которые будут удалены. По завершению, нажмите кнопку Do selected tasks.

    Example 3. Освобождение дискового пространства, с помощью Computer Janitor



  • Удаление пакетов программ, которые больше не используются. См. Управление программами для информации об удалении пакетов.

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

    Caution

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

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

  • Select the files and folders to be compressed, right click one of them and select Compress->As 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 Kickoff Application Launcher->Applications->System->Partition Editor (KDE Partition Manager).

Caution

Be careful when altering disk partitions, as it is possible to lose data by deleting or changing the wrong partition.

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.

What is formatting?

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 “filesystem”.

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 filesystem. Also, disk manufacturers use different standards to express disk capacity, which results in further discrepancies.

What is a filesystem

A filesystem 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 filesystem, accessing and storing files would be difficult.

There are different types of filesystem. The most common are:

  • Обычно используются на операционной системе GNU/Linux файловые системы: ext2, ext3, и ext4. Kubuntu использует файловую систему ext4 по умолчанию.

  • FAT16 and FAT32 are Microsoft Windows filesystems found on older computers. To share data between two computers, the FAT32 format is a good choice.

  • NTFS is the filesystem type used by more modern versions of Microsoft Windows.

  • Файловая система HFS+ используется на Mac OS X по умолчанию.

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.

Partitioning a hard disk can be done for several reasons:

  • To retrieve free space

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

  • To organize data better on the hard disk

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

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 that they can all be transferred to the device at the same time (for efficiency). If the device is disconnected before all of the 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 7. Подключение устройства

  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 popup menu, the device will be mounted. As soon as it is mounted, either the file manager will appear or a dialog will be presented that contains a list of options for the device.

Procedure 8. Unmounting a device

  1. In the system tray, there is an icon that looks like a computer monitor that represents the Device Notifier. Click on the icon, and a popup 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.