if your question is not found in this web page,post
your question on our WebForum
or you can also
try to find an answer HERE. You
can also have a look at the General FAQ Section.
|
Q.How to Mount A Floppy drive or a CDRom Drive in Linux?
A.
Mounting a floppy disk formatted in Dos/Win machine can be done by typing this:
mount -t msdos /dev/fd0 /mnt/floppy
Mounting your CD-rom drive from the command prompt can be done by typing
this:
mount -t iso9660 /dev/cdrom /mnt/cdrom
Additional tips:
to Format a floppy using Linux type:
fdformat /dev/fd0H1440
Create an Ext2 filesystem after formatting ( Ext2 File system is used in
Linux ) type:
mkfs -t ext2 -c /dev/fd0H1440
to mount the recently created Ext2 Floppy in Linux type:
mount -t ext2 /dev/fd0 /mnt/floppy
to access your mounted drive(s) follow these instruction
floppy: cd /mnt/floppy
CD: cd /mnt/cdrom
ls or dir can browse the drive content..
remember that you need to have the correct user access levels in order to read and
write to/from the mounted volumes.
Q.How can i Create a RamDisk in Linux?
A.
The Linux 2.0.27 kernel includes the ability to include ramdisks
as virtual disks for scratchpad storage, fast access, and other uses. I have
been unable to find any useful documentation of the ramdisk in any of the
popular books on Linux, however.
Assuming that your kernel has ramdisks enabled (use dmesg and look for a line
like "16 ramdisks of 4096 blocks available"), the device mounts will
show up in the /dev directory as /dev/ram0, /dev/ram1, /dev/ram2, etc. To make
these useful, a filesystem has to be placed on them. To do this, enter the
following commands:
#dd if=/dev/zero of=/dev/ram0 bs=1k
count=4096
#mke2fs -v -m 0 /dev/ram0
#mount -t ext2 /dev/ram0 /mnt
This mounts a 4MB ramdisk under /mount. This can be used like any disk device,
but if you have something you want to save, remember to cp it to a real drive!
|