how can i mount my windows hard drive in the Linux ?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
how can i mount my windows hard drive in the Linux ?
i have two hard drives in my computer. one is sata hard drive and another one is IDE. i have installed the windows XP in the sata hard drive and the redhat linux enterprise 5 in the IDE hard drive. my SATA hard drive is in NTFS format. now i want to mount my windows hard drive in linux. how can i do it?
?
You could add something similiar in your fstab so it can be mounted automatically since boot time,etc. Also, you might try checking the manuals of mount.
Samba? Why do you need samba server when machine is in dual boot?
This has been explained before on how to mount ntfs windows partitions in linux.
If you are not using a newest version of kernel then you might want to install ntfs-3g from www.ntfs-3g.org.
If your package manager allows to install it, then you might want to use it rather than compiling from source.
For adding to /etc/fstab (assuming your ntfs drive is sda1)
1. Create a directory to use as mount point eg. /media/win_drive
2. Append the following at end of file --
/dev/sda1 /media/win_drive ntfs-3g user 0 0
Explanation --
/dev/sda1 - your partition. you can use "sudo fdisk -l" to check yourpartitions
/media/win_drive - directory used to mount the partition
ntfs-3g type of filesystem
user - one of the many options used to mount. This one means anyone can mount it.
0 - is used by dump (a backup utility) to decide if a filesystem should be backed up. If zero then dump will ignore that filesystem.
0 - is used by fsck (the filesystem check utility) to determine the order in which filesystems should be checked.
If zero then fsck won't check the filesystem.
i have two hard drives in my computer. one is sata hard drive and another one is IDE. i have installed the windows XP in the sata hard drive and the redhat linux enterprise 5 in the IDE hard drive. my SATA hard drive is in NTFS format. now i want to mount my windows hard drive in linux. how can i do it?
To mount the device:
Code:
# mkdir /mnt/windows
# mount -t ntfs /dev/sda1 /mnt/windows
To UNmount the device:
Code:
# umount /mnt/windows
I suppose I would check out that ntfs-3g driver, too...
ntfs-3g is must for NTFS. ntfs is simply obsolete and dangerous. You'll be able only to read carefully, and not always. Just install ntfs-3g and confirm that
i tried your solution.but it said "unknown file system type ntfs". don't know what to do ...waiting for your reply
it should be
Code:
mount -t ntfs-3g /dev/your_partition_name /path/to/free/dir
where your_partition_name should be something as sda1 and /path/to/free/dir /media/windows. But you need to install ntfs-3g. To do so... ¿which distro are you using (debian,redhat,suse,etc.)?
mount -t vfat /dev/your_partition_device /path/to/mount
where your_partition_name should be something as sda1 and /path/to/free/dir is an existing directory, such as /media/windows .
I don't use Redhat, so I don't know at all how is named the package manager (yum?). But if you know it, you'll probably fast find out ntfs-3g and easily install it.
ntfs-3g is must for NTFS. ntfs is simply obsolete and dangerous. You'll be able only to read carefully, and not always. Just install ntfs-3g and confirm that
I've always only had the desire to read from my NTFS partitions (too nervous to write to them). You're saying this is safer for reading, too?
Quote:
Originally Posted by screwdriver
student04,
i tried your solution.but it said "unknown file system type ntfs". don't know what to do ...waiting for your reply
Try my above but substitute "ntfs" with "ntfs-3g". If that does not work you must install it with the package manager included with RedHat (as everyone is hinting towards).
Assuming you already made the directory /mnt/windows:
Code:
# mount -t ntfs-3g /dev/sda1 /mnt/windows
Check out the bottom part of NTFS-3G's homepage at http://www.ntfs-3g.org/, section "Usage".
I don't remember the syntax for installing package with the command line, but try:
Code:
# yum install ntfs-3g
Otherwise look through your menus to find the package manager, and search for this. Then try the mounting command again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.