Loading 2 Votes - +

wrong partition size

Thx for great article.
I had one problem when I tried install Gentoo to this image.
I mouted partitions this way.

losetup -o 32256 /dev/loop2 /dev/loop1
mkfs /dev/loop2

and I got wrong partition size (size was the same like whole image file) when I mount it.

I used this to fix wrong partition size:
losetup -o 32256 —sizelimit 3232502272 /dev/loop2 /dev/loop1.
mkfs /dev/loop2

After that everything seems to be ok.

Thread parent sort order:
Thread verbosity:

That’s a strange size … 4GB limitation? How old is the BIOS?

Did you get the error when mounting loop2 from the shell, or is this during the Gentoo install process?

I’m using Gentoo and tested it out again, and didn’t get the error. I also tried it with a larger disk image (bs=8225280 count=600, which is 600 cylinders, about 5 GB), and had no issues. Does mkfs spit out anything weird? If you’re curious, I can attempt to install Gentoo on the 5GB image.

Regardless, it sounds like it works for you, so I’m glad it helped. And thanks for the comment, since someone else’s system might do the same thing as yours.

What is OmniNerd?

Omninerd_icon Welcome! OmniNerd's content is generated by nerds like you. Learn more.

Voting Booth

Dzhokar Tsarnaev deserves due process?

34 votes, 4 comments