LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how can i mount my windows hard drive in the Linux ? (https://www.linuxquestions.org/questions/linux-newbie-8/how-can-i-mount-my-windows-hard-drive-in-the-linux-655609/)

emi_ramo 07-14-2008 08:45 AM

Quote:

now it says mount point media/windows does not exists.
Well, this directory must exist. You can create it (being root) with
Code:

mkdir -p /media/windows
After that, probably you'll want to have your partition always mounted when switching on your linux machine. And probably you'll want to have access (read and write) to the partition for your users, not only root. Right? Well, youll need to add this line to /etc/fstab :

Code:

/dev/sda1 /media/windows ntfs-3g users,auto    0  0
You can add this with your preferred editor or just executing:

Code:

echo "/dev/sda1  /media/windows  ntfs-3g  users,auto  0 0" >> /etc/fstab
Beware: if you put only one >, then you'll overwrite existing info.

emi

jiml8 07-14-2008 11:44 AM

/media is usually used for removable drives and media. I wouldn't put a mountpoint for a hard drive partition there, unless the HD was a USB drive. It doesn't matter that much, of course, because in *nix you can mount anything anywhere, but putting it in /media leaves the possibility of a name collision with udev.

Just put the mountpont in /mnt.

shridhar005 07-14-2008 01:11 PM

Try
Quote:

login as root
man mount
This will help .

John VV 07-14-2008 11:23 PM

i would go with emi_ramo BUT DO NOT USE /media
use /mnt/windows
my fedora setup is a dual boot with xp
first run ( depending on your os ( fedora redhat ..)
Code:

~]$ su -
~]# yum install ntfs-3g

then
~]# mkdir /mnt/windows
--if windows is on the first drive
to find out run
~]# su -
~]# fdisk -l
--
windows should be sda1
~]# gedit /etc/fstab
----
and add
/dev/sda1 /mnt/windows ntfs-3g defaults 0 0
to the end and add one empty line , just hit enter to do this and save
reboot
you will need to be root to save to /mnt/windows C:\\
also DO NOT use fat32 it is from 1996 windows 95-2b
and is hopelessly outdated

linuxlover.chaitanya 07-15-2008 12:29 AM

I would not want to give write permissions to users though for security reasons.
Those users wanting to write to the partition can su and then write instead. This could be safer than giving the users the permissions.


All times are GMT -5. The time now is 07:26 AM.