LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 11-12-2009, 05:54 AM   #1
HolyJoe
LQ Newbie
 
Registered: Feb 2008
Distribution: Ubuntu
Posts: 20

Rep: Reputation: 0
How to fix 'partition not end on cylinder boundary'?


I found this after executed: sudo fdisk -l:
Quote:
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x95f3457a

Device Boot Start End Blocks Id System
/dev/sda1 1 1146 9198592 27 Unknown
Partition 1 does not end on cylinder boundary.
/dev/sda2 * 1146 6368 41943760 7 HPFS/NTFS
Partition 2 does not end on cylinder boundary.
/dev/sda3 6368 14593 66067313 5 Extended
Partition 3 does not end on cylinder boundary.
/dev/sda5 6369 11858 44098425 7 HPFS/NTFS
/dev/sda6 11859 14332 19872373+ 83 Linux
/dev/sda7 14333 14593 2096451 82 Linux swap / Solaris
I want to fix this problem, but I don't know How to do this and do not affect existing OS boot.

Thanks for any advice!
 
Old 11-12-2009, 05:59 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,885

Rep: Reputation: 2192Reputation: 2192Reputation: 2192Reputation: 2192Reputation: 2192Reputation: 2192Reputation: 2192Reputation: 2192Reputation: 2192Reputation: 2192Reputation: 2192
Not a problem - ignore it.
 
Old 11-13-2009, 10:04 PM   #3
HolyJoe
LQ Newbie
 
Registered: Feb 2008
Distribution: Ubuntu
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
Not a problem - ignore it.
Thank you for your reply. I know it does not affect my computer's working, but if I want to fix it then HOW?
 
Old 01-01-2010, 04:14 PM   #4
karatedog
LQ Newbie
 
Registered: May 2004
Location: Hungary
Distribution: Ubuntu 9.10
Posts: 13

Rep: Reputation: 0
Call me a "sqare" but I decided to avoid this message at all costs when partitioning my USB drive. Therefore I calculated a bit and give fdisk cylinder numbers instead of Mbytes, but it stil gives me this warning.
How is that possible? Is fdisk buggy?
 
Old 01-01-2010, 04:36 PM   #5
karatedog
LQ Newbie
 
Registered: May 2004
Location: Hungary
Distribution: Ubuntu 9.10
Posts: 13

Rep: Reputation: 0
Some crazy thing is happening with fdisk, or I should learn a bit more about it. I can create the same sized partition, with 3 different result.

I have a 16 Gb USB stick, with these parameters:
Code:
Disk /dev/sdb: 16 GB, 16047521280 bytes
255 heads, 63 sectors/track, 1951 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
I deleted all partition and then created one, from cylinder:0 to cyl:382 (about the size of 3 Gb).

First try:
Then created a new partition from cyl:383 to cyl:512.

This has resulted the warning message:
Code:
   Device Boot      Start         End      Blocks   Id  System 
/dev/sdb1               1         382     3068383   83  Linux
/dev/sdb2             383         513     1044225   83  Linux
Warning: Partition 2 does not end on cylinder boundary.
Notice that I started the 2nd partition at the first's end+1. The important factor is that I manually entered the parameter to 'fdisk'.

Second try:

Deleted the 2nd partition.
Then created a new one from fdisk's default offer (it was cyl:382) to cyl:512. The difference here that I didn't enter any data, simply pressed Enter on the empty field (at the starting cylinder)

Result? Everything is fine:
Code:
   Device Boot      Start         End      Blocks   Id  System 
/dev/sdb1               1         382     3068383   83  Linux
/dev/sdb2             383         512     1036192   83  Linux
...it is strange that fdisk suggested '382' what I accepted, but the 2nd partition still starts from cyl:383 which caused Warning, when entered manually.

Third try (the most interesting):
Deleted the 2nd partition.
Then created a new one. Fdisk suggested cyl:382, but I didn't hit Enter this time, but manually entered "382". The result is:
Code:
Command (m for help): n
Partition
type
   e   extended
   p   primary partition (1-4)
p
First cylinder  (default 382cyl):382
Last cylinder or +size or +sizeMB or +sizeKB  (default 1950cyl): 511
Warning: You requested a partition from 382cyl to 511cyl.
The closest location we can manage is 382cyl to 510cyl.  Is this still acceptable to you?
   y Yes                                                                
   n No

Last edited by karatedog; 01-01-2010 at 04:42 PM. Reason: found the solution, and some more...
 
Old 01-01-2010, 04:53 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,885

Rep: Reputation: 2192Reputation: 2192Reputation: 2192Reputation: 2192Reputation: 2192Reputation: 2192Reputation: 2192Reputation: 2192Reputation: 2192Reputation: 2192Reputation: 2192
The concept of "cylinders" is meaningless on modern LBA disks - even more so on flash.
Merely maintained for compatability. IMO you're chasing smoke.
 
Old 01-02-2010, 06:37 AM   #7
HolyJoe
LQ Newbie
 
Registered: Feb 2008
Distribution: Ubuntu
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
The concept of "cylinders" is meaningless on modern LBA disks - even more so on flash.
Merely maintained for compatability. IMO you're chasing smoke.
Thanks.

"chasing smoke".

I'd resized my disk partitions from the #1 to the last in ascending order with GParted and keep the integrity of partitions at the same time. Now, the problem had been resolved.
 
Old 01-02-2010, 07:02 AM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by syg00 View Post
Not a problem - ignore it.
This was the best answer in this thread.....
 
Old 01-03-2010, 12:14 AM   #9
HolyJoe
LQ Newbie
 
Registered: Feb 2008
Distribution: Ubuntu
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pixellany View Post
This was the best answer in this thread.....
There are no the best answer, OK?!
 
  


Reply

Tags
can, how, linux, partition, reinstall


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Partition 1 does not end on cylinder boundary wood_morris Linux - Newbie 6 08-28-2009 04:57 AM
Partition 1 does not end on cylinder boundary. Galaxy_Stranger Fedora 22 08-24-2009 12:55 AM
need partition to end on cylinder boundary Master of Reality Linux - General 5 02-03-2006 09:51 PM
Partition does not end on cylinder boundary. snisheeth Linux - Hardware 0 01-24-2004 04:49 PM
Partition does not end on cylinder boundary snisheeth Linux - General 0 01-22-2004 07:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 01:36 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration