Posts: 71
jtwdyp
Joined: 08 Apr 2012
#1
After a much overdue:

Code: Select all

apt-get update
apt-get dist-upgrade
"normal user" can't:

Code: Select all

mount LABEL=<label>"
anymore...

I say"much overdue" because I hadn't found the time to upgrade in so long
that when I first:

Code: Select all

apt-get update
apt-get upgrade
my jessie/sid antiX installation, it said over 400 packages would be"not upgraded".
Where as the"apt-get dist-upgrade" process only had 1 package"not upgraded"...

But before this upgrade, Thanks to:
/ etc/udev/rules.d/99-local-disk.rules wrote:

Code: Select all

SUBSYSTEM=="block", ENV{ID_FS_LABEL}=="jSTUFF_lap-8", OWNER="jtwdyp", GROUP="jtwdyp"
SUBSYSTEM=="block", ENV{ID_FS_LABEL}=="Jimages_lap-9", OWNER="jtwdyp", GROUP="jtwdyp"
SUBSYSTEM=="block", ENV{ID_FS_LABEL}=="j10_lap-10", OWNER="jtwdyp", GROUP="jtwdyp"
And:
/ etc/fstab wrote:

Code: Select all

LABEL=jSTUFF_lap-8 /home/jtwdyp/STUFF/sda8 ext2    defaults,owner,noauto         0       0
LABEL=Jimages_lap-9 /home/jtwdyp/images/sda9 ext2    defaults,owner,noauto         0       0
LABEL=j10_lap-10 /home/jtwdyp/sda10 ext2    defaults,owner,noauto        0       0
This used to work:
/home/jtwdyp/.bash_profile wrote:

Code: Select all

mount LABEL=jSTUFF_lap-8
mount LABEL=Jimages_lap-9
mount LABEL=j10_lap-10
But now only gets errors like:

Code: Select all

LABEL=Jimages_lap-9: No such file or directory
Yet after editing my .bash_profile this:
/home/jtwdyp/.bash_profile wrote:

Code: Select all

mount /dev/disk/by-label/jSTUFF_lap-8
mount /dev/disk/by-label/Jimages_lap-9
mount /dev/disk/by-label/j10_lap-10
Works just fine. And yes, I checked"mount LABEL=Jimages_lap-9" still works
for root...

Code: Select all

JtWdyP -> ~
> df|grep images
JtWdyP -> ~
> mount LABEL=Jimages_lap-9
LABEL=Jimages_lap-9: No such file or directory
JtWdyP -> ~
> sudo mount LABEL=Jimages_lap-9
[sudo] password for root:
JtWdyP -> ~
> df|grep images
/dev/sda9                        3842100  1392288   2254640  39% /home/jtwdyp/images/sda9
JtWdyP -> ~
> 
Basically I got two questions...

1) What changed?

2) Why would:

Code: Select all

mount LABEL=<label>"
still work for root but not for user accounts when user accounts can still:

Code: Select all

mount /dev/disk/by-label/<label>"
???