LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-16-2011, 12:30 AM   #166
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649

When you try to eject does it attempt to eject?
On both of machines the eject button doesn't operate in linux, I have to right-click on the cd on desktop to unmount then, right-click again & the option to eject is there.
 
Old 10-16-2011, 12:32 AM   #167
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by EDDY1 View Post
When you try to eject does it attempt to eject?
On both of machines the eject button doesn't operate in linux, I have to right-click on the cd on desktop to unmount then, right-click again & the option to eject is there.

It does not do anything. It doesn't make a sound.

I tried sudo Wodim --eject cdrom and that failed:

Code:
o@o-HP-Compaq-6910p-GH715AW-ABA:~$ sudo wodim --eject cdrom
wodim: No write mode specified.
wodim: Assuming -tao mode.
wodim: Future versions of wodim may have different drive dependent defaults.
Device was not specified. Trying to find an appropriate drive...
Detected CD-R drive: /dev/cdrw
Using /dev/cdrom of unknown capabilities
Error trying to open /dev/cdrom exclusively (Device or resource busy)... retrying in 1 second.
Error trying to open /dev/cdrom exclusively (Device or resource busy)... retrying in 1 second.
Error trying to open /dev/cdrom exclusively (Device or resource busy)... retrying in 1 second.
Error trying to open /dev/cdrom exclusively (Device or resource busy)... retrying in 1 second.
Error trying to open /dev/cdrom exclusively (Device or resource busy)... giving up.
wodim: No such file or directory. 
Cannot open SCSI driver!
For possible targets try 'wodim --devices' or 'wodim -scanbus'.
For possible transport specifiers try 'wodim dev=help'.
For IDE/ATAPI devices configuration, see the file README.ATAPI.setup from
the wodim documentation.
 
Old 10-16-2011, 12:56 AM   #168
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
I tried again with sudo wodim --eject /dev/cdrw and failed with these results:

Code:
o@o-HP-Compaq-6910p-GH715AW-ABA:~$ sudo wodim --eject /dev/cdrw
[sudo] password for o: 
wodim: No write mode specified.
wodim: Assuming -tao mode.
wodim: Future versions of wodim may have different drive dependent defaults.
Device was not specified. Trying to find an appropriate drive...
Detected CD-R drive: /dev/cdrw
Using /dev/cdrom of unknown capabilities
Device type    : Removable CD-ROM
Version        : 5
Response Format: 2
Capabilities   : 
Vendor_info    : 'HL-DT-ST'
Identification : 'RW/DVD GCC-4247N'
Revision       : '1.01'
Device seems to be: Generic mmc2 DVD-ROM.
 
Old 10-16-2011, 10:01 AM   #169
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
Might be helpful to look at the contents of /etc/fstab. The CD line from mine is:

/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0

Then perhaps try:

sudo umount /media/cdrom0 Or whatever is right for your thing. Note no n in umount.

mount on its own says what is mounted.
 
Old 10-16-2011, 11:05 AM   #170
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by lugoteehalt View Post


Look @ contents of
/etc/fstab


The CD line from mine is:
/dev/scd0
/media/cdrom0
udf,
iso9660 user,noauto 0 0
Below I was successful at trying
cat /etc/fstab

My CD floppy drive
is located at either or both of the following two
/dev/fd0
/media/floppy0

Other information includes
auto rw,user,noauto,exec,utf8 0 0
Code:
o@o-HP-Compaq-6910p-GH715AW-ABA:/$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda1 during installation
UUID=eb95dfd0-f3df-49c0-aa8f-cbdf43e43798 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=8083536d-0b5b-49a9-ae45-6e051330f7cf none            swap    sw              0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
Quote:
Originally Posted by lugoteehalt View Post
Then perhaps try:

sudo umount /media/cdrom0 Or whatever is right for your thing. Note no n in umount.

mount on its own says what is mounted.
Code:
o@o-HP-Compaq-6910p-GH715AW-ABA:~$ sudo umount /dev/cdrw
[sudo] password for o: 
o@o-HP-Compaq-6910p-GH715AW-ABA:~$

Last edited by JoeyArnold; 10-16-2011 at 11:40 AM.
 
Old 10-16-2011, 11:59 AM   #171
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
o@o-HP-Compaq-6910p-GH715AW-ABA:~$ sudo umount /dev/cdrw
[sudo] password for o:
o@o-HP-Compaq-6910p-GH715AW-ABA:~$
It returned no error so it unmounted, now all you have to do is issue eject command.

But you cdrom is not in fstab, this is what mine looks like.
It's may be possible for you to just copy & paste to it.
Since mine & lugoteehalt show the exact same line.
Quote:
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0

Last edited by EDDY1; 10-16-2011 at 12:07 PM.
 
Old 10-16-2011, 12:12 PM   #172
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by EDDY1 View Post
It returned no error so it unmounted, now all you have to do is issue eject command.

But you cdrom is not in fstab, this is what mine looks like.
It's may be possible for you to just copy & paste to it.
Since mine & lugoteehalt show the exact same line.
Code:
o@o-HP-Compaq-6910p-GH715AW-ABA:/$ sudo eject /dev/scd0
o@o-HP-Compaq-6910p-GH715AW-ABA:/$ 
 
Old 10-16-2011, 12:18 PM   #173
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Did you try this?
Quote:
For possible targets try 'wodim --devices' or 'wodim -scanbus'.
 
Old 10-16-2011, 12:48 PM   #174
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by EDDY1 View Post
Did you try this?
Code:
o@o-HP-Compaq-6910p-GH715AW-ABA:/$ wodim --devices
wodim: Overview of accessible drives (1 found) :
-------------------------------------------------------------------------
 0  dev='/dev/scd0'	rwrw-- : 'HL-DT-ST' 'RW/DVD GCC-4247N'
-------------------------------------------------------------------------
o@o-HP-Compaq-6910p-GH715AW-ABA:/$
Ok. Now what is next to do ?
 
Old 10-16-2011, 12:52 PM   #175
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I think if you copy & paste the line for your fstab you'll be fine.
Quote:
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
 
Old 10-16-2011, 04:02 PM   #176
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by EDDY1 View Post
I think if you copy & paste the line for your fstab you'll be fine.
Code:
o@o-HP-Compaq-6910p-GH715AW-ABA:~$ /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0 
bash: /dev/scd0: Permission denied
o@o-HP-Compaq-6910p-GH715AW-ABA:~$ sudo /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0 
[sudo] password for o: 
sudo: /dev/scd0: command not found
o@o-HP-Compaq-6910p-GH715AW-ABA:~$

Last edited by JoeyArnold; 10-16-2011 at 04:03 PM.
 
Old 10-16-2011, 04:08 PM   #177
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
nano is my text editor,
Quote:
sudo nano /etc/fstab
Quote:
GNU nano 2.2.4 File: /etc/fstab

# /etc/fstab: static file system information
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda5 during installation
UUID=55e5045c-5519-412c-88ad-8cf51a311264 / ext3 errors=remoun$
# /home was on /dev/sda10 during installation
UUID=3f697af1-0bbf-43b0-b714-32185bd2a975 /home ext3 defaults $
# /tmp was on /dev/sda9 during installation
UUID=ab53a71b-a0cf-4a12-ac43-d8189456c163 /tmp ext3 defaults $
# /usr was on /dev/sda6 during installation
UUID=49a5fe6f-97e6-4bcf-91a7-2f7342a73eb4 /usr ext3 defaults $
# /var was on /dev/sda7 during installation
UUID=049d9b86-71f6-416d-9f45-fdd7b64aa3ca /var ext3 defaults $
# swap was on /dev/sda8 during installation
UUID=370af088-6830-4fcf-b557-009f553c1746 none swap sw $
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0


Last edited by EDDY1; 10-16-2011 at 04:14 PM.
 
Old 10-16-2011, 04:24 PM   #178
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
You also have to be part of cd group in /etc/group
 
Old 10-16-2011, 05:30 PM   #179
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by EDDY1 View Post
nano is my text editor,


Input
Code:
sudo nano /etc/fstab

Output
Code:
        File: /etc/fstab                                                      

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda1 during installation
UUID=eb95dfd0-f3df-49c0-aa8f-cbdf43e43798 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=8083536d-0b5b-49a9-ae45-6e051330f7cf none            swap    sw              0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0



^G Get Help       ^O WriteOut       ^R Read File      ^Y Prev Page      ^K Cut Text       ^C Cur Pos
^X Exit           ^J Justify        ^W Where Is       ^V Next Page      ^U UnCut Text     ^T To Spell
 
Old 10-16-2011, 05:55 PM   #180
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
For example:
Quote:
Output
Code:

File: /etc/fstab

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=eb95dfd0-f3df-49c0-aa8f-cbdf43e43798 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=8083536d-0b5b-49a9-ae45-6e051330f7cf none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0


^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text ^T To Spell
You have to press Ctrl + X keys to exit & Y to save.

Last edited by EDDY1; 10-16-2011 at 05:58 PM.
 
  


Reply

Tags
cd, eject, howto, terminal, ubuntu 11.04, undelete


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
Mac File Undelete Software, Undelete Mac files liesnsys Linux - Hardware 3 07-23-2009 09:50 PM
gnome parts stop working or vanish from Ubuntu Hardy SaintDanBert Linux - Desktop 1 01-28-2009 11:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:23 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
Open Source Consulting | Domain Registration