[Bug 717105] Re: file system larger than partition in pre-built omap4 image
Mathieu Trudel-Lapierre
mathieu.tl at gmail.com
Thu Jan 29 22:43:25 UTC 2015
** Changed in: debian-cd (Ubuntu)
Status: New => Triaged
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to debian-cd in Ubuntu.
https://bugs.launchpad.net/bugs/717105
Title:
file system larger than partition in pre-built omap4 image
Status in debian-cd package in Ubuntu:
Triaged
Status in partman-auto package in Ubuntu:
Invalid
Bug description:
Hi,
I was looking at a recent, pre-built Pandaboard image
<http://cdimage.ubuntu.com/ubuntu-netbook/daily-preinstalled/current
/natty-preinstalled-netbook-armel+omap4.img.gz> (retrieved on 11 Feb
2011).
It has two partitions that don't quite fill the image file:
# gunzip natty-preinstalled-netbook-armel+omap4.img.gz
# sfdisk -uS -l natty-preinstalled-netbook-armel+omap4.img
Disk natty-preinstalled-netbook-armel+omap4.img: cannot get geometry
Disk natty-preinstalled-netbook-armel+omap4.img: 247 cylinders, 255 heads, 63 sectors/track
Units = sectors of 512 bytes, counting from 0
Device Boot Start End #sectors Id System
natty-preinstalled-netbook-armel+omap4.img1 * 63 144584 144522 c W95 FAT32 (LBA)
natty-preinstalled-netbook-armel+omap4.img2 144585 3968054 3823470 83 Linux
natty-preinstalled-netbook-armel+omap4.img3 0 - 0 0 Empty
natty-preinstalled-netbook-armel+omap4.img4 0 - 0 0 Empty
# 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-preinstalled-netbook-armel+omap4.img
/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-preinstalled-netbook-armel+omap4.img
-rw-r--r-- 1 xxxxxxxx xxxxxxxx 2038583296 2011-02-11 12:44 natty-preinstalled-netbook-armel+omap4.img
# echo $((144585*512 + 1963085824))
2037113344
And e2fsck is happy if I leave out the --sizelimit. But the --sizelimit is valid.
]
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debian-cd/+bug/717105/+subscriptions
More information about the foundations-bugs
mailing list