On Wed, Jul 17, 2002 at 07:17:39AM +0530, Nimish wrote:
> I want to automatically mount the windows partition within 
> linux, and unmount it once I exit linux.   Once  I  boot I 
> have to use the terminal screen to manually boot the part-
> ition using mount /dev/hda1 /mnt/win  where I have created 
> win as the directory in mnt.
> nimish
> 

Nimish,

1.  It is always better to give the full syntax of mount rather
than leaving things to  auto-detect for mount. Makes it faster.
The standard format for mount is:  mount -t type device dir
viz: mount -t vfat(or msdos) /dev/hda1 /mnt/win

2.  For mounting any partition at boot it should be through the
file /etc/fstab.I do not recommend Win partitions to be mounted
at boot unless it is frequently used ...  Besides,  if you have 
locate database set, the file becomes excessively large ... The
syntax for a user mountable fstab entry, suitable  for a single
user system is something like:

/dev/hda1  /mnt/win  vfat   noauto,defaults,user,gid=200  2 2
 
Please note that "noauto" has been set. So it will NOT be moun-
ted at boot time, but users belonging to gid=200 can  mount  it
at any time with "mount /mnt/win" command. Normally, gid=200 is
set for a group called "msdos". Please check up your /etc/group
for gid entry for "msdos". You may add user names to this like:

msdos:x:200:root,tom,dick,harry

3.   If yours is a mutiuser box, you cannot use above technique
Mount it once as root, at boot time through /etc/fstab. viz.

/dev/hda1  /mnt/win  vfat   auto,defaults   2 2

HTH

Bish


--
:
####[ Linux One Stanza Tip (LOST) ]###########################

Sub : Confirming that network is up and okay         LOST #085

a) #ifconfig ... confirms that interface is configured
b) To re-confirm that the interface has not dropped dead (e.g.
   on cable) ping the other host as well.
   
####<[EMAIL PROTECTED]>#######################
:



-------------------------------------------------------
This sf.net email is sponsored by: Jabber - The world's fastest growing 
real-time communications platform! Don't just IM. Build it in! 
http://www.jabber.com/osdn/xim
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to