Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to copy to floppy? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
cgmd
Veteran
Veteran


Joined: 17 Feb 2005
Posts: 1585
Location: Louisiana

PostPosted: Wed Apr 20, 2005 9:16 pm    Post subject: How to copy to floppy? [SOLVED] Reply with quote

I rarely use the floppy drive, but now must put some files on floppy. Would someone please tell me the easiest way to get my floppy working on my gentoo box? Either that, or direct me to a reference on the issue...

Thanks, again, in advance...


Last edited by cgmd on Wed Apr 20, 2005 10:25 pm; edited 1 time in total
Back to top
View user's profile Send private message
greasy_grasshopper
Apprentice
Apprentice


Joined: 07 Apr 2005
Posts: 171

PostPosted: Wed Apr 20, 2005 9:29 pm    Post subject: Reply with quote

You have to mount the floppy drive, copy your files and then unmount it. Search google for mounting and unmounting floppy drives and google and you'll know what to do.
Back to top
View user's profile Send private message
hensan
l33t
l33t


Joined: 26 Jun 2003
Posts: 868
Location: Sweden

PostPosted: Wed Apr 20, 2005 9:32 pm    Post subject: Reply with quote

Add floppy support to your kernel, select (on 2.6 kernels):

Device Drivers -> Block devices -> Normal floppy disk support

If you wan't to read/write DOS floppys add msdos FS support:

File systems -> DOS/FAT/NT Filesystems -> MSDOS fs support
File systems -> Native Language Support -> (Whatever you need here)

To format DOS floppys you'll also need to emerge dosfstools.
Back to top
View user's profile Send private message
penguinlnx
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2005
Posts: 124
Location: Ice Station Alert AFB

PostPosted: Wed Apr 20, 2005 9:41 pm    Post subject: Reply with quote

for files larger than 1.4 meg you should look into a USB flashkey drive.
If you need re-writable media, why not a CD-R-W disk (re-use 100 times)?
Back to top
View user's profile Send private message
cgmd
Veteran
Veteran


Joined: 17 Feb 2005
Posts: 1585
Location: Louisiana

PostPosted: Wed Apr 20, 2005 9:48 pm    Post subject: Reply with quote

Can you recommend a usb flash key?
Back to top
View user's profile Send private message
amightywind
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jun 2004
Posts: 137
Location: Andover, MN USA

PostPosted: Fri Oct 14, 2005 5:56 pm    Post subject: Reply with quote

I use both a floppy and and flashkey. As for the floppy you have several choices:

Use mtools mcopy, mdir, mformat etc to create/write files in a DOS compatable way. Assume mtools is configured to recognise /def/fd0 as a:
Code:
$ mformat a:
$ mcopy <filename> a:

Use tar and just:
Code:
$ tar cvf /dev/fd0 ./<dir>

Create a file system like reiserfs4 and copy that way
Code:
$ mkreseirfs /dev/fd0
$ mount -t reiserfs /dev/fd0  /mnt/floppy
$ cp -r ./<dir> /mnt/floppy

To use the flashkey you must first have hotplug installed. If /dev/sda1 or /dev/sda2 appear after you stick it in you are good to go. I use a SanDisk Cruzer Mini 512MB. Make sure your kernel has the necessary USB storage modules.
Code:
$ mkreseirfs /dev/sda1
$ mount -t reiserfs /dev/sda  /mnt/flashkey
$ cp -r ./<dir> /mnt/flashkey

Fun! I guess this would work to:
Code:
$ tar cf /dev/sda1 ./<dir>
but I haven't tried it.
_________________
amightywind
Back to top
View user's profile Send private message
JSharku
Apprentice
Apprentice


Joined: 09 Feb 2003
Posts: 189
Location: Belgium

PostPosted: Sat Oct 15, 2005 6:28 am    Post subject: Reply with quote

amightywind wrote:

Create a file system like reiserfs4 and copy that way
Code:
$ mkreseirfs /dev/fd0
$ mount -t reiserfs /dev/fd0  /mnt/floppy
$ cp -r ./<dir> /mnt/floppy


Don't know about reiser4, but both reiser3 and ext3 complain about not being able to create on such a small device, ext2 or minix fs are more suitable imho.

EDIT:
Ok twiddling with block and journal sizes I was able to create a reiserfs(v3) on 1.4Megs, but it still is terribly inefficient. Using a blocksize of 512 and journal size of 513(reiser minimum) I get:
Code:
/root/floppy          1.5M  321K  1.1M
As opposed to ext2:
Code:
/root/floppy          1.4M   13K  1.3M


Sharku
_________________
If only life were portage-driven:
Code:
USE="-bitch -in-laws nice gorgeous smart" emerge girlfriend
*sigh*
--
Open Source for Windows!
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Mon Oct 17, 2005 12:42 am    Post subject: Reply with quote

Most floppies are pre-formatted msdos . As you say it is for occational use and you probably want to read the floppy on another system later it makes no sense to reformat the disk.

You will probably find that you already have /dev/fd0 present in /etc/fstab so just try:

Code:
mount /dev/fd0
df /mnt/floppy
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/floppy/0             1424         0      1424   0% /mnt/floppy


copy you files with cp then umount /dev/fd0

Dont forget the last step since the files are written to a buffer and only committed to the disk by umount , note it is umount not unmount as was posted above.

HTH 8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum