Problem - the partition is misaligned by 512 bytes

I am trying to format a 500GbHd but I am getting the error ‘the partition is misaligned by 512 bytes’.
What can I do to fix the problem?
What info do you need?

What are you using to partition the drive ?

Use Gparted to create a new partition table (this will also delete all partitions and data), then add your partition(s).

If after that you still get the message, its probable that the drive is a Western Digital (Advanced Format) HDD (?) … AFAIK, you can either ignore the error, or use the Western Digital Advanced Format Alignment Tool:
http://support.wdc.com/product/download.asp?groupid=805

But as afar as I know, that’s a windows tool … though you can create a “Bootable WD Align CD” from within the Windows software.

Yep, it was a WD HD and I have successfully sorted it now, thanks.
I was using Disk Utility from the Ubuntu Software Centre and it wouldn’t do it properly.

Trying to mount it at the moment but not being very successful, will come back with some info shortly.

sudo gedit /etc/fstab

[spoiler]# /etc/fstab: static file system information.

Use ‘blkid’ 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).

proc /proc proc nodev,noexec,nosuid 0 0

/ was on /dev/sdb1 during installation

UUID=86fe3809-17a6-412c-be0a-250f6f29fa41 / ext4 errors=remount-ro 0 1

swap was on /dev/sda5 during installation

UUID=e56dad6b-358f-4948-b51f-4abce81f50b1 none swap sw 0 0

swap was on /dev/sdb2 during installation

UUID=03b9f227-9f5c-4abc-a50b-74ecc1590f44 none swap sw 0 0

Mounted Drives

UUID=959cb526-06f8-4d5d-bec2-a6b42f438b07 /media/Drive1 ext4 defaults 0 0

UUID=d5e1db61-b980-4624-801c-e0546b288b8f /media/Drive1 ext4 defaults 0 0

Old one

UUID=40d97c21-aec9-48ed-a089-082c41024994 /media/Drive2 ext4 defaults 0 0

New one

UUID-19eb1838-b24c-4e51-8998-f0dcc8b64bbc /media/Drive2 ext4 defaults 0 0
UUID=1e72a175-851f-43c3-a251-241d0e3800a7 /media/Drive3 ext4 defaults 0 0 :)[/spoiler]

mount

/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
/dev/sdd1 on /media/Drive1 type ext4 (rw)
/dev/sdb1 on /media/Drive3 type ext4 (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/pooky2483/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=pooky2483)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)
pooky2483@pooky2483-ubuntu12:~$ mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
/dev/sdd1 on /media/Drive1 type ext4 (rw)
/dev/sdb1 on /media/Drive3 type ext4 (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/pooky2483/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=pooky2483)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)

sudo blkid

/dev/sda1: LABEL=“12.04Boot” UUID=“86fe3809-17a6-412c-be0a-250f6f29fa41” TYPE=“ext4”
/dev/sda2: UUID=“03b9f227-9f5c-4abc-a50b-74ecc1590f44” TYPE=“swap”
/dev/sdb1: LABEL=“Drive3” UUID=“1e72a175-851f-43c3-a251-241d0e3800a7” TYPE=“ext4”
/dev/sdc1: LABEL=“Drive2” UUID=“19eb1838-b24c-4e51-8998-f0dcc8b64bbc” TYPE=“ext4”
/dev/sdd1: LABEL=“Drive1” UUID=“d5e1db61-b980-4624-801c-e0546b288b8f” TYPE=“ext4”

Is there anything else you need?

sudo mount -a

mount: special device UUID-19eb1838-b24c-4e51-8998-f0dcc8b64bbc does not exist

I know there’s something I’m missing but just can’t think what it could be?

What’s the output from:

sudo fdisk -l
sudo fdisk -l

[spoiler]Disk /dev/sda: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders, total 490234752 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: 0x00044d2a

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 484474879 242236416 83 Linux
/dev/sda2 484474880 490233855 2879488 82 Linux swap / Solaris

Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 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: 0x0009b408

Device Boot Start End Blocks Id System
/dev/sdb1 63 3907024064 1953512001 83 Linux

Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0002711f

Device Boot Start End Blocks Id System
/dev/sdc1 4096 976773119 488384512 83 Linux

Disk /dev/sdd: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 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: 0x000b090e

Device Boot Start End Blocks Id System
/dev/sdd1 63 488392064 244196001 83 Linux
[/spoiler]

If you feel I should reformat the 500GbHd, I’ll be happy to do so, I set it to 4096 because of what it said about WD Hd’s but I guess I did it wrong somehow?

Can you run:

sudo blkid

again and post the output

sudo blkid

/dev/sda1: LABEL=“12.04Boot” UUID=“86fe3809-17a6-412c-be0a-250f6f29fa41” TYPE=“ext4”
/dev/sda2: UUID=“03b9f227-9f5c-4abc-a50b-74ecc1590f44” TYPE=“swap”
/dev/sdb1: LABEL=“Drive3” UUID=“1e72a175-851f-43c3-a251-241d0e3800a7” TYPE=“ext4”
/dev/sdc1: LABEL=“Drive2” UUID=“19eb1838-b24c-4e51-8998-f0dcc8b64bbc” TYPE=“ext4”
/dev/sdd1: LABEL=“Drive1” UUID=“d5e1db61-b980-4624-801c-e0546b288b8f” TYPE=“ext4”

And the output from:

df -T
df -T

df: `/root/.gvfs’: Permission denied
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/sda1 ext4 238433912 116295184 110026908 52% /
udev devtmpfs 1532520 12 1532508 1% /dev
tmpfs tmpfs 616568 1076 615492 1% /run
none tmpfs 5120 4 5116 1% /run/lock
none tmpfs 1541416 156 1541260 1% /run/shm
/dev/sdd1 ext4 240362656 228152396 460 100% /media/Drive1
/dev/sdb1 ext4 1922858352 1529704432 295478320 84% /media/Drive3

sudo df -T

Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/sda1 ext4 238433912 116295180 110026912 52% /
udev devtmpfs 1532520 12 1532508 1% /dev
tmpfs tmpfs 616568 1076 615492 1% /run
none tmpfs 5120 4 5116 1% /run/lock
none tmpfs 1541416 156 1541260 1% /run/shm
/dev/sdd1 ext4 240362656 228152396 460 100% /media/Drive1
/dev/sdb1 ext4 1922858352 1529704432 295478320 84% /media/Drive3

OK, lets try again … fire up gparted

select the 500GB drive

create a new partition table (msdos) … this will also delete all partitions and data.

Create a new partition -

Free space preceding the partition = 1MB

make it an ext4 primary partition

and UNTICK “Round to Cylinders”

Do not set sector size to 4096 … leave it as 512.

I haven’t got ‘Round to cylinders’

sorry, should have added this
‘is this an alternative, the drop-down bit’

What was the default in that drop menu ?

MiB

Accept the default (MiB … men in black ?) … create the partition … close Gparted … send the output from:

sudo fdisk -l
sudo fdisk -l

Disk /dev/sda: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders, total 490234752 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: 0x00044d2a

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 484474879 242236416 83 Linux
/dev/sda2 484474880 490233855 2879488 82 Linux swap / Solaris

Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 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: 0x0009b408

Device Boot Start End Blocks Id System
/dev/sdb1 63 3907024064 1953512001 83 Linux

Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0005f824

Device Boot Start End Blocks Id System
/dev/sdc1 2048 976773119 488385536 83 Linux

Disk /dev/sdd: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 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: 0x000b090e

Device Boot Start End Blocks Id System
/dev/sdd1 63 488392064 244196001 83 Linux

Done it but its not the same as the other Hd’s with the spare unallocated bit?