LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 12-15-2012, 12:11 PM   #1
porphyry5
Member
 
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch
Posts: 424

Rep: Reputation: 18
command line: how find dvd or cd file tree to view content


If I insert a dvd or cd, using a file manager like Thunar or Dolphin, its content becomes automatically available, but its path begins with what I assume is the volume label, e.g. "SlackDVD" for the Slackware dvd.

But if can only use the command line, and insert a dvd or cd whose volume label is unknown, how do I find it?
 
Old 12-15-2012, 12:20 PM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,122

Rep: Reputation: 819Reputation: 819Reputation: 819Reputation: 819Reputation: 819Reputation: 819Reputation: 819
Simplest way? Crack open a terminal and
Code:
mount
That will show you where it's mounted and what the label is; SlackDVD is the label of the distribution disk.

Hope this helps some.
 
1 members found this post helpful.
Old 12-15-2012, 01:14 PM   #3
porphyry5
Member
 
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch
Posts: 424

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by tronayne View Post
Simplest way? Crack open a terminal and
Code:
mount
That will show you where it's mounted and what the label is; SlackDVD is the label of the distribution disk.

Hope this helps some.
I tried that, mount does not show it. With or without a SlackDVD in the drive this is what mount shows
Code:
~ $ mount
/dev/sda3 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
/dev/sda1 on /home type ext3 (rw)
/dev/sdb1 on /500gb type fuseblk (rw,allow_other,blksize=4096,default_permissions)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sdc1 on /3tb type fuseblk (rw,allow_other,blksize=4096,default_permissions)
/etc/fstab contains
Code:
/dev/sda2        swap             swap        defaults         0   0
/dev/sda3        /                ext4        defaults         1   1
/dev/sda1        /home            ext3        defaults         1   2
/dev/sdb1        /500gb           ntfs-3g     fmask=111,dmask=000 1   0
/dev/sdc1        /3tb             ntfs-3g     fmask=111,dmask=000 1   0
#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro,comment=x-gvfs-sh$
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
tmpfs            /dev/shm         tmpfs       defaults         0   0
which is as generated by Slackware 14. There is no /dev/cdrom and /mnt/cdrom is empty, as are /mnt/dvd and relevant possibilities in /media; cdrom0, cdrom1, dvd0, dvd1
 
Old 12-15-2012, 02:38 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097
What do you mean with
Quote:
But if can only use the command line
?

If it means that you have no GUI running then the GUI tools will obviously not mount it for you, you have to do that yourself, for example
Code:
mount /dev/sr0 /mnt/dvd
 
1 members found this post helpful.
Old 12-15-2012, 02:48 PM   #5
porphyry5
Member
 
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch
Posts: 424

Original Poster
Rep: Reputation: 18
Many thanks.
 
Old 12-15-2012, 02:58 PM   #6
ljb643
Member
 
Registered: Nov 2003
Posts: 293

Rep: Reputation: Disabled
Quote:
Originally Posted by porphyry5 View Post
... But if can only use the command line, and insert a dvd or cd whose volume label is unknown, how do I find it?
Assuming the CD is /dev/cdrom0, and it is being mounted by udisks2, try this:
Code:
$ udisksctl info --block-device /dev/cdrom0 | grep MountPoints
You can put this in a script file, or make it a shell alias or function.
 
2 members found this post helpful.
Old 12-15-2012, 07:02 PM   #7
porphyry5
Member
 
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch
Posts: 424

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by ljb643 View Post
Assuming the CD is /dev/cdrom0, and it is being mounted by udisks2, try this:
Code:
$ udisksctl info --block-device /dev/cdrom0 | grep MountPoints
You can put this in a script file, or make it a shell alias or function.
Thanks for the reference to udisksctl, that looks to be a useful command.
 
Old 12-17-2012, 08:31 AM   #8
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,776

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
I'm pretty sure those file managers are handling those using a VFS, meaning they are not mounted at all.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to burn Data (file) with command line (at terminal) to DVD rewrite thuan1975 Linux - Newbie 4 05-17-2010 06:53 AM
Burning CD or DVD from command line: Can't find device! rm_-rf_windows Linux - Software 10 10-30-2007 06:13 PM
[SOLVED] How can I make an .iso file from a CD or DVD using the command line? rm_-rf_windows Linux - General 3 06-20-2007 09:29 AM
How to find a file using the command line matrix13 Linux - Desktop 4 11-14-2006 12:45 AM
Command to output file content line by line aznluvsmc Programming 2 09-12-2004 08:45 PM


All times are GMT -5. The time now is 01:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration