LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-21-2004, 12:35 PM   #1
eddacker
LQ Newbie
 
Registered: Nov 2003
Location: Derbyshire, UK
Distribution: Debian Testing
Posts: 14

Rep: Reputation: 0
floppy copy confusion


HELLO!

I would like to copy a file from my floppy to the hda1 / opt folder.

I mount the drive and do
Code:
'ls'
and the five files are shown.(listed)
I do a
Code:
'cp'
and get the :no such file error.

So I do
Code:
'ls -l'
and the files are listed followed by :no such file. ??

So I umount the floppy and do a mdir and all the files are listed with the normal dos information.

I try a
Code:
'mcopy'
and get the :no such file error??

I then do a 'mcopy' from hda1 to the floppy = no problem.

I am confused and wondering.
 
Old 06-21-2004, 01:08 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,834

Rep: Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797
cp requires options i.e.
cp <source> <destination>

cp filename /opt/
(if filename is located in current working directory)

See man pages for details.
 
Old 06-21-2004, 01:58 PM   #3
eddacker
LQ Newbie
 
Registered: Nov 2003
Location: Derbyshire, UK
Distribution: Debian Testing
Posts: 14

Original Poster
Rep: Reputation: 0
more details

well, my /dev/fd0 is mounted at /floppy/
and I am at
eddacker:/floppy#
and I enter cp <filenameonfloppyfromthe ls> /opt/
and I get the :no such file message.

what really confuses me is the 'ls -l' listing:

HOLY HEYSUS!

while looking at the system over there ---> the one with Debian on it, to make sure I recorded the error message correctly I reset my working directory and BAMM! the files are there and the copy is done. I think I may have had a dangling symlink?
I don't really know and i really wish I did. I am self-teaching myself Linux and I have an idiot for a teacher. LOL

I have no idea what happened as it seems I cannot re-produce the error. damn
peace, love and init.d
eddacker
 
Old 06-21-2004, 06:31 PM   #4
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 84
Re-read michaelk's advice: if you are copying a file, you have to specify both the file you wish to copy, as well as the destination to which you want the copied file to be in. Simply entering "cp" won't work, because you aren't telling the system either what to copy or where to put it.

My suggestion to you would be to fully qualify the path in the copy command.
Code:
cp /mnt/floppy/abcd.txt  /opt
where "abcd.txt" is the actual filename you want to copy. The "ls -l" command simply is the long format of the directory listing command. For more info, see the man pages for both cp and ls. -- J.W.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
copy file from floppy maybbach Linux - Newbie 5 07-02-2004 01:11 AM
how can i copy to floppy Pacemaker Linux - Software 3 04-25-2004 04:07 PM
How to copy a file to floppy and list file on floppy device kabeko Linux - Newbie 3 12-09-2003 11:36 PM
copy floppy? jrclare Linux - Newbie 7 06-30-2002 08:24 PM
How do you copy a floppy? keirobyn Linux - General 1 01-20-2002 10:24 PM


All times are GMT -5. The time now is 09:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration