Booting Caine via PXE by Hans Peter Merkel
1. Mounting policy of CAINE
The mounting policy for any internal or external devices adopted by CAINE: never mount automatically any device and when the user clicks on the device icon the system will mount it in read only mode on loop device.
- A user cannot mount a device through the Disk Mounter applet, but only by Terminal Window or by Mounter (GUI) Mounter and the system will always mounted with the following options: ro,noatime,noexec,nosuid,nodev,noload.
For UMOUNTING a device you can use Caja by root (eg. gksudo Caja) or by terminal window (xterm or sudo umount) or Mounter GUI
A green disk icon means the system is SAFE and will mount devices READ-ONLY on loop device.
A red disk icon means WARNING, mounted devices will be WRITEABLE.
Left-click the disk icon to mount a device.
Right-click the disk icon to change the system mount policy.
Middle-click will close the mounter application. Relaunch from the menu.
The mounted devices will not be affected by mount policy changes. Only subsequent mounting operations will be affected.
- If the user decides to mount a device via terminal, he can use the “mount” command but all the mount options must be specified.
- If the user wants to mount and write on an NTFS media should instead use the "ntfs-3g" command (e.g., $ sudo ntfs-3g -o rw /dev/sda1 /media/sda1).
- sudo ntfs-3g -o rw /device-path /your-mount-point
You can redirect the output on an RW mounted device in these ways:
- Terminal window --> sudo su --> (eg. fdisk -lu > /media/sdb1/fdisk.txt)
- Terminal window --> output redirect in, for example: /home/caine, then sudo cp fdisk.txt /media/sdb1
- sudo bash -c "fdisk -lu > /media/sdb1/fdisk.txt"
The ext3 driver will be ignored when ext2 and ext3 partitions are mounted in the future and the ext2 driver used instead. This protects any ext3 partitions from a forensic point-of-view. Ext2 does not use journaling, so when an ext3 partition is mounted, there is no danger of modifying the meta-data when increasing the count inside said journal.
Applying a special patch (Maxim Suhanov's patch) we fixed the bug, that changed the journal of the ext3/ext4 file system, when the computer was switch off not using the shutdown procedure. Fixed in the fstab: forbidding the auto-mounting of the MMCs and put a control for the "esotic names" like /dev/sdad1
Bash Scripts Tools directory:
the tools MUST be launched by sudo sh script_name.sh
2. Live USB pendrive creation
You can create Live USB (NOT PERSISTENT) using RUFUS.
ONLY for Caine 4.0 and its previous releases, you cannot create LiveUSB Caine from this distro, you have to DOWNLOAD NBCaine from Caine's website to get it! () OR if you need CAINE on pendrive (USB), you can sobstitute the file /usr/share/initramfs-tools/scripts/casper with THIS and use your preferred tool for making it.
3. Installing Caine
First of all here is a good guide (in spanish)-Thanks to Alonso Eduardo Caballero Quezada
For installing Caine 6.0 in UEFI mode, you have to make a little partition in Vfat (approx.100Mb) for the mount point /boot/efi, then you can install all the system in the mount point "/".
After installing Caine on your HD, you have to edit the /usr/sbin/rbfstab, changing swapoff -a in swapon -a and the row swap) OPTIONS=ro,noauto ;; with swap) OPTIONS=rw,auto ;;, then reboot
For Caine 6.0, the SystemBack installer present can't set SWAP partition, so you can install Caine without the swap partition, if you need to create and activate the swap, you can do it after installation using gparted (booting from a live distro) and editing /etc/fstab file or before installing Caine, upgrade SystemBack.
4. Language Support
FOR previous releases of Caine 4.0: The CAINE report supports the following languages: English, Italian, French, German and Portuguese. The translations of report template in French and German were kindly made by Guy Vucken, developer of Guymager, who previously cooperate with the team to integrate his forensic software inside CAINE. The Portuguese translation has been gently provided by Tony Rodrigues a portuguese Digital and Computer Forensics expert.Turkish thanks to Burkay Sucu.
We hope to increase the number of translations in the future. If you wish to participate by providing the translation of the report in your language or if you report a translation mistake, please contact the CAINE team.
CAINE Live CD uses the USA keyboard layout. We suggest to change the layout using the program “Keyboard Preferences” in System -> Preferences, in the GNOME menu or using the command “sudo setxkbmap -layout xy” (xy = “it”, “gb”, “de”...) in the command line. BTW there is a launcher on the desktop.
In the CAINE TEXT MODE only, change the keyboard layout by "sudo loadkeys xy" (xy = “it”, “gb”, “de”...)
4. CAINE building
CAINE Distro has been realized from Ubuntu Linux 14.04 using SystemBack by Krisztián Kende.