I.T. WORLD
DPREVIEW
I'm actively participating dpreview.com now and time to time I won so I decided to put my won entries here.
| How to format new hard drive in Linux |
| I.T. WORLD - Open Source Corner | |
| Monday, 04 January 2010 11:14 | |
|
There are many manuals or how-to everywhere in website, but in this case I will make it very KISS (Keep It Simple Stupid!) ISSUE: I want to format a newly purchase hard drive to be a Linux ready file system (it can be IDE, SATA, SCSI) but in this case I use SATA 750 GB SOLUTION: 1. First I plug SATA Hard Drive to it's proper SATA slots, in my case I plug to SATA3 coz SATA0,1,2 are occupied already. Remember when you plug your SATA you have to put power supply as well, there are two types of power supply now a days the white one a typical for IDE and the latest one is the black with many pins. Note: if you purchase SATA that has two power supply just plug only one. 2. Boot your Linux box 3. If you are not a text based savvy no worries use gparted or qtparted but can be used as GUI base, but in this How-to I will teach the classic old school, the text based. For GUI user go ahead with Next Next Ok Ok mouse procedure, for text savvy let's go ahead.
4. I've been recomend to use log file instead using gui stuff (* was recomended by Andy F www.x31.com/~andy) 4.1 type this command kutch@dorkbox:~$ tail -f /var/log/messages
4.4 so this means you have /dev/sdb device 5.Now it is identified then lets start, fdisk your drive kutch@dorkbox:~$ sudo fdisk /dev/sdb Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Command (m for help): n Command action p Partition number (1-4): 1 Command (m for help): t # t means change a partition's system id Selected partition 1 #83 Means Linux Command (m for help): w # W Means Write to table Calling ioctl() to re-read partition table. 6. Now you formated already the dis, you have to make the disk a file system, in my case I created EXT3 kutch@dorkbox:~$ sudo mkfs.ext3 /dev/sdb1 Note: why I did not set to /dev/sdb? Answer I'm not writing including MBR I just want to have a Storage 7. Ops don't be excited we are almost done. You still have to label your disk, In my case I have to because I have 4 Sata Drives and 2 Identical Capacities, let's label the disk now kutch@dorkbox:~$ sudo e2label /dev/sdb1 "KM33_750GB_I_01" 8. Ok we are done but how to use the new drive? It is simple use mount command kutch@dorkbox:~$ sudo /dev/sdb1 /media/sdb1 That's all folks! |
Avast Free
Free AVAST Anti-Virus
Your license key is:
---------- cut here ----------
C24683153H1200A0512-KRRTYWF2
---------- cut here ----------
Expiry: June 22, 2011








