Penguin
Blame: AccessingWindowsPartitions
EditPageHistoryDiffInfoLikePages
Annotated edit history of AccessingWindowsPartitions version 16, including all changes. View license author blame.
Rev Author # Line
15 AristotlePagaltzis 1 !! It's no problem
6 AlastairPorter 2
15 AristotlePagaltzis 3 Linux can read MicrosoftWindows [Partition]s just fine, you just need to [Mount] them onto the FileSystem.
6 AlastairPorter 4
15 AristotlePagaltzis 5 !! You might not need to do anything
6 AlastairPorter 6
15 AristotlePagaltzis 7 Most likely, your Windows partiton was probably configured for access when you installed Linux – try looking in the <tt>/mnt/</tt> directory using your FileManager and see if there is a directory called <tt>windows</tt> or similar. If so, then simply clicking on it should show the contents of your C drive. If it looks empty, try issuing <tt>mount /mnt/windows</tt> on a root [Shell].
6 AlastairPorter 8
15 AristotlePagaltzis 9 If that doesn't help either, you need to configure a few things.
6 AlastairPorter 10
15 AristotlePagaltzis 11 !! So it wasn't automatically set up?
6 AlastairPorter 12
15 AristotlePagaltzis 13 First, you will have to make a "mount point", that is, a directory which the [Partition] will be mounted onto. Do this as root: <tt>mkdir /mnt/windows</tt>
6 AlastairPorter 14
15 AristotlePagaltzis 15 Next, you need two pieces of information:
6 AlastairPorter 16
15 AristotlePagaltzis 17 # The device name for the Windows [Partition]. This is ''usually'' <tt>/dev/hda1</tt>, but if you have multiple Windows partitions, multiple HardDisk~s or an otherwise out-of-the-ordinary setup, it may be something else. We'll assume <tt>/dev/hda1</tt> here, but if yours is different, then substitute it accordingly.
10 IanMcDonald 18
16 IanMcDonald 19 # MicrosoftWindows [Partition]s come in two flavours: [FAT], a crummy old format, and [NTFS], a more modern format. You need to know which one you have. Windows 9x/ME can only work with [FAT] partitions, but Windows 2000 and XP can do both – they default to [NTFS], though, so that's probably what you have.
10 IanMcDonald 20
15 AristotlePagaltzis 21 To mount an [NTFS] partition, you use <tt>mount -t ntfs /dev/hda1 /mnt/windows</tt>; to mount a [FAT] partition, you use <tt>mount -t vfat /dev/hda1 /mnt/windows</tt>.
10 IanMcDonald 22
15 AristotlePagaltzis 23 !! Making it permanent
11 BruceJones 24
15 AristotlePagaltzis 25 You successfully mounted your Windows partition? Great. But you'll have to issue the mount(8) command again the next time you boot the machine. If you want it mounted automatically, you can translate the command to a line in your <tt>/etc/fstab</tt> configuration like this:
13 DanielLawson 26
27 <verbatim>
15 AristotlePagaltzis 28 /dev/hda1 /mnt/windows vfat auto
13 DanielLawson 29 </verbatim>
15 AristotlePagaltzis 30
31 You may be required to specify the user ID (UID) in <tt>/etc/fstab</tt> to get it to work with a non-root user:
32
33 <verbatim>
34 /dev/hda1 /mnt/windows vfat auto,uid=502
35 </verbatim>
36
37 The "<tt>user</tt>" option allows the user to [Mount] and unmount, the "<tt>uid</tt>" option says which user can access files on that FileSystem. To get the UID for user <tt>joebob</tt>, issue <tt>id -u joebob</tt>.
38
39 !! [NTFS] in FedoraCore
40
41 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.
11 BruceJones 42
6 AlastairPorter 43 ----
44 CategoryBeginners

PHP Warning

lib/blame.php:177: Warning: Invalid argument supplied for foreach() (...repeated 3 times)