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 05-13-2008, 07:31 AM   #1
avhlza
LQ Newbie
 
Registered: May 2008
Posts: 7

Rep: Reputation: 0
CD drive not found (GRUB problem?)


Hi
So I've installed Ubuntu 8.04 some weeks ago, and I've found out that my CD-drive isn't working.

Please see this thread for further information:
http://ubuntuforums.org/showthread.php?p=4924332
 
Old 05-14-2008, 12:14 AM   #2
aus9
LQ Guru
 
Registered: Oct 2003
Posts: 5,124

Rep: Reputation: Disabled
1) I do not use ubuntu but me thinks we have a similar kernel to scsi emulation and devices.

I have read your other thread....but could not see if you had looked at a certain /dev/ entry so forgive me if you already have

firstly I have ide controller jumper master dvd burner and one sata hard drive

bios is made to think sata is non-raided and made ata device but bios still does not put it in the ide search results.

b) grub can be tricked by bios boot order but if it does not recognise a device its skips it and numbers the next detected device as hd (x + 1)

so in your link....I translate that as

1 skipped
2 skipped
3 ide = (hd0)
balance skipped

However if you have made a bootable grub cd.....the cd is detected but not detected if you are booting a hd.

2) so when your hard drive is booted....check for /dev/sr0

however Mdv gives good symlinks and I have

/dev/cdrom1 with group cdwriter
/dev/dvd1 ditto
/dev/sr0 ditto
 
Old 05-14-2008, 08:25 AM   #3
avhlza
LQ Newbie
 
Registered: May 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by aus9 View Post
1 skipped
2 skipped
3 ide = (hd0)
balance skipped
That's what I think too
but what do you mean with 'balance skipped'?

Quote:
However if you have made a bootable grub cd.....the cd is detected but not detected if you are booting a hd.
I'll try that with a super grub disk, but how can that help me?

Quote:
however Mdv gives good symlinks
Sorry, but is Mdv = Mandriva?

Quote:
2) so when your hard drive is booted....check for /dev/sr0
not found

Quote:
b) grub can be tricked by bios boot order but if it does not recognise a device its skips it and numbers the next detected device as hd (x + 1)
So how do I make grub recognize my devices? And (probably stupid question: ) can't I just manually add the entries to the device.map file?

TIA
 
Old 05-14-2008, 01:48 PM   #4
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 50
Quote:
avhlza
Hi
So I've installed Ubuntu 8.04 some weeks ago, and I've found out that my CD-drive isn't working.
If I'm wrong someone please correct me.

But what does Grub have to do with your cd-rom? Grub is a boot loader, all devices are checked at POST, after the POST your bios turns over control to the MBR all Grub does is look for the kernel then turns over control to the kernel. I have seen no grub entry that has anything to do with the cd-rom on any system I've built.

I would first check and make sure your bios is detecting the cd-rom also look for a bad cable. You may also want to turn off plug N Play in the bios this can sometime cause problems. Another problem I have seen is if your system is a proprietory system and it doesn't use the standard Atapi interface. It could also be that the cd-rom is going bad.

I had a system I installed Debian on that would boot to the cd-rom get part way through the install, when it checked for the cd-rom (that it just booted to) it couldn't find it. It ended up being a bad cd-rom, I replaced the drive and had no problems.

check dmesg and see if it lists the drive.

I wouldn't rule out the kernel having a bad setting either, but as for the problem being with Grub I doubt it.

Last edited by mrrangerman; 05-14-2008 at 01:49 PM.
 
Old 05-14-2008, 03:28 PM   #5
avhlza
LQ Newbie
 
Registered: May 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by mrrangerman View Post
But what does Grub have to do with your cd-rom?
I'm fairly certain that it is grub as I have ironed out any other possibilities. Let me explain:

1)
When I installed Ubuntu I also installed grub to the MBR. As I also have a Windows Vista installation, the Windows bootloader was now chainloaded from grub. (Which in turn means that the Windows bootloader now got the device information from grub and not directly from the bios, afaik).
The cd-rom drive didn't work in Ubuntu nor Vista, BUT I could boot from a live cd. (which rules out the possibility of my drive being broken)

2)
I then tried chainloading grub from the windows bootloader (the windows bootloader was now in the MBR and grub was at the start of my linux partition), and now my drive also worked in Vista but still not in Ubuntu.

So I doubt that it doesn't have something to do with grub. (about my system being proprietary, I have no idea. I can post my specs if you want)

Quote:
check dmesg and see if it lists the drive.
'dmesg | grep cdrom' doesn't output anything.

Last edited by avhlza; 05-14-2008 at 03:52 PM.
 
Old 05-14-2008, 05:01 PM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,872

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
All of your drives are checked in the POST. Grub has nothing to do with devices. After the POST, it goes directly to the mbr and looks for the kernel and boots (if there is a valid entry) and obviously drivers When you had Grub installed and booted vista it wasn't getting device information from Grub, but from BIOS.

So now your chainloading Ubuntu from vista and can boot into both? And it is your CDRom that you can't use in Ubuntu? Your last post was a little confusing, you referred to 'drive' not specifying whether it was the CD or hardrive.


