[Nook HD, HD+ Android Development] ShapeShifter499:
I'm having extremely hard time resizing the partition left behind after "dd" command the sdcard-cwm-hummingbirdv3.img to my sd card's full size of 7.40gb (suppose to be 8gb but I guess thats just padding for system stuff or whatnot). For whatever reason, the size or cylinders or sections, seems to be all messed up. If I attempt to resize via the gparted partition editor it throws this error: "gnu parted cannot resize this partition to this size. we're working on it" and the fdisk method starts out working but as soon as I try to create a new partition to the same starting size it doesn't let me. Here is my fdisk log below, I ended up using the NookHD-bootable-CWM-6025-for-emmc-stock-4GB-rev2.img from http://xdaforums.com/showthread.php?t=2062613 which gave me enough space for the latest cm10 build, after I installed the rom zip I was able to resize the partitions as needed. I'm still wondering why my problem occured though.

EDIT: I'm running ubuntu 12.04 and using a SanDisk MicroSD HC Class 4

---------------------------------------------------------------------------------------------------------------

lance@lance-UbuntuNetbook:~$ sudo dd if='/home/lance/Desktop/sdcard-cwm-hummingbirdv3.img' of=/dev/sdd

240975+0 records in

240975+0 records out

123379200 bytes (123 MB) copied, 56.2148 s, 2.2 MB/s

lance@lance-UbuntuNetbook:~$ sudo fdisk /dev/sdd

Command (m for help): p

Disk /dev/sdd: 7948 MB, 7948206080 bytes

255 heads, 63 sectors/track, 966 cylinders, total 15523840 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: 0x5387f638

Device Boot Start End Blocks Id System

/dev/sdd1 * 63 240974 120456 c W95 FAT32 (LBA)

Command (m for help): d

Selected partition 1

Command (m for help): n

Partition type:

p primary (0 primary, 0 extended, 4 free)

e extended

Select (default p): p

Partition number (1-4, default 1): 4

First sector (2048-15523839, default 2048): q

First sector (2048-15523839, default 2048): c

First sector (2048-15523839, default 2048): e

First sector (2048-15523839, default 2048): a

First sector (2048-15523839, default 2048): s

First sector (2048-15523839, default 2048): r

First sector (2048-15523839, default 2048): 1

Value out of range.

First sector (2048-15523839, default 2048): ^Clance@lance-UbuntuNetbook:~$

lance@lance-UbuntuNetbook:~$ sudo fdisk /dev/sdd

Command (m for help): p

Disk /dev/sdd: 7948 MB, 7948206080 bytes

255 heads, 63 sectors/track, 966 cylinders, total 15523840 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: 0x5387f638

Device Boot Start End Blocks Id System

/dev/sdd1 * 63 240974 120456 c W95 FAT32 (LBA)

Command (m for help): n

Partition type:

p primary (1 primary, 0 extended, 3 free)

e extended

Select (default p):

Using default response p

Partition number (1-4, default 2): 1

Partition 1 is already defined. Delete it before re-adding it.

Command (m for help): p

Disk /dev/sdd: 7948 MB, 7948206080 bytes

255 heads, 63 sectors/track, 966 cylinders, total 15523840 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: 0x5387f638

Device Boot Start End Blocks Id System

/dev/sdd1 * 63 240974 120456 c W95 FAT32 (LBA)

Command (m for help): d

Selected partition 1

Command (m for help):

Command (m for help): n

Partition type:

p primary (0 primary, 0 extended, 4 free)

e extended

Select (default p):

Using default response p

Partition number (1-4, default 1):

Using default value 1

First sector (2048-15523839, default 2048): 63

Value out of range.

First sector (2048-15523839, default 2048): 5

Value out of range.

First sector (2048-15523839, default 2048): ^Clance@lance-UbuntuNetbook:~$ sudo fdisk /dev/sdd

Command (m for help): p

Disk /dev/sdd: 7948 MB, 7948206080 bytes

255 heads, 63 sectors/track, 966 cylinders, total 15523840 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: 0x5387f638

Device Boot Start End Blocks Id System

/dev/sdd1 * 63 240974 120456 c W95 FAT32 (LBA)

Command (m for help): n

Partition type:

p primary (1 primary, 0 extended, 3 free)

e extended

Select (default p):

Using default response p

Partition number (1-4, default 2): 2

First sector (240975-15523839, default 240975):

Using default value 240975

Last sector, +sectors or +size{K,M,G} (240975-15523839, default 15523839):

Using default value 15523839

Command (m for help): w

The partition table has been altered!

Calling ioctl() to re-read partition table.

Syncing disks.

lance@lance-UbuntuNetbook:~$ sudo fdisk /dev/sdd

Command (m for help): p

Disk /dev/sdd: 7948 MB, 7948206080 bytes

245 heads, 62 sectors/track, 1021 cylinders, total 15523840 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: 0x5387f638

Device Boot Start End Blocks Id System

/dev/sdd1 * 63 240974 120456 c W95 FAT32 (LBA)

/dev/sdd2 240975 15523839 7641432+ 83 Linux

Command (m for help): n

Partition type:

p primary (2 primary, 0 extended, 2 free)

e extended

Select (default p):

Using default response p

Partition number (1-4, default 3):

Using default value 3

No free sectors available

Command (m for help): p

Disk /dev/sdd: 7948 MB, 7948206080 bytes

245 heads, 62 sectors/track, 1021 cylinders, total 15523840 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: 0x5387f638

Device Boot Start End Blocks Id System

/dev/sdd1 * 63 240974 120456 c W95 FAT32 (LBA)

/dev/sdd2 240975 15523839 7641432+ 83 Linux

Command (m for help):

Command (m for help):

Command (m for help): d

Partition number (1-4):

Value out of range.

Partition number (1-4): d

Partition number (1-4): 1

Command (m for help): p

Disk /dev/sdd: 7948 MB, 7948206080 bytes

245 heads, 62 sectors/track, 1021 cylinders, total 15523840 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: 0x5387f638

Device Boot Start End Blocks Id System

/dev/sdd2 240975 15523839 7641432+ 83 Linux

Command (m for help): n

Partition type:

p primary (1 primary, 0 extended, 3 free)

e extended

Select (default p):

Using default response p

Partition number (1-4, default 1): 1

First sector (2048-15523839, default 2048):

Using default value 2048

Last sector, +sectors or +size{K,M,G} (2048-240974, default 240974):

Using default value 240974

Command (m for help): p

Disk /dev/sdd: 7948 MB, 7948206080 bytes

245 heads, 62 sectors/track, 1021 cylinders, total 15523840 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: 0x5387f638

Device Boot Start End Blocks Id System

/dev/sdd1 2048 240974 119463+ 83 Linux

/dev/sdd2 240975 15523839 7641432+ 83 Linux

Command (m for help): n

Partition type:

p primary (2 primary, 0 extended, 2 free)

e extended

Select (default p):

Using default response p

Partition number (1-4, default 3):

Using default value 3

No free sectors available

Command (m for help): n

Partition type:

p primary (2 primary, 0 extended, 2 free)

e extended

Select (default p):

Using default response p

Partition number (1-4, default 3): 3

No free sectors available

Command (m for help): n

Partition type:

p primary (2 primary, 0 extended, 2 free)

e extended

Select (default p): 1

Invalid partition type `1'

Command (m for help): n

Partition type:

p primary (2 primary, 0 extended, 2 free)

e extended

Select (default p):

Using default response p

Partition number (1-4, default 3): n

Partition number (1-4, default 3): n

Partition number (1-4, default 3): n

Partition number (1-4, default 3): n2

Partition number (1-4, default 3): 3

No free sectors available

Command (m for help): n

Partition type:

p primary (2 primary, 0 extended, 2 free)

e extended

Select (default p): d

Invalid partition type `d'

Command (m for help): d

Partition number (1-4): 2

Command (m for help): d

Selected partition 1

Command (m for help):

Command (m for help): n

Partition type:

p primary (0 primary, 0 extended, 4 free)

e extended

Select (default p):

Using default response p

Partition number (1-4, default 1):

Using default value 1

First sector (2048-15523839, default 2048): 63

Value out of range.

First sector (2048-15523839, default 2048): 63

Value out of range.

First sector (2048-15523839, default 2048): ^X^Clance@lance-UbuntuNetbook:~$ sudo fdisk /dev/sdd

Command (m for help): p

Disk /dev/sdd: 7948 MB, 7948206080 bytes

245 heads, 62 sectors/track, 1021 cylinders, total 15523840 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: 0x5387f638

Device Boot Start End Blocks Id System

/dev/sdd1 * 63 240974 120456 c W95 FAT32 (LBA)

/dev/sdd2 240975 15523839 7641432+ 83 Linux

Command (m for help): p

Disk /dev/sdd: 7948 MB, 7948206080 bytes

245 heads, 62 sectors/track, 1021 cylinders, total 15523840 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: 0x5387f638

Device Boot Start End Blocks Id System

/dev/sdd1 * 63 240974 120456 c W95 FAT32 (LBA)

/dev/sdd2 240975 15523839 7641432+ 83 Linux

Command (m for help): p

Disk /dev/sdd: 7948 MB, 7948206080 bytes

245 heads, 62 sectors/track, 1021 cylinders, total 15523840 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: 0x5387f638

Device Boot Start End Blocks Id System

/dev/sdd1 * 63 240974 120456 c W95 FAT32 (LBA)

/dev/sdd2 240975 15523839 7641432+ 83 Linux

Command (m for help): mm

Command action

a toggle a bootable flag

b edit bsd disklabel

c toggle the dos compatibility flag

d delete a partition

l list known partition types

m print this menu

n add a new partition

o create a new empty DOS partition table

p print the partition table

q quit without saving changes

s create a new empty Sun disklabel

t change a partition's system id

u change display/entry units

v verify the partition table

w write table to disk and exit

x extra functionality (experts only)

Command (m for help): x

Expert command (m for help): m

Command action

b move beginning of data in a partition

c change number of cylinders

d print the raw data in the partition table

e list extended partitions

f fix partition order

g create an IRIX (SGI) partition table

h change number of heads

i change the disk identifier

m print this menu

p print the partition table

q quit without saving changes

r return to main menu

s change number of sectors/track

v verify the partition table

w write table to disk and exit

Expert command (m for help): f

Nothing to do. Ordering is correct already.

Expert command (m for help): v

Partition 1: head 255 greater than maximum 245

Partition 1: sector 63 greater than maximum 62

Partition 1: previous sectors 240974 disagrees with total 228104

Partition 2: previous sectors 15523839 disagrees with total 14675825

Remaining 62 unallocated 512-byte sectors

Expert command (m for help): q

lance@lance-UbuntuNetbook:~$

---------------------------------------------------------------------------------------------------------------