I'm working from a Mac and need to edit a few lines on a Linux partition. (I need to enable SSH on Raspbian for a Raspberry Pi, but I need to do so effectively headless – I don't have any peripherals that I can use with the device.) I have been working with OSXFuse and trying to get it to work, but I've been unsuccessful.
I was wondering if I could install a virtual machine on OSX and then use a Linux on this VM to make my edits. My caution is that VMs are, to my understanding, slightly abstracted from the hardware. That is, the hardware the VM sees is not necessarily the hardware the host has. Will I be able to make edits this way, or must I find some other workaround?
The partition I need to access is on an SD card.
If this is possible, how can I use this method?