Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

2 HDD, 2 OS, access to each data on HDDs.

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
mfaridi
Posts: 141
Joined: 2005-04-21 07:48
Location: Afghanistan
Contact:

2 HDD, 2 OS, access to each data on HDDs.

#1 Post by mfaridi »

I have 2 HDDs on my Desktop system. I install Debian on first HDD and install Linux Mint on second HDD.
When I boot system by Linux Mint , I can access Data on Debian HDD and I can browse them .
when I boot by Debian , I can see data on Linux mint HDD.
what I must do , when I want linux mint can not access to Debian data ??
I need when I boot linux Mint , users on Linux Mint can not access on Debian HDD.
what permission I must set in Debian ,other Linux users can not access them and browse them ?
life is linux and debian is live

peter_irich
Posts: 1403
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation
Been thanked: 11 times

Re: 2 HDD, 2 OS, access to each data on HDDs.

#2 Post by peter_irich »

In any case, on Linux Mint all records for the partitions on the disk with Debian must be excluded from /etc/fstab or must be with "nouser" option,
see "man mount".

Peter.

mfaridi
Posts: 141
Joined: 2005-04-21 07:48
Location: Afghanistan
Contact:

Re: 2 HDD, 2 OS, access to each data on HDDs.

#3 Post by mfaridi »

peter_irich wrote:In any case, on Linux Mint all records for the partitions on the disk with Debian must be excluded from /etc/fstab or must be with "nouser" option,
see "man mount".

Peter.
Thanks,
I must edit fstab in Linux Mint or Debian ?
I want user in Linux Mint can not access Debian HDD and content .
life is linux and debian is live

mfaridi
Posts: 141
Joined: 2005-04-21 07:48
Location: Afghanistan
Contact:

Re: 2 HDD, 2 OS, access to each data on HDDs.

#4 Post by mfaridi »

This is my fstab on Linux Mint.

Code: Select all

# /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>
# / was on /dev/sda1 during installation
UUID=768a4eeb-1e75-4405-8037-65288f64406c /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=2d9b1ccb-f2fc-4142-b374-3e5ccecc9bf4 none            swap    sw              0       0
life is linux and debian is live

peter_irich
Posts: 1403
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation
Been thanked: 11 times

Re: 2 HDD, 2 OS, access to each data on HDDs.

#5 Post by peter_irich »

I think, it is enough.

Peter.

mfaridi
Posts: 141
Joined: 2005-04-21 07:48
Location: Afghanistan
Contact:

Re: 2 HDD, 2 OS, access to each data on HDDs.

#6 Post by mfaridi »

peter_irich wrote:I think, it is enough.

Peter.
But when I open file manager in Linux Mint , I can see Debian HDD and I can use them and browse data on Debian HDD
life is linux and debian is live

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: 2 HDD, 2 OS, access to each data on HDDs.

#7 Post by p.H »

Mounting a filesystem normally requires root privileges.
Do you mean that the Debian filesystem are mounted by default or that you can mount them as a simple user ? If the latter, are you required to type a password ?

mfaridi
Posts: 141
Joined: 2005-04-21 07:48
Location: Afghanistan
Contact:

Re: 2 HDD, 2 OS, access to each data on HDDs.

#8 Post by mfaridi »

p.H wrote:Mounting a filesystem normally requires root privileges.
Do you mean that the Debian filesystem are mounted by default or that you can mount them as a simple user ? If the latter, are you required to type a password ?
when I boot by Mint , at file manger I can see partitions of Debian HDD and when I click on them , file manger can open Debian HDD , and when I open Debian HDD , system do not ask password
life is linux and debian is live

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: 2 HDD, 2 OS, access to each data on HDDs.

#9 Post by p.H »

You did not clearly answer : are the filesystems already mounted ?

mfaridi
Posts: 141
Joined: 2005-04-21 07:48
Location: Afghanistan
Contact:

Re: 2 HDD, 2 OS, access to each data on HDDs.

#10 Post by mfaridi »

p.H wrote:You did not clearly answer : are the filesystems already mounted ?
when I click on icon of Debian HDD , file manger open it , and it can mount it .
life is linux and debian is live

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: 2 HDD, 2 OS, access to each data on HDDs.

#11 Post by p.H »

That still does not answer the question.
You cannot open then mount.
First, mount. Then, open.
Actually there is no such thing as "open" for a filesystem. Once mounted, you just browse it.
I hate GUIs for that they hide what's really happening.

mfaridi
Posts: 141
Joined: 2005-04-21 07:48
Location: Afghanistan
Contact:

Re: 2 HDD, 2 OS, access to each data on HDDs.

#12 Post by mfaridi »

when I type this command in linux Mint

Code: Select all

mount
I see

Code: Select all

mostafa@mostafa-System-Product-Name ~ $ mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=4030176k,nr_inodes=1007544,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=817264k,mode=755)
/dev/sdb1 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (rw,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb,release_agent=/run/cgmanager/agents/cgm-release-agent.hugetlb)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset,clone_children)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids,release_agent=/run/cgmanager/agents/cgm-release-agent.pids)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event,release_agent=/run/cgmanager/agents/cgm-release-agent.perf_event)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=12638)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
cgmfs on /run/cgmanager/fs type tmpfs (rw,relatime,size=100k,mode=755)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=817264k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
/dev/sr0 on /media/mostafa/Debian 9.1.0 amd64 n type iso9660 (ro,nosuid,nodev,relatime,uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500,uhelper=udisks2)
life is linux and debian is live

mfaridi
Posts: 141
Joined: 2005-04-21 07:48
Location: Afghanistan
Contact:

Re: 2 HDD, 2 OS, access to each data on HDDs.

#13 Post by mfaridi »

When I open Nemo File manger I see this
https://www.imageupload.co.uk/image/DauW
and when I click on Debian HDD icon , they mount and I see on dektop
this
https://www.imageupload.co.uk/image/Daum
when I right click on Debian HDD ,I have option for umount
life is linux and debian is live

andre@home
Posts: 398
Joined: 2011-10-02 08:00

Re: 2 HDD, 2 OS, access to each data on HDDs.

#14 Post by andre@home »

The 1st is the file manager and the 2nd look a part of the desktop?
What do you want to prove or say with it?
They are not comparable...isn't it?
Post the output of all disks like here:
https://unix.stackexchange.com/question ... k-in-linux
http://www.binarytides.com/linux-comman ... artitions/

Post Reply