If you want to resolve your problem you will need to look somewhere other than your bootloader.
Here's a link about Grub specifically for Ubuntu:
http://users.bigpond.net.au/hermanzone/p15.htm#

Last edited by yancek; 05-14-2008 at 05:08 PM.
 
Old 05-14-2008, 05:37 PM   #7
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 50
Quote:
avhlza

So I doubt that it doesn't have something to do with grub. (about my system being proprietary, I have no idea. I can post my specs if you want)
Take a look at this link it gives detailed info on what happens booting a linux system.

The problems you are having are either from a bad cd-rom or cable or from the bios prior to writing to RAMdisk or maybe in your kernel.<== don't think so.

What kind of cd-rom are you using IDE or SATA? Is it in Dell system? Please post your system specs.
 
Old 05-15-2008, 08:40 AM   #8
avhlza
LQ Newbie
 
Registered: May 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by mrrangerman View Post
The problems you are having are either from a bad cd-rom or cable or from the bios prior to writing to RAMdisk or maybe in your kernel.<== don't think so.
I don't understand how this problem can be from a faulty drive. How can it be that it works in Vista and that I can boot from a cd then?
About the bios, I think that the bios doesn't communicate properly with grub.

Quote:
What kind of cd-rom are you using IDE or SATA? Is it in Dell system? Please post your system specs.
I have a Zepto Znote 6625WD laptop. My cd-drive is a Samsung DVD-RW slot-in drive.
About IDE or SATA, my bios sees it as:
IDE Channel 1 Master: 160 GB SATA1
IDE Primary/Slave: CD-ROM
which I assume means that my cd-drive is IDE?
I also have the output of 'lshw' and the output of CPU-Z (a windows program, that I run (runned?) from within vista).
CPU-Z output
lshw output

Last edited by avhlza; 05-15-2008 at 08:44 AM.
 
Old 05-15-2008, 09:42 AM   #9
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 50
Quote:
avhlza

I don't understand how this problem can be from a faulty drive. How can it be that it works in Vista and that I can boot from a cd then?
About the bios, I think that the bios doesn't communicate properly with grub.
I understand your frustration, but you have to understand something is not seeing the drive as it should. Grub has nothing to do with this, after the POST I/O information for booting is written to RAMdisk. When control is passed to the MBR Grubs first stage looks for the second stage. The only information Grub needs from the bios is the device holding Grubs second stage. When control is passed from the bootloader to the Kernel the kernel will take the information from Ramdisk to set up the right drivers for listed devices by the bios.

It could be that this notebook is using a dvd-rom not recognized by the kernel.
Have you checked your bios to see if plug N play is disabled? If not disable it and see if that helps.

Last edited by mrrangerman; 05-15-2008 at 09:43 AM.
 
Old 05-15-2008, 10:31 AM   #10
avhlza
LQ Newbie
 
Registered: May 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by mrrangerman View Post
Have you checked your bios to see if plug N play is disabled? If not disable it and see if that helps.
There's nowhere in my bios where it mentions Plug N' Play, however there's these options (if they're of any help):
(Name, present value and other values (in brackets))
Large Disk Acces Mode: DOS (Other)
Local Bus IDE adapter: Both (Disabled, Primary, Secondary)

CPU feature:
- No Execution Mode Mem Protection: Enabled (Disabled)
- Intel (R) Virtualization Technology: Enabled (Disabled)
FACP-RTC S4 Flag Value: Enabled (Disabled)

PXE OPROM: Enabled (Disabled)

Legacy USB Support: Enabled (Disabled)
Boot-time Diagnosis Screen: Disabled (Enabled)
QuickBoot Mode: Enabled (Disabled)
AHCI Configuration: Disabled (Enabled)
 
Old 05-15-2008, 01:05 PM   #11
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 50
avhlza

Here are some links, it seems this notebook has given the same problems with others.

Link1
Link2

Edit: It seems like Link1 has the fix.
Link2 just shows there are issues with the dvd.

Last edited by mrrangerman; 05-15-2008 at 01:11 PM. Reason: add info
 
Old 05-15-2008, 04:39 PM   #12
avhlza
LQ Newbie
 
Registered: May 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Thumbs up

Quote:
Originally Posted by mrrangerman View Post
avhlza

Here are some links, it seems this notebook has given the same problems with others.

Link1
Link2

Edit: It seems like Link1 has the fix.
Link2 just shows there are issues with the dvd.
That worked perfectly.
Thank you very much mrrangerman!
 
Old 05-15-2008, 05:42 PM   #13
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 50
Quote:
avhlza
That worked perfectly.
Thank you very much mrrangerman!
Glad you got it working!!
 
  


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
Why did GRUB all of a sudden have a problem with my hard drive? pete0403 Linux - Hardware 2 04-17-2008 12:21 PM
Grub problem : not found or not a block device bennethos Debian 1 01-04-2005 04:54 PM
Big Grub problem...maybe bad hard drive?..help! srafx Linux - Software 3 09-13-2004 06:59 PM
Grub setup problem (/boot/grub/stage1 not found) davidas Debian 2 04-28-2004 09:13 PM
Problem: cdrom not found when started with cd in drive Arodef Fedora 1 04-21-2004 11:20 AM


All times are GMT -5. The time now is 10:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration