LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mounting (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-56260/)

sadiboyz 04-22-2003 09:14 AM

mounting
 
Could someone please tell me a website or a good book which explains, what does mounting mean, and how it is done and how it works , coz this mounting stuff is soooooo confusing that i am sick of it.
Please reply soon

jharris 04-22-2003 09:25 AM

Mounting is just the term given to making the contents of something like a CD-ROM, floppy disk or hard disk partition available. Its a bit like creating a logical link between a location on your file system and a physical device. So doing something like
Code:

mount /dev/fd0 /mnt/floppy
tells the system that when you access the /mnt/floppy directory that you really want to deal with the contents of device /dev/fd0 (your first floppy disk).

Does that make any sense? What bit is confusing you?

cheers

Jamie...

sadiboyz 04-22-2003 09:36 AM

well thanks a lot jamine
but i am trying to mount my floppy drive the way you mentioned above, but why did you use fd0 can't we use some thing else, and if we do use fd0, is it a convention or there is a rule behind it
one more question do we mount floppy drive or the floppy disk(and the filesystem of floppy disk with which it is being formatted).
what if i want to mount my other part of the hard disk which has winXP on it so that i can play music while in linux and how do i know that if winXP partition is hda1, hdb7 or whatever it is. how do i find that out
please reply

trickykid 04-22-2003 09:52 AM

Didn't I cover this topic in another thread you started maybe say here: http://www.linuxquestions.org/questi...threadid=55961

And you never replied back.. Hmm.. Lets keep existing topics in their original threads please.

jharris 04-22-2003 09:55 AM

Quote:

Originally posted by sadiboyz
but i am trying to mount my floppy drive the way you mentioned above, but why did you use fd0 can't we use some thing else, and if we do use fd0, is it a convention or there is a rule behind it
/dev/fd0 is a special file that is linked to the first floppy disk drive on your system. You could create another file say called /dev/floppy using the mknod program or you could create a symbolic link (symlink) from /dev/fd0 to /dev/someOtherName however /dev/fd0 is the convention used and no one really bothers to change it.
Quote:

Originally posted by sadiboyz
one more question do we mount floppy drive or the floppy disk(and the filesystem of floppy disk with which it is being formatted).
I don't quite follow what you mean. When you mount a floppy disk you are really accessing the file system on whatever disk is in that drive. Because you are accessing the file system on that specific disk you need to unmount (umount) then remount (mount) the drive if you are going to change floppy disks.
Quote:

Originally posted by sadiboyz
what if i want to mount my other part of the hard disk which has winXP on it so that i can play music while in linux and how do i know that if winXP partition is hda1, hdb7 or whatever it is. how do i find that out
You use a similar mount command, although exactly what device you use depends on your system. Here's how the conventions work. /dev/hda is the first IDE device (the master device on your first IDE chanel) in your system. This is nearly always a hard disk. /dev/hdb is the second IDE device in your system (the slave device on your first IDE chanel). /dev/hdc is the third IDE device (the master device on your second IDE chanel). /dev/hdd is the fourth IDE device (and what a surprise - it's the slave device on the second IDE chanel). But these are just the devices...

Things like hard disks also have partitions, so... /dev/hda1 is the first partition on the first IDE device, /dev/hda4 is the forth partition on the first IDE device. The third partition on your fourth IDE device would be /dev/hdd3. You follow?

So exactly which device you mount to get to your WindowsXP file system depends on exactly which partition you have installed windows on. You may be able to figure this out from doing cfdisk /dev/hda and seeing what it shows you. If you had windows installed on the first partition on your first hard disk then you would use
Code:

mount /dev/hda1 /someDir
where /someDir is a directory that you have already created.

That make any sense?

cheers

Jamie...

jharris 04-22-2003 09:58 AM

Quote:

Originally posted by trickykid
Didn't I cover this topic in another thread you started...
I started to cover the mounting of Windows partitions earlier too (started by the same guy)... Will have to post that link too...

http://www.linuxquestions.org/questi...threadid=56254

Jamie...

sadiboyz 04-22-2003 10:09 AM

hai guys i am new and i don't know how to use the forum i posted that first message like two days back and i tried what you guys suggested and it didn't work so i did it again today ,so sorry if i have done something worng

jharris 04-22-2003 10:14 AM

We're just saying that its best to keep all your similar questions in the same thread, and if we suggest something and it doesn't work them reply in the same thread, rather than asking another question about pretty much the same thing. It just makes it easier to follow whats been tried and get an idea for what the problem may be if all the info is available in one place.

Having said that, if you do have a completely new question then put it in a new thread, otherwise people won't realise that it's a new question and you'll probably get no answers.

cheers

Jamie...

sadiboyz 04-22-2003 10:23 AM

Jamine thanks a lot man , it did help a lot and i will try to put it into practice and let us see what happens
you are a champ
Thanks once again


All times are GMT -5. The time now is 11:09 PM.