LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do you view a file on a floppy (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-you-view-a-file-on-a-floppy-409142/)

Charlie Chan 01-28-2006 09:39 PM

How do you view a file on a floppy
 
I have 'Linux COMPLETE 2nd Edition' and 'Red Hat Linux 9' books worth $98 plus tax and time. None-the-less I still can not find out how to view a text file on a floppy. The floppy is located in /dev/fd0 using Fedora Core 3. I think that I managed to copy a file to the floppy. Now I want to be able to view the file. I find Linux to be very annoying. None-the-less I want to learn how to use it starting with the basics. Buying another book is not going to happen. There is no more room around here. Would someone please tell me how to view the files on a floppy. Obviously this question belongs in this discussion group, Newbie section.

lord-fu 01-28-2006 09:52 PM

Not familiar with Fedora but on my Slackware system I need to mount the floppy drive first:
mount /dev/fd0
And then I can view the files existence:
cd /mnt/floppy && ls
If I want to view a files contents:
less file.txt
You will need to be root to mount the drive, unless you have changed this to be otherwise or maybe Fedora is different.
Hope that helps some, and sorry if I was wrong.

gilead 01-28-2006 09:56 PM

If you have a line like the following in your /etc/fstab file, just type mount /mnt/floppy, or mount /dev/fd0 - or whatever your device/mount point is set to. Then type ls -l /mnt/floppy

Code:

/dev/fd0  /mnt/floppy  auto  noauto,users  0  0
If you have mtools installed, just type mdir a: at the shell prompt (you may need to be root depending on your setup).

If it doesn't work please post what you did along with any errors that were returned.

If it just plain doesn't make sense - I apologise, tell me which bits are too vague :)

Charlie Chan 01-28-2006 10:18 PM

Yes I have a line in /etc/fstab like that. However, it was not easy trying to find out if I did.

Charlie Chan 01-29-2006 11:21 AM

Problem Solved. I had a lengthy explanation of how but the system wiped out the message by determining I was not logged in, WRONG.

Problems: knowing when to mount and unmount a floppy drive, using double quotes instead of backslashes for the path of files and folders, needed to know how to copy a directory as well as a file (cp -ru /home/[username]/Documents/C\ Language\ Info/* /mnt/floppy).

pixellany 01-29-2006 11:26 AM

Quote:

Originally Posted by Charlie Chan
Problem Solved. I had a lengthy explanation of how but the system wiped out the message by determining I was not logged in, WRONG.

WRONG?? Who, what??
We are, of course, happy to see that you solved your issue---even though you did arrive with a bit of a chip on your shoulder.....;)


All times are GMT -5. The time now is 10:13 AM.