Click to See Complete Forum and Search --> : mounting file systems


jsundquist
05-25-2003, 10:52 AM
Ok, I read about it but I still dont understand it. I know that you need to use

mount -t hd hde /mnt/hde

or atleast it needs to look something like that. Could someone help me out. This harddrive that I am trying to mount already has things on it. I just need to be able to mount it for a few mins to get what I want off of it.

So the next thing would be, how do I unmount this after I am done using it.

Thanks in advance.

Cuthbert
05-25-2003, 11:15 AM
What kind of filesystem is on the drive you want to mount and what is its position in the ide chain? If it were a fat32 filesystem and you wanted to mount the first partition of that drive and it was the second drive in the ide chain, the command would be:

mount -t vfat /dev/hdb1 /mnt/whatever

jsundquist
05-25-2003, 12:56 PM
Its going to be the first harddrive in the chain. Its also formated as an ext3 because it was in another linux box before.

UseWhatEver
05-25-2003, 01:23 PM
well , its really easy , though it took me long to learn it ...:D

mount ...bla bla bla

the first bla is the type of parton (-t) u must tell him i have the partion of type bla (-t bla ., where bla can be vfat (for windows fat16 and fat 32) or ntfs or ext3 or 2 , for more info about how they are exactly named refer to man mount !

now we have to tell him that the parion of type blabla is located @ blablabla , this blablabla is for sure a device , in other words its something in /dev/blabla , since its a harddisk it must be starting with (hd) unless its a scasi hard disk , now which hard disk is it , the first the second the third ..etc , in other words is hda , hdb , hdc ...etc (though i guess cd might be treated as hd sometimes :S , i used to have one at /dev/hdb ), now we know which harddisk it is and what the parion type .... what else ! the partion number , linux wont guess which partion u want to mount !!!! so we say /dev/hda1 for the first partion in the first hard drive and so on for others , /dev/hdc7 would be the partion number seven on the third hard disk ...

now we know it all , how to deal with it , as a hard disk , we should treat it as a folder (for ease of use) this folder must be created first , u can create it anywhere i guess , but lets stick to the mnt directory for now and name it theHardDiskThatINeed , a short nice name , we we have /mnt/theHardDiskThatINeed empty folder ,

now putting them all togather would be

mount -t ext3 /dev/hdb5 /mnt/theHardDiskThatINeed

its clear , no???

to unmount it , im not sure but u can
1) reboot the machien :D
2) unmount /dev/hdb5

, sorry for talking so long , but when i needed that i didnt find one who talks enough !!

bwkaz
05-25-2003, 03:51 PM
You can use umount to un-mount partitions. The argument to umount can be either the device or the mount point.

If mount or umount say something about "command not found", then try /sbin/mount or /sbin/umount instead. And make sure you're root. ;)