LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mounting drives or partitions in Linux (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-drives-or-partitions-in-linux-706768/)

jacqo 02-23-2009 04:00 AM

Mounting drives or partitions in Linux
 
I am relatively new to Linux. I have installed OpenSuse 11.1 (with KDE 4.2) as a dual boot with Windows XP and it is all going well except that i cannot find a way to mount my other drives or partitions so that I can access them all in LINUX.
Could somebody help me?
Thanks.

Nylex 02-23-2009 04:23 AM

"fdisk -l" will show you a list of partitions that you can mount. "mount" is used to mount partitions. "man mount" and "man fdisk" for more information about these commands (which you'll need to read in order to use them, particularly mount).

colucix 02-23-2009 04:25 AM

If you want read/write access to your Windows partitions/drive, use the ntfs-3g command as root. It is pre-installed in OpenSuse 11.1, so that you can simply do:
Code:

ntfs-3g /dev/something /mnt
where /dev/something is the correct device name corresponding to the Windows partitions/drives. You can look at the output of fdisk -l to see which device name have been assigned to those partitions (post the output here if in doubt). The command above will mount the partition under the /mnt directory. If you want to mount multiple partitions at the same time, you can create different mount points, for example:
Code:

mkdir /mnt/windowsC /mnt/windowsD
then mount each partition under a different mount point, for example
Code:

ntfs-3g /dev/something1 /mnt/windowsC
ntfs-3g /dev/something2 /mnt/windowsD

To unmount them just use the command umount specifying either the name of the device or the name of the mount point as argument.

If you want these partitions to be mounted at boot time, you have to add the proper entries in /etc/fstab. Moreover, there is a chance that OpenSuse check for Windows partitions at boot. To check this, click the "My Computer" icon on the Desktop and in the "Disk Information" section look for the Windows partition. If they are there, you can simply right-click on them and select "Mount".

jacqo 03-04-2009 04:26 PM

Mounting drives or partitions in Linux
 
Thanks.
Very clear now.

colucix 03-04-2009 05:12 PM

Please, note: I corrected a typo in my previous post:
Code:

ntfs-3g /dev/something1 /mnt/windowsC
ntfs-3g /dev/something2 /mnt/windowsD



All times are GMT -5. The time now is 08:46 PM.