Mounting ext3 USB drive in VirtualBox VM under Mac - macos

I have a Mac running OSX El Capitan, which cannot easily mount a Linux ext3 filesystems. I have a USB drive with exactly this file system and need to access.
OSXFUSE + Ext2 FUSE module seems not to work as I have installation errors that might be related to El Capitan being too new (the Ext FUSE module conplains about that at least). There is another commercial product, called Paragon ExtFS, that throws me similar problems for the trail version.
Now, I am thinking of an alternative by using VirtualBox, with an Ubuntu 14.04 that mounts the drive.
I added the following line to /etc/fstab
/dev/sdb1 /media/mystuff ext3 defaults 1 2
but rebooting my machine makes no difference. I have to add that this USB drive is USB3.
What am I doing wrong? Can I technically mount a USB drive that Mac per standard does not understand?

Yes, you can mount ext3 in Ubuntu running in VirtualBox on your El Capitan.
That's what worked for me (I had 12.04, but it shouldn't matter):
Get the latest VirtualBox and VirtualBox Extension Back from https://www.virtualbox.org/wiki/Downloads
Make sure your Ubuntu has been shut down, navigate to virtual machine Settings -> Ports -> USB
Enable USB Controller, choose USB2.0 just in case as most USB3 devices are backwards compatible. Add your device to the list.
Start your Ubuntu, log in and check for devices:
sudo fdisk -l
Make sure you have ext3 as System. It may also be Linux LVM nowadays. If so, proceed with https://superuser.com/a/116634
mount manually:
sudo mount /dev/sdb1 /media/mystaff

Related

High Sierra - KDP is not listening for new connections

I created a setup of a guest virtual machine High Sierra which runs by VirtualBox.
I KDP on both guest and host.
I copied the development version of XNU from the KDP directory into the kernel directory on both guest and host.
I read that VirtualBox does not have the implementation for NVRAM so I had to use the following command to setup the kernel boot arguments for kernel debugging.
VBoxManage setextradata “your virtual machine name>" "VBoxInternal2/EfiBootArgs" [here go the kernel boot arguments]
However, I tried the combination of Command+Option+Control+Shift+Esc however it does not work.
As far as I'm aware, Command+Option+Control+Shift+Esc has a special meaning in hardware on Mac laptops. For a VM, you probably want to set the 0x8000 bit in the debug kernel argument and just send an ACPI power event to trigger the debugger instead.
I can't say if this will work in VirtualBox though as I haven't used that to do kernel debugging for a number of years.
My preferred method for attaching to a VM is using DTrace:
sudo dtrace -w -n "BEGIN { breakpoint(); }"
Then from the host you can:
kdp-remote <vm-ip>

Read-Only File System after Upgrade Kernel under CentOS 7

Read-Only File System after Upgrade Kernel under CentOS 7
Hi all,
I upgraded the kernel of CentOS 7 to 4.11.4, and reboot the VM. After that, I cannot change anything in the system. No matter what I do, it says Read-only file system.
I want to work with the latest kernel, what's the correct way to upgrade kernel under CentOS 7 on Google Cloud Engine?
  Thank you very much!
Try remounting the filesystem
sudo mount -o remount,rw /dev/sda3

Cannot boot Arch Linux after installing it next to windows 10

I have just succesfully installed Arch Linux on my Laptop that also runs windows 10. My problem is that there is no visible boot menu where I can choose my os, it always just starts windows. when I run
cfdisk
it lacks the option of adding a bootable flag to my linux partition.
Is there any way of adding a boot menu?
Thanks in advance
Check out Dual boot with windows
You can install system-boot
mount /dev/sda5 /mnt
mkdir /mnt/boot
mount /dev/sda2 /mnt/boot #mount EFI
run this command to install bootloader
bootctl install
And then
cp /usr/share/systemd/bootctl/arch.conf /boot/loader/entries/
Now just modify the arch.conf and enjoy your archlinux.

Share folder & files from Ubuntu host to VM ware workstation mac os x lion

I am trying to share files from ubuntu host to the mac os x lion mounted in my VMware workstation 8. I have enabled file sharing in the vmware options settings. I have also enables file sharing in the mac os x. Still I cannot see any sign of mount or where to go and access the files available in ubuntu.
Detailed explanation of how to do it will be much appreciated :) Thanks.

Sniff USB traffic on a mac?

Is there a way to sniff the USB port on a Mac? I've looked at libusb and #usblib but I can't find anything that works on the Mac.
I found a way, you'll need Wireshark's nightly build (I am using V2.5.0rc0). After you install it, you'll need to bring up the USB "interface":
sudo ifconfig XHC20 up
And after that you can use wireshark to sniff all the traffic in the XHC20 interface. When you finish, remember to turn the interface down:
sudo ifconfig XHC20 down
Source: aud-ios.
Beware when installing IOUSBFamily log. It has not been updated in a few years. The OS X versions must match or else all usb devices including builtin touchpad/keyboard could not work. If that does happen you must reload the proper kext manually from recovery:
https://discussions.apple.com/message/20152486#20152486
Here is the steps to reload from recovery:
I had the same issue after installing USB Prober from a wrong OS version on my machine. It installed without any warnings but it turned out that this includes IOSUSBFamily.kext kernel module that's not going to work on my machine and this disabled all the USB devices (which includes laptop's own keyboard and trackpad).
Here's how I fixed it, but please be extremely careful not to break your machine:
1) Hold CTRL+R and turn on your machine, this will boot into the "Recovery mode"
2) Open Terminal
3) Find out where is your original IOUSBFamily kernel extension and the one on the Macintosh HD are. Mine were here:
Original: /System/Library/Extensions/IOUSBFamily.kext
New one (broken): /Volumes/Macintosh\ HD/System/Library/Extensions/IOUSBFamily.kext
4) Move the broken module away:
$ mkdir /Volumes/Macintosh\ HD/Users/recovery-backup
$ mv /Volumes/Macintosh\ HD/System/Library/Extensions/IOUSBFamily.kext /Volumes/Macintosh\ HD/Users/recovery-backup
5) Copy back the original:
$ cp -a /System/Library/Extensions/IOUSBFamily.kext /Volumes/Macintosh\ HD/System/Library/Extensions/IOUSBFamily.kext
Reboot and it should be fixed.
You can use IOUSBFamily log. If you are on OSX 10.8.2, you'd probably want to try USB Prober included in Hardware IO Tools for Xcode, February 2012 (Apple Developer account required for both links), since the latest version of IOUSBFamily is for OSX 10.9.4.
Even now (in 2018) there are no newer releases than for 10.9.4, and they don't work in newer macOS releases.

Resources