Penguin
Diff: AccessingWindowsPartitions
EditPageHistoryDiffInfoLikePages

Differences between version 7 and predecessor to the previous major change of AccessingWindowsPartitions.

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 7 Last edited on Sunday, July 4, 2004 8:31:57 pm by AlastairPorter Revert
Older page: version 4 Last edited on Tuesday, February 17, 2004 5:43:49 pm by AristotlePagaltzis Revert
@@ -1,56 +1,24 @@
-InNeedOfRefactor  
-  
 Linux is able to read [Windows] partitions by [mounting|mount(8)] them onto the filesystem. 
  
-Simply:  
- mkdir /mnt/ windows  
- mount /dev/hda1 /mnt/windows 
+If you have a modern distro, your windows partiton was probably added when you installed. Try looking in the /mnt/ directory using your FileManager and see if there is a directory called ' windows' or similar. If so, then simply clicking on it should show the contents of your C drive.  
  
-where hda1 is the first partition on the primary hard disk (this is usually correct)  
+If there is no such folder you will have to make one yourself.  
  
-[mount (8 )] should [automagically|AutoMagic] discover the partition type if it is fat32, but if it doesn't you can add ''-t vfat'' to the mount command.  
-  
-The same goes for [NTFS] drives, using ''-t ntfs'' instead.  
-RedHat linux doesn't have [NTFS] drivers built into the kernel, but you can add it yourself if you need to read [Windows] XP/2000/NT4 drives. %%%  
-[http://linuxexperience.com/tutorials/redhatntfs.php]  
-  
-To make it easier, you can add a line to /etc/fstab to let you mount the partition on bootup, or just by simply typing  
- mount /mnt/windows  
-  
-These instructions allow you to have read/write access to your windows drive as a normal user.%%%  
-__WARNING: it is a BadThing to write to an [NTFS] drive from in linux. Chances are you will lose your [Windows] install (which isn't always a bad thing :)__ Don't follow these instructions if you run an [NTFS] drive.%%%  
-  
-1. Login as root user  
-2. Create a new group:  
-  
- #groupadd windows  
-  
-3. Find out what the new ID number for the group is:  
-  
- #cat /etc/group  
-  
-Output will look similiar to this:  
- windows:x:501:  
-;:501 here is the new group ID  
-  
-4. Make your user a member of the new group:  
- #usermod -G windows username  
-;:Replace username with the name of the user you want to have access  
+Run (as root ): %%%  
+ mkdir /mnt/windows 
  
-5. Check and see if you are now a member of the windows group:  
- #groups username  
+If you are running Windows 9x then runing  
+ mount -t vfat /dev/hda1 /mnt/ windows  
+from a terminal window as root should be enough to mount your C drive onto /mnt/windows where you can access it.  
  
-;:Output will look like this:  
- username : username windows 
+If you are running Windows 2000 or XP you will have to use  
+ mount -t ntfs /dev/hda1 /mnt/ windows 
  
-6. Edit /etc/fstab and save the changes :  
- /dev /hda1 /mnt /win vfat auto,gid=501,umask=007 1 2  
+FedoraCore doesn't have [NTFS] drivers built into the kernel, so you can't read windows 2000 / XP drives with it. You can however install [pre-compiled NTFS kernel RPMS for Fedora|http ://linux-ntfs.sourceforge.net /rpm /fedora2.html] to make it work.  
  
-7. Unmount/remount the drive  
- #umount /mnt /windows  
- # mount /mnt/windows  
+You can add the following to your /etc /fstab file to make your computer automatically mount the partition when you boot into linux. If you are using Windows 2000 /XP replace the ''vfat'' with ''ntfs''.  
  
-Login as your regular user and you should have read /write access.  
+ /dev/hda1 /mnt/windows vfat auto 0  
  
 ---- 
 CategoryBeginners