Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Hello everyone!
I have windows XP in one hard drive and Suse Linux on another hard drive. I want to know howto I access the file on the windows hard drive on Suse Linux. I would like it to be automatically mount after reboot.
It's pretty easy to add a Windows drive to your /etc/fstab file. A line like this would do the trick:
/dev/hdXX /windows/mountpoint ntfs ro 1 0
You do need to replace /dev/hdXX with the actual device of your Windows partition and replace /windows/mountpoint with the actualy path you want Windows to be mounted to. Note that this will give you read-only access to the Windows partition. Writing to a NTFS drive is like playing with dynamite. Sooner or later it is going to go seriously wrong. If Linux needs to be able to write to the files, you're much better off setting up a FAT32 partition and sharing between Linux and Windows.
If your windoze partitions are fat32, you can mount read and write them. If they are ntfs file system, you can mount and read only the files.
To mount the windoze drive, you need to edit the /etc/fstab file, and add an entry for each drive to mount. You need to make a mount point, use the mkdir command to do this. Once these things are done, on each boot the system should mount the file systems. Hare is a sample of my entries for fat32 file system.
Note the field vfat. This is the file system type. You need to set that for what ever file system you are trying to mount.
As you add a line, no need to boot. Just use a mount command from the command line. If you have things set up correctly, the file system will be mounted, and you can use acces the files immediatley.
Try to use Captive..a great s/w for reading/writing to NTFS partitions..the support for NTFS in Linux kernel is pretty limited..the writes o NTFS are not that gud..
Captive, however, requires at least a 2.6.14 kernel.
For vfat partitions, you can just modify fstab as stated above and mount your windows partition.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.