LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-19-2007, 09:02 PM   #1
desimo
LQ Newbie
 
Registered: Jun 2006
Posts: 8

Rep: Reputation: 0
input/output error on grub.conf file on raid1 boot partition


Hi all,

I just setup a raid1 gentoo system. I've always used grub, and was told I might continue to do so even if I put raid1 on my boot partition. The way I think it works is that by specifying
Code:
grub> root (hd1,0)
, grub seeks through the second disk, first partition. Now, when the <i>actual</i> second disk fails, the third disk <i>becomes</i> the second disk and boots.

As it is now, I have no grub.conf file (see below), and grub is installed in the first 32M of /dev/sdb and /dev/sdc

When I power on, I am given a grub command line. I boot by manually selecting my kernel image and typing 'boot'. Then, everything works normally.

Code:
$ sudo rm -rf /boot/grub/grub.conf
rm: cannot remove `grub.conf': Input/output error
Code:
 
$ ls -l | grep grub
ls: cannot access grub.conf: Input/output error
-????????? ? ?    ?         ?            ? grub.conf
-rw-r--r-- 1 root root   1842 Jun 16 01:21 grub.conf.sample
lrwxrwxrwx 1 root root      9 Jun 16 01:21 menu.lst -> grub.conf
Code:
$ cat /etc/fstab
---snip---
/dev/md1    /boot           auto            noatime         1 2
/dev/md2    none            swap            sw              0 0
/dev/md3    /               auto            noatime         0 1
/dev/md4    /home           auto            noatime         0 0
proc        /proc           proc            defaults        0 0
---snip---
Code:
$ cat /proc/mdstat
Personalities : [raid1] 
md1 : active raid1 sdc1[1] sdb1[0]
      40064 blocks [2/2] [UU]
  
md2 : active raid1 sdc2[1] sdb2[0]
      10008384 blocks [2/2] [UU]
      
md3 : active raid1 sdc3[1] sdb3[0]
      120005440 blocks [2/2] [UU]
      
md4 : active raid1 sdc4[1] sdb4[0]
      260654528 blocks [2/2] [UU]
      
unused devices: <none>
Things I have tried so far include:
Adding 'nomount' option to boot partition in fstab, mounting the partition manually -> gives same errors.

Mounting the partitions themselves, such as
Code:
sudo mount /dev/sdb1 /boot
This never works, it gives an error similar to 'either the disk is busy or there's something already mounted there'

I was hoping someone could take a quick look and tell me how I can get grub working properly. If I must switch to LILO, I will, but that may not be necessary.

TIA,
desimo
 
Old 06-24-2007, 01:29 PM   #2
desimo
LQ Newbie
 
Registered: Jun 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Here's what I did to fix it.

Ran
With md1 (my boot partition metadisk) unmounted, ran:
Code:
fsck.ext2 /dev/md1
Gave no errors, reported fs as clean.

Code:
fsck.ext2 -f /dev/md1
Reported that there were 'unused inodes' and asked if I wanted to repair.
 
Old 06-25-2007, 08:53 AM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Thanks for for telling us what worked, it's a part of LQ that some don't understand.

I was subscribed & watching, but didn't post because I had no solution for you.
 
  


Reply



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
aplay: pcm_write:1029: write error: Input/output error mimithebrain Linux - Software 2 12-04-2007 11:51 AM
Change boot order in grub.conf file lmcilwain Fedora 3 07-12-2006 12:33 AM
how to configur grub.conf file for dual boot? den-den Linux - General 2 08-23-2005 02:49 PM
Can't rm file with Input/Output error drlaz Linux - General 0 02-23-2005 06:06 PM
grub configure to take it's conf file from a fat32 partition hq4ever Linux - General 1 11-20-2004 04:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:18 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