Mount floppy image in cygwin - cygwin

How can I mount a floppy image file using cygwin. I would like to mount the image, copy a file to the mounted drive, and then unmount it from the command line.
I know you can use Virtual Floppy Drive in windows, but is there a way to do this in Cygwin?

Can't you just use Virtual Floppy Drive? Cygwin doesn't really do filesystems; it lets Windows take care of that.

If you look on line (google) there doens't seem to be support in Cygwin for that kind of functionality. An alternative, though more effort, would be to use something like VirtualBox, or the free version of VMWare and run a light-weight Linux distro, where you could use the loopback mounting feature and expose it via samba as a windows-share.

Use ImDisk Virtual Disk Driver is a disk image emulator created by Olof Lagerkvist. It can emulate devices as hard drives, floppy drives, or CD/DVD drives. It is free software, containing some code licensed under GPL, and some under BSD.
URL download: ImDisk

Cygwin is just a standard Win32 DLL, it relies on windows kernel for everything related to file-systems. This means it cannot mount or unmount anything by itself. However, you can still read and write to floppy images from the command line using mtools.
Note that I in order to compile I had to manually edit the Makefile (after the ./configure step) to modify this line:
LIBS = -liconv

Related

ISO file path not an option when installing Linux on virtualbox

When installing Linux on a virtualbox with a windows 7 64bit host
I get the following screen
All the tutorials I have watched on how to install Linux on a virtualbox always skip this screen
I am using a iso file but I do not see an option to enter the path of said iso file
do I need to copy the file to a cd? or am I missing a setting for the virtualbox?
The way VirtualBox (or virtualization in general) works, is that when on the host (the Windows PC running the VirtualBox) you mount the ISO file as a CD/DVD drive, it will be shown as CD/DVD on the client (your Linux installation). The client won't see the difference.
So in that sense you are doing it correctly. However, you have the "wrong" installation ISO. The file you have mounted is "Oracle Linux R6 Update 5 UEK Boot ISO x86_64 V41364-01.iso" (if I googled correctly). So the question in your first screenshot asking about the installation image is to my understanding asking for where the actual installation data can be found. This would be either a DVD, another harddrive, local repository in LAN, or from the Internet. In your case it would be easier to use an installation media, which already includes the installation files, which would be "Oracle Linux R6 Update 5 x86_64 V41362-01.iso" (again if I googled correctly).
So to sum up, either download the full installation image (around 4 GB), or use the one you have and point the "url" to an image from the Internet.

if the system kernel doesn`t support cifs, how to copy file from the windows share folder to linux

if the system kernel doesn`t support cifs, how to copy file from windows share folder to linux. Any method can copy the file from windows share folder without cifs or mount?
Some possible options: webserver, ftp server, samba server, ntfs or fat floppy disk or usb drive, winscp.....
Use smbclient (it's like a simple FTP client for SMB, part of the samba package)

How can I run nodejs from usb drive?

I would like to know how can I run nodeJS express from usb drive on a Linux/gentoo configuration ?
The only requirement is to download a portable version of node.js, may need to tweak mounting permissions.
The distributables are located here.
All your modules need to be installed locally.
You can download NodeJs Portable on sourceforge here : NodeJS Portable : http://sourceforge.net/projects/nodejsportable/files/latest/download
Using BTRFS on flashdrive is not that bad. I have a 64GB USB, and allocate about 29GB as fat32 and the rest for btrfs (it's not a bootable ISO). Disable CoW on BTRFS. Place winbtrfs zip in partition with fat32, and use partition with btrfs as any code projects. Whenever i need to access partition with btrfs in Windows, I just need to install btrfs.inf file in the fat32 partition.
I don't know is btrfs volume support symlink (or anything to use npm & nodejs) on Windows or not, but in Manjaro, I can use nodejs and install packages with NPM

Raspberry pi - file blocking startup

I was trying to make some script automatically run on OS start up, but somehow i did it wrong and now i cant even start the OS since the file is blocking it.
Can i recover the OS removing what i did or at least have access to all my files inside my SD card? I've opened it on my laptop and all i have is two repartitions "BOOT" and "RECOVER" but can't find my user folder /home or anything usefull.
What i did:
sudo cp /home/pi/Desktop/test.sh /etc/rc.local
Thanks!
Best get a bootable CD of a linux distro - fedora, ubuntu, any other, it doesn't really matter - boot the CD on your laptop and mount the SD card from there. Windows can't read linux partitions; other linuxes can.

How do I open the root.disk in linux?

When doing a wubi install of linux from windows, the place/file where all linux info is saved is inside a "root.disk" file.
I am intending on formatting my laptop to run linux only and I can't seem to find a way to open this root.disk file from linux itself (to extract some of the files from my previous installation). Of course, it does and is able to open in windows using a certain software, but because I will only have linux on my system now, does anybody know how to open this file in linux itself? It's kind of strange that it isn't able to open with the default linux tools.
Specs:
I am using Linux Mint 12 (via wubi install). Intending on moving to a 'lighter' version of linux.
You need to mount this image before you can access it, try the following:
mkdir olddisk
sudo mount -o loop /path/to/root.disk olddisk
You should now be able to access the data inside this container.

Resources