Prijava
Korisničko ime:

Lozinka:

remember me

Zaboravili lozinku?

Registrirajte se!
Glavni menu
Potraga
Tko je online
86 korisnika je online (80 korisnika cita Diskusije)

članovi: 0
Gosti: 86

više...
HULK-Diskusije - Hardware - Formatiranje hard diska
Chat WIKI Kontakt
HULK Forum Index
   Hardware
  Formatiranje hard diska

Pregledavanje ovog Threada:   1 Anonimnih Korisnika

 

 Dno   Prethodna tema   Sljedeca tema
  •  Ocjena Threada
      Ocijenite ovaj Thread
      Izvrsno
      Dobro
      Prosjecno
      Loše
      Užasno
Pošiljatelj Thread
  •  ficho
      ficho
Formatiranje hard diska
#1
Upravo došao
Pridružen: 22.09.2007
Od varazdin
Poruke: 1
Level : 1
HP : 0 / 0
MP : 0 / 0
EXP : 0
Grupa:
Registered Users
Offline
Kako formatirati disk??molio bih pomoc...
_________________
**think free **
Postano : 30.10.2007 7:12:11
Izradi PDF od ove poruke Ispis
Vrh
Re: Formatiranje hard diska
#2
Regularni posjetitelj
Pridružen: 23.09.2007
Od Vinkovci
Poruke: 54
Level : 6
HP : 0 / 129
MP : 18 / 6482
EXP : 19
Grupa:
Registered Users
Offline
1 Step One
When you format a computer hard drive, you will lose everything that is on the drive. Therefore it is very important to back up anything you might later want.

2 Step Two

In order to format a secondary drive you will need root access. All commands used in this tutorial are run from a command line (terminal) as root. You may also want to make note of the size (total capacity in MB) of the drive.

3 Step Three
Linux refers to hard drives as either “hdx” or “sdx” where x is a letter, starting with a, which represents the order in which the drive was added to or detected by the computer. The “hd” prefix is used for IDE and PATA (formerly just ATA), and the “sd” prefix is used for SCSI, SATA, and USB drives. Usually a number is also put at the end of “hdx” or “sdx” to denote different partitions on the same phisical drive, but for the purpose of formatting you only need to know which letter the drive you want to format is.

4 Step Four
The examples given in this how-to are for a computer with two IDE hard drives attached as a master and slave. In this, the drives are “hda” and “hdb.” You will need to determine the letter of drive you want to format for your own setup. We will be formatting the drive hdb. For all examples, replace “hdb” with whatever your drive designation is.

5 Step Five
You can see all the drives attached to you system by typing the command “ls /dev/hd*” or “ls /dev/sd*” depending on which type (IDE, SATA, etc.) the drives are. On the example system the result of this command looks like “/dev/hda /dev/hda1 /dev/hda2 /dev/hdb /dev/hdb1” The operating system is installed on hda, which has two partitions (hda1 and hda2), and there is one partition on hdb and hdb1.
Tips & Warnings

* Formatting a drive permanently deletes everything on it.

Using fdisk

1 Step One
First you will use the fdisk command to erase any old partitions on the drive and create a new one. Any changes you make using fdisk are only made permanent if you then issue the “w” command before quitting, so feel free to play around a little if you like. If at any time you find yourself stuck, you can quit the program without saving changes by holding the "Ctrl" key and pressing "c."

2 Step Two
At the command prompt, type “fdisk /dev/hdb” replacing the "hdb" with the letters for your drive. Upon opening, fdisk may give you a couple of warnings, all of which can be ignored. It then gives you a prompt that looks like this: Command (m for help):

3 Step Three
Enter “p” to see the partition table of the drive. The first line of output from the “p” command will also tell you size of the drive. This is a good way to double check that you are working with the correct drive.

4 Step Four
If there are any partitions already on the drive they will be listed as the last lines of the “p” command. On our example, this looks like “/dev/hdb1” followed by some information about the partition's size and file system.

