?
Solved

copying files in unix

Posted on 2000-02-26
5
Medium Priority
?
413 Views
Last Modified: 2010-04-21
how can you copy files to your floppy disk under unix?
0
Comment
Question by:anemos
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 

Author Comment

by:anemos
ID: 2561099
Adjusted points to 50
0
 

Expert Comment

by:markparr
ID: 2561128
Are you just wanting to copy the files to the disk or do you also want to be able to read them on a DOS/Windows PC?  What flavor of Unix are you using?
0
 
LVL 21

Expert Comment

by:tfewster
ID: 2561133
Either tar them to the floppy device, e.g. tar -xvf /dev/fd0 file_names so they can be untarred by any another system that has "tar" (available for DOS, Windows etc.)

OR create a filesystem on the floppy, mount it, copy the files using cp, umount the filesystem, mount the floppy on another system running the SAME Unix, copy files from floppy.

0
 

Author Comment

by:anemos
ID: 2561138
All am wating is simply copying a file from my home directory to my floppy disk... I am sorry if I am not being specific enough...
 How can I access the floppy device?
0
 

Accepted Solution

by:
markparr earned 150 total points
ID: 2561156
Actually, you would write the files to the floppy using

tar -cvf /dev/fd0 <file(s)>

and use

tar -xvf /dev/fd0

when you needed to restore them.

In most cases, the floppy drive name will be /dev/fd#.

You also DD (Data Dump) a file to the floppy using

dd if=<file> of=/dev/fd0

and then restore it using

dd if=/dev/fd0 of=<new file>

0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses
Course of the Month9 days, 14 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question