Log in

View Full Version : Format dan Mounting Hardisk Baru di Linux


elvaz
30th December 2009, 07:05 PM
http://4.bp.blogspot.com/_wBxkU1RtnvE/Si-qrqrIZ-I/AAAAAAAAADQ/e5_VfWQIbBg/s1600-h/6Y160M0_compeve.jpg
Ckckckckckckck.....
Abis Instalasi hardisk baru nii broo..........
ckckckc..........
kaga nyangka bakal installasi hardisk baru, gara2 hari ini komputernya udah keabisan space kosong ckckckckck
ok ...
let's see....(kebetulan pake UBUNTU 8.10 )

nah ini nii liat aja ya
command line mode : ON

$ df -H (buat liat space kosong hardisk saat ini broo...)
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 19G 16.8G 2.2G 89% /
tmpfs 127M 0 127M 0% /lib/init/rw
varrun 127M 103k 127M 1% /var/run
varlock 127M 0 127M 0% /var/lock
udev 127M 2.8M 124M 3% /dev
tmpfs 127M 0 127M 0% /dev/shm
lrm 127M 2.1M 125M 2% /lib/modules/2.6.27-7-generic/volatile

$ su - root (jadi root dulu nii oh ya...kebetulan harddisknya udah dipasang jadi ga butuh ada mode matiin computer dulu niiii hehehehehe..... gw pake hardisk maxtor IDE 160gb)
password:******(biasa isi password root dulu)

# fdisk -l (buat liat hardisk gw udah masuk ato blom)
Disk /dev/sda: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x473432c2

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2327 18691596 83 Linux
/dev/sda2 2328 2434 859477+ 5 Extended
/dev/sda5 2328 2434 859446 82 Linux swap / Solaris

Disk /dev/sdb: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors/track, 19452 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table
(wah dah kebaca nii disk tapi gara 2 masih baru jadi kaya gini ya.....)

# fdisk /dev/sdb (ini buat create new patition di hardisk kita nii....)
The number of cylinders for this disk is set to 2434.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): m (ketik m aja buat help)
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)

Command (m for help): n
( n untuk new partition ok! terus enter 2 kali ok..... selesai ada disk baru.........)

# fdisk -l
Disk /dev/sda: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x473432c2

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2327 18691596 83 Linux
/dev/sda2 2328 2434 859477+ 5 Extended
/dev/sda5 2328 2434 859446 82 Linux swap / Solaris

Disk /dev/sdb: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors/track, 19452 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 19452 18691596 83 Linux
(udah kebaca niii hehehehehe ...... lanjut broo)

# mkfs.ext3 /dev/sdb1 (format hardisk sampe selesai dengan type ext3(bukan NTFS windows ya)

# mkdir /mnt/disk-2 (buat folder buat mount disk baru hihiihihihi senangnya :) )

# mount -t ext3 /dev/sdb1 /mnt/disk-2 (mount disk baru supaya bisa dipake dunk.... hehehehe)

# df -H (periksa lagi brooo.....)
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 19G 16.8G 2.2G 89% /
tmpfs 127M 0 127M 0% /lib/init/rw
varrun 127M 103k 127M 1% /var/run
varlock 127M 0 127M 0% /var/lock
udev 127M 2.8M 124M 3% /dev
tmpfs 127M 0 127M 0% /dev/shm
lrm 127M 2.1M 125M 2% /lib/modules/2.6.27-7-generic/volatile
/dev/sdb1 160G 0 160G 100% /mnt/disk-2 (udah masuk broo....)

# vi /etc/fstab (buat permanenin si disk supaya kaga usah ngemount bolak-balik pas selesai restart)

# /etc/fstab: static file system information.
proc /proc proc defaults 0 0
/dev/sda1 / ext3 relatime,errors=remount-ro 0 1
/dev/sda5 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
(tambahin dimari boss)
/dev/sdb1 /mnt/disk-2 ext3 defaults 1 3
(terus tekan ESC dan ketik :wq! untuk simpan ok.....selesai bozzz.......)


Alhamdulillah Selesai juga akhirnya......

elvaz
30th December 2009, 07:06 PM
Silakan yang Mo bahas ttg linux !!

ADMINISTRATOR
31st December 2009, 08:42 AM
Ijin Copy Paste artikelnya ya Bos..

papaBear
15th February 2010, 08:34 AM
--- ijin memantau ndan :2good:
--- ane tertarik ama ubuntu, katanya cucok buat pemula linux nehh :araara:
--- dulu liat liputannya di salah satu TV swasta nasional tentang ubuntu :2good:
--- mana nehh linuxer yg lain ??? :hammer:

100
30th May 2010, 09:14 PM
kenapa gak pake gparted aja nih ?

masmas
3rd June 2010, 04:40 PM
--- ijin memantau ndan :2good:
--- ane tertarik ama ubuntu, katanya cucok buat pemula linux nehh :araara:
--- dulu liat liputannya di salah satu TV swasta nasional tentang ubuntu :2good:
--- mana nehh linuxer yg lain ??? :hammer:

iya nih maih sepi banget gan :tanya:

aerozeppelin
15th August 2010, 07:36 PM
ijin mantau dl ya, ane br belajar nh pk LinuxMint :malu2:

heijung
25th August 2010, 11:35 AM
ini langkah kalo mau format hdd baru ya ndan?
hdd yang bener2 kosong..?

boyresh
2nd September 2010, 07:50 PM
thanks bro..
ane baru mulai pake ubuntu 10.04 nih..
keep posting ya..
ane mau belajar...

arga7
20th December 2010, 10:20 AM
waduh rumit jg ya...

dan123
2nd February 2011, 11:59 AM
http://4.bp.blogspot.com/_wBxkU1RtnvE/Si-qrqrIZ-I/AAAAAAAAADQ/e5_VfWQIbBg/s1600-h/6Y160M0_compeve.jpg

# /etc/fstab: static file system information.
proc /proc proc defaults 0 0
/dev/sda1 / ext3 relatime,errors=remount-ro 0 1
/dev/sda5 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
(tambahin dimari boss)
/dev/sdb1 /mnt/disk-2 ext3 defaults 1 3
(terus tekan ESC dan ketik :wq! untuk simpan ok.....selesai bozzz.......)

Alhamdulillah Selesai juga akhirnya......
bisa pake uuid juga tuh
tapi sebelumnya ketik perintah ini dulu
"blkid"
habis itu angka yang keluar buat ganti yang bagian depan misal /dev/sdx diganti sama angka yang ada