jeltsch's blog

Creating a shared directory under Linux

When two users on Linux need to share files, accession rights can be quite a problem. By default only the one who creates the file can read and modify it, even if it is saved in a directory that is accessible by the other. It appears to me still impossible to solve this problem completely as Linux cannot "inherit" privileges to newly creates/saved files based on their parent directories privileges (BTW: how has Mac OS X solved this problem?)

The following instructions create a shared directory, but require additional tweaks.
As root

(Re)installing GRUB bootloader

We had the following problem on the computer:
2 hard drives (hda and hdb).
hda contains the MBR (master boot record) and a Windows 2000 install on the first partition. hdb contains Linux (and its first partition is a boot partition that contains a GRUB installation as done by the RedHat 9 installer).

Mounting disk image files and encrypted filesystems/partitions

To dump a disk (or a partition) into a file, you use the following command:

dd if=/dev/hda3 of=file.bin

This command writes the complete data on the hda3 partition into the file file.bin.
To mount the filesystem that is in the file, you need to create a loopback device:

losetup /dev/loop0 file.bin

Now you can mount the filesystem as usual:

mount -r -t filesystemtype /dev/loop0 /mnt/mountpoint

Apparently, one can combine the last two commands into one:

Pages