5 Step Five
To delete any existing partitions, press “d” then enter. It will ask you which partition number you wish to delete. The number of the partition is the number that follows hdb, so on our example system we enter 1. If there are multiple partitions repeat the “d” command for each one. You can always view the partition table again with the “p” command.

6 Step Six
Once you have deleted all existing partitions on the drive you are ready to make a new one. Type “n” and hit enter. Then press “p” to create a primary partition. It asks you for a partition number, enter “1." Now you are asked which cylinder the partition should start at, the beginning of the drive is the default, so just hit Enter. Then you are asked for the last cylinder, the end of the drive is default so you can just press Enter again.

7 Step Seven
Now you are back at fdisk's command prompt. Use the “p” command to check the partition table. You should now see your new partition at the bottom of the output. In the example it lists “/dev/hdb1.”

8 Step Eight
You now need to set the filesystem type for your new partition with the “t” command. You are asked for the Hex code of the filesystem you wish to use. We wll use the standard Linux ext2 filesystem which is “83." If you are doing something special and know of a particular filesystem that you need to use, you can press “L” to see all the codes, which are one or two characters made up of the numbers 0-9 and the letters a-f.

9 Step Nine
Now just issue the “w” command to write your new partition table and exit fdisk.

Creating the New File System with mkfs

1 Step One
Now you need to create the filesystem on the drive. This is done with the “mkfs” command.

2 Step Two
At the command prompt, enter “mkfs -t ext2 /dev/hdb1” while remembering to change the hdb1 to whatever the letters are for the partition you just created.

3 Step Three
If you are using a different filesystem than ext2, you will have to specify that where "ext2" is in the above command.

Finalizing the Format with fsck

1 Step One
All that is left is to run a check on the drive and enter it into your fstab so that the drive mounts each time you start your computer. This can be done with a single fsck command.

2 Step Two
At the command prompt, type “fsck -f -y /dev/hdb1” again replacing hdb1 with the letters and number for your partition.

3 Step Three
After fsck runs, your new drive is formatted. Restart your system before using it.

4 Step Four
If you reformatted your system drive, you will now need to boot off an installation disk to install an Operating system.
_________________
Linux za Sve - web stranica namijenjena pocetnicima u linuxu.
Postano : 30.10.2007 8:20:15
Izradi PDF od ove poruke Ispis
Vrh
Re: Formatiranje hard diska
#3
Regularni posjetitelj
Pridružen: 05.01.2005
Od Karlovac
Poruke: 61
Level : 6
HP : 0 / 142
MP : 20 / 8224
EXP : 69
Grupa:
Registered Users
UrednikNovosti
UrednikRecenzija
UrednikLinkova
ModeratoriForuma
Offline
Citat:

ficho je napisao/la:
Kako formatirati disk??molio bih pomoc...

Preuzmi izvrsni SystemRescueCD, koji sadrži GParted koji će formatirati i particionirati tvoj hard disk s lakoćom (GParted koristi GNU libparted za detekciju i manipulaciju uređajima i particijama).

Lijep pozdrav, Ljubo
_________________
Those who give up their liberty for temporary convenience will find themselves ultimately with neither.

Linux User #277235
Linux Machines # 205191, 312915, 339986, 339987
GnuPG key #72169511 @ hkp://subkeys.pgp.net
Postano : 01.11.2007 8:44:38
Izradi PDF od ove poruke Ispis
Vrh
 Vrh   Prethodna tema   Sljedeca tema

 


 Ne možete pokrenuti novu temu.
 Možete citati teme.
 Ne možete odgovarati na poruke.
 Ne možete uredivati svoje poruke.
 Ne možete brisati svoje poruke.
 Ne možete dodavati nove ankete.
 Ne možete glasati u anketama.
 Ne možete dodavati fileove porukama.
 Ne možete slati poruke bez odobrenja.
Copyright © 1995-2009 HULK web team. Sva prava pridržana. RSS. Engine: XOOPS