Levyt ja osiot

Tässä osiossa käsitellään levyjen, esimerkiksi siirrettävien kovalevyjen, hallintaa.

Jäljellä olevan levytilan tarkistaminen

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

Tarkista komentoriviltä kuinka paljon vapaata levytilaa on jäljellä

  1. Open Konsole by going to Kickoff Application LauncherApplicationsSystemTerminal (Konsole).

  2. At the prompt, type df -h

Output similar to the following should be displayed:

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 how much disk space is available via the file manager

Tiedostonhallintaohjelmat

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 Kickoff Application LauncherApplicationsSystemFile Manager (Dolphin).

  2. Click on the Root shortcut button on the left.

  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.

    Avoid highlighting an icon

    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. Available disk space for the root device




Checking usage via 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 Kickoff Application LauncherApplicationsSystemPartition Editor (KDE Partition Manager). A password may be required.

  2. Click on the device in the Device section in the left-hand side of the main window.

  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. Available disk space with Partition Manager




Kuinka vapauttaa levytilaa?

On olemassa useita tapoja tehdä lisää tilaa kiintolevylle:

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

  • Install Computer Janitor for GTK first. Once installed, open Computer Janitor by going to Kickoff Application LauncherApplicationsSystemComputer Janitor. Select the Packages to be removed. When completed, click the Do selected tasks button.

    Example 3. Freeing disk space with Computer Janitor




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

  • Poista tiedostot, joita et enää tarvitse.

    Caution

    Be careful not to delete files that are still needed!

Pakkaa ja arkistoi vanhemmat, harvoin käytetyt asiakirjat:

  • 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.

Laitteen osiointi

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 LauncherApplicationsSystemPartition Editor (KDE Partition Manager).

Caution

Ole varovainen muuttaessasi levyosioita, sillä on mahdollista että kaikki tieto menetetään jos väärä osio poistetaan tai sitä muutetaan.

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.

Osion alustaminen

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

Mitä alustaminen on?

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.

Mikä tiedostojärjestelmä on?

Tiedostojärjestelmä määrittää, millä tavalla tiedostot sijoitetaan massamuistille, esimerkiksi kovalevylle, ja on siten tärkeä osa käyttöjärjestelmää. Jos tiedostojärjestelmää ei olisi, tiedostojen käsittely ja säilyttäminen levyllä olisi hankalaa.

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

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

  • FAT16 ja FAT32 ovat vanhemmissa tietokoneissa käytettyjä Microsoft Windows -tiedostojärjestelmiä. Jos kahden koneen välillä halutaan jakaa tietoa, valitaan usein FAT32-tiedostojärjestelmä.

  • NTFS on tiedostojärjestelmätyyppi, jota uudemmat Microsoft Windowsit käyttävät.

  • HFS+ on Mac OS X -käyttöjärjestelmän oletustiedostojärjestelmä.

Mikä on osio?

Osiointi tarkoittaa laitteen, kuten kiintolevyn, sisältämän tilan jakamista useaan osaan, joita voidaan käsitellä ikään kuin erillisinä tallennuslaitteina (loogisina laitteina).

Jokainen looginen laite näkyy käyttöjärjestelmälle erillisenä laitteena, ja sitä käsitellään itsenäisenä levynä.

Kiintolevyn osiointiin voi olla useita syitä:

  • Vapaan tilan vapauttaminen

  • Eri käyttöjärjestelmien asentaminen

  • Kiintolevyllä olevien tietojen organisointi

Laitteiden liittäminen ja irrottaminen

Kun irrotettava tallennuslaite kytketään tietokoneeseen, käyttöjärjestelmän täytyy liittää se, jotta laitteella olevia tiedostoja voidaan käsitellä.

Kun tiedostoja kopioidaan tallennuslaitteelle, tiedostot eivät aina tule kirjoitetuksi laitteelle välittömästi. Tämän sijaan ne usein tallennetaan jonoon, jotta ne voidaan siirtää tehokkuussyistä laitteelle yhdellä kertaa. Jos laite irrotetaan fyysisesti tietokoneesta ennen kuin kaikki tiedostot ovat siirtyneet, tiedostot saatetaan menettää. Estääksesi tämän, käytä varsinaista irrota-toimintoa ennen tallennuslaitteen fyysistä irrottamista.

Procedure 3. Mounting a device

  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 4. 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.