HFX Forum

Neophyte Section => Tips & Tutorials => Topic started by: Metgod on February 06, 2003, 11:27:32 AM

Title: fdformat, mkfs, mount
Post by: Metgod on February 06, 2003, 11:27:32 AM
okay, time for another little tip..

It is to be expected that at times, one would have files they want on their unix or linux machine that are on floppies formatted under DOS.

Problem is, they aren't the same filesystem (FS).

Suppose you have an MS-DOS disk (that also includes windows filesystems such as NTFS and FAT32), and you want a file to either work on an MS-DOS machine or you want it the other way around.

You have two ways to go:

1. It is already formatted under DOS and you want it to work under Unix or Linux.

what you need to do is simple:

- mount the floppy disk to support DOS and then go to it, like so:

NOTE: make sure there is a directory in your system called /mnt/floppy (if not, just do 'mkdir /mnt/floppy')

mount -t msdos /dev/fd0 /mnt/floppy

Now all you have to do is take the files from the directory /mnt/floppy.


2. The other possible thing you need to do, is to actually format it for DOS (i.e., you have a floppy but want to use it on a DOS / Windows machine).

fdformat /dev/fd0 (or you can specify more about the disk, but a generic 3.25 floppy should work there)

mkfs -t msdos /dev/fd0

Note: on some systems, you can do fdformat -t msdos /dev/fd0



WARNING: Make ABSOLUTELY SURE that you umount the device BEFORE ejecting it (if mounted).

just...

umount /mnt/floppy

NOTE: You can not be in that directory while you umount it...


That's it for this time..

Met
Title: Re:fdformat, mkfs, mount
Post by: wilnix on April 29, 2003, 06:40:39 PM
helpful tools for unix users in a win32 env:

sharity-light
nbaudit

Sharity-light allows you to connect to win-shares very easily and effectively. I prefer it over things like samba's tools...

nbaudit give you some powerful info on a windows box...

Wilnix

PS: These tools are pretty well known...just not to newbies...
Title: Re:fdformat, mkfs, mount
Post by: rhack on August 11, 2005, 01:12:43 AM
you all hackers guys are really cool but i still think that somethig is really missing and thats ..me  me .. haaaaaa  ccc   kkkk  rrrr  8)
Title: Re:fdformat, mkfs, mount
Post by: Tazinator on August 11, 2005, 08:09:18 AM
ummmm, ok ???
Title: Re:fdformat, mkfs, mount
Post by: wilnix on August 14, 2005, 01:50:57 AM
He said it...he's missing....or lost....

Wilnix