-
I'm at it.

Originally Posted by
DirkS
The method I tried (twice) on Knoppix 7.0 was, after becoming root:
Code:
# mkdir /media/test-cloop
# mount /media/sdc2/sda1_2017-03-04.cloop /media/test-cloop -o loop=/dev/cloop3,ro
I didn't even need to specify the filesystem type.
This method also works in 7.3 but fails in 7.4.2, 7.7.0 and 7.7.1
For the following tests I used /media/sr0 as mountpoint instead of creating a directory named /media/test-cloop.
Using the commands that are contained in the cloop file at the beginning, slightly modified:
Code:
#modprobe cloop file=/media/sdd2/sda1_2017-03-01.cloop; echo $?
# mount -r -t auto /dev/cloop3 /media/sr0
This works in 7.4.2, even though it took me several tries to find the correct number after /dev/cloop. But this method does not work in 7.7.0 and 7.7.1:
Code:
root@Microknoppix:/media/sdd2# mount -r -t auto /dev/cloop3 /media/sr0
mount: /dev/cloop3: Superblock konnte nicht gelesen werden (Translation: Superblock could not get read)
Also failed with all other cloop devices.
Your method:
Code:
root@Microknoppix:/media/sdd2# losetup --verbose --read-only /dev/cloop6 /media/sdd2/sda1_2017-03-04.cloop
root@Microknoppix:/media/sdd2# mount --verbose /dev/cloop6 /media/sr0
works in 7.7.0. Yay!
I have to reboot to test it in 7.7.1 and/or older versions, but I wanted to write this post with the results so far first.
By the way, while still being root I was able to do
Code:
root@Microknoppix:/media/sde2# df | grep sr0; echo $?
/dev/cloop6 307196 233384 73812 76% /media/sr0
0
root@Microknoppix:/media/sdd2# umount /dev/sr0
root@Microknoppix:/media/sdd2# df | grep sr0; echo $?
1
so umounting as root works for me. But I cannot free/detach /dec/cloop6:
Code:
root@Microknoppix:/media/sdd2# losetup --verbose -d /dev/cloop6
losetup: /dev/cloop6: Benutzung des Gerätes ist fehlgeschlagen: Erfolg (Translation: Using the device failed: Success - sorry, that's what it says.)
So indeed, at this point a reboot is required.
Last edited by DirkS; 03-12-2017 at 10:21 PM.
Reason: added some info.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

16GB KIT (2x8GB) DDR3 Gamer Desktop RAM PC3 MIXED BRANDS VIPER VENGEANCE FURY
$10.00

Netac DDR4 32GB 16GB DDR4 3200MHz UDIMM C16 Desktop Internal Memory RAM Kit
$99.99

MTC8C1084S1SC56BD1 Micron 16GB DDR5 1Rx8 PC5-5600B 5600Mhz SO-DIMM Memory
$149.99

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G
$21.68

Major Brand 16GB (2x8GB) PC3-12800U DDR3-1600MHz DDR3-12800 DESKTOP RAM NON-ECC
$29.99

Samsung 32GB DDR4-2666V-2Rx4-RB2-12 RAM M393A4K40CB2-CTD6Q
$169.00

RAMAXEL Lenovo 32GB LPDDR5X CAMM2 7500MHz Laptop RAM | UNTESTED
$445.00

DDR4 Laptop RAM 4GB 8GB 16GB 32GB 2400 2666 3200 Samsung Hynix
$66.00

Corsair Vengeance DDR3 8GB 16GB 32GB 1866MHz PC3-14900 Desktop RAM Memory DIMM
$85.00

Crucial DDR3L 16GB 2 x 8GB 1600 MHz PC3L-12800 Laptop RAM Sodimm Memory 1.35V
$41.00