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

Thread: Permissions DualBoot

  1. #1
    Join Date
    Aug 2008
    Location
    Midwest US
    Beans
    107

    Permissions DualBoot

    Embarrassed with a noob question. I recently upgraded to Ubuntu 22.04.3 LTS. It was a new install rather than an in place upgrade of my prior LTS version. It Dual Boots with an install of W10. My data is on a separate physical drive. In Linux it is mounted as /dev/sdb1 and mounts on startup with
    nosuid,nodev,nofail,x-gvfs-show
    Mount Point /mnt/Able
    Identified as Label=Able

    I can save and delete files on Able but they are owned by root:root even though I am logged in as user scott.
    I tried
    chown -R scott:scott Able
    but this didn't change ownership of directories or files.

    I would like to configure the drive to mount at start and have it owned by user scott.

    Thank you in advance for any help or comments.
    scott

  2. #2
    Join Date
    Jun 2014
    Beans
    7,782

    Re: Permissions DualBoot

    Is your external drive formatted with an ntfs filesystem? Standard ownershipt and permissions for Linux don't mean anything to windows. You haven't indicated the filesystem type so this is a guess. If it is ntfs and you want it mounted on boot, you need a proper entry in the /etc/fstab file. You can search the forums here (or online) to get examples/instructions as to what entry will work for you.
    Last edited by yancek; October 31st, 2023 at 11:20 PM.

  3. #3
    Join Date
    Mar 2010
    Location
    /home
    Beans
    9,727
    Distro
    Xubuntu

    Re: Permissions DualBoot

    If you show us the output of these commands we will be more enlightened:

    Code:
    lsblk -f
    
    cat /etc/fstab
    When replying, please use Go Advanced and wrap the output with # tags.

  4. #4
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Permissions DualBoot

    I create an empty folder to make permanent mount points for data that I am going to use to share between my dual-boot.

    Here is my fstab file:
    Code:
    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    # / is rpool on /dev/disk/by-id/nvme-Samsung_SSD_990_PRO_2TB_S73WNJ0W310240K-part3 during migration
    # /home is hpool on /dev/disk/by-id/nvme-Samsung_SSD_990_PRO_2TB_S73WNJ0W310240K-part5
    # bpool is /boot on nvme-Samsung_SSD_990_PRO_2TB_S73WNJ0W310240K-part2
    # dpool is /dpool on nvme-PCIe_SSD_23011650000183-part1
    # kpool is /kpool on nvme-Samsung_SSD_990_PRO_2TB_S73WNJ0W310240K-part6  & nvme-Samsung_SSD_990_PRO_2TB_S73WNJ0W618194B-part1
    #
    UUID=0A24D9F224D9E0AD             /home/mafoelffen/WIN_G  ntfs  defaults,uid=1000,gid=1000,fmask=0002,dmask=0002,rw   0   0 
    UUID=828C01738C016351             /Media_H                ntfs  defaults,windows_names,uid=1000,gid=1000,fmask=0002,dmask=0002,rw   0   0 
    # EFI at /dev/disk/by-id/nvme-Samsung_SSD_990_PRO_2TB_S73WNJ0W310240K-part1
    /dev/disk/by-uuid/CBE6-0806 /boot/efi vfat defaults 0 0
    /boot/efi/grub /boot/grub none defaults,bind 0 0
    # swap at /dev/disk/by-id/nvme-Samsung_SSD_990_PRO_2TB_S73WNJ0W310240K-part4
    /dev/disk/by-uuid/943f90ef-079f-4a38-840f-f786d19127ab none swap discard 0 0
    (Note that this is ZFS-On-Root, and that their are really more than 11 disks on that system, but there are only 4 mounts needed for it in the fstab...)

    Note that with that, I had created two folders: /home/mafelffen/WIN_G & /Media_H

    Note that with my mount options, my user is UID 1000. I have full access rights and permissions to those mounts.

    I do not recommend that people create permanent mounts within the /mnt or /media folders. Those two folders are meant for temporary mounts, and if you have to use some utilities that use those folders (usually /mnt), there are sometimes troubles that arise from that practice... That is why I recommend that people create new folders for their mountpoints.
    Last edited by MAFoElffen; October 31st, 2023 at 07:35 PM.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  5. #5
    Join Date
    Aug 2008
    Location
    Midwest US
    Beans
    107

    Re: Permissions DualBoot

    Hi - MAFoElffen, Rubi1200 & yancek
    and thanks for the replies.

    The partition is on an internal SSD that has an NTFS file system. I'll start learning about how to make a proper entry in the /etcx/fstab file.
    In response to lsblk -f (loopXX responses removed)

    sda
    ├─sda1
    │ ntfs System Reserved
    │ 1EC82108C820E02F
    ├─sda2
    │ ntfs Win10 9C0E288B0E28608E
    ├─sda3

    ├─sda5
    │ swap 1 b9799b43-e426-4676-95e8-f22a9cad97b9 [SWAP]
    ├─sda6
    │ ext4 1.0 LinuxA
    │ 86989ae1-3d88-44bb-8786-e424ca4e9119 38.6G 30% /var/snap/firefox/common/host-hunspell
    │ /
    ├─sda7
    │ ext4 1.0 LinuxB
    │ c4dc6ede-3891-46ef-bf22-59a2c76ce15e
    └─sda8
    ext4 1.0 LinuxC
    66b48dea-f43b-471d-837f-c4affc537825
    sdb
    ├─sdb1
    │ ntfs Able DAFC70C6FC709E87 158.8G 20% /mnt/Able
    └─sdb2
    ntfs Games 9E423E97423E73DD
    sdc
    ├─sdc1

    └─sdc2
    ntfs Charlie
    00C47A20C47A185C 552.1G 41% /mnt/Charlie
    sdd
    ├─sdd1

    ├─sdd2

    └─sdd3

    sde
    ├─sde1
    │ ntfs Delta 382A7BCF2A7B8920
    └─sde2
    ext4 1.0 Echo 228286e2-2c5d-4cdf-818f-b0dea18327c8
    sr0

    In response to cat /etc/fstab (Response lines starting with # removed)
    UUID=86989ae1-3d88-44bb-8786-e424ca4e9119 / ext4 errors=remount-ro 0 1
    # swap was on /dev/sda5 during installation
    UUID=b9799b43-e426-4676-95e8-f22a9cad97b9 none swap sw 0 0
    LABEL=Able /mnt/Able auto nosuid,nodev,nofail,x-gvfs-show 0 0
    LABEL=Charlie /mnt/Charlie auto nosuid,nodev,nofail,x-gvfs-show 0 0

    Thanks again for your assistance!
    scott

  6. #6
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Permissions DualBoot

    Please visit the "CODE Tags" link in my signature line to edit your last post. Just to try to keep you out of troubles. Read "posting Guidelines" > #3, also in my signature line, for the reasons why...

    Try changing those two lines in your fstab to this:
    Code:
    LABEL=Able      /mnt/Able     ntfs     defaults,windows_names,uid=1000,gid=1000,fmask=0002,dmask=0002,rw 0 0
    LABEL=Charlie   /mnt/Charlie  ntfs     defaults,windows_names,uid=1000,gid=1000,fmask=0002,dmask=0002,rw 0 0
    Then do
    Code:
    sudo mount -a
    To remount your mounts from fstab, that way you do not have to reboot to test them.

    Tell us how that goes.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  7. #7
    #&thj^% is offline I Ubuntu, Therefore, I Am
    Join Date
    Aug 2016
    Beans
    Hidden!

    Re: Permissions DualBoot

    Quote Originally Posted by MAFoElffen View Post
    I do not recommend that people create permanent mounts within the /mnt or /media folders. Those two folders are meant for temporary mounts, and if you have to use some utilities that use those folders (usually /mnt), there are sometimes troubles that arise from that practice... That is why I recommend that people create new folders for their mountpoints.
    Wise Words to live by, and I do the same.

  8. #8
    Join Date
    Aug 2008
    Location
    Midwest US
    Beans
    107

    Re: Permissions DualBoot

    Ok, changing fstab made the Able & Charlie partitions disappear from the "Other Locations" in FILES. They do appear as folders under "Computer/mnt". The few files & folders I checked permissions on describe 'scott' is the owner & group rather than 'root'. Thank you for helping solve the ownership question I had. How do I go about making them subfolders in "Home" or does that seem unnecessary if I make 'bookmarks' of them in FILES?

    Also I tried
    Code:
    gksu gedit /etc/fstab
    and got a command not found message. Using
    Code:
    sudo gedit /etc/fstab
    gave warnings, so I guess I should learn the proper way to edit fstab.
    Using
    Code:
    sudo mount -a
    didn't seem to work but rebooting did.

    Thank you again, and if I am still not using tags correctly or adhering to posting guidelines please let me know.
    scott

  9. #9
    Join Date
    Mar 2010
    Location
    /home
    Beans
    9,727
    Distro
    Xubuntu

    Re: Permissions DualBoot

    In most cases, using sudo and the nano editor should suffice when editing the types of files mentioned here.

    For example:

    Code:
    sudo nano /etc/fstab

  10. #10
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 24.04 Noble Numbat

    Re: Permissions DualBoot

    Assuming you have not changed the default editor set in your .bashrc file you could use command
    Code:
    sudoedit /etc/fstab
    That will by default open the file in nano.

    You can change the editor used by that command by editing the lines in .bashrc
    # set text editor to use with sudoedit command
    export EDITOR="nano"

    changing nano to gedit, mousepad or whatever GUI text editor you prefer.

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
  •