Find the answer to your Linux question:
Results 1 to 4 of 4
Hello everyone ! I have three partitions in my disk (Ubuntu, Debian, and Home). When booting from Ubuntu I can perfectly get access to Debian partition and home partition. But ...
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Location
    Philippines
    Posts
    7

    Cannot mount volume

    Hello everyone !

    I have three partitions in my disk (Ubuntu, Debian, and Home).

    When booting from Ubuntu I can perfectly get access to Debian partition and home partition. But when I try to access Ubuntu or home partition from Debian I receive this message: "Cannot mount volume. You are not privileged to mount this volume."

    Can somebody out there help me to find the solution to this problem?

    Thanks!

  2. #2
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    1,939
    You need to first create a mount point (directory) in Ubuntu as root user: mkdir /mnt/debian
    then you need to mount it using the mount command, also as root., Example:

    mount -t ext3 /dev/sdX /mnt/debian

    If you do not use "ext3" type filesystem you will need to change that and the "sdX" will need to be replaced with whatever partition Debian is on.

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    When booting from Ubuntu I can perfectly get access to Debian partition and home partition. But when I try to access Ubuntu or home partition from Debian I receive this message: "Cannot mount volume. You are not privileged to mount this volume."
    Did you gain root privileges?
    Execute su - command and then mount partition.
    Code:
    su -
    mkdir /media/ubuntu
    mount -t ext3 /dev/<partition> /media/ubuntu
    cd /media/ubuntu
    ls
    You will have read only access in /media/ubuntu. You have to give ownership of /media/ubuntu to Regular User for write access.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Linux Enthusiast Mudgen's Avatar
    Join Date
    Feb 2007
    Location
    Virginia
    Posts
    623
    You can use the "user" option in /etc/fstab under Debian to enable userspace mounting of the filesystems, e.g.

    /dev/sda2 /mnt/ubuntu auto rw,noauto,user 0 0

    As devils casper sort of alludes to, your privileges on the mounted filesystem will depend on file ownerships and modes. If you make sure your UID in /etc/password is the same for your user in both Ubuntu and Debian, you'll have the same privileges in Debian on the Ubuntu stuff as you do in Ubuntu. That takes some forethought; if you just change a UID willy nilly you'll break the file ownerships of the old UID.

Posting Permissions

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