Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
A mount point must exist before you can mount it there. In other words, you're mounting the contents of the floppy into the specified directory, not creating a new one. So, try the following first:
I posted the links so you can learn from the information provided.
Code:
excerpt from 'man mount'
DESCRIPTION
All files accessible in a Unix system are arranged in one big tree, the
file hierarchy, rooted at /. These files can be spread out over sev-
eral devices. The mount command serves to attach the file system found
on some device to the big file tree. Conversely, the umount(8) command
will detach it again.
The standard form of the mount command, is
mount -t type device dir
This tells the kernel to attach the file system found on device (which
is of type type) at the directory dir. The previous contents (if any)
and owner and mode of dir become invisible, and as long as this file
system remains mounted, the pathname dir refers to the root of the file
system on device.
How hard is it to read 'mount -t type device dir' where mount is the command, -t type 'is the filesytem', device is 'the device you want to mount', dir is 'the mount point'.
You will need a mount point, on my system there is '/mnt/floppy'. The device on my machine can be found with a 'ls -al /dev/floppy;
I can use the '/dev/floppy' or '/dev/fd0' to mount therefore a 'mount -t ext2 /dev/fd0 /mnt/floppy' would mount the disk with a ext2 filesystem in '/dev/fd0' at the mount point '/mnt/floppy'.
You really need to get used to reading the available material for your distribution or linux in general. The 'man command' is your friend.
Just curious, what kind of filesystem do you currently have on the floppy disk? In any case, you can probably just do "mount /dev/fd0 /mnt/floppy" and the mount command will detect the filesystem for you. But yes indeed, once the floppy's been mounted, you can cd to /mnt/floppy and create files on it with vi. Or, my personal favorite:
The 'Rute' is a good reference and it will help you once you start to have things sink in.
Experience with the OS will help. Find out what you are doing wrong or what it takes to do a specific task then apply it. There are loads of tutorials that you can find online. Several good ones in my sig that you can reference.
You can also look at 'Slackware-Links'.
The Wiki is not just for SlackwareŽ, loads of Linux references. Take a look an see what you can use.
"The first step in being able to use a floppy drive on Linux is to know where to find it in the file system. Mine is in /dev/fd0 (that's floppy drive zero in the device directory) and the following instructions will be written using that path. If your path is different, substitute accordingly.
Let's check to see where your floppy drive is:
Find your file system table (fstab), usually in /etc/fstab.
find / -type f -name fstab
And see what it says:
cat /path_to_fstab/fstab
Mine said:
/dev/fd0 /mnt/floppy auto noauto, owner, kudzu 0 0
That translates to:
floppy device location: /dev/fd0
mounted read/write location for the file system: /mnt/floppy
file system type auto
mount options noauto, owner, kudzu
file system dump frequency 0
file system check frequency 0
We are only going to concern ourselves with the first three fields. The first field maps the location of the floppy device. To format a floppy disk for use in Linux (this will also delete everything on the disk), use the command (substitute your floppy device path):
mkfs -t ext3 /dev/fd0 1440
Now we have a blank disk we can use and need to figure out how to read and write to it.
We need to check our second field, the read/write location (/mnt/floppy in my case) to see if a mount point has already been set up for our floppy. Look in the path to the floppy directory:
ls -l /mnt
If "floppy" is not listed as a directory, we need to create it:
mkdir floppy
Then map the floppy device to the file system read/write area (need to be root to do this and the command will not work unless there is a disk in the floppy drive.): "
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.