Exact mounting command as if clicking drive using Nautilus Ubuntu

Posted on 2011-04-26
Last Modified: 2012-05-11
I want to know the exact command of mounting Windows from Ubuntu 10.10 as if I am clicking drive using Nautilus. Logs in syslog:

Apr 27 06:47:44 laptop1 ntfs-3g[2879]: Mounted /dev/sda3 (Read-Write, label "", NTFS 3.1)

Apr 27 06:47:44 laptop1 ntfs-3g[2879]: Cmdline options: rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,dmask=0077,fmask=0177

Apr 27 06:47:44 laptop1 ntfs-3g[2879]: Mount options: rw,nosuid,nodev,uhelper=udisks,allow_other,nonempty,relatime,fsname=/dev/sda3,blkdev,blksize=4096,default_permissions

Question by:chainfear
    LVL 38

    Expert Comment

    1. Make sure you have samba installed

    2. Make a directoy for the mountpoint:
    mkdir /mnt/pcshare

    3. Mount the share:
    smbmount //winpc/shared /mnt/pcshare -o username=user,password=pass,rw
    mount -t smbfs -o username=<username>,password=<password> //winpc/shared /mnt/pcshare
    LVL 31

    Accepted Solution

    Try this one

    mount -t ntfs-3g -o rw,nosuid,nodev,uhelper=udisks,uid=1000,guid=1000,dmask=0077,fmask=0177 /dev/sda3 /media
    LVL 38

    Expert Comment

    By the way, here is some more details:
    LVL 31

    Expert Comment

    You know you can first check if you have mount point /media.

    Before continuing with it, make sure there is nothing in /media directory

    The only thing that is not visible from your log file is the mount point (mounting directory).  You don't even have to give all the options.

    mount -t ntfs-3g -o rw,nosuid,nodev /dev/sda3 /media

    Open in new window

    Your windows partition should be mounted at /media.

    cd /media

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
    Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now