Results 1 to 10 of 31

Thread: "Disk Utility" - WARNING: The partition is misaligned by 1024 bytes....

Hybrid View

  1. #1
    Join Date
    Aug 2010
    Location
    Montreal, Quebec, Canada
    Beans
    191
    Distro
    Ubuntu 10.10 Maverick Meerkat

    "Disk Utility" - WARNING: The partition is misaligned by 1024 bytes....

    Hello:

    Disk Utility suggests that I repartition.

    How I got to this point:

    I did a complete, fresh install of Ubuntu 10.10 Maverick 64-bit on my 1.0TB hard disk accepting all the installer's defaults.

    If I repartition, I guess I should re-install, right? (I have no data yet so that would not matter.)

    My question is, I guess, how do I prevent 'ground-hog day'? I don't want this to happen again.

    Thanks,
    Rob.

    "Action, is the universal solution; do the inevitable immediately."

  2. #2
    Join Date
    Aug 2010
    Location
    Montreal, Quebec, Canada
    Beans
    191
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: "Disk Utility" - WARNING: The partition is misaligned by 1024 bytes....

    hello:

    I have decided to just do a re-install but to do the partitioning part all by myself - Yikes!!!!
    Rob.

    "Action, is the universal solution; do the inevitable immediately."

  3. #3
    Join Date
    Aug 2010
    Location
    Montreal, Quebec, Canada
    Beans
    191
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: "Disk Utility" - WARNING: The partition is misaligned by 1024 bytes....

    Hello:

    It happened again!!!!!!

    Does anyone know why or what I have to do to get rid of this problem?

    The msg says that I should repartition - what exactly does this mean? Repartition and re-install? Did that and it happened again.

    Thanks,
    Rob.

    "Action, is the universal solution; do the inevitable immediately."

  4. #4
    Join Date
    Dec 2008
    Location
    43° 7' 41" 131° 54' 3"
    Beans
    Hidden!

    Re: "Disk Utility" - WARNING: The partition is misaligned by 1024 bytes....

    Be glad to help if you could explain your re-partition process or just download and run the script in my signature and post here within the code brackets.
    Did you format the disk before or after partitioning and with what filesystem?
    EasyBCD.
    PrintersDatabase
    Boot Info Script: How to
    The post above and the post below suffer from the Rashomon effect!

  5. #5
    Join Date
    Aug 2010
    Location
    Montreal, Quebec, Canada
    Beans
    191
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: "Disk Utility" - WARNING: The partition is misaligned by 1024 bytes....

    Quote Originally Posted by jtarin View Post
    Be glad to help if you could explain your re-partition process or just download and run the script in my signature and post here within the code brackets.
    Did you format the disk before or after partitioning and with what filesystem?
    Hello:

    I have included the error msg in the attachment.

    I think that I formatted when I set up the partitions with "Parted Magic" and again through the Ubuntu installer - using Ext4 in both places.


    Code:
                    Boot Info Script 0.55    dated February 15th, 2010                    
    
    ============================= Boot Info Summary: ==============================
    
     => Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in 
        partition #5 for (,msdos5)/boot/grub.
    
    sda1: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  
        Boot files/dirs:   
    
    sda2: _________________________________________________________________________
    
        File system:       Extended Partition
        Boot sector type:  Unknown
        Boot sector info:  
    
    sda5: _________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info:  
        Operating System:  Ubuntu 10.10
        Boot files/dirs:   /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
    
    sda6: _________________________________________________________________________
    
        File system:       swap
        Boot sector type:  -
        Boot sector info:  
    
    sda7: _________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info:  
        Operating System:  
        Boot files/dirs:   
    
    =========================== Drive/Partition Info: =============================
    
    Drive: sda ___________________ _____________________________________________________
    
    Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
    255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    
    Partition  Boot         Start           End          Size  Id System
    
    /dev/sda1    *          2,048   204,802,047   204,800,000   7 HPFS/NTFS
    /dev/sda2         204,804,094 1,953,523,711 1,748,719,618   5 Extended
    /dev/sda5         204,804,096   286,724,095    81,920,000  83 Linux
    /dev/sda6         286,726,144   305,162,239    18,436,096  82 Linux swap / Solaris
    /dev/sda7         305,164,288 1,953,520,064 1,648,355,777  83 Linux
    
    
    blkid -c /dev/null: ____________________________________________________________
    
    Device           UUID                                   TYPE       LABEL                         
    
    /dev/sda1        0C54B294348B5C8E                       ntfs       win_maybe                     
    /dev/sda2: PTTYPE="dos" 
    /dev/sda5        c2d40f3f-0bea-4a83-ba61-402c6c8c5ee1   ext4                                     
    /dev/sda6        7e348006-396b-4195-9faf-5bd70df13a48   swap                                     
    /dev/sda7        df185c8c-8465-47d8-8447-b2d167ab61ab   ext4                                     
    /dev/sda: PTTYPE="dos" 
    error: /dev/sdb: No medium found
    error: /dev/sdc: No medium found
    
    ============================ "mount | grep ^/dev  output: ===========================
    
    Device           Mount_Point              Type       Options
    
    /dev/sda5        /                        ext4       (rw,errors=remount-ro,commit=0)
    /dev/sda7        /home                    ext4       (rw,commit=0)
    /dev/sr0         /media/Parted Magic      iso9660    (ro,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500)
    
    
    =========================== sda5/boot/grub/grub.cfg: ===========================
    
    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #
    
    ### BEGIN /etc/grub.d/00_header ###
    if [ -s $prefix/grubenv ]; then
      set have_grubenv=true
      load_env
    fi
    set default="0"
    if [ "${prev_saved_entry}" ]; then
      set saved_entry="${prev_saved_entry}"
      save_env saved_entry
      set prev_saved_entry=
      save_env prev_saved_entry
      set boot_once=true
    fi
    
    function savedefault {
      if [ -z "${boot_once}" ]; then
        saved_entry="${chosen}"
        save_env saved_entry
      fi
    }
    
    function recordfail {
      set recordfail=1
      if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
    }
    
    function load_video {
      insmod vbe
      insmod vga
    }
    
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos5)'
    search --no-floppy --fs-uuid --set c2d40f3f-0bea-4a83-ba61-402c6c8c5ee1
    if loadfont /usr/share/grub/unicode.pf2 ; then
      set gfxmode=640x480
      load_video
      insmod gfxterm
    fi
    terminal_output gfxterm
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos5)'
    search --no-floppy --fs-uuid --set c2d40f3f-0bea-4a83-ba61-402c6c8c5ee1
    set locale_dir=($root)/boot/grub/locale
    set lang=en
    insmod gettext
    if [ "${recordfail}" = 1 ]; then
      set timeout=-1
    else
      set timeout=10
    fi
    ### END /etc/grub.d/00_header ###
    
    ### BEGIN /etc/grub.d/05_debian_theme ###
    set menu_color_normal=white/black
    set menu_color_highlight=black/light-gray
    ### END /etc/grub.d/05_debian_theme ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Ubuntu, with Linux 2.6.35-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos5)'
        search --no-floppy --fs-uuid --set c2d40f3f-0bea-4a83-ba61-402c6c8c5ee1
        linux    /boot/vmlinuz-2.6.35-23-generic root=UUID=c2d40f3f-0bea-4a83-ba61-402c6c8c5ee1 ro   quiet splash
        initrd    /boot/initrd.img-2.6.35-23-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.35-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos5)'
        search --no-floppy --fs-uuid --set c2d40f3f-0bea-4a83-ba61-402c6c8c5ee1
        echo    'Loading Linux 2.6.35-23-generic ...'
        linux    /boot/vmlinuz-2.6.35-23-generic root=UUID=c2d40f3f-0bea-4a83-ba61-402c6c8c5ee1 ro single 
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-2.6.35-23-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos5)'
        search --no-floppy --fs-uuid --set c2d40f3f-0bea-4a83-ba61-402c6c8c5ee1
        linux    /boot/vmlinuz-2.6.35-22-generic root=UUID=c2d40f3f-0bea-4a83-ba61-402c6c8c5ee1 ro   quiet splash
        initrd    /boot/initrd.img-2.6.35-22-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos5)'
        search --no-floppy --fs-uuid --set c2d40f3f-0bea-4a83-ba61-402c6c8c5ee1
        echo    'Loading Linux 2.6.35-22-generic ...'
        linux    /boot/vmlinuz-2.6.35-22-generic root=UUID=c2d40f3f-0bea-4a83-ba61-402c6c8c5ee1 ro single 
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-2.6.35-22-generic
    }
    ### END /etc/grub.d/10_linux ###
    
    ### BEGIN /etc/grub.d/20_linux_xen ###
    ### END /etc/grub.d/20_linux_xen ###
    
    ### BEGIN /etc/grub.d/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos5)'
        search --no-floppy --fs-uuid --set c2d40f3f-0bea-4a83-ba61-402c6c8c5ee1
        linux16    /boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos5)'
        search --no-floppy --fs-uuid --set c2d40f3f-0bea-4a83-ba61-402c6c8c5ee1
        linux16    /boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    if [ "x${timeout}" != "x-1" ]; then
      if keystatus; then
        if keystatus --shift; then
          set timeout=-1
        else
          set timeout=0
        fi
      else
        if sleep --interruptible 3 ; then
          set timeout=0
        fi
      fi
    fi
    ### END /etc/grub.d/30_os-prober ###
    
    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries.  Simply type the
    # menu entries you want to add after this comment.  Be careful not to change
    # the 'exec tail' line above.
    ### END /etc/grub.d/40_custom ###
    
    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f  $prefix/custom.cfg ]; then
      source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###
    
    =============================== sda5/etc/fstab: ===============================
    
    # /etc/fstab: static file system information.
    #
    # Use 'blkid -o value -s UUID' to print the universally unique identifier
    # for a device; this may be used with UUID= as a more robust way to name
    # devices that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    nodev,noexec,nosuid 0       0
    # / was on /dev/sda5 during installation
    UUID=c2d40f3f-0bea-4a83-ba61-402c6c8c5ee1 /               ext4    errors=remount-ro 0       1
    # /home was on /dev/sda7 during installation
    UUID=df185c8c-8465-47d8-8447-b2d167ab61ab /home           ext4    defaults        0       2
    # swap was on /dev/sda6 during installation
    UUID=7e348006-396b-4195-9faf-5bd70df13a48 none            swap    sw              0       0
    
    =================== sda5: Location of files loaded by Grub: ===================
    
    
     113.7GB: boot/grub/core.img
     117.9GB: boot/grub/grub.cfg
     105.8GB: boot/initrd.img-2.6.35-22-generic
     105.8GB: boot/initrd.img-2.6.35-23-generic
     113.7GB: boot/vmlinuz-2.6.35-22-generic
     113.8GB: boot/vmlinuz-2.6.35-23-generic
     105.8GB: initrd.img
     105.8GB: initrd.img.old
     113.8GB: vmlinuz
     113.7GB: vmlinuz.old
    =========================== Unknown MBRs/Boot Sectors/etc =======================
    
    Unknown BootLoader  on sda2
    
    00000000  89 5d f4 89 75 f8 89 7d  fc e8 59 f4 f6 ff 81 c3  |.]..u..}..Y.....|
    00000010  e6 73 34 00 8b 55 0c 8b  75 10 89 f7 b8 00 00 00  |.s4..U..u.......|
    00000020  00 b9 ff ff ff ff f2 ae  f7 d1 c7 02 00 00 00 00  |................|
    00000030  c7 44 24 1c 01 00 00 00  8b 45 14 89 44 24 18 89  |.D$......E..D$..|
    00000040  54 24 14 89 4c 24 10 89  74 24 0c c7 44 24 08 01  |T$..L$..t$..D$..|
    00000050  00 00 00 c7 44 24 04 04  00 00 00 8b 45 08 89 04  |....D$......E...|
    00000060  24 e8 c0 fe ff ff 8b 5d  f4 8b 75 f8 8b 7d fc 89  |$......]..u..}..|
    00000070  ec 5d c3 55 89 e5 83 ec  38 89 5d f4 89 75 f8 89  |.].U....8.]..u..|
    00000080  7d fc e8 e0 f3 f6 ff 81  c3 6d 73 34 00 8b 75 0c  |}........ms4..u.|
    00000090  8b 7d 10 89 3c 24 e8 27  0f 01 00 c7 06 00 00 00  |.}..<$.'........|
    000000a0  00 c7 44 24 1c 01 00 00  00 8b 55 14 89 54 24 18  |..D$......U..T$.|
    000000b0  89 74 24 14 8d 44 00 02  89 44 24 10 89 7c 24 0c  |.t$..D...D$..|$.|
    000000c0  c7 44 24 08 01 00 00 00  c7 44 24 04 00 00 00 00  |.D$......D$.....|
    000000d0  8b 45 08 89 04 24 e8 4b  fe ff ff 8b 5d f4 8b 75  |.E...$.K....]..u|
    000000e0  f8 8b 7d fc 89 ec 5d c3  55 89 e5 83 ec 48 89 5d  |..}...].U....H.]|
    000000f0  f4 89 75 f8 89 7d fc e8  6b f3 f6 ff 81 c3 f8 72  |..u..}..k......r|
    00000100  34 00 8b 7d 14 8b 75 18  8b 45 10 c7 00 00 00 00  |4..}..u..E......|
    00000110  00 85 f6 0f 84 47 01 00  00 8b 55 1c 89 54 24 08  |.....G....U..T$.|
    00000120  89 7c 24 04 8b 45 0c 89  04 24 e8 7b eb ff ff 85  |.|$..E...$.{....|
    00000130  c0 74 0e 83 c7 01 83 fe  ff 0f 95 c0 0f b6 c0 29  |.t.............)|
    00000140  c6 f6 45 1c 01 74 3f 83  fe ff 74 18 d1 ee 89 74  |..E..t?...t....t|
    00000150  24 04 89 3c 24 e8 b0 0e  01 00 39 f0 83 d0 00 8d  |$..<$.....9.....|
    00000160  34 00 eb 0c 89 3c 24 e8  56 0e 01 00 8d 74 00 02  |4....<$.V....t..|
    00000170  81 fe ff ff 0f 00 76 2d  8d 83 54 74 f9 ff 89 04  |......v-..Tt....|
    00000180  24 e8 93 6b 01 00 83 fe  ff 75 1a e8 bc d7 f6 ff  |$..k.....u......|
    00000190  c7 00 16 00 00 00 be 00  00 00 00 90 8d 74 26 00  |.............t&.|
    000001a0  e9 bb 00 00 00 83 e6 fe  c7 44 24 1c 01 00 00 00  |.........D$.....|
    000001b0  8d 45 ec 89 44 24 18 8d  45 f0 89 44 24 14 00 fe  |.E..D$..E..D$...|
    000001c0  ff ff 83 fe ff ff 02 00  00 00 00 00 e2 04 00 fe  |................|
    000001d0  ff ff 05 fe ff ff 02 00  e2 04 00 58 19 01 00 00  |...........X....|
    000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
    00000200
    
    
    =======Devices which don't seem to have a corresponding hard drive==============
    
    sdb sdc
    Thanks for your time,
    Attached Images Attached Images
    Rob.

    "Action, is the universal solution; do the inevitable immediately."

  6. #6
    Join Date
    Dec 2008
    Location
    43° 7' 41" 131° 54' 3"
    Beans
    Hidden!

    Re: "Disk Utility" - WARNING: The partition is misaligned by 1024 bytes....

    I would try to boot with the ubuntu CD in the try mode and use Gparted to delete all partitions but the extended and Win7. Then change the extended to a primary partition and format as NTFS. Boot into Win7 and check the validity of this action and also the file system type. If things are good then reboot with the ubuntu CD try mode and Gparted and divide your recently formatted partition into your desired /,/home /swap. Make sure that you check that it is not active. Then do your re-install.
    Where did you install Grub? The MBR of your drive or the / of the extended partition? I see by the script there is something odd.
    Code:
    Unknown BootLoader  on sda2
    Which is the beginning of your extended partition????? Could you shed some light on that before you do anything?
    Also what is name and number of your drive?
    Last edited by jtarin; December 4th, 2010 at 06:18 AM.
    EasyBCD.
    PrintersDatabase
    Boot Info Script: How to
    The post above and the post below suffer from the Rashomon effect!

  7. #7
    Join Date
    Mar 2010
    Location
    Woonsocket, RI USA
    Beans
    3,195

    Re: "Disk Utility" - WARNING: The partition is misaligned by 1024 bytes....

    Quote Originally Posted by Robert.Thompson View Post
    [CODE]Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
    255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes

    Partition Boot Start End Size Id System

    /dev/sda1 * 2,048 204,802,047 204,800,000 7 HPFS/NTFS
    /dev/sda2 204,804,094 1,953,523,711 1,748,719,618 5 Extended
    /dev/sda5 204,804,096 286,724,095 81,920,000 83 Linux
    /dev/sda6 286,726,144 305,162,239 18,436,096 82 Linux swap / Solaris
    /dev/sda7 305,164,288 1,953,520,064 1,648,355,777 83 Linux
    This looks like a bug that's generating a false-alarm warning message to me. First, understand that most partitioning tools have moved to a policy of aligning partitions on 1 MiB (2048-sector) boundaries as a way of improving performance with some types of RAID arrays and some types of new hard disks (those with 4096-byte physical sectors). See this article I wrote for details. If you've got a conventional disk that does not use the Advanced Format (4096-byte physical sector) setup, partition alignment is irrelevant, no matter what any warning message in a disk utility might say. If you've got an Advanced Format disk, proper disk alignment is important, but see below....

    All of your primary and logical partitions are properly aligned on 2048-sector boundaries, so they're all fine. The extended partition (/dev/sda2) that houses your logical partitions, though, starts just two sectors (1024 KiB) before your first logical partition. Thus, in some sense that partition is 1024 KiB misaligned. That's the value reported by the warning, which makes me think the warning is referring to that partition. This is 100% irrelevant, though. The reason is that the partition alignment matters because of filesystem data structures within partitions; however, filesystem data structures are aligned relative to logical partitions (or primary partitions), not to the extended partition that houses logical partitions. My suspicion is that the program checks for partition alignment but is overzealous and checks the alignment of the extended partition, which it shouldn't be doing. If so, this is a bug.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •