LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 07-19-2012, 03:12 AM   #1
irajjs
Member
 
Registered: Jan 2010
Location: Karaj , Iran
Distribution: Mandriva 2012
Posts: 204
Blog Entries: 1

Rep: Reputation: 15
Unhappy cdrom | dvdrom does not work properly!


Hi
May be i have made some wrong settings or may be some viruses have caused this but:
cdrom in my PC gradually and step by step(during the last 1 or 2 years) has become useless and unresponsive such that:
-all CD or DVDs are not mounted.
-whenever i push the open button the tray comes out but immediately returns in!so i have to insert the CD very fast!
Abut steps:
at first only some CDs were not mounted and using the mount command was not much helpful
then Cd was ejected automatically after insertion ...i tried a lot to change this behavior and now it is just not ejected but still not mounted
clicking on cdrom icon resulted in an error message that it could not mount ....but it was not a clear diagnostic message...just mentioning some possible reasons!!
now it doesen't show the cdrom icon in /media/ ,but also doesn't mount the Cd and even does not detect and there is no device notification whenever a CD or DVD is inserted
as i know this is not a hardware problem because using another operating system there are no such problems
 
Old 07-19-2012, 06:56 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
hi

I doubt very much you have a linux virus.....I assume you are an ex-microsoft user to think like that?

for a start post the outputs of these commands and also describe your optical drive
eg mine is a dvd burner with atapi or wide ribbon cable, not a sata cable....so its the same as an old PATA drive cable.

Code:
groups

ls -al /dev/cdrom* /dev/dvd*

ls -al /usr/bin/eject

eject
do eject as local user...what happens....then do as root user....either su then eject or sudo eject

I don't use Mdv but do you have udisks installed?
 
Old 07-19-2012, 06:58 PM   #3
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
oh forgot can you post the output to command

Code:
cat /etc/fstab
thanks
 
Old 07-22-2012, 05:37 AM   #4
irajjs
Member
 
Registered: Jan 2010
Location: Karaj , Iran
Distribution: Mandriva 2012
Posts: 204

Original Poster
Blog Entries: 1

Rep: Reputation: 15
device description and outputs..

Quote:
Originally Posted by aus9 View Post
oh forgot can you post the output to command

Code:
cat /etc/fstab
thanks
Hi
Thank you for your attention
My device is a Sony CD/DVD RW installed on a pentium4 PC i686
This device worked quite well for some months both under windows and Linux operating systems
output:
[root@localhost iraj]# groups
root
[root@localhost iraj]# ls -al /dev/cdrom* /dev/dvd*
lrwxrwxrwx 1 root root 4 Jul 22 12:48 /dev/cdrom -> hda6
lrwxrwxrwx 1 root root 4 Jul 22 12:48 /dev/cdrom1 -> hda6
lrwxrwxrwx 1 root root 4 Jul 22 12:48 /dev/dvd1 -> hda6
lrwxrwxrwx 1 root root 4 Jul 22 12:48 /dev/dvdrw1 -> hda6
[root@localhost iraj]# ls -al /usr/bin/eject
-rwxr-xr-x 1 root root 26496 May 3 2011 /usr/bin/eject*
[root@localhost iraj]# eject
umount: /home: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
eject: unmount of `/home' failed
[root@localhost iraj]# cat /etc/fstab
# Entry for /dev/hda1 :
UUID=d148a1a7-d2a0-4c06-99f2-b566e1ba867c / ext4 defaults 1 1
# Entry for /dev/hda6 :
UUID=15aa568b-ad15-4fc3-ba4b-81642cbac3f2 /home ext4 defaults 1 2
none /proc proc defaults 0 0
# Entry for /dev/hda5 :
UUID=ea1735aa-522c-4ae2-b89c-9b14ffb3c466 swap swap defaults 0 0
[root@localhost iraj]# exit
exit
[iraj@localhost ~]$ groups
iraj
[iraj@localhost ~]$ ls -al /dev/cdrom* /dev/dvd*
lrwxrwxrwx 1 root root 4 Jul 22 12:48 /dev/cdrom -> hda6
lrwxrwxrwx 1 root root 4 Jul 22 12:48 /dev/cdrom1 -> hda6
lrwxrwxrwx 1 root root 4 Jul 22 12:48 /dev/dvd1 -> hda6
lrwxrwxrwx 1 root root 4 Jul 22 12:48 /dev/dvdrw1 -> hda6
[iraj@localhost ~]$ ls -al /usr/bin/eject
-rwxr-xr-x 1 root root 26496 May 3 2011 /usr/bin/eject*
[iraj@localhost ~]$ eject
umount: only root can unmount UUID=15aa568b-ad15-4fc3-ba4b-81642cbac3f2 from /home
eject: unmount of `/home' failed
[iraj@localhost ~]$ cat /etc/fstab
# Entry for /dev/hda1 :
UUID=d148a1a7-d2a0-4c06-99f2-b566e1ba867c / ext4 defaults 1 1
# Entry for /dev/hda6 :
UUID=15aa568b-ad15-4fc3-ba4b-81642cbac3f2 /home ext4 defaults 1 2
none /proc proc defaults 0 0
# Entry for /dev/hda5 :
UUID=ea1735aa-522c-4ae2-b89c-9b14ffb3c466 swap swap defaults 0 0
Regards
 
Old 07-23-2012, 10:25 PM   #5
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
well you have some problems there

I asked you to describe your drive...meaning also the cable connection...so can only assume its a pata cable or wide ribbon as it claims to link to hda6

but that is wrong.

ok so if you had a true wide ribbon dvd burner, its either a master on a IDE controller or its a slave and should not be the same as your home folder which is hda6.

Notice the eject command wanted to umount your home folder!!!!

I suggest you re-install mandriva or look for a better alternative
good luck
 
1 members found this post helpful.
Old 07-24-2012, 04:52 AM   #6
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
umm it is possible that someone has changed your hardware jumper settings on one or both of the hard drive and optical

that could lead to having 2 devices trying to share the master or slave setting

and that could explain why your optical drive tried to think it was also a hard drive?

just a wild guess.

no need to reply
 
Old 07-26-2012, 03:24 AM   #7
irajjs
Member
 
Registered: Jan 2010
Location: Karaj , Iran
Distribution: Mandriva 2012
Posts: 204

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Exclamation compromized!

Quote:
Originally Posted by aus9 View Post
well you have some problems there

I asked you to describe your drive...meaning also the cable connection...so can only assume its a pata cable or wide ribbon as it claims to link to hda6

but that is wrong.

ok so if you had a true wide ribbon dvd burner, its either a master on a IDE controller or its a slave and should not be the same as your home folder which is hda6.

Notice the eject command wanted to umount your home folder!!!!

I suggest you re-install mandriva or look for a better alternative
good luck
Hi
Thank you for your help and sorry for my incomplete reply...actually i am very weak in hardware knowledge...but as i remember there has been wide ribbons connecting the hard disks to the motherboard !
Anyway i think that i have linked the cdrom to my home folder myself!! possibly because of hopelessly trying to solve the cdrom problems!
I have also made some changes in the cdrom mount options in the past and several times!! without having a clear understanding and knowledge!!...this is my way to learn ...try and error method!
unfortunately some settings seem to be transferred(inherited)!! to the new OS or reinstalled ones...but i usually do the re-installation or changing the OS at the last step where there is no other choice because i have spent a lot of time to update and upgrade the system and considering internet connection and speed problems here! it is not easy to return to zero point and come up again!!
I have made some other new changes and will try to do more..i also found some new diagnostics that i am going to post later!
Regards
 
Old 07-26-2012, 04:28 AM   #8
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
its ok we are all make mistakes

generally speaking if you have one hard drive and one optical drive its best to have each on their own wide ribbon cable and each set as master

I am not personally happy that mandriva seems to still use hd terms while most distro kernels seem to have renamed them sd (letter)

but a general rule from memory....hda is the master hdb is the slave on first controller
hdc is master and hdd is slave on second controller

please get your hardware correct first please

this almost means double checking which way each device needs its jumper set.

Normally when you pull out the drive...there is a picture on it telling you how to jumper,
modern drives have no jumper needed.....equals master

Even if you have no touched your cables pls do so now, as we need to eliminate hardware....from the equation.

before you open case, turn off computer....turn off switch at wall.....but leave power cord connected
touch the back of your hand against the metal frame before pulling the cable leads.

wide ribbon cables are idiot proof and have a notch on the male that can only go in the female bit one way only.

2) The other reason why I want you to open the case etc, is that over time, your cd cable could have come loose, so now is a good time to learn how to fix it.

also if it was built badly, the ribbon can be bent badly and broken some wires inside it. So inspect the cables, and size of violent bends in them, play it safe and replace please.

computer stores sell new wide ribbons quite cheaply

ok so remove drives and note where the screws go

read your jumper diagram and fix both up to masters

if your computer has no motherboard manual, it may not be obvious which is the controller connnector but on boot up, you will be able to tell.

3) ALSO don't do this until you have a live cd and know how to change your bios to boot it.....so if the boot up is looking for hard drive
hda1 (as example) and its now hdc1.....a live cd can see that.

or change the cables around and try again? your choice.

good luck
 
1 members found this post helpful.
Old 07-27-2012, 04:52 AM   #9
irajjs
Member
 
Registered: Jan 2010
Location: Karaj , Iran
Distribution: Mandriva 2012
Posts: 204

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Smile It is working now....although..

Quote:
Originally Posted by aus9 View Post
its ok we are all make mistakes

generally speaking if you have one hard drive and one optical drive its best to have each on their own wide ribbon cable and each set as master

I am not personally happy that mandriva seems to still use hd terms while most distro kernels seem to have renamed them sd (letter)

but a general rule from memory....hda is the master hdb is the slave on first controller
hdc is master and hdd is slave on second controller

please get your hardware correct first please

this almost means double checking which way each device needs its jumper set.

Normally when you pull out the drive...there is a picture on it telling you how to jumper,
modern drives have no jumper needed.....equals master

Even if you have no touched your cables pls do so now, as we need to eliminate hardware....from the equation.

before you open case, turn off computer....turn off switch at wall.....but leave power cord connected
touch the back of your hand against the metal frame before pulling the cable leads.

wide ribbon cables are idiot proof and have a notch on the male that can only go in the female bit one way only.

2) The other reason why I want you to open the case etc, is that over time, your cd cable could have come loose, so now is a good time to learn how to fix it.

also if it was built badly, the ribbon can be bent badly and broken some wires inside it. So inspect the cables, and size of violent bends in them, play it safe and replace please.

computer stores sell new wide ribbons quite cheaply

ok so remove drives and note where the screws go

read your jumper diagram and fix both up to masters

if your computer has no motherboard manual, it may not be obvious which is the controller connnector but on boot up, you will be able to tell.

3) ALSO don't do this until you have a live cd and know how to change your bios to boot it.....so if the boot up is looking for hard drive
hda1 (as example) and its now hdc1.....a live cd can see that.

or change the cables around and try again? your choice.

good luck
Hello
First i want to thank you again for your help.
I made some changes in the cdrom mount options but still i do not know if i have chosen the best options.
Also as you said Mandriva recognizes the cdrom as hdc so i changed the mount point as : /media/hdc
In my system sda is used for another removable drive "flash memory".
Also hdb is used for my second hard disk which is used as a repository and media storage.
Now cdrom is working...maybe temporarily! i will do the hardware check later...although i am going to upgrade the computer hardware as soon as i can afford!
Regards

Last edited by irajjs; 07-28-2012 at 04:13 AM. Reason: hds replaced with sda which is correct
 
  


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
Cdrom/dvdrom Combo shirley55666 Linux - Software 5 02-16-2006 04:35 PM
cdrom/dvdrom mount problem salahuddin_66 Slackware 3 05-23-2004 10:17 AM
DVDRom problem--not mounted properly? loran Linux - Newbie 16 03-18-2003 11:50 PM
Help DVDRom detected as CDRom Kwiki Linux - Newbie 1 01-19-2003 09:46 PM
Help with my cdrom/dvdrom trentk Linux - Newbie 12 02-14-2002 07:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 03:26 PM.

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