<HTML
><HEAD
><TITLE
>Accessing a Windows Partition</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.40"><LINK
REL="HOME"
TITLE="Red Hat Linux 6.1"
HREF="index.htm"><LINK
REL="UP"
TITLE="Q  A: Quick Answers to Common Questions"
HREF="ch-q-and-a.htm"><LINK
REL="PREVIOUS"
TITLE="Starting Applications"
HREF="s1-q-and-a-starting.htm"><LINK
REL="NEXT"
TITLE="Find Some Commands Fast"
HREF="s1-q-and-a-history.htm"></HEAD
><BODY
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Red Hat Linux 6.1: The Official Red Hat Linux Getting Started Guide</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="s1-q-and-a-starting.htm"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 7. Q &#38; A: Quick Answers to Common Questions</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="s1-q-and-a-history.htm"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="S1-Q-AND-A-WINDOWS"
>Accessing a Windows Partition</A
></H1
><A
NAME="AEN4439"
></A
><A
NAME="AEN4442"
></A
><A
NAME="AEN4446"
></A
><A
NAME="AEN4449"
></A
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="S2-Q-AND-A-WINDOWS-Q"
>Q: How Do I Access My Windows Partition?</A
></H2
><P
>          I've got a dual-boot system with Red Hat Linux and Windows 98. Is there a way
          I can gain access to my Windows partition while I'm running Linux?
        </P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="S2-Q-AND-A-WINDOWS-A"
>A: Two Ways to Access Windows Partition.</A
></H2
><P
>          You can gain access to another partition on your system -- for
          example, a Windows partition -- by typing a line similar to the
          following:
        </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
><B
CLASS="COMMAND"
>mount -t vfat /dev/hda1 /mnt/vfat</B
>
	      </PRE
></TD
></TR
></TABLE
><P
>          The foregoing assumes that your Windows partition is on your first
          hard drive, in the first partition
          (<TT
CLASS="FILENAME"
>/dev/hda1</TT
>). Also, before typing the above
          command, as root, you should create a <I
CLASS="FIRSTTERM"
>mount
          point</I
> called <TT
CLASS="FILENAME"
>/mnt/vfat</TT
>
          (Using the command <B
CLASS="COMMAND"
>mkdir /mnt/vfat</B
>) to hold the
          data.
        </P
><P
>          Another method of mounting a Windows partition is by entering the
          correct fields in the <TT
CLASS="FILENAME"
>/etc/fstab</TT
> file. One of the
          easiest ways to enter these fields is through
          <SPAN
CLASS="APPLICATION"
>Linuxconf</SPAN
>.
        </P
><P
>          Open an Xterm window. If you're in your user account,
          <B
CLASS="COMMAND"
>su</B
> to root by typing
        </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
><TT
CLASS="USERINPUT"
><B
>su</B
></TT
>
<TT
CLASS="PROMPT"
>Password:</TT
><TT
CLASS="USERINPUT"
><B
><TT
CLASS="REPLACEABLE"
><I
>yourrootpassword</I
></TT
></B
></TT
>
	      </PRE
></TD
></TR
></TABLE
><P
>          Now, create a mount point for your Windows partition, by typing
        </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
><TT
CLASS="USERINPUT"
><B
>mkdir /mnt/vfat</B
></TT
>
	      </PRE
></TD
></TR
></TABLE
><P
>          Next, while you're still root, start
          <SPAN
CLASS="APPLICATION"
>Linuxconf</SPAN
> by typing
          <B
CLASS="COMMAND"
>linuxconf</B
> at the prompt.
        </P
><P
>          Scroll down in the "tree view," or left panel of <SPAN
CLASS="APPLICATION"
>Linuxconf</SPAN
>, to the
          entry marked <SPAN
CLASS="GUIMENUITEM"
>File Systems</SPAN
>, and click on the
          <SPAN
CLASS="GUIICON"
>+</SPAN
> to expand the tree.
        </P
><P
>          Now, click on the entry <SPAN
CLASS="GUIMENUITEM"
>Access local
            drive</SPAN
>. In the right panel, you'll see a list of the
            currently mounted filesystems. (Your new mount point isn't there
            because you haven't added it yet. That's coming up&#8230;)
        </P
><P
>          Click on the <SPAN
CLASS="GUIBUTTON"
>Add</SPAN
> button. A tab, marked
          <SPAN
CLASS="GUILABEL"
>Volume specification</SPAN
> will appear. In the first
          tabbed entry, called <SPAN
CLASS="GUILABEL"
>Base</SPAN
>, you'll be presented
          with a series of boxes to fill out, either by typing or by selecting
          from a drop-down list. Here's what the boxes represent:
        </P
><BLOCKQUOTE
><P
>            Partition: The physical location of your Windows partition (for
            example, <TT
CLASS="FILENAME"
>/dev/hda1</TT
> for the first partition on
            the first hard drive);
	      </P
><P
>            Type: The filesystem type. A Windows 98 partition, for example,
            would be <TT
CLASS="FILENAME"
>vfat</TT
>;
	      </P
><P
>            Mount point: The name of the mount point you'd chosen earlier (for
            example <TT
CLASS="FILENAME"
>/mnt/vfat</TT
>).
	      </P
></BLOCKQUOTE
><P
>          There are a few other options, as well, from various tabbed windows;
          these concern setting permissions for allowing users to access the
          partition, choosing whether to <I
CLASS="EMPHASIS"
>prevent</I
> the
          partition from being mounted at boot time, and other choices. Some
          options to pay particular attention to include:
        </P
><BLOCKQUOTE
><P
>            "Dos options": Both "default user id" and "default group id" should
            be set to your user account if you want to be able to access while
            you're logged in as user (rather than having to
            <B
CLASS="COMMAND"
>su</B
> to root, which is the default mode);
            "translation mode" should be set to "AUTO" for most purposes, rather
            than specify either "text" or "binary"; "default permission"
            specifies whether those with access to the partition can read, write
            to and/or execute files and directories on the partition. You might
            select a setting of <TT
CLASS="USERINPUT"
><B
>755</B
></TT
>, which allows read,
            write and execute for the user, and read and execute permissions to
            the group and others.
	      </P
><P
>            "Options": Unless you specify that you do not want the partition to
            be mounted when you boot your system, it isn't necessary to select
            the "User mountable" option in this tab.
	      </P
></BLOCKQUOTE
><P
>          Make your selections -- if you become stuck, choose the
          <SPAN
CLASS="GUIBUTTON"
>Help</SPAN
> button for additional pointers.
        </P
><P
>          When you're finished, select the <SPAN
CLASS="GUIBUTTON"
>Mount</SPAN
> button
          to check your new partition. You should see verification that the
          partition has been successfully mounted.
        </P
><P
>          Now, click on the <SPAN
CLASS="GUIBUTTON"
>Accept</SPAN
> button. Your new
          filesystem will be added to <TT
CLASS="FILENAME"
>/etc/fstab</TT
>.
        </P
><P
>          To acces the partition now, type <B
CLASS="COMMAND"
>cd /mnt/vfat</B
>, and
          to navigate through Windows 98's "long filename" directories, surround
          the directory in quotation marks, as in <B
CLASS="COMMAND"
>ls "Program
          Files"</B
>.
        </P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="s1-q-and-a-starting.htm"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.htm"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="s1-q-and-a-history.htm"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Starting Applications</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ch-q-and-a.htm"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Find Some Commands Fast</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>