file system larger than partition in pre-built omap4 image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
debian-cd (Ubuntu) |
Triaged
|
Low
|
Unassigned | ||
partman-auto (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi,
I was looking at a recent, pre-built Pandaboard image <http://
It has two partitions that don't quite fill the image file:
# gunzip natty-preinstal
# sfdisk -uS -l natty-preinstal
Disk natty-preinstal
Disk natty-preinstal
Units = sectors of 512 bytes, counting from 0
Device Boot Start End #sectors Id System
natty-preinstal
natty-preinstal
natty-preinstal
natty-preinstal
# echo $((3823470 * 512))
1957616640
The second partition size is 3823470 sectors (1957616640 bytes), but it contains a ext3 filesystem that is larger than the partition (479269*4096 = 1963085824 bytes):
# losetup --show --find --offset $((144585*512)) --sizelimit $((3823470*512)) natty-preinstal
/dev/loop0
# e2fsck /dev/loop0
e2fsck 1.41.12 (17-May-2010)
The filesystem size (according to the superblock) is 479269 blocks
The physical size of the device is 477933 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>? y
yes
# tune2fs -l /dev/loop0
...
Block count: 479269
...
Block size: 4096
...
# echo $((479269 * 4096))
1963085824
Is this the right place to file a bug report about this?
[
Fortunately the filesystem does end before the end of the image file:
# ls -l natty-preinstal
-rw-r--r-- 1 xxxxxxxx xxxxxxxx 2038583296 2011-02-11 12:44 natty-preinstal
# echo $((144585*512 + 1963085824))
2037113344
And e2fsck is happy if I leave out the --sizelimit. But the --sizelimit is valid.
]
tags: | added: natty |
affects: | ubuntu → partman-auto (Ubuntu) |
Changed in debian-cd (Ubuntu): | |
status: | New → Triaged |
this should not cause any problems, given that the whole partition table is wiped and recreated with proper settings for the SD card on first boot of the image (during the expansion phase of the second partiton from initramfs)
indeed it is ugly and should be fixed but it wont harm functionallity.