Results 1 to 3 of 3

Thread: Disable access to windows partition from Ubuntu

  1. #1
    Join Date
    May 2011
    Beans
    2

    Red face Disable access to windows partition from Ubuntu

    I have a dual boot system booting Ubuntu 10.04 and Windows 7. I'm using grub2 to boot Windows 7. I would like to completely deny access to the Windows partitions in Ubuntu, while still being able to access my USB drives and my network drives.


    Thanks,
    Brian

  2. #2
    Join Date
    Mar 2008
    Location
    Cloud 9
    Beans
    1,428
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Disable access to windows partition from Ubuntu

    I don't believe you can completely disable access, (unless you uninstall ntfs-3g) but you can disable access by anyone but administrator. You'll need to edit /etc/fstab and stop auto-mount and require root permission.

  3. #3
    Join Date
    Dec 2009
    Beans
    5,304

    Re: Disable access to windows partition from Ubuntu

    So to make that happen:

    [1] Create a mount point for the ntfs partition not to mount to ( play along please ):
    Code:
    sudo mkdir /Win7
    [2] Add a line to the end of /etc/fstab:
    Code:
    UUID=51310292633543B0  /Win7       ntfs  noauto  0  0
    Note: To find the right UUID number run the following command:
    Code:
    sudo blkid -c /dev/null
    [3] Run the following command:
    Code:
    sudo mount -a
    "mount -a" won't actually do anything on a partition with a noauto option but running it will produce errors if you made a typo somewhere.

    The next time you boot there will be a folder at /Win7 but it will be empty. The only way to mount it is from the command line by root.

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
  •