2 Nerd-Its - +

wrong partition size

Comment a comment by Anonymous, published on 03 February 2009
Navigate to the top level to view all replies to the article Installing GRUB on a Hard Disk Image File
other nerds have left 4 comments below

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:
-2 Nerd-Its - +
RE: wrong partition size by VnutZ :: NR10

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

2 Nerd-Its - +
RE: wrong partition size by brho :: NR5

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.

The Showcase

Nerd-Its   Nerd Trends   Last Ten  

  1. RE: The true solution in Scientology: We've had it with you
  2. RE: Actually... in Scientology: We've had it with you
  3. RE: Actually... in Scientology: We've had it with you
  4. RE: The true solution in Scientology: We've had it with you
  5. RE: The true solution in Scientology: We've had it with you
  6. RE: Actually... in Scientology: We've had it with you
  7. RE: Actually... in Scientology: We've had it with you
  8. RE: The true solution in Scientology: We've had it with you
  9. RE: Actually... in Scientology: We've had it with you
  10. RE: Discussing Book of Mormon anachronisms in God before Country in the Military

What is OmniNerd?

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

Voting Booth

The Interstate Commerce Clause of the U.S. Constitution empowers Congress to regulate?

4 votes, 0 comments