Re: having trouble mounting disk image on loopback device




iforone wrote:

[ correction 1 ]

FWIW, the syntax isn't the same as /etc/fstab reads
Not sure if you did that just to 'distinguish' between the 2 for us...

whoops.. I meant ... "the same as fdisk reads"

[ correction 2 ]

I see the syntax is correct anyway - after reading Douglas' post
(snippet below)


Disk /dev/loop0: 102 MB, 102400000 bytes
255 heads, 63 sectors/track, 12 cylinders, total 200000 sectors
Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System
/dev/loop0p1 63 96389 48163+ 83 Linux
/dev/loop0p2 96390 192779 48195 83 Linux

Therefore, to mount each partition, I used these commands:
losetup -o 32256 /dev/loop1 test.file
losetup -o 49351690 /dev/loop2 test.file


Regards

.



Relevant Pages

  • Re: Perfrom Thru
    ... > the Standard and this syntax error is issued correctly then the correct ... > evaluating of syntax is in the compiler, not the Standard. ... errors requiring syntactic correction. ...
    (comp.lang.cobol)
  • Re: does Math.Sqrt(double) use "asm fsqrt"?
    ... with one mathematical correction and one syntactic correction, though you still have to use something other than the exclusive or operator to get those squares, and some other syntax remains odd but works. ...
    (microsoft.public.dotnet.languages.csharp)
  • Why do managed event handlers still use &" ?
    ... why is this proper syntax: ... The '&' seems like a hold over from the old syntax, ... why not provide the ability to click on such an error ... message and have an option for IT make the correction? ...
    (microsoft.public.dotnet.languages.vc)
  • RE: Syntax for inferred cell references
    ... The syntax was missing the exclamation mark "!" ... after the sheet name. ... the correction the formula does exactly what I need it to do. ... >>> I want a formula in a cell to calculate a cell reference based on a number ...
    (microsoft.public.excel.worksheet.functions)