Re: Grub and raid
On Sun, 2008-02-03 at 14:24 +0100, Marcus Beranek wrote: > Am Sonntag, den 03.02.2008, 12:38 +0100 schrieb Gudjon I. Gudjonsson: > > Hi again > >Thanks for the answers but there seems to be a problem with Grub. The > > device map is OK but when installing GRUB it stops with the message > > Error reading stage1 > > Just a guess: maybe the file "stage1" on the disk is corrupted? Stage 1 is the portion of GRUB that is stored in the MBR itself. When you install grub it copies stage 1 from the filesystem into the MBR. So a stage 1 error would indicate that either the file that was used for writing it is corrupt, as Marcus suggests, or that the data in the MBR was corrupted either during or after writing somehow. Most commonly this will happen if you use tools that like to mess with your MBR, most notably if you still have LILO installed, or if you happen to do certain operation from a Windows partition or a Windows install disk. I do remember hearing that software RAID uses the MBR for some things as well so this could very well be the problem, but I know very little about it as I don't use it myself. One thing that might help you with troubleshooting is a brief breakdown of the various GRUB stages and what they do. http://en.wikipedia.org/wiki/GNU_GRUB#Boot_process http://www.phrack.org/issues.html?issue=63&id=10&mode=txt In a nutshell: stage1: The core GRUB functionality stored in the MBR. (512 bytes) stage1.5: (optional) stage1.5 is only written if it is necessary, and it goes into the extended area after the MBR. (30KB) If you're using a filesystem that can't be relied upon to store a file as an easily readable block on disk (i.e. pretty much every FS other than ext2/3), then you need 1.5. Loading 1.5 loads actual filesystem drivers as well as extended device drivers for things like LVM and, I would assume, software RAID as well. stage2: This is the full GRUB functionality. This is the portion that actually lives on your boot partition and needs to have the original file around. (You can, if you choose, delete the files stage1, and stage1.5 from disk after installing GRUB, but stage 2 must stay there.) This is the portion that does most of the heavy lifting, loads the menu.lst, etc. Hope that helps. Wish I knew more about software RAID in the hopes of being more helpful, but I've never had need to use it. (I use hardware RAID boards.) -- Alex Malinovich Support Free Software, delete your Windows partition TODAY! Encrypted mail preferred. You can get my public key from any of the pgp.net keyservers. Key ID: A6D24837 signature.asc Description: This is a digitally signed message part
Alsa - no sound: I need to repeatedly run alsaconf every time I reboot computer
I'm having the same problem. My soundcard is an nVidia onboard an Asus M2NPV-VM. Here's the same output: lspci -nn |egrep -i 's(ou)?nd|audio|media' 00:10.1 Audio device [0403]: nVidia Corporation MCP51 High Definition Audio [10de:026c] (rev a2) __ lsmod | grep snd snd_hda_intel 23708 0 snd_hda_codec 184192 1 snd_hda_intel snd_pcm_oss48672 0 snd_mixer_oss 21888 1 snd_pcm_oss snd_pcm89096 3 snd_hda_intel,snd_hda_codec,snd_pcm_oss snd_timer 29192 1 snd_pcm snd65256 6 snd_hda_intel,snd_hda_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer soundcore 15392 1 snd snd_page_alloc 14864 2 snd_hda_intel,snd_pcm __ cat /proc/asound/cards 0 [NVidia ]: HDA-Intel - HDA NVidia HDA NVidia at 0xfe024000 irq 5 __ cat /dev/sndstat Sound Driver:3.8.1a-980706 (ALSA v1.0.12rc1 emulation code) Kernel: Linux deb64 2.6.18-5-amd64 #1 SMP Thu May 31 23:51:05 UTC 2007 x86_64 Config options: 0 Installed drivers: Type 10: ALSA emulation Card config: HDA NVidia at 0xfe024000 irq 5 Audio devices: 0: AD198x Analog (DUPLEX) Synth devices: NOT ENABLED IN CONFIG Midi devices: NOT ENABLED IN CONFIG Timers: 7: system timer Mixers: 0: Analog Devices AD1986A __ cat /etc/modprobe.d/sound alias snd-card-0 snd-hda-intel options snd-hda-intel index=0 __ This is the motherboard that high-pitch left channel bug. alsaconf shows two sound devices, i always go for the first. I don't usually reboot, but when i do, there goes the sound. I have no modem though (i use an ethernet router through dhcp) so that card0 probably doesn't apply to me. I've also had trouble setting up the mic, apparently all the devices i chose are not working. Is there a default one? I wanna use VoIP stuff. Nuno -- Fica bem, porta-te mal. Be well, misbehave. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Grub and raid
Am Sonntag, den 03.02.2008, 12:38 +0100 schrieb Gudjon I. Gudjonsson: > Hi again >Thanks for the answers but there seems to be a problem with Grub. The > device map is OK but when installing GRUB it stops with the message > Error reading stage1 Just a guess: maybe the file "stage1" on the disk is corrupted? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Grub and raid
Hi again Thanks for the answers but there seems to be a problem with Grub. The device map is OK but when installing GRUB it stops with the message Error reading stage1 I tried to make a boot CDROM. It starts booting the kernel but then the computer restarts. Has anyone tried the CDROM from grub-rescue-pc? Is it possible that I have to switch to GRUB2? Thanks Gudjon PS. Sorry. I have a huge time press on my right now. I could have searched the internet better for solutions. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Grub and raid
Hi again Thanks for the answers but there seems to be a problem with Grub. The device map is OK but when installing GRUB it stops with the message Error reading stage1 I tried to make a boot CDROM. It starts booting the kernel but then the computer restarts. Has anyone tried the CDROM from grub-rescue-pc? Is it possible that I have to switch to GRUB2? Is there any way to boot the machine from a CD and let it switch to the hard drive automatically as a last solution? Thanks Gudjon PS. Sorry. I have a huge time press on my right now. I could have searched the internet better for solutions. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]