LinuxQuestions.org
Visit Jeremy's Blog.
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 12-09-2003, 11:57 PM   #1
kabeko
LQ Newbie
 
Registered: Dec 2003
Location: Vancouver, BC
Distribution: 14.0 Slakware
Posts: 6

Rep: Reputation: 1
How to copy a file to floppy and list file on floppy device


Very Newbie here:

Using Slakware 7.1

Fstab entry: /dev/fd0 /mnt auto,users, 0 0

Problem: Once I've mounted my floppy, I cannot seem to copy or see the file on the floppy drive or I do not know how to view the listing of the file I've copied to the floppy on the floppy drive.

I have formatted the floppy ext2. I have created a 'testfile' on hard drive using vi. Then I want to copy to floppy and view the file as a listing.

mke2fs /dev/fd0 1440 (*formats floppy ok*)

mount -t ext2 /dev/fd0 /mnt (*floppy drive light goes on-I presume its mounted*)

File is located in root directory /

cp /testfile /dev/fd0 (*floppy drive light goes on again*)

Now I want to go the floppy drive to view the file with the ls -l command

cd /dev

ls -l fdo or /fd0

lists 'lost+found' in the root directory.

I've also looked in the /mnt directory as well. Not there. I have searched the forum for a similar case but just not close enough. I have no problem viewing files on the cdrom when its mounted. Thanks for any help. Oh, I do boot from lilo on the floppy so I know it works.
 
Old 12-10-2003, 12:11 AM   #2
superbondbond
Member
 
Registered: Nov 2002
Posts: 668

Rep: Reputation: 30
Here's your mistake.
Code:
cp /testfile /dev/fd0
you need to copy the file to where the floppy is mounted (mount point). In your case as you described /mnt.
Therefore,
Code:
cp /testfile /mnt/
In case you aren't aware, it is typical to create a subfoler within /mnt for each removable or mounted filesystem.
For example /mnt/cdrom for a cd-rom drive, /mnt/floppy for your floppy, etc. That would make your fstab entry
Code:
/dev/fd0 /mnt/floppy auto,users, 0 0
You said you have no problem reading files off your CD-Rom. Where is that mounted?
 
Old 12-10-2003, 12:34 AM   #3
kabeko
LQ Newbie
 
Registered: Dec 2003
Location: Vancouver, BC
Distribution: 14.0 Slakware
Posts: 6

Original Poster
Rep: Reputation: 1
Thankyou superbondbond. It worked exactly as you said. I copied the 'testfile' and listed it as follows:
cp /testfile /mnt/

Changed to that directory and listed the file no problem. Thanks again.
 
Old 12-10-2003, 12:36 AM   #4
kabeko
LQ Newbie
 
Registered: Dec 2003
Location: Vancouver, BC
Distribution: 14.0 Slakware
Posts: 6

Original Poster
Rep: Reputation: 1
Also, your point about my cdrom is well taken as my cdroms mount point was /mnt/cdrom.

Thanks again.
 
  


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
i want to a copy a file from root to a floppy on the console using slackware 10.0 salviadud Linux - Newbie 2 02-07-2005 11:32 PM
copy file from floppy maybbach Linux - Newbie 5 07-02-2004 02:11 AM
Copy file to Floppy Mana1 Linux - Newbie 13 12-08-2003 05:28 PM
how to copy file in linux to floppy disk aiyong Linux - Newbie 3 10-17-2003 06:26 PM
Cannot copy file 31/2 Floppy(A).lnk u4113072 Linux - Software 0 12-07-2002 02:41 AM


All times are GMT -5. The time now is 09:07 AM.

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