Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

On MacOS X I can access other drives under "/Volumes". Where do I have to go for the same under Ubuntu 9.04?

share|improve this question
    
What kind of File System your drives want to access? –  Nathaniel Varona Jun 30 '09 at 15:18
add comment

6 Answers 6

up vote 7 down vote accepted

I believe that Ubuntu places volumes for extra drives under /media/ and not /mnt/ like other linux distributions.

You can type mount from the command line to find out where everything is mounted.

share|improve this answer
    
Actually you might be right - I've got a machine running Intrepid and I can't remember whether this is the case or not. –  ConcernedOfTunbridgeWells Jun 30 '09 at 15:11
    
Thank you. I found it under "/media". –  Lucas Jun 30 '09 at 15:48
    
It was my pleasure. –  moshen Jun 30 '09 at 15:52
    
It's not just Ubuntu, it's in the FHS: pathname.com/fhs/pub/fhs-2.3.html#MEDIAMOUNTPOINT –  CesarB Jun 30 '09 at 17:48
add comment

A missing point here is what to do if it doesnt automount.

If you are just plugging in a drive (ie usb or firewire), then check dmesg and see which device it showed up as, and which partitions are available. You may have to manually mount it (ie mount /dev/sd[a-z][1-?] /path/to/mount/ ).

share|improve this answer
add comment

If the volume isn't mounted typing "sudo fdisk -l" in a terminal will list all the drives and partitions that are connected to the system. Typing "mount" with no options will show you what partitions are mounted where along with some other information.

To mount an drive that's not automatically mounted you can go to "Places-->Removable Media" or "Places-->Computer" at the top and when you select an unmounted partition it should mount it for you. If that doesn't work you can type "sudo mount /dev/ /" As long as the partition is labeled properly that should work. Otherwise you may need to supply the -t option with the file system that's on the partition. Check the mount man page for more options and examples.

share|improve this answer
add comment

Mostly under /mnt, (edit: might be /media on Ubuntu as Moshen says) although they could be mounted anywhere in the file system.

As an aside (for those mostly familiar with MS operating systems) Unix doesn't have the concept of a drive in the way that you would see C: or D: on Windows. The system has a single root, which normally has the root filesystem mounted on it. Other file systems can be mounted over directories within the file system, e.g. /usr or /home.

Traditionally removable devices such as CD-ROMs or USB drives are mounted on points that live under /mnt but there is no reason other than convention for this.

Look up the man pages for mount and makeXXfs for various file system types for more detail.

share|improve this answer
    
I have one computer where I set up several mounts under /share –  Brad Gilbert Jun 30 '09 at 19:02
add comment

It's worth noting that in addition to /mnt/, where storage volumes sometimes are manually mounted, hal (the hardware abstraction layer daemon) will mount things like usb drives, memory cards and cd/dvd-roms under /media/.

share|improve this answer
add comment

Assuming they are mounted, they can be found under /mnt, if not, you would have to first mount the device.

If it is a hard disk or a cd-rom drive, you have to figure out which device it is, and then mount it. You could mount it anywhere you want.

For example:

mkdir /storage
mount /dev/sdb1 /storage
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.