Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

Rep: Reputation: 0
floppy copy confusion


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

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

So I do
'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
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, 02:08 PM   #2
Registered: Aug 2002
Posts: 17,825

Rep: Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401
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, 02:58 PM   #3
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
and I enter cp <filenameonfloppyfromthe ls> /opt/
and I get the :no such file message.

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


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
Old 06-21-2004, 07:31 PM   #4
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
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.
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.


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 02:11 AM
how can i copy to floppy Pacemaker Linux - Software 3 04-25-2004 05:07 PM
How to copy a file to floppy and list file on floppy device kabeko Linux - Newbie 3 12-10-2003 12:36 AM
copy floppy? jrclare Linux - Newbie 7 06-30-2002 09:24 PM
How do you copy a floppy? keirobyn Linux - General 1 01-20-2002 11:24 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:52 AM.

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