[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Linux to/from Windows



On Sat, 1 Sep 2001, Oded Ben-Ami wrote:

>
> Hi all,
>
> I have a dual-boot system:
> windows on my "C" booting from the MBR
> Linux on my "D" booting from a floppy.
>
> Each time I start Linux up I do the following:
> su -
> mount /dev/hda1 /home/oded/drv_c
>
> I have two questions:
> 1) Is there a way to set this up only once so that
> I don't have to retype the above each time?
>
> 2) When in Linux, I occasionaly want to write .txt files to
> my windows environment.  For some reason I can achieve this
> only as the root.  Can I also write to my "C" as non-root?  How?

you can do it two ways (probably more), add it to your /etc/fstab file or
add it to your /etc/rc.local file (/etc/rc.d/rc.local if you are using RH
< 7.x)

Here's a line from my fstab that I use to mount my windows C: drive:

/dev/hda1      /mnt/wine/win98         auto    uid=500,gid=500 1 3


Look in your /etc/passwd file and see what your userid is (probably 500
like mine) and just change the above uid to match if necessary.  The gid
will probably be the same number, but you can double check in /etc/groups
to be sure.

The above entry will mount the partition to the specified mount point with
the user/group ownership of the uid/gid supplied.  The 1 should be left
alone, the 3 is used to determine which order the partition is mounted.
the root (/) partiton should be 1, everything else will usually be 2
unless it depends on another mount.  For example, you want to mount two
partitions, one is /mnt/stuff and one is /mnt/stuff/audio.  You cant mount
the /mnt/stuff/audio until /mnt/stuff is mounted.  /mnt/stuff would be a 2
and /mnt/stuff/audio would be a 3 in this case.

Sorry if I confused you, but check the man page for fstab and that might
be a little clearer.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]