Sponsored Content
Full Discussion: win,unix
Special Forums Windows & DOS: Issues & Discussions win,unix Post 24490 by Breen on Friday 12th of July 2002 07:04:57 AM
Old 07-12-2002
Mounting Win Partations/directories on UNIX filesystems

It might pay to check up on the option syntax for the mount command for your UNIX machine as they can vary with UNIX flavour. For example, I can mount my WIN C drive on Linux machine (pationed with Windows) with the command:
mount -t vfat /dev/hda1 /dosc

So for example, if you want to mount the C drive every time you log on to your machine, you could apply the following script in your .bashrc file (for BASH) or .cshrc (for C shell) in your home directory

if test -d /dosc; then
if test -s /dosc/boot.ini; then
echo "Dosc is mounted"
else
mount -t vfat /dev/hda1 /dosc
fi
else
mkdir /dosc
mount -t vfat /dev/hda1 /dosc
fi

which mounts the C drive on to the /dosc directory, upon startup.

Try to ensure you have no spaces in your Windows directories/files, that you are mounting to the UNIX files system.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

UNIX/Win passwd synchronization utility

I know I saw a couple posts about this a long time ago, but could not find them with search. Please refresh my memory. -Chuck (1 Reply)
Discussion started by: 98_1LE
1 Replies

2. UNIX for Dummies Questions & Answers

Dummie Please Help With Unix And Win Xp

Please help : I have a question i am just starting to study UNIX and i need some advice,as my teacher isn,t the helpful type. I have just formatted my pc and partitioned it with win98 and winxp, do i need to create a partion for UNIX ??? OR is UNIX run in whatever partion i want it ???? Will... (6 Replies)
Discussion started by: DAFFYY30
6 Replies

3. UNIX for Advanced & Expert Users

mount Win folder in UNIX ??

Hello, I like to mount an windows folder on my NT4 system in my UNIX system. How can i do that, i have installed SAMBA 2.2.7 on my Unix machine so i can access the UNIX machine from the NT . Do i need to install anything on the NT machine, or anymore software on the UNIX. I tried to do an... (5 Replies)
Discussion started by: sajjan2
5 Replies

4. UNIX for Dummies Questions & Answers

move from Win -> Unix

I'd like to become a web applications developer, and the company I currently work for use Sun/Apache and Perl, CGI and Python and Oracle to develop in (which is a little unfortunate for me as I have MS IIS and ASP/VBScript and SQL from my last job). I have an old laptop I'd like to convert from... (2 Replies)
Discussion started by: dawn
2 Replies

5. Windows & DOS: Issues & Discussions

RCP from Sco Unix to Win XP

Hello, Native XP rcp does not have a password prompt as far as I can see. I require a rcp.exe to copy a file from Sco to my XP pc. I did have this program that was part of pcnfs a few years ago. I need to run a scheduled batch job from a command line being. rcp.exe 192.168.5.33 -user root... (0 Replies)
Discussion started by: phil martin
0 Replies

6. Shell Programming and Scripting

FTP file from win to UNIX

hi all, i hv written the script for file transfer when i am trying to transfer the file on windows machine only same desktop from one location to another location that is working fine but when i am trying to transfer the same to unix server it is going in infinte loop and file is also not getting... (5 Replies)
Discussion started by: ripudaman.singh
5 Replies

7. UNIX for Dummies Questions & Answers

Best way for central user managet UNIX/Linux/win?

Hey there, I want to centralize my user managet in the next days, at first i want only centralize the user from my local network and later also from my servers. So I started looking around what I could use for this and only found openLDAP. I want to manage users for linux, OSX and Windows (if... (3 Replies)
Discussion started by: dryPants
3 Replies

8. Shell Programming and Scripting

Execute a shell script in UNIX m/c from win 7 using ksh

I need to run a shell script on unix machine from windows 7. I used the "RSH" command in win XP successfully for this, But on win 7 it is not working. Can any body tell me how to run RSH on win 7 or any other command for similar use. I use the command as below rsh <unix m/c> -l <username>... (1 Reply)
Discussion started by: arup1980
1 Replies
mounting(7)						 Miscellaneous Information Manual					       mounting(7)

NAME
mounting - event signalling that a filesystem is mounting SYNOPSIS
mounting DEVICE=DEVICE MOUNTPOINT=MOUNTPOINT TYPE=TYPE OPTIONS=OPTIONS [ENV]... DESCRIPTION
The mounting event is generated by the mountall(8) daemon when it is about to mount a filesystem. mountall(8) will wait for all services started by this event to be running, all tasks started by this event to have finished and all jobs stopped by this event to be stopped before proceeding with mounting the filesystem. The DEVICE, MOUNTPOINT, TYPE and OPTIONS environment variables contain the values of the fstab(5) fields for this mountpoint. EXAMPLE
A tool that should be run before mounting the /var filesystem might use: start on mounting MOUNTPOINT=/var task SEE ALSO
mounted(7) virtual-filesystems(7) local-filesystems(7) remote-filesystems(7) all-swaps(7) filesystem(7) mountall 2009-12-21 mounting(7)
All times are GMT -4. The time now is 10:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy