LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-12-2012, 05:49 AM   #1
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Rep: Reputation: 85
Can't create a partition beginning at sector 1


I would like to know what's preventing me from creating a partition beginning at sector 1 and how I can do it. This never had been an issue before. Thanks.

Code:
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00030f12

   Device Boot      Start         End      Blocks   Id  System

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4, default 1): 1
First sector (2048-78140159, default 2048): 
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-78140159, default 78140159): 
Using default value 78140159

Command (m for help): p

Disk /dev/sda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders, total 78140160 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00030f12

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048    78140159    39069056   83  Linux

Command (m for help): d
Selected partition 1

Command (m for help): d
No partition is defined yet!

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4, default 1): 1
First sector (2048-78140159, default 2048): 1
Value out of range.
First sector (2048-78140159, default 2048):

Last edited by fakie_flip; 06-12-2012 at 05:51 AM.
 
Old 06-12-2012, 05:57 AM   #2
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,820

Rep: Reputation: 229Reputation: 229Reputation: 229
Alignment I believe...

http://superuser.com/questions/35257...-instead-of-63

Do you need the space?

Last edited by thorkelljarl; 06-12-2012 at 06:03 AM.
 
Old 06-12-2012, 06:02 AM   #3
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Original Poster
Rep: Reputation: 85
Quote:
Originally Posted by thorkelljarl View Post
The link talks about a user that needs his partitions aligned on two drives for use with RAID1. I'm using a laptop with a single drive.
 
Old 06-12-2012, 06:03 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
The first sector is for the bootloader, primary partition table, etc.---so you can't start a partition there. I think that starting the first partition at sector 2048 is pretty common. ((I think)) that sectors 2 thru 2047 are sometimes used for boot code and other "overhead" functions.
 
Old 06-12-2012, 06:07 AM   #5
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,820

Rep: Reputation: 229Reputation: 229Reputation: 229
Not only about RAID...

It was this that I found relevant.

Quote:
Because your old disc was partitioned with a old utility, such as the Linux fdisk, that uselessly implemented track-alignment using the entirely fake disc geometry that you see reported, and your new disc has been or is being partitioned by a newer utility that (by default) aligns to 1MiB boundaries instead.
Further reading

Jonathan de Boyne Pollard (2011). The gen on disc partition alignment. Frequently Given Answers.

link|improve this answer

answered Oct 31 '11 at 23:21
JdeBP
8,1851024


In other words, the LBA sector number 63 corresponds to cylinder 0, head 1, sector 1 in the CHS format, which is the first sector you can use in the MBR format. However, the number 63 is not divisible by 8, which causes a problem with 4K drives, so some modern tools starts the first partition at 2048 which also provides future GPT compatibility. – billc.cn Oct 31 '11 at 23:48
 
Old 06-12-2012, 06:15 AM   #6
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,820

Rep: Reputation: 229Reputation: 229Reputation: 229
By the way...

This subject in general has the complexity of the tax codes of several of the worlds most developed nations and is something that in former times contributed to perpetuating the practice of dueling.
 
Old 06-12-2012, 06:40 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
I would doubt you ever allocated partition(s) from sector one (zero based counting pixellany).
Cylinder one I would accept as plausible.

As discussed above megabyte alignment is now accepted as "normal"
 
Old 06-12-2012, 11:01 AM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by syg00 View Post
.....from sector one (zero based counting pixellany)......"
ooopppsss!!
 
Old 06-12-2012, 04:23 PM   #9
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Original Poster
Rep: Reputation: 85
Ok, I've been compiling software in Gentoo now for at least an hour now. Once this distcc is finished and setup, everything else should be fast.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create a boot sector under Linux? Keithj Linux - Hardware 6 06-17-2008 04:35 PM
Messed up partition table and Windows' partition boot sector pyromithrandir Linux - General 32 04-08-2006 12:26 PM
WinXP Not Moving Files to Beginning of the Partition GNewbie General 6 12-06-2005 06:27 PM
how can i partition around a bad sector ? nephish Linux - Hardware 13 12-02-2005 08:45 AM
Resizing a Partition blocked from both beginning and end apachedude Linux - Hardware 2 01-17-2005 03:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration