Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to access floppy, CD drives

Status
Not open for further replies.

theEclipse

Programmer
Dec 27, 1999
1,190
US
I just installed Linux, and need to know how to access:<br><br>the floppy drive<br><br>extra hd<br><br>and cdrom<br><br>thankyou for your help <p>theEclipse<br><a href=mailto:eclipse_web@hotmail.com>eclipse_web@hotmail.com</a><br><a href=robacarp.webjump.com>robacarp.webjump.com</a><br>**-Trying to build a documentation of a Javascript DOM, crossbrowser, of course. E-mail me if you know of any little known events and/or methods, etc.
 
You  need to mount the drives like this: <FONT FACE=monospace>mount -t iso9660 /dev/hdb /mnt/cdrom</font>.  There are a lot of things you need to learn still and I can't exactly explain all of it, but you can go do a little research:<br><A HREF=" TARGET="_new"> - Official LDP site<br><A HREF=" TARGET="_new"> - A good guide for beginners.<br><A HREF=" TARGET="_new"> - The name is pretty self-explanatory.  Assumes knowledge of DOS.<br><A HREF=" TARGET="_new"> - Same, but in html format<br><br>For now, the following will help.  Notice that X must be replaced by a number:<br><br>cdrom - <FONT FACE=monospace>mount -t iso9660 /dev/hdb /mnt/cdrom</font><br>This assumes that you have created a directory called /mnt/cdrom and that you have one hard drive and that your cdrom is ide, eide, or atapi.  If you have more than that, count the number of physical hard drives and then count that many letters down in the alphabet, your cdrom drive is the letter after that, then replace /dev/hdb with /dev/hdx where x is that letter.  If you're unsure, just use the above command.<br><br>floppy - <FONT FACE=monospace>mount -t vfat /dev/fd0 /mnt/floppy</font><br>This assumes that you are trying to read a MS-DOS floppy.  If you are trying to read a Linux floppy, replace vfat with ext2.  You can also use hfs to read Macintosh floppies (this is also true of cdroms).<br><br>hd - <FONT FACE=monospace>mount -t vfat /dev/hdaX /mnt/c</font><br>This assumes that you are mounting your original Windows hard drive.  In all likelyhood, X equals 1, so it would probably look like this: <FONT FACE=monospace>mount -t vfat /dev/hda1 /mnt/c</font><br><br>Notice that /mnt/whatever is a directory, so you should first check that the above directories exist.
 
&nbsp;&nbsp;&nbsp;&nbsp;&quot;If you have more than that, count the number of physical hard drives and then count that many letters down in the alphabet&quot;<br><br>Actually, the hdX doesn't go with how may drives you have, but where they're positionned on the ide chain. hda would be the primary master, hdb would be the primary slave and so forth. <br><br>On one of my systems the cdrom is alone on the secondary ide channel (set as slave), so I have a hda, hdb (2 hds) and my cdrom is hdd. If I would have set my cd rom as a master device, it would be a hdc device.<br><br>Also, what Linux distro/version are you running? If you're running one of the later ones, it's quite simple to set up yor mounts graphically (linuxconf), instead of typing a whole string to mount a DOS hd. Unless you're worried about some security issue...
 
Speaking of security, you may need to run the <FONT FACE=monospace>mount</font> commands as <FONT FACE=monospace>root</font> for them to work.<br><br>A user friendly alternative is to use the &quot;supermount&quot; package.&nbsp;&nbsp;With this installed and working, you can just <FONT FACE=monospace>cd</font> to <FONT FACE=monospace>/mnt/floppy</font> to access floppy, and <FONT FACE=monospace>/mnt/cdrom</font> to access cdrom.<br><br>As far as your additional hard disks go - did you specify a mount point for them when installing Linux?&nbsp;&nbsp;If not, run the <FONT FACE=monospace>dmesg</font> command and look for hard disks being detected.&nbsp;&nbsp;Post the &quot;/dev/hd??&quot; names here and we'll be able to walk you through mounting the disks so they become available.&nbsp;&nbsp;It would also help if you let us know if the disks contained Windows or other Linux filesystems.&nbsp;&nbsp;OR if you just want to create new filesystems.<br><br>HTH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top