Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Hello guys. I have a Red Hat 9 box that i cloned to a much bigger hdd. I kept all the partitions at the same size except the very last one i made it to take up the rest of the space on my new drive. I used Acronis True Image to clone the hard drive. It did cloned the mbr record, but for some reason the box will not boot now. I did take the old drive out. After the post i get stuck at GRUB message. So i went ahead and downloaded the Knoppix cd (can't find my RH9 cd's anymore), booted off the cd. I went ahead and mount /dev/hda3 /mnt/hda3 ...this is my / partition. Am i right? Then i chroot /mnt/hda3. Then i tried to grub-install /dev/hda3 and get this:
[root@Knoppix /]# grub-install /dev/hda3
/usr/share/grub/i386-redhat/stage1: Not found.
What am i doing wrong? Do i have to use RH 9 cd and boot into rescue mode?
mount /dev/hda3 /mnt/hda3 ...this is my / partition. Am i right?
I don't know, is that your root partition?
You don't need to mount the partition to fix the grub. If /dev/hda3 is indeed your root partition, then boot up with Knoppix as before.
Type the command: grub
At the grub> prompt, type: root (hd0,2)
Then type: setup (hd0)
then type: quit
reboot and try it.
If that doesn't work, post the results of the command: fdisk -l
There seems to be quite a few linux partitions on your drive. No idea which one is the root so we can try a couple of methods.
One is to boot into knoppix and use the grub command: grub
At the grub> prompt, type: find /sbin/init
Use the results in the next command:[B]root ( put that info here )
Then the command: setup (hd0)
Another method would be to go into /mnt/hda1 or hda2 or hda3 ..... and look for your /boot/grub.conf and find out what the root partition is.
Another method would be to get ahold of CD#1 and go into rescue mode.
You do that by typing:linux rescue
grub> root (hd0,2)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... no
Error 15: File not found
I went into /mnt/hda3 and here it is:
root@0[grub]# cat grub.conf
# grub.conf generated by anaconda
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hda3
# initrd /initrd-version.img
title Red Hat Linux (2.4.20-8)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi
I guess i am going to have to d/l the first cd of RH9.
Somehow, I don't think rescue mode will be much help in this case. The command grub> find /sbin/init shows (hd0,2) and the grub.config shows (hd0,0) . Did you get the partitions copied over in the correct order?
yes, I used Acronis True Image to clone from my 100G drive to the 300G. I've had good experience with Acronis before, where Ghost would never clone the MBR record ..Acronis always did. The only thing i can think of is ..i resized my /usr from 14G to 7G ...when i did that ..i had to move partitions much closer to each other..otherwise there would be empty slots on the drive. Do you think moving the partitions could have caused this? I did move them in the same order they were originally laid out on the drive.