Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
question about fdisk
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Amfabeta
Tux's lil' helper
Tux's lil' helper


Joined: 12 Aug 2005
Posts: 133
Location: Finland

PostPosted: Tue Jul 25, 2006 8:12 am    Post subject: question about fdisk Reply with quote

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
View user's profile Send private message
Sedrik
l33t
l33t


Joined: 08 Apr 2005
Posts: 655
Location: Uppsala, Sweden

PostPosted: Tue Jul 25, 2006 9:32 am    Post subject: Reply with quote

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
View user's profile Send private message
intmain
Apprentice
Apprentice


Joined: 14 Dec 2005
Posts: 179
Location: Austria

PostPosted: Tue Jul 25, 2006 10:12 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum