You are not logged in.

#1 2014-09-08 20:36:07

Latios
Member
Registered: 2011-04-09
Posts: 18

Initscripts system - User cannot mount removable disks

I changed my system to Initscripts-Fork init

Now, when i plug in a removable disk, it is autodetected by KDE but cannot be mounted. Error messages when i try to mount it from KDE are :

Plasma device notifier : Could not mount the following device : KFAT1

Dolphin : An error occurred while accessing 'Home', the system responded: An unspecified error has occurred: Not authorized to perform operation



my /etc/group : (user running KDE is ash)

root:x:0:root
bin:x:1:root,bin,daemon
daemon:x:2:root,bin,daemon
sys:x:3:root,bin
adm:x:4:root,daemon
tty:x:5:
disk:x:6:root,ash
lp:x:7:daemon,ash
mem:x:8:ash
kmem:x:9:
wheel:x:10:root,ash
ftp:x:11:
mail:x:12:
uucp:x:14:
log:x:19:root
utmp:x:20:
locate:x:21:
rfkill:x:24:ash
smmsp:x:25:
http:x:33:ash
games:x:50:ash
lock:x:54:
uuidd:x:68:
dbus:x:81:ash
network:x:90:ash
video:x:91:ash
audio:x:92:ash
optical:x:93:ash
floppy:x:94:ash
storage:x:95:ash
scanner:x:96:ash
power:x:98:ash
nobody:x:99:
users:x:100:ash
systemd-journal:x:190:
polkitd:x:102:
mysql:x:89:ash
avahi:x:84:
kdm:x:135:ash
ash:x:1000:
kvm:x:78:
systemd-journal-gateway:x:191:
systemd-timesync:x:192:
systemd-network:x:193:
systemd-bus-proxy:x:194:
systemd-resolve:x:195:
colord:x:124:
git:x:999:
lxdm:x:121:
input:x:97:

I installed from AUR :
dbus-nosystemd
eudev
eudev-systemdcompat
initscripts-fork
sysvinit
polkit-consolekit
udisks2-nosystemd
upower-nosystemd

Daemons i run (at the moment by starting them manually with rc.d) :
rc.d/dbus
rc.d/kdm - but same happens if i use KDE by running startx as ash in the tty



Am i missing a package or a setting ?

Last edited by Latios (2014-09-08 20:39:21)

Offline

#2 2014-09-13 15:00:21

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,396

Re: Initscripts system - User cannot mount removable disks

It will be hard to tell with so many changed packages, so let's do some basic troubleshooting first and see if things work when done manually.

please post the content of your /etc/fstab.

Try mounting the device manually from a terminal both as user and root, post the outputs.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2014-09-13 17:09:42

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: Initscripts system - User cannot mount removable disks

Do you have an inistrcript to start /usr/lib/udisks2/udisksd ? You need to run the udisks2 daemon before the automounting works.

Last edited by progandy (2014-09-13 17:12:07)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#4 2014-09-13 22:09:05

Latios
Member
Registered: 2011-04-09
Posts: 18

Re: Initscripts system - User cannot mount removable disks

Meanwhile i tried to tinker with it and ruined my system completely. So i am on a fresh install now, booted with systemd

# 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
# /dev/sda2
UUID=833253b6-d608-46e6-9966-b25812573558	/         	ext3      	rw,relatime,data=ordered	0 1

# /dev/sda1
UUID=2a858d40-0cb9-452d-89dc-5c867a9dff7d	/home     	ext4      	rw,relatime,data=ordered	0 2
[ash@altomare3 ~]$ mkdir kfat
[ash@altomare3 ~]$ mount /dev/sdb1 kfat/
mount: only root can do that
[ash@altomare3 ~]$ su
Password: 
[root@altomare3 ash]# mount /dev/sdb1 kfat/
[root@altomare3 ash]# ls kfat/
Camera album  Images  Sounds  Videos
[root@altomare3 ash]# 

Now i will go to initscripts again and see what happens. And try to start udisks2

Thanks



Edit :

I did the 1st stage of conversion to Initscripts - systemd is still here, but Arch is booted by initscripts this time

What i did :
Install initscripts-fork and sysvinit from AUR
remove systemd-sysvcompat
place scripts for dbus and kdm in /etc/rc.d
reboot
start dbus and kdm manually

Now under KDE i cant mount the disks, same errors as before :
http://s30.postimg.org/yil295gup/snapshot32.png

I did not change fstab so its the same as before. Trying to mount the disk manually as user and as root gives same output as before



I did not find any init script for udisksd. So i tried to run it straight from the console

[root@altomare3 ash]# /usr/lib/udisks2/udisksd            
08:54:25.858:[2124]:[NOTICE]: udisks daemon version 2.1.3 starting [main.c:146, main()]
08:54:25.865:[2124]:[DEBUG]: Entering main event loop [main.c:171, main()]
08:54:25.887:[2124]:[INFO]: Initialization (device probing) [udiskslinuxprovider.c:445, udisks_linux_provider_start()]
08:54:25.892:[2124]:[INFO]: Initialization (coldplug 1/2) [udiskslinuxprovider.c:457, udisks_linux_provider_start()]
08:54:25.892:[2124]:[DEBUG]: uevent add /sys/devices/pci0000:00/0000:00:02.5/ata1/host0/target0:0:0/0:0:0:0/block/sda [udiskslinuxprovider.c:902, udisks_linux_provider_handle_uevent()]
08:54:25.910:[2124]:[DEBUG]: uevent add /sys/devices/pci0000:00/0000:00:02.5/ata1/host0/target0:0:0/0:0:0:0/block/sda/sda1 [udiskslinuxprovider.c:902, udisks_linux_provider_handle_uevent()]
08:54:25.915:[2124]:[DEBUG]: uevent add /sys/devices/pci0000:00/0000:00:02.5/ata1/host0/target0:0:0/0:0:0:0/block/sda/sda2 [udiskslinuxprovider.c:902, udisks_linux_provider_handle_uevent()]
08:54:25.918:[2124]:[DEBUG]: uevent add /sys/devices/pci0000:00/0000:00:02.5/ata1/host0/target0:0:0/0:0:0:0/block/sda/sda4 [udiskslinuxprovider.c:902, udisks_linux_provider_handle_uevent()]
08:54:25.920:[2124]:[DEBUG]: uevent add /sys/devices/pci0000:00/0000:00:03.0/usb2/2-1/2-1:1.0/host4/target4:0:0/4:0:0:0/block/sdb [udiskslinuxprovider.c:902, udisks_linux_provider_handle_uevent()]
08:54:25.928:[2124]:[DEBUG]: uevent add /sys/devices/pci0000:00/0000:00:03.0/usb2/2-1/2-1:1.0/host4/target4:0:0/4:0:0:0/block/sdb/sdb1 [udiskslinuxprovider.c:902, udisks_linux_provider_handle_uevent()]
08:54:25.929:[2124]:[INFO]: Initialization (coldplug 2/2) [udiskslinuxprovider.c:457, udisks_linux_provider_start()]
08:54:25.929:[2124]:[DEBUG]: uevent add /sys/devices/pci0000:00/0000:00:02.5/ata1/host0/target0:0:0/0:0:0:0/block/sda [udiskslinuxprovider.c:902, udisks_linux_provider_handle_uevent()]
08:54:25.931:[2124]:[DEBUG]: uevent add /sys/devices/pci0000:00/0000:00:02.5/ata1/host0/target0:0:0/0:0:0:0/block/sda/sda1 [udiskslinuxprovider.c:902, udisks_linux_provider_handle_uevent()]
08:54:25.932:[2124]:[DEBUG]: uevent add /sys/devices/pci0000:00/0000:00:02.5/ata1/host0/target0:0:0/0:0:0:0/block/sda/sda2 [udiskslinuxprovider.c:902, udisks_linux_provider_handle_uevent()]
08:54:25.934:[2124]:[DEBUG]: uevent add /sys/devices/pci0000:00/0000:00:02.5/ata1/host0/target0:0:0/0:0:0:0/block/sda/sda4 [udiskslinuxprovider.c:902, udisks_linux_provider_handle_uevent()]
08:54:25.935:[2124]:[DEBUG]: uevent add /sys/devices/pci0000:00/0000:00:03.0/usb2/2-1/2-1:1.0/host4/target4:0:0/4:0:0:0/block/sdb [udiskslinuxprovider.c:902, udisks_linux_provider_handle_uevent()]
08:54:25.947:[2124]:[DEBUG]: uevent add /sys/devices/pci0000:00/0000:00:03.0/usb2/2-1/2-1:1.0/host4/target4:0:0/4:0:0:0/block/sdb/sdb1 [udiskslinuxprovider.c:902, udisks_linux_provider_handle_uevent()]
08:54:25.949:[2124]:[INFO]: Initialization complete [udiskslinuxprovider.c:466, udisks_linux_provider_start()]
08:54:25.949:[2126]:[INFO]: Housekeeping initiated (0 seconds since last housekeeping) [udiskslinuxprovider.c:969, housekeeping_thread_func()]
08:54:25.949:[2126]:[INFO]: Housekeeping complete [udiskslinuxprovider.c:973, housekeeping_thread_func()]
08:54:25.950:[2124]:[DEBUG]: Connected to the system bus [main.c:53, on_bus_acquired()]
08:54:25.952:[2124]:[INFO]: Lost (or failed to acquire) the name org.freedesktop.UDisks2 on the system message bus [main.c:67, on_name_lost()]
08:54:25.952:[2131]:[INFO]: Entering cleanup thread [udisksstate.c:306, udisks_state_thread_func()]
08:54:25.952:[2131]:[INFO]: Cleanup check start [udisksstate.c:419, udisks_state_check_in_thread()]
08:54:25.954:[2131]:[INFO]: Cleanup check end [udisksstate.c:457, udisks_state_check_in_thread()]

While its open, unplugging and plugging back the USB device, no new output in the console is generated, and it still won't mount in KDE - same errors

I tried to remove dbus and kdm from rc.d and run things manually at startup in this order :
/etc/rc.d/dbus start
/usr/lib/udisks2/udisksd &
/etc/rc.d/kdm start

Still nothing

Last edited by Latios (2014-09-13 23:29:10)

Offline

#5 2014-09-19 06:06:05

TZ86
Member
From: Russia
Registered: 2013-01-22
Posts: 1

Re: Initscripts system - User cannot mount removable disks

You should install also consolekit (and rebuild polkit-consolekit after that) and kdebase-workspace-consolekit.

Also there is no need to start udisksd manually or via rc scripts, in Arch Linux it happens automatically.

Last edited by TZ86 (2014-09-19 06:06:37)

Offline

#6 2014-09-20 15:56:29

Latios
Member
Registered: 2011-04-09
Posts: 18

Re: Initscripts system - User cannot mount removable disks

Thanks !
I will try it in a few days....

Offline

Board footer

Powered by FluxBB