31 Ocak 2011 Pazartesi

linuxta fdisk muhabbetleri

listele beybi

kursat@kursat:~$ sudo fdisk -l
[sudo] password for kursat:

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000001

Device Boot Start End Blocks Id System
/dev/sda1 * 1 9561 76798701 7 HPFS/NTFS
/dev/sda2 9562 17327 62380395 7 HPFS/NTFS
/dev/sda3 17328 19457 17109225 5 Extended
/dev/sda5 17328 19362 16346106 83 Linux
/dev/sda6 19363 19457 763056 82 Linux swap / Solaris




partisyonumun boyutu neydi ki ?
kursat@kursat:~$ sudo fdisk -s /dev/sda
156290904

E dos uyumlu bi bakınalım partisyona dimi efem

kursat@kursat:~$ sudo fdisk -c /dev/sda

WARNING: cylinders as display units are deprecated. Use command 'u' to
change units to sectors.

Command (m for help):

Nedir opsiyonların fdisk

Command (m for help): m
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):

E burdan görelim bi daha partisyon tablosunu çocuk


Command (m for help): p

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000001

Device Boot Start End Blocks Id System
/dev/sda1 * 1 9561 76798701 7 HPFS/NTFS
/dev/sda2 9562 17327 62380395 7 HPFS/NTFS
/dev/sda3 17328 19457 17109225 5 Extended
/dev/sda5 17328 19362 16346106 83 Linux
/dev/sda6 19363 19457 763056 82 Linux swap / Solaris

Şu windowsluyu silelim be

Command (m for help): d
Partition number (1-6): 1

Command (m for help): p

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000001

Device Boot Start End Blocks Id System
/dev/sda2 9562 17327 62380395 7 HPFS/NTFS
/dev/sda3 17328 19457 17109225 5 Extended
/dev/sda5 17328 19362 16346106 83 Linux
/dev/sda6 19363 19457 763056 82 Linux swap / Solaris

eh Yeniden varedelim seni madem


Command (m for help): n
Command action
l logical (5 or over)
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-19457, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-9561, default 9561):
Using default value 9561

Durum kaç kaç ?

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000001

Device Boot Start End Blocks Id System
/dev/sda1 1 9561 76797708+ 83 Linux
/dev/sda2 9562 17327 62380395 7 HPFS/NTFS
/dev/sda3 17328 19457 17109225 5 Extended
/dev/sda5 17328 19362 16346106 83 Linux
/dev/sda6 19363 19457 763056 82 Linux swap / Solaris

Aha patladı

Hiç yorum yok: