linux, copy a:\file to /tmp in linux?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers linux, copy a:\file to /tmp in linux?
# 1  
Old 02-20-2003
linux, copy a:\file to /tmp in linux?

hi, i am on linux 8. i wanted to copy a file from my a:\filename to my linux 8 /tmp directroy. how do i do this or any directions as in how to accompilsh. thanks
yls177
# 2  
Old 02-20-2003
Re: linux, copy a:\file to /tmp in linux?

Quote:
Originally posted by yls177
hi, i am on linux 8. i wanted to copy a file from my a:\filename to my linux 8 /tmp directroy. how do i do this or any directions as in how to accompilsh. thanks
You need to mount the floppy drive to do this.

Place floppy in the drive and issue the command:

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

Where /mnt/floppy is a pre-existing sub-dir. You don't have to use /mnt/floppy, it can be any sub-dir.

Once you have done this, you can use cp like you normally would, ala:

Code:
cp /mnt/floppy/myFile /tmp

Once you are done, unmount the floppy with umount /dev/fd0 and you should be good to go.
# 3  
Old 02-22-2003
See if you have mtools installed. This will allow you to use a command like:

doscp a:/text.file /home/mydir
# 4  
Old 02-23-2003
mount -t msdos /dev/fd0 /mnt/floppy

hi i issued the above and the floppy is mounted. however, i cant do any ls or cp. BUT, i did a simple mount /dev/fd0 /floppy and it works... the option -t <filesystem> is for more precise, advanced control.. i guess Smilie

on my redhat 8.0, i did a mount -t iso9660 /dev/cdrom /cdrom to mount my cd...
yls177
# 5  
Old 02-26-2003
Weird. It was a MS-DOS formatted floppy, right?

Oh well. If the Linux mount is smart enough to identify the filesystem automagically then that oughta be good enough. Smilie
# 6  
Old 02-26-2003
By Linux 8, I assume you mean Redhat 8.
On my Redhat 7.3 box, I have the following line in my /etc/fstab:
Quote:
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
So, as root, I can "mount /dev/fd0"... This is default on all Redhat boxes I've ever seen...
# 7  
Old 03-09-2003
you can use Mtools

mcopy a:\file /tmp

but you might have to
mcopy a:file /tmp

because the \ might f it up
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Emergency UNIX and Linux Support

Copy a file from Linux

Hi Experts, I want to copy a file from a Linux machine to another Linux machine or a windows machine shared drive. I mean to say.. cp filename //hostname/shareddrive I don't want to mount. Is there any way we can do it. Regards Naree (34 Replies)
Discussion started by: naree
34 Replies

2. IP Networking

Need to copy file from Linux to DOS.

I have two PCs with Ubuntu 10.4 and DOS 5.0, which are connected with a 9 pins serial cable. I need to copy some files from the Linux box to the DOS box. I tried UUCP but it's too difficult and i didn't found a working client for DOS. Can you help me? Thanks for any reply! (10 Replies)
Discussion started by: mghis
10 Replies

3. UNIX for Dummies Questions & Answers

Copy directory from Linux to Windows

Hola a todos, soy realmente nuevo programando en bash, y aśn estoy encontrando bastantes baches :o, mi pregunta es simple, supongo, alguien podria decirme si existe una manera facil de copiar un directorio de un server a otro?, sucede que en un server(server1) tengo los backup de las bases de... (7 Replies)
Discussion started by: yeestrada
7 Replies

4. SuSE

I want to copy a file from Linux

Hi Experts, I want to copy a file from a Linux machine to another Linux machine or a windows machine shared drive. I mean to say.. cp filename //hostname/shareddrive. I don't want to mount. Is there any way we can do it. Regards Naree (1 Reply)
Discussion started by: naree
1 Replies

5. Shell Programming and Scripting

I want to copy a file from Linux

Hi Experts, I want to copy a file from a Linux machine to another Linux machine or a windows machine shared drive. I mean to say.. cp filename //hostname/shareddrive. I don't want to mount. Is there any way we can do it. Regards Naree Double post. Replies here moved to... (0 Replies)
Discussion started by: naree
0 Replies

6. UNIX for Dummies Questions & Answers

copy and paste certain many lines of huge file in linux

Dear All, I am working with windoes OS but remote a linux machine. I wonder the way to copy an paste some part of a huge file in linux machine. the contain of file like as follow: ... dump annealling all custom 10 anneal_*.dat id type x y z q timestep 0.02 run 200000 Memory... (2 Replies)
Discussion started by: ariesto
2 Replies

7. UNIX for Dummies Questions & Answers

command for copy file from CD to Linux box

Hi , I have simple question as i am beginner , I have to copy one file from cd(compact disc) to my linux box on some directory. With which command and how can i do that? Thanks sam71 (2 Replies)
Discussion started by: sam70
2 Replies

8. Where do I download LINUX & UNIX?

Where can i get a copy of Unix or Linux?

where can i get a free copy of unix? any kind... (5 Replies)
Discussion started by: gregtampa
5 Replies
Login or Register to Ask a Question