Krisbee wrote: 
> 
> 10. condition -  try to mount /dev/sdb1 on /storage when partition is
> already mounted.
> result -  error message mount: /dev/sdb1 is already mounted or
> /storage busy /dev/sdb1 is already mounted on /mnt/disk2
> 
> 11.  condition - umount previous mount of /dev/sdb1  but do not remove,
> then mount on another point. 
> 
> result : see screen gab
> 
> 15799
> 
> > 
Code:
--------------------
  >   >  [fedora@squeeze-v ~]$ mount | grep sdb1
  > /dev/sdb1 on /storage type ext4 (rw,relatime,data=ordered)
  > [fedora@squeeze-v ~]$ cat /etc/fstab
  > 
  > #
  > # /etc/fstab
  > # Created by anaconda on Thu Mar 20 15:15:11 2014
  > #
  > # Accessible filesystems, by reference, are maintained under '/dev/disk'
  > # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
  > #
  > /dev/mapper/fedora-root /                       ext4    defaults        1 1
  > UUID=25c5c703-fc86-4d19-b7f8-23e845f2cd02 /boot                   ext4    
defaults        1 2
  > /dev/mapper/fedora-swap swap                    swap    defaults        0 0
  > # start added by squeeze-web-gui-lua
  > 192.168.0.20:/media/allmusic/ToFile     /mnt/disk1      nfs4    
ro,rsize=8192,wsize=8192        0       0
  > /dev/sdb1       /storage        ext4    defaults,nofail 0       0
  > /dev/sdb1       /mnt/disk2      ext4    ro      0       0
  > # end added by squeeze-web-gui-lua
--------------------
> > 
> 
> What happens if left like this and you reboot? Answer: see screen
> grab:
> 
> 15800
> 
> > 
Code:
--------------------
  >   > fedora@squeeze-v ~]$ mount | grep sdb
  > /dev/sdb1 on /mnt/disk2 type ext4 (ro,relatime,data=ordered)
  > [fedora@squeeze-v ~]$ cat /etc/fstab
  > 
  > #
  > # /etc/fstab
  > # Created by anaconda on Thu Mar 20 15:15:11 2014
  > #
  > # Accessible filesystems, by reference, are maintained under '/dev/disk'
  > # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
  > #
  > /dev/mapper/fedora-root /                       ext4    defaults        1 1
  > UUID=25c5c703-fc86-4d19-b7f8-23e845f2cd02 /boot                   ext4    
defaults        1 2
  > /dev/mapper/fedora-swap swap                    swap    defaults        0 0
  > # start added by squeeze-web-gui-lua
  > 192.168.0.20:/media/allmusic/ToFile     /mnt/disk1      nfs4    
ro,rsize=8192,wsize=8192        0       0
  > /dev/sdb1       /storage        ext4    defaults,nofail 0       0
  > /dev/sdb1       /mnt/disk2      ext4    ro      0       0
  > # end added by squeeze-web-gui-lua
--------------------
> > 
> 
> Mounts are swapped over. What is the expected/desired behaviour?

Thinking about this case - I'm not sure what the right UI behaviour is. 
Do we screen out the possibility of this or leave it to the user to end
up with undefinded results.

What we could do is only list available local file locations if they are
not already in the mount list (either actively mounted or in fstab, but
not mounted).  This would prevent trying to mount the same partition
twice and ending up with a random one of them working.  I'm not sure
whether we should do this though as they may be reasons why a user wants
to temporarily unmount a filesystem and mount it elsewhere.

Views?


------------------------------------------------------------------------
Triode's Profile: http://forums.slimdevices.com/member.php?userid=17
View this thread: http://forums.slimdevices.com/showthread.php?t=99395

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to