Hot answers tagged

9

When you format a drive you don't erase any of the data that on it. You only overwrite the part that keeps track of where files are (the filesystem). The only way to get rid of the data is to overwrite it. If you overwrite it with zeros as Azz suggests, an attacker will know which parts are information and which parts are zeroes instantly. Random data looks ...


6

The lack of output from losetup -a, and that fact that losetup -f gives you the first free device as /dev/loop0, shows that you haven't yet associated that loopback device with any physical storage. What unused physical partition or LVM volume do you wish to use as the actual storage for your loopback encrypted device? If it's, say, /dev/sd2a, then bind ...


5

If you're using systemd-nspawn, start up your container with the --capability=CAP_MKNOD command line switch. This will allow you to create device nodes inside your container. Then create a loop device like this: # mknod /dev/loop0 b 7 0 Remember that this loop device is shared with the host and is called /dev/loop0 there as well. And that it is now ...


3

Loop devices are provided by a kernel module. Therefore, you need special privileges to access them. You also need them to be exposed into your container, or you need to manually create the device files. The quick answer docker run --privileged=true ... An alternative sudo losetup /dev/loop0 test.img mount /dev/loop0 /mnt docker run -v /mnt:/mnt ... ...


2

I think your assumption about things going into read only mode when the connection to the network drive is lost is correct. I made a simple test with a just a small file on a Samba share and the same thing happens if I yank the network cable. As for a solution to the problem, I would go about it like this: Depending on how you actually do the backup, I ...


2

For some reason this has worked losetup /dev/loop0 <vmdk file> kpartx -av /dev/loop0 mount /dev/mapper/loop0p1 /mount/point I have no idea why this worked and not the above method. If you have any explanation, please let me know.


1

The information is available with /sbin/losetup -a.


1

Yes, unless you use spanning tree (or a vendor specific equivalent like EAPS) to create a loop free network you will have problems, LACP does in no way help you to prevent loops, it was not designed to do so. You either make one of the paths in the triangle blocking with spanning tree, or perhaps (if your equipment supports this) create a virtual chassis ...



Only top voted, non community-wiki answers of a minimum length are eligible