fdformat, mkfs, mount

Started by Metgod, February 06, 2003, 11:27:32 AM

Previous topic - Next topic
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
"My Terminal is my Soul"

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...
alt email address: wilnix@hackphreak.org

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)

ummmm, ok ???
"A well known hacker is a good hacker, an unknown hacker is a great hacker..."

I don't care what your parents told you, you aren't special.
  • https://github.com/tazinator

He said it...he's missing....or lost....

Wilnix
alt email address: wilnix@hackphreak.org

SMF spam blocked by CleanTalk