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 DEBIAN
mount_pcfs
mount_pcfs(1M) System Administration Commands mount_pcfs(1M)
NAME
mount_pcfs - mount pcfs file systems
SYNOPSIS
mount -F pcfs [generic_options] [-o FSType-specific_options] special | mount_point
mount -F pcfs [generic_options] [-o FSType-specific_options] special mount_point
DESCRIPTION
mount attaches an MS-DOS file system (pcfs) to the file system hierarchy at the mount_point, which is the pathname of a directory. If
mount_point has any contents prior to the mount operation, these are hidden until the file system is unmounted.
If mount is invoked with special or mount_point as the only arguments, mount will search /etc/vfstab to fill in the missing arguments,
including the FSType-specific_options; see mount(1M) for more details.
The special argument can be one of two special device file types:
o A floppy disk, such as /dev/diskette0 or /dev/diskette1.
o A DOS logical drive on a hard disk expressed as device-name:logical-drive , where device-name specifies the special block device-file
for the whole disk and logical-drive is either a drive letter (c through z) or a drive number (1 through 24). Examples are
/dev/dsk/c0t0d0p0:c and /dev/dsk/c0t0d0p0:1.
The special device file type must have a formatted MS-DOS file system with either a 12-bit, 16-bit, or 32-bit File Allocation Table.
OPTIONS
generic_options
See mount(1M) for the list of supported options.
-o
Specify pcfs file system specific options. The following options are supported:
foldcase|nofoldcase
Force uppercase characters in filenames to lowercase when reading them from the filesystem. This is for compatibility with the pre-
vious behavior of pcfs. The default is nofoldcase.
FILES
/etc/mnttab table of mounted file systems
/etc/vfstab list of default parameters for each file system
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWesu |
+-----------------------------+-----------------------------+
SEE ALSO
mount(1M), mountall(1M), mount(2), mnttab(4), vfstab(4), attributes(5), pcfs(7FS)
NOTES
If the directory on which a file system is to be mounted is a symbolic link, the file system is mounted on the directory to which the sym-
bolic link refers, rather than on top of the symbolic link itself.
SunOS 5.10 24 Nov 2003 mount_pcfs(1M)