View previous topic :: View next topic |
Author |
Message |
Amfabeta Tux's lil' helper
Joined: 12 Aug 2005 Posts: 133 Location: Finland
|
Posted: Tue Jul 25, 2006 8:12 am Post subject: question about fdisk |
|
|
My previous partition table had 56227+ blocks (cylinders 1604-1610) on /dev/hda2. Now I'd like to make same size partition again but in /dev/hda1. so I try to use cylinders 1-6 but block size (2992+) doesn't match. How does these cylinders work? I thought that same amount of cylinders has same size blocks. _________________ Socially retarded since 1986. |
|
Back to top |
|
|
Sedrik l33t
Joined: 08 Apr 2005 Posts: 655 Location: Uppsala, Sweden
|
Posted: Tue Jul 25, 2006 9:32 am Post subject: |
|
|
I believe it depends on filesystem actually.
I'm no expert but I believe different filesystems have different sizes on thier block (thats why some run better with larger files but slower with smaller ones) _________________ From Gentoo with love |
|
Back to top |
|
|
intmain Apprentice
Joined: 14 Dec 2005 Posts: 179 Location: Austria
|
Posted: Tue Jul 25, 2006 10:12 am Post subject: |
|
|
The number of blocks per cylinder depends on the harddisk, you can find out about the size of the cylinders with fdisk -l.
For instance, for my two harddisks it shows:
Code: |
fdisk -l /dev/hda
Disk /dev/hda: 41.1 GB, 41174138880 bytes
16 heads, 63 sectors/track, 79780 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
...
fdisk -l /dev/hdb
Disk /dev/hdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
|
So, for instance if I have a partition of 6 cylinders on hdb (6*1665=96390), to get a partition of the approximately same size I would have to take 95 or 96 cylinders (96390/1008=95.625). |
|
Back to top |
|
|
|