OSX – Mac

MacOS

The problem is that the .img files are not images of a partition, but of a whole disk. That means they start with a bootloader and a partition table. You have to find out the offset of the partition and mount it with the offset option of mount. If you do a Code: fdisk -l /path/to/image it will show you the block-size and the start-block of the partition. You can use that to calculate the offset. For example, I have an image of a bootable stick with a 4GB FAT32 partition. The output of the Read more...
Scan and assemble: # mdadm --assemble --scan Scan to update mdadm.conf # mdadm -Es >> /etc/mdadm/mdadm.conf   If not md device has been found, or you have only one disk from two of the RAID1, you can force to re-create the md device. The important parameter is "missing", that will make mdadm to create the mirror with only one member:   # mdadm --create /dev/md127 --assume-clean --level=mirror --verbose --raid-devices=2 /dev/sda missing mdadm: /dev/sda appears to be part Read more...
Spit a file in pieces with split (30 mins, in the end full size for 60Gb) # split -b 10G /mnt/timecapsule/Virtualbox/harry.vdi “harry.vdi.wcomp.part" # ls -lsh total 56G 10G -rw-r--r-- 1 root root 10G Jun 25 15:25 harry.vdi.wcomp.partaa 10G -rw-r--r-- 1 root root 10G Jun 25 15:36 harry.vdi.wcomp.partab 10G -rw-r--r-- 1 root root 10G Jun 25 15:46 harry.vdi.wcomp.partac 10G -rw-r--r-- 1 root root 10G Jun 25 16:06 harry.vdi.wcomp.partad 10G -rw-r--r-- 1 root root 10G Jun 25 16:29 harry.vdi.wcomp.partae 5.6G Read more...
This article applies to: Platform(s): Macintosh OS X Java version(s): 7.0, 8.0 Uninstall Oracle Java using the Terminal Note: To uninstall Java, you must have Administrator privileges and execute the remove command either as root or by using the sudo tool. Remove one directory and one file (a symlink), as follows: Click on the Finder icon located in your dock Click on the Utilities folder Double-click on the Terminal icon In the Terminal window Copy and Read more...