LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   FreeBSD installation causes "Partition # does not end on cylinder boundary." (https://www.linuxquestions.org/questions/%2Absd-17/freebsd-installation-causes-partition-does-not-end-on-cylinder-boundary-871153/)

slacker_et 03-26-2011 01:03 PM

FreeBSD installation causes "Partition # does not end on cylinder boundary."
 
I wanted to upgrade FreeBSD on my laptop from 8.1 to 8.2.
At the same time I took the opportunity to enlarge some partitions on my laptop.
And fix the "Partition # does not end on cylinder boundary." errors I have been experiencing for several months.
My laptop runs multiple OS's; WinXP, FreeBSD, Slackware, Ubuntu, Suse.


The basic procedure I followed was:
  1. Backup each Linux OS to an external drive.
    ( I only backed up the Linux's and not Windows or FreeBSD.
    Because Windows was on partition #1 and was only going to be enlarged.
    And the FreeBSD was going to be a complete reinstall.)
  2. Use Slackware installation DVD to repartition and format the laptop's drive.
    ( Keeping all OS's on the same numbered partition as before the change.)
  3. Reinstall each Linux OS.
  4. Install FreeBSD 8.2.

Everything went mostly very smooth.
I did have a few minutes of terror when Windows XP would not boot.
But then I realized I had it's newly resized partition type set to 83 (linux); instead of 7 (HPFS/NTFS). Oops :D
And I still have to determine why Ubuntu and Suse aren't loading their kernels.
But I hardly ever use those two; and they use initrd; while the Slackware does not.
And the Slackware booted without any issue.

So after restoring the three Linux's and fixing Windows; and before install FreeBSD 8.2.
My laptop's disk looked like this:
(From Slackware prompt.)
Code:

root@laptop:~# fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xa8a8a8a8

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1              1        8486    68163763+  7  HPFS/NTFS
/dev/sda2  *        8487      12403    31463302+  a5  FreeBSD
/dev/sda3          12404      12926    4200997+  82  Linux swap
/dev/sda4          12927      19457    52460257+  5  Extended
/dev/sda5          12927      16843    31463271  83  Linux
/dev/sda6          16844      18149    10490413+  83  Linux
/dev/sda7          18150      19455    10490413+  83  Linux
root@laptop:~#

bash-4.1$

But after installing FreeBSD 8.2.
My laptop's disk looked like this:
Code:

root@laptop:~# fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xa8a8a8a8

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1              1        8486    68163763+  7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2  *        8487      12403    31463302+  a5  FreeBSD
Partition 2 does not end on cylinder boundary.
/dev/sda3          12404      12926    4200997+  82  Linux swap
Partition 3 does not end on cylinder boundary.
/dev/sda4          12927      19457    52460257+  5  Extended
Partition 4 does not end on cylinder boundary.
/dev/sda5          12927      16843    31463271  83  Linux
/dev/sda6          16844      18149    10490413+  83  Linux
/dev/sda7          18150      19455    10490413+  83  Linux
root@laptop:~#

bash-4.1$

What could I have done wrong ?
Is it simply because I created the FreeBSD partition/slice using Linux's fdisk ?

Thanks;
--ET

business_kid 03-27-2011 09:08 AM

fdisk does that. the sky won't fall in - things might nag.

use cfdisk or sfdisk to fix - if you're bothered.

JZL240I-U 03-28-2011 05:18 AM

Try "Gparted" (a live CD specializing in partition works http://gparted.sourceforge.net/livecd.php). It might tell you more and will let you rectify any misalignments.

slacker_et 04-01-2011 08:38 AM

Thanks for the replies.
I guess I just learn to live with the warnings; or perhaps get rid of FreeBSD.

--ET


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