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

Kernels & Hardware, configuring network, installing services

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

Postby mfaridi » 2017-09-23 13:31

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
mfaridi
 
Posts: 141
Joined: 2005-04-21 07:48
Location: Afghanistan

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

Postby peter_irich » 2017-09-23 16:26

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.
peter_irich
 
Posts: 1195
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation

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

Postby mfaridi » 2017-09-23 16:41

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

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

Postby mfaridi » 2017-09-23 18:11

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
mfaridi
 
Posts: 141
Joined: 2005-04-21 07:48
Location: Afghanistan

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

Postby peter_irich » 2017-09-23 19:08

I think, it is enough.

Peter.
peter_irich
 
Posts: 1195
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation

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

Postby mfaridi » 2017-09-24 06:39

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
mfaridi
 
Posts: 141
Joined: 2005-04-21 07:48
Location: Afghanistan

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

Postby p.H » 2017-09-24 07:25

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 ?
p.H
 
Posts: 177
Joined: 2017-09-17 07:12

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

Postby mfaridi » 2017-09-24 07:30

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
mfaridi
 
Posts: 141
Joined: 2005-04-21 07:48
Location: Afghanistan

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

Postby p.H » 2017-09-24 07:36

You did not clearly answer : are the filesystems already mounted ?
p.H
 
Posts: 177
Joined: 2017-09-17 07:12

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

Postby mfaridi » 2017-09-24 07:43

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
mfaridi
 
Posts: 141
Joined: 2005-04-21 07:48
Location: Afghanistan

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

Postby p.H » 2017-09-24 07:49

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.
p.H
 
Posts: 177
Joined: 2017-09-17 07:12

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

Postby mfaridi » 2017-09-25 17:49

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

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

Postby mfaridi » 2017-09-25 18:11

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
mfaridi
 
Posts: 141
Joined: 2005-04-21 07:48
Location: Afghanistan

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

Postby andre@home » 2017-09-30 07:30

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/
andre@home
 
Posts: 275
Joined: 2011-10-02 08:00


Return to System configuration

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable