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
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
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
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
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
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
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
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
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
LEARN ABOUT XFREE86
mount.nfs
MOUNT.NFS(8) System Manager's Manual MOUNT.NFS(8)
NAME
mount.nfs, mount.nfs4 - mount a Network File System
SYNOPSIS
mount.nfs remotetarget dir [-rvVwfnsh ] [-o options]
DESCRIPTION
mount.nfs is a part of nfs(5) utilities package, which provides NFS client functionality.
mount.nfs is meant to be used by the mount(8) command for mounting NFS shares. This subcommand, however, can also be used as a standalone
command with limited functionality.
remotetarget is a server share usually in the form of servername:/path/to/share. dir is the directory on which the file system is to be
mounted.
Under Linux 2.6.32 and later kernel versions, mount.nfs can mount all NFS file system versions. Under earlier Linux kernel versions,
mount.nfs4 must be used for mounting NFSv4 file systems while mount.nfs must be used for NFSv3 and v2.
OPTIONS
-r Mount file system readonly.
-v Be verbose.
-V Print version.
-w Mount file system read-write.
-f Fake mount. Don't actually call the mount system call.
-n Do not update /etc/mtab. By default, an entry is created in /etc/mtab for every mounted file system. Use this option to skip making
an entry.
-s Tolerate sloppy mount options rather than fail.
-h Print help message.
nfsoptions
Refer to nfs(5) or mount(8) manual pages.
NOTE
For further information please refer nfs(5) and mount(8) manual pages.
FILES
/etc/fstab file system table
/etc/mtab table of mounted file systems
SEE ALSO
nfs(5), mount(8),
AUTHOR
Amit Gud <agud@redhat.com>
5 Jun 2006 MOUNT.NFS(8)