Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 158297

Summary: fdisk creates invalid partition table (last partition too long)
Product: Gentoo Release Media Reporter: Jens Seidel <jensseidel>
Component: NetbootAssignee: MIPS Porters <mips>
Status: RESOLVED CANTFIX    
Severity: major CC: jensseidel
Priority: High    
Version: unspecified   
Hardware: MIPS   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jens Seidel 2006-12-16 08:01:05 UTC
Hi,

I booted Gentoo on my SGI Octane workstation using the netboot image
http://dev.gentoo.org/~kumba/mips/netboot/testing/ip30-r10k+-20060112.img.bz2
(there is no other usable kernel available).

I created partitions in fdisk by specifying cylinders (and used the default (last cylinder) for the last partition). The last created partition is too large, so that the kernel complained during the mkfs step (17783954>17781520):

/ # fdisk  /dev/sdb

Command (m for help): p

Disk /dev/sdb (SGI disk label): 255 heads, 63 sectors, 1106 cylinders
Units = cylinders of 16065 * 512 bytes

----- partitions -----
Pt#    Device  Info     Start       End   Sectors  Id  System
 1: /dev/sdb1  boot         8        16    144585  83  Linux native
 2: /dev/sdb2  swap        17       120   1670760  82  Linux swap
 3: /dev/sdb3             121       600   7711200  83  Linux native
 4: /dev/sdb4             601      1106   8128890  83  Linux native
 9: /dev/sdb5               0         7    128520   0  SGI volhdr
11: /dev/sdb6               0      1106  17781520   6  SGI volume
----- Bootinfo -----
Bootfile: /unix
----- Directory Entries -----
 0: sgilabel   sector    2 size     512

Command (m for help): u
Changing display/entry units to sectors

Command (m for help): p

Disk /dev/sdb (SGI disk label): 255 heads, 63 sectors, 1106 cylinders
Units = sectors of 1 * 512 bytes

----- partitions -----
Pt#    Device  Info     Start       End   Sectors  Id  System
 1: /dev/sdb1  boot    128520    273104    144585  83  Linux native
 2: /dev/sdb2  swap    273105   1943864   1670760  82  Linux swap
 3: /dev/sdb3         1943865   9655064   7711200  83  Linux native
 4: /dev/sdb4         9655065  17783954   8128890  83  Linux native
 9: /dev/sdb5               0    128519    128520   0  SGI volhdr
11: /dev/sdb6               0  17781519  17781520   6  SGI volume
----- Bootinfo -----
Bootfile: /unix
----- Directory Entries -----
 0: sgilabel   sector    2 size     512
Comment 1 Jens Seidel 2006-12-16 08:12:18 UTC
Sorry, I forgot the version info:

/mnt/gentoo # fdisk -V       
fdisk v2.12r

(Just in case you don't know the SGI Octane, it's the IP30 system)

Jens
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-06-04 08:29:58 UTC
reassigning to mips directly.
I do think this was fixed in newer versions of fdisk already.
Comment 3 Matt Turner gentoo-dev 2010-12-23 18:32:00 UTC
Octane support is dead. So, I don't know what to do here, especially since Robin thinks this is probably fixed and the bug is four years old with no input from mips@.

Jens, if this is still a problem, please don't hesitate to tell us. In the meantime I'll close this bug as CANTFIX or something.