Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"We came. We saw. We kicked its ass." -- Bill Murray, _Ghostbusters_


computers / comp.sys.raspberry-pi / Re: Possible to mount the Pi OS .img file using loopback?

SubjectAuthor
* Possible to mount the Pi OS .img file using loopback?Adam Funk
`* Re: Possible to mount the Pi OS .img file using loopback?Theo
 `* Re: Possible to mount the Pi OS .img file using loopback?Adam Funk
  `* Re: Possible to mount the Pi OS .img file using loopback?Charlie Gibbs
   `* Re: Possible to mount the Pi OS .img file using loopback?Adam Funk
    `* Re: Possible to mount the Pi OS .img file using loopback?Charlie Gibbs
     `- Re: Possible to mount the Pi OS .img file using loopback?Adam Funk

1
Possible to mount the Pi OS .img file using loopback?

<umv40kx8b7.ln2@news.ducksburg.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=7598&group=comp.sys.raspberry-pi#7598

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!rocksolid2!news.neodome.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: a24061@ducksburg.com (Adam Funk)
Newsgroups: comp.sys.raspberry-pi
Subject: Possible to mount the Pi OS .img file using loopback?
Date: Wed, 18 Oct 2023 13:29:50 +0100
Organization: $CABAL
Lines: 24
Message-ID: <umv40kx8b7.ln2@news.ducksburg.com>
X-Trace: individual.net CXMgbdhZ4S5zohaRF7HPownkBB3tEZs0uowNhhHtZuJxWCpslX
X-Orig-Path: news.ducksburg.com!not-for-mail
Cancel-Lock: sha1:Bezl8Oh72Sr8DFed/uWL/CCoZOM= sha1:PDeDKj2YO5Pc4nv/fE10Zq2jiac= sha256:R703MlZEAiCHZQEYREU9Ix68f3N7WMu3Rp1AcdFKgUA=
User-Agent: slrn/pre1.0.4-6 (Linux)
 by: Adam Funk - Wed, 18 Oct 2023 12:29 UTC

Hi

I've downloaded 2023-10-10-raspios-bookworm-armhf.img.xz, used unxz to
extract the .img file, and I'm trying to mount it so I can have a look
at some of the files in it. I was trying to avoid having to write the
image to an SD card.

$ file 2023-10-10-raspios-bookworm-armhf.img
2023-10-10-raspios-bookworm-armhf.img: DOS/MBR boot sector; partition 1 : ID=0xc, start-CHS (0x40,0,1), end-CHS (0x3ff,3,32), startsector 8192, 1048576 sectors; partition 2 : ID=0x83, start-CHS (0x3ff,3,32), end-CHS (0x3ff,3,32), startsector 1056768, 9297920 sectors

$ sudo losetup -f --show 2023-10-10-raspios-bookworm-armhf.img
/dev/loop0

$ sudo mount -t auto /dev/loop0 /mnt/image/
mount: /mnt/image: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.

I thought these image files were supposed to contain mountable
filesystems, and I'm (almost) sure I've done this before with raspbian
and Ubuntu images --- am I doing something wrong above?

--
Civilization is a race between catastrophe and education.
---H G Wells

Re: Possible to mount the Pi OS .img file using loopback?

<9tF*pB-sz@news.chiark.greenend.org.uk>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=7599&group=comp.sys.raspberry-pi#7599

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!news.nntp4.net!nntp.terraraq.uk!nntp-feed.chiark.greenend.org.uk!ewrotcd!.POSTED.chiark.greenend.org.uk!not-for-mail
From: theom+news@chiark.greenend.org.uk (Theo)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Possible to mount the Pi OS .img file using loopback?
Date: 18 Oct 2023 14:18:53 +0100 (BST)
Organization: University of Cambridge, England
Message-ID: <9tF*pB-sz@news.chiark.greenend.org.uk>
References: <umv40kx8b7.ln2@news.ducksburg.com>
Injection-Info: chiark.greenend.org.uk; posting-host="chiark.greenend.org.uk:212.13.197.229";
logging-data="9049"; mail-complaints-to="abuse@chiark.greenend.org.uk"
User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (Linux/5.10.0-22-amd64 (x86_64))
Originator: theom@chiark.greenend.org.uk ([212.13.197.229])
 by: Theo - Wed, 18 Oct 2023 13:18 UTC

Adam Funk <a24061@ducksburg.com> wrote:
> Hi
>
> I've downloaded 2023-10-10-raspios-bookworm-armhf.img.xz, used unxz to
> extract the .img file, and I'm trying to mount it so I can have a look
> at some of the files in it. I was trying to avoid having to write the
> image to an SD card.
>
> $ file 2023-10-10-raspios-bookworm-armhf.img
> 2023-10-10-raspios-bookworm-armhf.img: DOS/MBR boot sector; partition 1 : ID=0xc, start-CHS (0x40,0,1), end-CHS (0x3ff,3,32), startsector 8192, 1048576 sectors; partition 2 : ID=0x83, start-CHS (0x3ff,3,32), end-CHS (0x3ff,3,32), startsector 1056768, 9297920 sectors
>
> $ sudo losetup -f --show 2023-10-10-raspios-bookworm-armhf.img
> /dev/loop0
>
> $ sudo mount -t auto /dev/loop0 /mnt/image/
> mount: /mnt/image: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.
>
> I thought these image files were supposed to contain mountable
> filesystems, and I'm (almost) sure I've done this before with raspbian
> and Ubuntu images --- am I doing something wrong above?

The image file has multiple partitions, so you need to mount the partitions
within the image, not the raw image itself. You either need:

$ sudo losetup -f -P --show 2023-10-10-raspios-bookworm-armhf.img

and you'll get devices per partition: /dev/loop0p1, loop0p2, etc

or, on an existing loopback device,

$ sudo partprobe /dev/loop0

and it'll create the partition devices.
Then you can mount them:

$ sudo mkdir -p /mnt/boot /mnt/root
$ sudo mount /dev/loop0p1 /mnt/boot
$ sudo mount /dev/loop0p2 /mnt/root

Theo

Re: Possible to mount the Pi OS .img file using loopback?

<sa450kxh09.ln2@news.ducksburg.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=7600&group=comp.sys.raspberry-pi#7600

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!rocksolid2!news.neodome.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: a24061@ducksburg.com (Adam Funk)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Possible to mount the Pi OS .img file using loopback?
Date: Wed, 18 Oct 2023 14:48:44 +0100
Organization: $CABAL
Lines: 48
Message-ID: <sa450kxh09.ln2@news.ducksburg.com>
References: <umv40kx8b7.ln2@news.ducksburg.com>
<9tF*pB-sz@news.chiark.greenend.org.uk>
X-Trace: individual.net kRq+gnFVPgY574EQoAW4Zw7+FoSoBLs0OVws6ECotxBDjsU808
X-Orig-Path: news.ducksburg.com!not-for-mail
Cancel-Lock: sha1:tfRVq19KjDe6644CDlzvc6WaXLk= sha1:/KTPGbvEWY6sFYa3PQs5kdqDN6Q= sha256:Id+f4TLRTil/eNOvvI8KAw3m7rq2zhRr0ucHPAKaY48=
User-Agent: slrn/pre1.0.4-6 (Linux)
 by: Adam Funk - Wed, 18 Oct 2023 13:48 UTC

On 2023-10-18, Theo wrote:

> Adam Funk <a24061@ducksburg.com> wrote:
>> Hi
>>
>> I've downloaded 2023-10-10-raspios-bookworm-armhf.img.xz, used unxz to
>> extract the .img file, and I'm trying to mount it so I can have a look
>> at some of the files in it. I was trying to avoid having to write the
>> image to an SD card.
>>
>> $ file 2023-10-10-raspios-bookworm-armhf.img
>> 2023-10-10-raspios-bookworm-armhf.img: DOS/MBR boot sector; partition 1 : ID=0xc, start-CHS (0x40,0,1), end-CHS (0x3ff,3,32), startsector 8192, 1048576 sectors; partition 2 : ID=0x83, start-CHS (0x3ff,3,32), end-CHS (0x3ff,3,32), startsector 1056768, 9297920 sectors
>>
>> $ sudo losetup -f --show 2023-10-10-raspios-bookworm-armhf.img
>> /dev/loop0
>>
>> $ sudo mount -t auto /dev/loop0 /mnt/image/
>> mount: /mnt/image: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.
>>
>> I thought these image files were supposed to contain mountable
>> filesystems, and I'm (almost) sure I've done this before with raspbian
>> and Ubuntu images --- am I doing something wrong above?
>
> The image file has multiple partitions, so you need to mount the partitions
> within the image, not the raw image itself. You either need:
>
> $ sudo losetup -f -P --show 2023-10-10-raspios-bookworm-armhf.img
>
> and you'll get devices per partition: /dev/loop0p1, loop0p2, etc
>
> or, on an existing loopback device,
>
> $ sudo partprobe /dev/loop0
>
> and it'll create the partition devices.
> Then you can mount them:
>
> $ sudo mkdir -p /mnt/boot /mnt/root
> $ sudo mount /dev/loop0p1 /mnt/boot
> $ sudo mount /dev/loop0p2 /mnt/root

Brilliant, thanks very much!

--
The internet is quite simply a glorious place. Where else can you find
bootlegged music and films, questionable women, deep seated xenophobia
and amusing cats all together in the same place? ---Tom Belshaw

Re: Possible to mount the Pi OS .img file using loopback?

<vqUXM.22382$f719.11268@fx42.iad>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=7604&group=comp.sys.raspberry-pi#7604

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer01.ams4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx42.iad.POSTED!not-for-mail
Newsgroups: comp.sys.raspberry-pi
From: cgibbs@kltpzyxm.invalid (Charlie Gibbs)
Subject: Re: Possible to mount the Pi OS .img file using loopback?
References: <umv40kx8b7.ln2@news.ducksburg.com>
<9tF*pB-sz@news.chiark.greenend.org.uk> <sa450kxh09.ln2@news.ducksburg.com>
User-Agent: slrn/1.0.3 (Linux)
Lines: 13
Message-ID: <vqUXM.22382$f719.11268@fx42.iad>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Wed, 18 Oct 2023 17:17:15 UTC
Date: Wed, 18 Oct 2023 17:17:15 GMT
X-Received-Bytes: 1265
 by: Charlie Gibbs - Wed, 18 Oct 2023 17:17 UTC

On 2023-10-18, Adam Funk <a24061@ducksburg.com> wrote:

> The internet is quite simply a glorious place. Where else can you find
> bootlegged music and films, questionable women, deep seated xenophobia
> and amusing cats all together in the same place? ---Tom Belshaw

Nice .sig. See below for my version.

--
/~\ Charlie Gibbs | The Internet is like a big city:
\ / <cgibbs@kltpzyxm.invalid> | it has plenty of bright lights and
X I'm really at ac.dekanfrus | excitement, but also dark alleys
/ \ if you read it the right way. | down which the unwary get mugged.

Re: Possible to mount the Pi OS .img file using loopback?

<hkk70kxmt1.ln2@news.ducksburg.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=7625&group=comp.sys.raspberry-pi#7625

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!usenet.network!eternal-september.org!news.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: a24061@ducksburg.com (Adam Funk)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Possible to mount the Pi OS .img file using loopback?
Date: Thu, 19 Oct 2023 13:39:13 +0100
Organization: $CABAL
Lines: 23
Message-ID: <hkk70kxmt1.ln2@news.ducksburg.com>
References: <umv40kx8b7.ln2@news.ducksburg.com>
<9tF*pB-sz@news.chiark.greenend.org.uk> <sa450kxh09.ln2@news.ducksburg.com>
<vqUXM.22382$f719.11268@fx42.iad>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net wC15VR1WEvAI0L0GPl5hxw08P6/mbYMFmeZPe61T4OdfJzr9Sr
X-Orig-Path: news.ducksburg.com!not-for-mail
Cancel-Lock: sha1:Dy9Z3JUa5m2CwQ3RpIo0CNesWaE= sha1:kdI4NA9iEcXZaqYPenfZDAWoIk4= sha256:DAlfMdJwx7m8L0jzaQkiUUQqLKFctts9euN/pVBKp5U=
User-Agent: slrn/pre1.0.4-6 (Linux)
 by: Adam Funk - Thu, 19 Oct 2023 12:39 UTC

On 2023-10-18, Charlie Gibbs wrote:

> On 2023-10-18, Adam Funk <a24061@ducksburg.com> wrote:
>
>> The internet is quite simply a glorious place. Where else can you find
>> bootlegged music and films, questionable women, deep seated xenophobia
>> and amusing cats all together in the same place? ---Tom Belshaw
>
> Nice .sig. See below for my version.
>
> --
> /~\ Charlie Gibbs | The Internet is like a big city:
> \ / <cgibbs@kltpzyxm.invalid> | it has plenty of bright lights and
> X I'm really at ac.dekanfrus | excitement, but also dark alleys
> / \ if you read it the right way. | down which the unwary get mugged.

Thanks. Can I add yours to my file, and should I attribute it to you?

--
Well, I sort of don’t trust anybody who doesn’t like
Led Zeppelin. (Jack White)

Re: Possible to mount the Pi OS .img file using loopback?

<j5eYM.123889$2fS.73927@fx16.iad>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=7631&group=comp.sys.raspberry-pi#7631

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx16.iad.POSTED!not-for-mail
Newsgroups: comp.sys.raspberry-pi
From: cgibbs@kltpzyxm.invalid (Charlie Gibbs)
Subject: Re: Possible to mount the Pi OS .img file using loopback?
References: <umv40kx8b7.ln2@news.ducksburg.com>
<9tF*pB-sz@news.chiark.greenend.org.uk> <sa450kxh09.ln2@news.ducksburg.com>
<vqUXM.22382$f719.11268@fx42.iad> <hkk70kxmt1.ln2@news.ducksburg.com>
User-Agent: slrn/1.0.3 (Linux)
Lines: 27
Message-ID: <j5eYM.123889$2fS.73927@fx16.iad>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Thu, 19 Oct 2023 17:56:31 UTC
Date: Thu, 19 Oct 2023 17:56:31 GMT
X-Received-Bytes: 1752
 by: Charlie Gibbs - Thu, 19 Oct 2023 17:56 UTC

On 2023-10-19, Adam Funk <a24061@ducksburg.com> wrote:

> On 2023-10-18, Charlie Gibbs wrote:
>
>> On 2023-10-18, Adam Funk <a24061@ducksburg.com> wrote:
>>
>>> The internet is quite simply a glorious place. Where else can you find
>>> bootlegged music and films, questionable women, deep seated xenophobia
>>> and amusing cats all together in the same place? ---Tom Belshaw
>>
>> Nice .sig. See below for my version.
>>
>> --
>> /~\ Charlie Gibbs | The Internet is like a big city:
>> \ / <cgibbs@kltpzyxm.invalid> | it has plenty of bright lights and
>> X I'm really at ac.dekanfrus | excitement, but also dark alleys
>> / \ if you read it the right way. | down which the unwary get mugged.
>
> Thanks. Can I add yours to my file, and should I attribute it to you?

Sure, as long as the attribution is kept.

--
/~\ Charlie Gibbs | Microsoft is a dictatorship.
\ / <cgibbs@kltpzyxm.invalid> | Apple is a cult.
X I'm really at ac.dekanfrus | Linux is anarchy.
/ \ if you read it the right way. | Pick your poison.

Re: Possible to mount the Pi OS .img file using loopback?

<obha0kx18u.ln2@news.ducksburg.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=7637&group=comp.sys.raspberry-pi#7637

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!rocksolid2!news.neodome.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: a24061@ducksburg.com (Adam Funk)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Possible to mount the Pi OS .img file using loopback?
Date: Fri, 20 Oct 2023 16:01:44 +0100
Organization: $CABAL
Lines: 31
Message-ID: <obha0kx18u.ln2@news.ducksburg.com>
References: <umv40kx8b7.ln2@news.ducksburg.com>
<9tF*pB-sz@news.chiark.greenend.org.uk> <sa450kxh09.ln2@news.ducksburg.com>
<vqUXM.22382$f719.11268@fx42.iad> <hkk70kxmt1.ln2@news.ducksburg.com>
<j5eYM.123889$2fS.73927@fx16.iad>
X-Trace: individual.net wPuUUmbzDaR0rYYphMa9mgsAlb+yxifvl46Ou11efQiMSPC8RJ
X-Orig-Path: news.ducksburg.com!not-for-mail
Cancel-Lock: sha1:1oO2LVf9oHHOurK3fpZJ/RJSYdw= sha1:JQnzX35cJMPv3H/ofSvIggjEDls= sha256:7B1Sgpr5mgrXemFWh9U2fdiwKPE+TiIQqi44O/PfMXo=
User-Agent: slrn/pre1.0.4-6 (Linux)
 by: Adam Funk - Fri, 20 Oct 2023 15:01 UTC

On 2023-10-19, Charlie Gibbs wrote:

> On 2023-10-19, Adam Funk <a24061@ducksburg.com> wrote:
>
>> On 2023-10-18, Charlie Gibbs wrote:
>>
>>> On 2023-10-18, Adam Funk <a24061@ducksburg.com> wrote:
>>>
>>>> The internet is quite simply a glorious place. Where else can you find
>>>> bootlegged music and films, questionable women, deep seated xenophobia
>>>> and amusing cats all together in the same place? ---Tom Belshaw
>>>
>>> Nice .sig. See below for my version.
>>>
>>> --
>>> /~\ Charlie Gibbs | The Internet is like a big city:
>>> \ / <cgibbs@kltpzyxm.invalid> | it has plenty of bright lights and
>>> X I'm really at ac.dekanfrus | excitement, but also dark alleys
>>> / \ if you read it the right way. | down which the unwary get mugged.
>>
>> Thanks. Can I add yours to my file, and should I attribute it to you?
>
> Sure, as long as the attribution is kept.

Thanks! (I changed it to my usual sig format.)

--
The Internet is like a big city: it has plenty of bright lights and
excitement, but also dark alleys down which the unwary get mugged.
(Charlie Gibbs)

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor