| |||||||
| Linux OS Problems General Linux-based OS problems. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) | |
| I am posting this here for my friend Alpha, he is stuck and needs your help, so any info you might have would be most appreciated! Sorry for the formatting, I am doing a copy paste! "I have RedHat 9 (2.4.something - I forget what it is exactly) kernel running on the following system (specs): MSI KT4AV-L AMD Duron 1.8 GHz 2x 256 MB PC2100 512 MB PC2100 Promise SX6000 6-channel ATA RAID HBA 4x Hitachi 250 GB 7.2krpm ATA/100 (RAID5) Netgear GA311 GbE NIC Powercolor ATi Radeon 9000 32MB (or something like that; I forget what that is specifically as well) I recently either had a power outage of I tripped the breaker (again) and that resulted in an improper shutdown of the system all of them came back online fine; except for that one it throws me into the grub prompt (i.e. grub>) my question is "how do I recover the boot configuration/settings?" Other details below: GRUB version 0.93 (634K lower / 1047488K upper memory) [ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename.] grub> root (hd0, Possible partitions are: Partition num: 0, Filesystem type is ext2fs, partition type 0x83 Partition num: 1, Filesystem type unknown, partition type 0x82 grub> root (hd0,0) Filesystem type is ext2fs, partition type 0x83 grub> kernel /boot Error 15: File not found grub> kernel /lost+found/ (lotsa numbers) grub> root (hd0,1) Filesystem type unknown, partition type 0x82 grub> kernel / Error 17: Cannot mount selected partition Also: I don't have a boot floppy available for it (nor do I know how to create one) I do have an Ubuntu live CD on standby if needed and that preserving the 750 GB of data on the RAID5 array is absolutely crucial. | ||
| | | |
| | #2 (permalink) | |
| Apex Techie Wannabe | Looking at the partition type, partition 1 on hd0 is your swap partition. If all of your hard drives are in the RAID array [as your specs indicate] then partition 0 on hd0 should be that set. The kernel command requires the name of the kernel [such as /vmlinux] using root(hd0,0) You may need to find out the kernel version you had or was standard at the time you installed or last updated the system. The file name may include that information. the commands you enter may look something like this [copied from http://www.redhat.com/docs/manuals/l...onfigfile.html Code: root (hd0,0) kernel /vmlinuz-2.4.18-5.47 ro root=/dev/hda1 initrd /initrd-2.4.18-5.47.img boot | |
| | | |
| | #5 (permalink) | ||||||||||||||||||||||||
| Apex Techie Wannabe | Try hitting tab after typing kernel /vmlinux, it may bring up a list. I think you need the full name of the vmlinux file.
| ||||||||||||||||||||||||
| | | ||||||||||||||||||||||||
| | #7 (permalink) | ||||||||||||||||||||||||
| Apex Techie Wannabe | Oh! D: Well then I would suggest loading up that live CD and trying to mount the partition. If the ext2 is actually ext3 it may have a journal to replay and it will write anything it didnt finish before the power outage. If its not, or there was no problem with the filesystem, you can look in /boot and check the name of the vmlinux and initrd files. If neither are there post what is and we can figure out if you still have a valid kernel on there. Some helpfull commands: Code: sudo mkdir /mnt/harddrive sudo mount -o user,ro /dev/hda1 /mnt/harddrive cd /mnt/harddrive/boot ls
| ||||||||||||||||||||||||
| | | ||||||||||||||||||||||||
| | #10 (permalink) | |
| Thanks again for the replies, his response is: I do anything else with it. It looks as though that grub isn't identifying/recognizing the RAID array as it ishence why it cannot mount it and get access to the data that I want to get access to. Another idea that I've already thought/thinking about is to do an 'upgrade' install...another is to boot the RH9 install CD, and boot: lnux rescue*linux The other idea is to use one of my other (test) systems; install RH9 on it, with the RAID driver (without the RAID card); and then make a boot floppy with that system, so that I can jumpstart my other system; long enough to extract the data off the array | ||
| | | |
| | #11 (permalink) | ||||||||||||||||||||||||
| Apex Techie Wannabe | If he wants to be really safe that last option seems like the best one:
I unfortunatly have never played with RAID so I can not say if any other would be as safe. But as long as the RAID array information is stored on the card (As I think it is for a true RAID card?) that method sounds like it would work to me. | ||||||||||||||||||||||||
| | | ||||||||||||||||||||||||
| | #13 (permalink) | |
To thedemonxanth: see posts above. /boot/ gives an error 15. The somewhat quasi-good news is that it is a HW RAID solution (RAID is independent of OS); so, the theory is that if I boot the SX6000 driver, I should be able to mount the array and begin the data extraction over LAN. "I should be able to mount the array as ro, and begin the data extraction over LAN. Even for GbE, it's going to be a fun couple of days for a 750 GB array." thanks Last edited by $SOLID$ Necro; 13-August-06 at 01:52 AM.. | ||
| | | |
| | #14 (permalink) | ||||||||||||||||||||||||
| Apex Techie Wannabe |
I hope it works out for your friend! ![]() With that much important data he might consider setting up a second computer that has a small linux distro installed on it and the drivers. This way he can throw the array and card in if there is ever a problem with the main system. | ||||||||||||||||||||||||
| | | ||||||||||||||||||||||||
| | #15 (permalink) | |
| Don't worry about the Ubuntu Live CD. It won't make any changes to the files whatsoever. Once you get to the live desktop, just look for/attempt to mount the RAID array. it might not work because of driver issues, but it won't hurt anything to try | ||
| | | |
| | #16 (permalink) | ||||||||||||||||||||||||
I saw the above posts and it looked like you weren't typing the whole path to the kernel, just /boot or /vmlinuz. You have to type in the entire path including kernel image name or it won't find it. | |||||||||||||||||||||||||
| | | ||||||||||||||||||||||||
| | #17 (permalink) | |
| "...it won't hurt anything" "so long as the array stays intact. I never like playing around with/messing with MBR and partition tables no matter what form they come in. It's like the game "Operation". One wrong move and it's bye bye data." grub> kernel / [TAB]; the ONLY thing that comes up is "lost+found"; and completing the line makes it: grub> kernel /lost+found/ if I press TAB after that, I get a huge list of numbers that I can't even read if I type: grub> kernel /b [TAB] Error 15: File Not Found grub> kernel /vm [TAB] You do NOT have to type in the whole thing as it will auto-complete it for you; if it is present. Somehow I get the feeling that /boot and /vmlinuz (in it's various forms) exist which means it may be able to open the bootloader; but not the array itself (at least that IS one possibility that I would have to consider in this scenario) | ||
| | | |
| | #19 (permalink) | |
| "you said 'it might not work because of driver isues, but it won't hurt anything to try.' that statement would be true so long as the data on the array is preserved. In my experience, modifying the MBR, partition tables (regardless what forms it comes in), and the VTOC all result in loss of data. Having said that, someone suggested to me yesterday (one of my friend's that's a Linux expert told me to boot the install cd to rescue mode, and to repair the GRUB bootloader. he also gave me instructions on how to mount the array as read-only so that I can extract the data off of it | ||
| | | |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Accessing my XP install without deleting the bootloader? | Reza | Linux OS Problems | 8 | 04-February-07 06:11 AM |
| Grub questions | phantommaggot | Linux OS Problems | 5 | 04-February-07 01:29 AM |
| XP Password recovery | j-dogg | Windows OS Problems | 3 | 26-August-06 11:22 PM |
| HP Pavilion Recovery CD | Chrome_Rust | Windows OS Problems | 10 | 07-October-03 01:05 PM |
| data recovery | piscikeeper | Other PC Problem / Help | 1 | 18-August-03 08:59 PM |