Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: "Places" mount vs. Terminal mount

  1. #1
    Join Date
    Aug 2010
    Location
    Fort Myers, Florida
    Beans
    84
    Distro
    Ubuntu 10.04 Lucid Lynx

    "Places" mount vs. Terminal mount

    How is mounting from the Places menu different than a command line mount?

    I have an NTFS volume that can be mounted either way (must be root from command line). If I mount it from Places, I can delete files/folders and they go to the trash. But if I mount it from command line..

    sudo mount /dev/sdc1 /media/test

    Then (when mounted from command line) if I delete a file/folder it prompts me to skip or discard it immediately. It doesn't use the .Trash folder.

    I want the command line mount to work the same as the Places mount.
    Last edited by UncleBoarder; September 12th, 2010 at 03:18 AM. Reason: readablity

  2. #2
    Join Date
    Apr 2009
    Location
    Under a Tree on the Beach
    Beans
    914
    Distro
    Ubuntu Development Release

    Re: "Places" mount vs. Terminal mount

    Can you mount it without using "sudo"?
    akaKingESS----------------------------------------
    Ubuntu User # 27653 |Linux user # 491157 | LPI # 183649
    Please mark threads as solved...

  3. #3
    Join Date
    Aug 2010
    Location
    Fort Myers, Florida
    Beans
    84
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: "Places" mount vs. Terminal mount

    No, I get an error... "only root can do that".

  4. #4
    Join Date
    Apr 2010
    Location
    England
    Beans
    3,286

    Re: "Places" mount vs. Terminal mount

    I assume that mounting through nautilus passes a bunch of default arguments to the mount command, but mounting by commandline relies on you giving the arguments.

    Take a look at /etc/mtab the next time you mount something through Nautilus and see what arguments it was mounted with. Once you know what arguments you should mount the partition with, you can mount it exactly the same way with the mount command.
    http://xkcd.com/293/
    There are 10 kinds of people in this world: Those who understand ternary, those who don't, and those who confuse it with binary.

  5. #5
    Join Date
    Aug 2010
    Location
    Fort Myers, Florida
    Beans
    84
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: "Places" mount vs. Terminal mount

    That sounds very promising but can you give me a hand with syntax?

    Here's the mtab statement when mounted via command line...

    /dev/sdc1 /media/temp fuseblk rw,nosuid,nodev,allow_other,blksize=4096 0 0

    And here's the mtab when mounted via Places...

    /dev/sdc1 /media/Backup fuseblk rw,nosuid,nodev,allow_other,blksize=4096,default_p ermissions 0 0

    So apparently I'm missing "default_permissions".

    What's the syntax to add default_permissions to my command line mount statement?

  6. #6
    Join Date
    Apr 2010
    Location
    England
    Beans
    3,286

    Re: "Places" mount vs. Terminal mount

    Code:
    sudo mount -t ntfs-3g /dev/sdc1 /media/temp -o rw,nosuid,nodev,allow_other,default_permissions
    Should do it. Assuming it's an ntfs partition.
    http://xkcd.com/293/
    There are 10 kinds of people in this world: Those who understand ternary, those who don't, and those who confuse it with binary.

  7. #7
    Join Date
    Aug 2010
    Location
    Fort Myers, Florida
    Beans
    84
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: "Places" mount vs. Terminal mount

    It does look closer to the Places mount. Same options when I mount it via command line but interestingly "allow_other" is included twice. No idea why.

    AND... more importantly... it doesn't fix the problem.

    When mounted via command line, I can't hit delete to delete a folder. When I do, I get...

    "Cannot move file to trash, do you want to delete immediately? [Cancel] [Skip] [Delete]

    But it continues to work properly if mounted via Places. And now both mount methods show the same mounted options in mtab.

    Any ideas?
    Last edited by UncleBoarder; September 13th, 2010 at 12:24 AM. Reason: clarification

  8. #8
    Join Date
    Feb 2008
    Location
    Texas City, Texas
    Beans
    830
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: "Places" mount vs. Terminal mount

    I noticed that the two methods are mounting to different mount points, one to /media/temp and the other to /media/Backup. Have you looked at the permissions of those two mount points to see what is different?
    Break it, fix it, learn something.
    People who never make mistakes seldom make anything!

  9. #9
    Join Date
    Apr 2010
    Location
    England
    Beans
    3,286

    Re: "Places" mount vs. Terminal mount

    Maybe it has something to do with the ownership of the files. How does the ls -l output look for the respective directories contents?

    (mount the partition one way, open a terminal and "cd" to the folder, then run "ls -l", then unmount the partition, mount it the other way and use "ls -l" again)

    If root owns the files, or the file permissions are different for the command line mounted partition, try mounting with this instead:

    Code:
    sudo mount -t ntfs-3g /dev/sdc1 /media/temp -o rw,nosuid,nodev,default_permissions,uid=1000,gid=1000,umask=002
    Assuming that your uid is 1000.
    http://xkcd.com/293/
    There are 10 kinds of people in this world: Those who understand ternary, those who don't, and those who confuse it with binary.

  10. #10
    Join Date
    Aug 2010
    Location
    Fort Myers, Florida
    Beans
    84
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: "Places" mount vs. Terminal mount

    It works... testing further.
    Last edited by UncleBoarder; September 14th, 2010 at 09:21 AM.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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