You are not logged in.

Announcement

Due to heavy spamming of forums registration is going in stages. If you wish to register as a new user with ArchBang Forums, first register and then send an e-mail to: archbangforums at gmail dot com. It should contain the problem you want to discuss or some other AB related content. You will be promoted from registering member with no posting rights to new member with posting rights after that. If your mail is ignored you haven't fulfilled the requirements.

#1 2011-11-03 23:51:09

handy
ArchBanger
Registered: 2011-11-03
Posts: 422

How to mount drive/media in terminal

I find that I can call a DVD movie via vlc, which is certainly a move in the right direction.

Does anyone have any idea how I can mount the drive/media via the Terminal so I can access the data?

The reason I ask is that I don't use icons & windows, I like to use Worker mostly & Bash.

Offline

#2 2011-11-04 04:41:44

pablokal
Administrator
From: Nijmegen, Holland
Registered: 2010-10-12
Posts: 2,614
Website

Re: How to mount drive/media in terminal

I think devmon is the tool for you if you don't use thunar or pcmanfm to mount it:
devmon is a configuration-less bash wrapper script for udisks which automounts optical discs and removable drives. It can also selectively autostart apps or execute commands after mounting, ignore specified devices and volume labels, and manually mount and unmount devices.
http://igurublog.wordpress.com/downloads/script-devmon/
It is AUR so install with packer.


note: keep the bug thread and all threads on topic, please?!


Getting your questions answered here at ArchBang Forums
Please! Always give hardware info, if there is a chance that 's relevant: #lspci -vnn
Quote: What I have learnt from Linux is to minimize dependencies and functionalities for greater independence.
On Arch(bang) and Openbox: http://stillstup.blogspot.com/

Offline

#3 2011-11-04 04:53:55

oliver
Administrator
Registered: 2010-11-04
Posts: 1,515

Re: How to mount drive/media in terminal

also take a look at obdevicemenu.  It lets you mount/unmount from the OB menu

http://aur.archlinux.org/packages.php?ID=47192


Welly, welly, welly, welly, welly, welly, well. To what do I owe the extreme pleasure of this surprising visit?

Offline

#4 2011-11-04 05:14:41

handy
ArchBanger
Registered: 2011-11-03
Posts: 422

Re: How to mount drive/media in terminal

Thanks very much for your help guys. I'll check out your suggestions, hopefully they'll crack it for me.

I'm sorry about diverting the thread, I knew it was a danger at the beginning. If I need to post again on this topic (beyond here with a "yes that did it!" smile for the possible benefit of someone else) I'll start another thread.

Thanks again.

Offline

#5 2011-11-04 18:39:56

handy
ArchBanger
Registered: 2011-11-03
Posts: 422

Re: How to mount drive/media in terminal

Thanks for moving this into its own thread.


OK, I've installed devmon & run it in rc.conf DAEMONS , then I added udiskie to both DAEMONS & ~/.xinitrc.

I still have to manually mount optical media (all I've tried at this stage) & then Worker is happy to list the contents. On my other Arch machine if I'm using Worker I used to get a requester asking me if I would like to mount & list the contents of the media, I just checked & found that I don't get that requester on that machine anymore, which makes me think that this is due to the udev upgrade...

So unless anyone has anymore helpful & bright ideas (like the ones that have got me this far smile) I too will wait & see what comes downstream in the future.

Again, thanks for your help.

Last edited by handy (2011-11-04 18:40:19)

Offline

#6 2011-11-05 00:45:03

Mr Green
Iso Developer
Registered: 2010-11-07
Posts: 3,740

Re: How to mount drive/media in terminal

Just a suggestion but why not use mplayer

http://www.go2linux.org/mplayer-command … deo-player

Offline

#7 2011-11-05 01:17:39

ArchVortex
Retired AB Overlord
From: Jakarta, Indonesia
Registered: 2011-04-01
Posts: 1,449

Re: How to mount drive/media in terminal

I use smplayer and have found it to be the only reliable DVD player in Linux for me.


GUI's?? We don't need no stinkin' GUI's!!!

Offline

#8 2011-11-05 06:54:51

pablokal
Administrator
From: Nijmegen, Holland
Registered: 2010-10-12
Posts: 2,614
Website

Re: How to mount drive/media in terminal

I still have to manually mount optical media

Are you in the disk group:
$groups username
Otherwise add yoruself to the diskgroup.

It doesn't seem a good idea to me to let two programs do the same job; choose for either one of these.


Getting your questions answered here at ArchBang Forums
Please! Always give hardware info, if there is a chance that 's relevant: #lspci -vnn
Quote: What I have learnt from Linux is to minimize dependencies and functionalities for greater independence.
On Arch(bang) and Openbox: http://stillstup.blogspot.com/

Offline

#9 2011-11-05 06:56:44

handy
ArchBanger
Registered: 2011-11-03
Posts: 422

Re: How to mount drive/media in terminal

This thread was thankfully split from another by the mods. So the initial problem isn't here in its entirety. This could easily cause the OP here to give an erroneous impression.

The problem was actually about accessing removable media on my new (& first) install of ArchBox.

Re. media players, I also use mplayer on the odd occasion but personally prefer the simplicity of vlc.

There is no accounting for taste! smile

Offline

#10 2011-11-05 07:01:14

handy
ArchBanger
Registered: 2011-11-03
Posts: 422

Re: How to mount drive/media in terminal

pablokal wrote:

I still have to manually mount optical media

Are you in the disk group:
$groups username
Otherwise add yoruself to the diskgroup.

It doesn't seem a good idea to me to let two programs do the same job; choose for either one of these.

I am in the disk group. (Though I'm going to remove myself & see if things still work as well as they are now.)

I am using devmon & udiskie, I'm sure that they are compatible. I'm not using obdevicemenu, as I'm happy with the situation as it is now, & I rarely use the OB menu as it is.

Offline

#11 2011-11-05 07:20:01

handy
ArchBanger
Registered: 2011-11-03
Posts: 422

Re: How to mount drive/media in terminal

I removed my non-root user from the disk group & everything still works as well. So I'll keep my non-root user out of that group if I can.

I don't mind manually mounting the media, I have a button configured for it in Worker, it is how I had been doing it for years until something (?) changed in my system (udev? - I have a bad memory) & I was getting a requester asking me if I wanted to mount & CD to the media (in Worker).

So if it never improves from the point my system is at, I really don't mind. smile

Offline

#12 2011-11-06 04:15:11

handy
ArchBanger
Registered: 2011-11-03
Posts: 422

Re: How to mount drive/media in terminal

I've been polishing up my 2 Arch boxes some more & got to looking into the udev wrappers situation further, as things are still a bit funny in that regard.

The all but perfect solution for me at this point is to use udisksvm: https://bbs.archlinux.org/viewtopic.php?id=112397

It auto-mounts removable media/drives; putting an icon for each that you have mounted in your system tray. The icon offers a RMB menu with options for various file systems to mount & the ability to unmount device & eject optical media. The menu items are available or ghosted as is appropriate.

I'm using it in Tint2, & from my brief experience it is doing what it is supposed to do with very little overhead, no rules needed either.

The above link will tell you what you need to know to get it running. I'm using the following in ~/.config/openbox/autostart.sh

# Start traydevice:
traydevice -c /usr/share/udisksvm/usisksvm.xml &


# Detection of insertion of an optical disk
    if ! pgrep -lf "udisks-daemon: polling /dev/sr0"; then
        udisks --poll-for-media /dev/sr0
    fi

    udisksvm >/dev/null &


Though, I still have one problem on both of my machines, which is that I can't play a DVD movie. I can access the data on a disk but VLC fails to play a movie, I've done a bit of a search but not come up with anything yet. This problem has existed with devmon & udiskie as well. I expect it is easy to fix, I hope someone can point me in the right direction.

Offline

#13 2011-11-06 04:38:06

ArchVortex
Retired AB Overlord
From: Jakarta, Indonesia
Registered: 2011-04-01
Posts: 1,449

Re: How to mount drive/media in terminal

Like I said before I use smplayer. No messing around with mounting packages. It's the only one that plays DVD's (original and pirated -yes I live in Indonesia where originals are hard to find)for me and I have never had any luck playing DVD's with VLC on Arch.


GUI's?? We don't need no stinkin' GUI's!!!

Offline

#14 2011-11-06 06:13:11

handy
ArchBanger
Registered: 2011-11-03
Posts: 422

Re: How to mount drive/media in terminal

I've not really had any problems with VLC. There has been one or two short lived problems that came down from upstream over the years & that's about it.

Anyway, I installed smplayer & gave it a whirl. It doesn't work either, it gives me a lot of debug, the crux of which is this (as I see it anyway):

Debug: MplayerProcess::parseLine: 'Playing dvd://1.'
Debug: MplayerProcess::parseLine: 'libdvdread: Using libdvdcss version 1.2.10 for DVD access'
Debug: MplayerProcess::parseLine: 'libdvdread: Could not open /dev/dvd with libdvdcss.'
Debug: MplayerProcess::parseLine: 'libdvdread: Can't open /dev/dvd for reading'
Debug: MplayerProcess::parseLine: 'Couldn't open DVD device: /dev/dvd (Permission denied)'
Debug: MplayerProcess::parseLine: 'No stream found to handle url dvd://1'
Debug: MplayerProcess::parseLine: ''

I tried setting the device to /dev/sr0 but I got the same result with sr0 instead of dvd?

Last edited by handy (2011-11-06 06:16:07)

Offline

#15 2011-11-06 14:59:19

pablokal
Administrator
From: Nijmegen, Holland
Registered: 2010-10-12
Posts: 2,614
Website

Re: How to mount drive/media in terminal

Couldn't open DVD device: /dev/dvd (Permission denied)

You don't seem to have the right permissions as user.
http://bbs.archbang.org/viewtopic.php?pid=6805#p6805


Getting your questions answered here at ArchBang Forums
Please! Always give hardware info, if there is a chance that 's relevant: #lspci -vnn
Quote: What I have learnt from Linux is to minimize dependencies and functionalities for greater independence.
On Arch(bang) and Openbox: http://stillstup.blogspot.com/

Offline

#16 2011-11-06 16:04:11

handy
ArchBanger
Registered: 2011-11-03
Posts: 422

Re: How to mount drive/media in terminal

pablokal wrote:

Couldn't open DVD device: /dev/dvd (Permission denied)

You don't seem to have the right permissions as user.
http://bbs.archbang.org/viewtopic.php?pid=6805#p6805

Thanks again you sorted it. smile

I previously had video working off of the DVD media without being in the disk group but since then I have removed hal & all calls to the optical drive in fstab. So the bastardisation of udev/hal managed to squeak through before, but now I'm running purely udev & need to be in the disk group.

The udev rule for fixing this disk/optical thing doesn't work, for me anyway.

Last edited by handy (2011-11-06 23:00:32)

Offline

Board footer

Powered by FluxBB