Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
Hi, we have a requirement like below. we have linux server . and we have one windows system. on windows we have one directory called 'c:\images' our requirement is to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2006
    Posts
    14

    how to map windows OS directory to linux


    Hi,
    we have a requirement like below.
    we have linux server . and we have one windows system.

    on windows we have one directory called 'c:\images'

    our requirement is to map this directory on linux server with the following name '/home/images'.

    can anyone help me with this?

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,441
    On the windows machine share this directory
    and on the linux box, install the cifs-utils package, create the directory /home/images and mount the directory
    https://access.redhat.com/solutions/448263
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Nov 2006
    Posts
    14
    Hi,
    i am getting the below error message.

    we are using redhat 6.5
    [root@fakoranew /]# mount -t cifs -o username=confadmin, password=thingschanged, domain=fakhruddin.local //192.168.100.8/c:/fgcsoft/photo /mnt
    Usage: mount -V : print version
    mount -h : print this help
    mount : list mounted filesystems
    mount -l : idem, including volume labels
    So far the informational part. Next the mounting.
    The command is `mount [-t fstype] something somewhere'.
    Details found in /etc/fstab may be omitted.
    mount -a [-t|-O] ... : mount all stuff from /etc/fstab
    mount device : mount device at the known place
    mount directory : mount known device here
    mount -t type dev dir : ordinary mount command
    Note that one does not really mount a device, one mounts
    a filesystem (of the given type) found on the device.
    One can also mount an already visible directory tree elsewhere:
    mount --bind olddir newdir
    or move a subtree:
    mount --move olddir newdir
    One can change the type of mount containing the directory dir:
    mount --make-shared dir
    mount --make-slave dir
    mount --make-private dir
    mount --make-unbindable dir
    One can change the type of all the mounts in a mount subtree
    containing the directory dir:
    mount --make-rshared dir
    mount --make-rslave dir
    mount --make-rprivate dir
    mount --make-runbindable dir
    A device can be given by name, say /dev/hda1 or /dev/cdrom,
    or by label, using -L label or by uuid, using -U uuid .
    Other options: [-nfFrsvw] [-o options] [-p passwdfd].
    For many more details, say man 8 mount .

  4. $spacer_open
    $spacer_close
  5. #4
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,441
    There are two issues with your mount command:
    - The options are a comma separated list, not a comma-whitespace separated list
    - After the hostname/IP of your windows box use the sharename, not the whole path

    P.S.: I hope the password is not the real password
    You must always face the curtain with a bow.

  6. #5
    Just Joined!
    Join Date
    Nov 2006
    Posts
    14
    Hi, i successfully execute the command., now how i mapped Windows DIRECTORY in linux as '/home/images'.?

    i means i execute the above command and its executed successfully but how i make link between windows share directory to linux '/home/images' directory?

  7. #6
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,441
    Well, the mount command you showed above mounts the windows share to /mnt

    unmount /mnt and instead use /home/images.
    The directory needs to be created first.
    You must always face the curtain with a bow.

  8. #7
    Just Joined!
    Join Date
    Nov 2006
    Posts
    14
    hi All,
    Any update.

  9. #8
    Just Joined!
    Join Date
    Nov 2006
    Posts
    14
    Plase reply

  10. #9
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,441
    I explained two steps.
    - create a directory
    - mount the cifs

    What is the current status, where do you need help?
    You must always face the curtain with a bow.

  11. #10
    Just Joined!
    Join Date
    Nov 2006
    Posts
    14

    how to map widows shared directory to linux

    hi,
    we have one shared directory on widnows 2003 server called "c:/photo".
    we would like to share this directory on linux server (redhat 6.5 64bit) as /home/images/.

    please help me

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •