Re: [SLUG] dual boot

From: Sick Twist (thesicktwist@hotmail.com)
Date: Sun Jan 22 2006 - 14:08:21 EST


>From: michael hast <evylrobot19@cox.net>
>Reply-To: slug@nks.net
>To: slug@nks.net
>Subject: Re: [SLUG] dual boot
>Date: Sun, 22 Jan 2006 11:48:54 -0600
>
>Okay. What I've got right now is two partitions. I have a ~5GB partition
>that has Debian on it. I have a ~20GB FAT32 partition that has XP Pro on
>it. I've got the M$ boot manager feeding to either XP or Debian. Either
>OS works fine on its own. The problem is, I can't figure out how to share
>files between. Should I not be able to read and write to the Windows
>partition from Debian, or will I need another FAT32 partition for that? If
>so, I'm sure I could split that 20GB in half, and set up another partiion
>that would serve the purpose. Since it's a brand new install on both, it
>shouldn't be a problem. I'm just trying to figure out what I need to do to
>make it happen.
>
>
>--
>--Michael Hast (the evyl robot)
>I'm not picking my nose. I'm pulling things out of it.
>

If you want the Windows partition to automatically mount (make it available
for reading/writing) you'll need to add a line to /etc/fstab as Paul
mentioned.

First, you'll need to know on which device file the Windows partition
resides. If you aren't sure, you can get a list of partitions by running
"fdisk -l" (without quotes) as root.

Then, create a place to mount the windows partition. It can be anywhere but
is typically within /mnt (e.g. /mnt/windows).

After that, put a line in /etc/fstab. Check out the man page for fstab for
the syntax. Basically each line is 6 fields separated by whitespace (so be
sure not to add whitespace within a single field).

Now here is the tricky part: FAT32 does not contain any permission or
ownership data for its files, so Linux has to use some arbitrarily
permissions for all of the files and directories on the FAT32 partition when
it is mounted. In fstab, you can indicate the exact owner, group and
permissions that you wish to take effect while the partition is mounted. All
of the available options are in the mount man page. (Check out the fat and
vfat sections). None of this will affect Windows in any way because it is
not actually stored in the filesystem. Here is an example what your new line
in fstab might look like:

/dev/hda1 /mnt/windows vfat defaults,uid=michael,gid=michael,umask=027,utf8
0 2

Hope that helps.
-Jonathon

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 17:01:36 EDT