Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[fdisk] Creating a partition at the outer edge of hard drive
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
Somewhere
n00b
n00b


Joined: 01 Jul 2008
Posts: 38

PostPosted: Fri Jul 04, 2008 5:02 am    Post subject: [fdisk] Creating a partition at the outer edge of hard drive Reply with quote

I know this may be an unusual desire, but I want to know how it can be done none the less.

The Gentoo installer lets me use # fdisk to manipulate my partition schema. How can I use this tool to create an partition at the outer edge of my disk? I am asked to define the first and last cylinder of my partition. I am, however, not sure how to calculate how many cylinders would make up the partitions I desire.

I want /boot to be a 75 MB partition at the outer edge of my hard drive. I also want a 2 GB swap partition to be placed just next to the boot partition. The others partitions I can manage with this tool myself. But the two I want on the outer edge, I do not know how to specify.

The hard drive is a 100 GB disk with cylinders 1–12161, if it helps. :idea:
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2977
Location: Germany

PostPosted: Fri Jul 04, 2008 5:18 am    Post subject: Reply with quote

If you were to use cfdisk instead of fdisk, it lets you specify if you want to have the partition at the beginning, or at the end of the drive, and you can work with (approximated) size in megabytes instead of sectors/cylinders.

What exactly do you mean by outer edge though? For hard disks, it should usually be the first sector that is outside (i.e. in the fastest region of the drive) and the last sector inside (slowest region).

Especially /boot is something you usually put at the start of the drive because boot loaders sometimes can't see the end of it.
Back to top
View user's profile Send private message
Somewhere
n00b
n00b


Joined: 01 Jul 2008
Posts: 38

PostPosted: Fri Jul 04, 2008 5:29 am    Post subject: Is it not the other way? Reply with quote

I have always thought you ought to put it at the end of the hard drive, and that the end (last cyliders) were the outer edge of the hard drive.

Does not a hard drive start at the center of the disk (sector 1) and end at the outer edges of the disk (sector 12161)? It may very well be that I have misunderstood and that it works in reverese.
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2977
Location: Germany

PostPosted: Fri Jul 04, 2008 5:48 am    Post subject: Reply with quote

No... optical media like CD/DVD-R write from inside to outside (maybe it's easier to put into hardware this way or the outside is avoided since that is where you touch the media and where the chance for media damage is greatest), but for hard disks it's the other way around, they write from outside to inside usually, because system and files tend to go into the first sectors (they are even moved there by defraggers), so it should be the fastest area.
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