Sunday, August 2, 2009

How do i access my windows hard drive through linux?

How do i access my windows hard drive through linux. I am running a Dual boot system with one hard drive and i want to access all my stuff on my windows. I was able to do it before but i cant anymore. Unless i forgot

How do i access my windows hard drive through linux?
A long time ago, my linux used to automount other non-linux partitions and then it stopped working.





For NTFS partition:


http://www.linuxforum.com/linux_tutorial...


-------------------------------


This how-to describes how to mount an NTFS partition in linux so that the user can access files on the NTFS partition from linux normally.





1. Login as root by running from a terminal su followed by typing the root password.





2. Create a directory in your /mnt folder. This can be done by running mkdir /mnt/X where X is the name of the directory where the NTFS partition will be mounted.





3. Run fdisk -l and note the name of the device file for the NTFS partition. Lets say the device file name is found to be /dev/Y.





4. Open the file /etc/fstab in your favorite text editor.





5. On a new line at the bottom of the file, add the line


/dev/Y /mnt/X ntfs users,owner,ro,umask=000 0 0





where X is the name of the directory you created in step 2.





6. Save and quit the file /etc/fstab





7. Then run mount -a and the NTFS partition will be mounted. It will also be mounted automatically after reboot so that you do not have to do anything after you reboot.





-------------------------





If you are using Fedora you need to download kernel-module-ntfs





If it's a FAT32 partition:


http://www.linuxforum.com/linux_tutorial...


---------------


This how-to shows you how-to mount a Fat32 partition or hard disk, which can be accessed from windows or linux without any extra programs required by either system.





1. Login as root by running from a terminal


su


followed by typing the root password.





2. Create a directory in your /mnt folder. This can be done by running


mkdir /mnt/X


where X is the name of the directory where the fat32 partition will be mounted.





3. Run


fdisk -l


and note the name of the device file for the FAT32 partition. Lets say the device file name is found to be /dev/Y.





4. Open the file /etc/fstab in any text editor.





5. On a new line at the bottom of the file, add the line


/dev/Y /mnt/X vfat users,owner,ro,umask=000 0 0


where Y is the partition number of the Fat32 partition and X is the name of the directory you created in step 2. Note that this will allow ALL users READ ONLY access to the disk. To allow Read and Write access to ALL users, change the ro to rw. If you want only root to have Read and Write access (while other users have READ ONLY access), change the ro to rw and umask=000 to umask=022.





6. Save and quit the file /etc/fstab





7. Then run


mount -a


and your hard disk will be mounted and will stay mounted after reboot.


-------------------


No comments:

Post a Comment