Hard drives - Partitioning and Booting
Natrag
Naprijed

Hard drives - Partitioning and Booting

Graphical Partition Editor

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

  2. Kada je instalacija gotova, otvorite QtParted klikom na KMenuSystemQtParted

Provjerite iskorištenost hard diska i pogledajte particijsku tablicu

  1. Otvorite Postavke Sustava tako što ćete kliknuti na KMenuPostavke Sustava. Odaberite tab Napredno i zatim Diskovi & Datotečni sustavi.

  2. Svaka particija će biti izlistana pod Dostupni Diskovi i Datotečni sustavi detaljima svake particije.

Izlistaj montirane uređaje u terminalu

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

  2. Da bi izlistali montirane uređaje, upišite slijedeće i pritisnite Enter tipku:

    mount

Ispis prikazuje uređaj (kao što je particija čvrstog diska), točku montiranja (gdje pristupate datotekama), datotečni sustav i opcije montiranja.

Ovaj primjer pokazuje hda2 particiju montiranu kao '/', s datotečnim sustavom vrsta ext3. Particija je montirana s dvije opcije, jedna koja omogućava pisanje i čitanje na/sa uređaja i druga opcija koje će, u slučaju greške, uputiti sustav da particiju ponovo montira bez mogućnosti pisanja po njemu.


/dev/hda2 na / vrsta ext3 (rw,errors=remount-ro)

Mount/Unmount Windows partitions

NTFS or 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. Read the section called „Provjerite iskorištenost hard diska i pogledajte particijsku tablicu“

  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
    

    Bilješka

    Replace /dev/hdaX with the correct device name for your partition.

  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/
    

Mount Windows partitions on boot-up

  1. Read the section called „Provjerite iskorištenost hard diska i pogledajte particijsku tablicu“

  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. Slijedeće, napravite sigurnosnu kopiju konfiguracijske datoteke za montiranje diskova i otvorite datoteku u uređivaču teksta sa administratorskim ovlastima. Da bi to napravili, upišite slijedeće u komandnu liniju i nakon toga pritisnite Enter (ako morate upisati lozinku, upišite vašu lozinku i pritisnite tipku Enter):

    sudo cp /etc/fstab /etc/fstab_backup
    
  5. Izmjenite datoteku /etc/fstab tako što ćete pritisnuti kombinaciju tipki Alt+F2 te nakon toga upišite kdesu kate /etc/fstab u dijalogu Naredba Pokreni. Nakon toga kliknite na gumb OK.

  6. Ako Windows particija koristi NTFS datotečni sustav, dodajte slijedeće na kraju datoteke:

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

    Ako Windows particija koristi FAT32 datotečni sustav, možete omogućiti pristup sa mogućnošću čitanja i pisanja za tu particiju. Dodajte slijedeće na kraju datoteke:

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

    umjesto onoga iznad.

    Bilješka

    Replace /dev/hdaX with the correct device name for your partition.

  7. Spremite promjene i zatvorite datoteku.

  8. Pročitajte the section called „Ponovno montiraj /etc/fstab bez ponovnog pokretanja sustava“.

Ponovno montiraj /etc/fstab bez ponovnog pokretanja sustava

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

  2. U komandnoj liniji upišite slijedeće i nakon toga pritisnite tipku Enter (ako morate upisati lozinku, upišite vašu lozinku i pritisnite tipku Enter):

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

    Bilješka

    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. 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. Spremite promjene i zatvorite datoteku.

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. 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. Spremite promjene i zatvorite datoteku.

Change the timeout for boot 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. Spremite promjene i zatvorite datoteku.

Natrag
Naprijed
Početak