[olpc-software] Re: Yum won't install SDK

Daniel P. Berrange berrange at redhat.com
Tue Jun 20 15:46:08 UTC 2006


On Tue, Jun 20, 2006 at 05:23:38PM +0200, Teus Benschop wrote:
> Does anybody has an idea why the nightly image cannot be mounted using 
> the loopback device?
> 
> This is the output of the terminal:
> 
> [teus at localhost olpc]$ ls -l
> total 493296
> drwxrwxr-x  2 teus teus      4096 Jun 20 11:01 image
> -rwxrwxr-x  1 teus teus        72 Jun 13 09:00 olpc
> -rw-rw-r--  1 teus teus 504627200 Jun 20 16:51 
> olpc-stream-development-7-20060609_1600-ext3.img
> [teus at localhost olpc]$ sudo mount -o loop,offset=32256 -t ext3 
> olpc-stream-development-7-20060609_1600-ext3.img /home/teus/olpc/image
> mount: wrong fs type, bad option, bad superblock on /dev/loop1,
>       missing codepage or other error
>       In some cases useful info is found in syslog - try
>       dmesg | tail  or so

I think the offset you are passing is incorrect. According to the tools
at http://hg.fedoraproject.org/hg/olpc/tools/image--devel, the first
partition tbegins at $DISK_BYTES_PER_SECTOR  which is defined to be 

  DISK_BYTES_PER_SECTOR=$[ $DISK_SECTOR_SIZE * $DISK_SECTORS_PER_TRACK ]

Where 

  DISK_SECTOR_SIZE=512
  DISK_SECTORS_PER_TRACK=32

Which gives you an offset of 16384,  not 32256. 

Even then, this would give you the offset of the first patition (/boot),
the main partiiton (/) is located further into the disk image. I don';t
have the time to figure out the maths for the offset of / just at the 
moment, but you can see the geometry information at

http://hg.fedoraproject.org/hg/olpc/tools/image--devel?f=be0754b1c131;file=conf/partition-ext3.conf

Regards,
Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 




More information about the olpc-software mailing list