September 21, 2017, 10:49:25 PM

Author Topic: fdformat, mkfs, mount  (Read 6180 times)

0 Members and 1 Guest are viewing this topic.

Offline Metgod

  • the deranged hacker
  • Administrator
  • Forum Hero
  • *****
  • Posts: 1114
  • Country:
  • Gender: Male
fdformat, mkfs, mount
« 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
"My Terminal is my Soul"

Offline wilnix

  • mv user /dev/null
  • Administrator
  • Forum Hero
  • *****
  • Posts: 690
  • Country:
  • Gender: Male
  • You're not the fastest packet in the subnet...
    • Wilnix - The NetAdmin's Resource
Re:fdformat, mkfs, mount
« Reply #1 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...
alt email address: wilnix@hackphreak.org

rhack

  • Guest
Re:fdformat, mkfs, mount
« Reply #2 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)

Offline Tazinator

  • BOFH
  • Administrator
  • Forum Hero
  • *****
  • Posts: 523
  • Country: us
  • Kermit 0wnz j00!
    • https://keybase.io/portabletaz
Re:fdformat, mkfs, mount
« Reply #3 on: August 11, 2005, 08:09:18 AM »
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.

Offline wilnix

  • mv user /dev/null
  • Administrator
  • Forum Hero
  • *****
  • Posts: 690
  • Country:
  • Gender: Male
  • You're not the fastest packet in the subnet...
    • Wilnix - The NetAdmin's Resource
Re:fdformat, mkfs, mount
« Reply #4 on: August 14, 2005, 01:50:57 AM »
He said it...he's missing....or lost....

Wilnix
alt email address: wilnix@hackphreak.org