You are not logged in.

#1 2010-02-10 14:39:37

Dr.Paneas
Member
From: Thessaloniki,GR
Registered: 2010-01-19
Posts: 13
Website

mount / umount problem

I use HAL and pmount to mount the CD-ROM

But when I am trying tou pumount: media/cd device is busy...
I cannot umount the cdrom without restart the computer thought. . .

EDIT: I can umount it only as root :

umount -l /dev/cdrom

Should I change my fstab ?

Last edited by Dr.Paneas (2010-02-10 14:52:34)

Offline

#2 2010-02-10 15:14:21

Dr.Paneas
Member
From: Thessaloniki,GR
Registered: 2010-01-19
Posts: 13
Website

Re: mount / umount problem

auto mount is not working using hal . . .

I mean it works if I restart hal daemon. But if I want to insert a second, or third, or another disk after hal being restarted there is no auto mount.

Last edited by Dr.Paneas (2010-02-10 15:17:20)

Offline

#3 2010-02-10 16:15:35

JuseBox
Member
Registered: 2009-11-27
Posts: 260

Re: mount / umount problem

yea i used to use sudo to mount and umount... did you try adding optical to your user group?


Linux ArchLinux 3.2.8-1-ARCH
#1 SMP PREEMPT Mon Feb 27 21:51:46 CET 2012 x86_64 AMD FX(tm)-8120 Eight-Core Processor AuthenticAMD GNU/Linux
8192MB DDR3 1300MHz | Asus m5a97 | GeForce GTX 550 Ti | 120 GB SSD

Offline

#4 2010-02-10 21:59:08

Dr.Paneas
Member
From: Thessaloniki,GR
Registered: 2010-01-19
Posts: 13
Website

Re: mount / umount problem

Take a look to my system files:

# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0

/dev/cdrom             /media/cd     iso9660   ro,user,noauto,unhide    0    0
/dev/dvd               /media/dvd  udf    ro,user,noauto,unhide   0      0
#/dev/fd0               /media/fl   auto    user,noauto             0      0

/dev/sda1 / ext4 defaults 0 1
/dev/sda2 /var reiserfs defaults 0 2
/dev/sda3 swap swap defaults 0 0
/dev/sda4 /home jfs defaults 0 2

My normarl user is called 'paneas', so take a loot to my /etc/group

root::0:root
bin::1:root,bin,daemon
daemon::2:root,bin,daemon
sys::3:root,bin
adm::4:root,daemon
tty::5:
disk::6:root
lp::7:daemon,paneas
mem::8:
kmem::9:
wheel::10:root,paneas
ftp::11:
mail::12:
uucp::14:
log::19:root
locate::21:
smmsp::25:
http::33:
games::50:
network:x:90:
video:x:91:paneas
audio::92:paneas
optical::93:paneas,hal
floppy:x:94:hal
storage:x:95:paneas,hal
scanner:x:96:
power:x:98:paneas
nobody::99:
users::100:paneas
dbus:x:81:
rfkill:x:24:
paneas:x:1000:
hal:x:82:paneas,optical

The hal daemon's auto hotplugging ISN'T working.
Check it:

[root@arch ~]# ls /media/cd
[root@arch ~]# ls /var/run/daemons/
alsa  crond  dbus  hal    netfs  net-profiles  network  syslog-ng
[root@arch ~]# /etc/rc.d/hal restart
:: Stopping Hardware Abstraction Layer                                   [DONE] 
:: Starting Hardware Abstraction Layer                                   [DONE] 
[root@arch ~]# ls /media/cd

Offline

#5 2010-02-10 22:13:47

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: mount / umount problem

Dr Paneas wrote:

/dev/cdrom             /media/cd     iso9660   ro,user,noauto,unhide    0    0

Arch Wiki fstab entry wrote:

#  auto - File system will mount automatically at boot, or when the command 'mount -a' is issued.
# noauto - The filesystem is mounted only when you tell it to.

That might help...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2010-02-10 23:12:42

Dr.Paneas
Member
From: Thessaloniki,GR
Registered: 2010-01-19
Posts: 13
Website

Re: mount / umount problem

It didn't actually, but thanks smile
I read the HAL wiki page so I configured my files again:

# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0

/dev/sda1 / ext4 defaults 0 1
/dev/sda2 /var reiserfs defaults 0 2
/dev/sda3 swap swap defaults 0 0
/dev/sda4 /home jfs defaults 0 2

I added hal and dbus into the modules=() of /etc/rc.conf


Nothing yet. . . .

Offline

Board footer

Powered by FluxBB