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.
When I issue a Grub shell and ask Grub to find /boot/grub/grub.conf I got
GRUB version 0.93 (640K lower / 3072K 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> find /boot/grub/grub.conf
My Red Hat 9 is in hda11 or (hd0,10) among the 145 OSes I have booted and documented.
My (hd0,9) is Turbo Linux, (hd0,20) is Blag, (hd0,21) is Fedora Core 4, (hd0,23) is Red Flag, (hd0,24) is Linare, (hd0,28) is Vine, (hd0,29) is Specific, (hd0,32) is Asian Linux, (hd0,46) is Foresight, (hd0,57) is Haansoft, (hd0,58) is Fedora Core 3 and (hd0,59) is Scientific Linux, all of which are based on Red Hat and so have grub.conf inside their partitions.
The Grub in my Red Hat 9 is version 0.93 and the Red Hat 9 has a 2.4.20 kernel from command "uname -r" as indicated below
Please find below the stuff of my /boot/grub from the primary disk (hd0):
'device.map e2fs_stage1_5 fat_stage1_5 ffs_stage1_5 grub.conf menu.lst->./grub.conf minix_stage1_5 reiserfs_stage1_5 splash.xpm.gz stage1 stage2 vstafs_stage1_5'
Then I issue grub shell and ask grub to find /boot/grub/grub.conf but I got :
Error 15: file not found
Please find below the output of 'uname -r' :
Please comment me back.
The file grub.conf is inside but your v0.93 Grub refuses to acknowledge it.
If I have guess a reason why Grub behaves like this I would suspect your Grub V0.93 is too old for the job and may not have the driver to read a USB disk during boot time. Once booted the Linux kernel with the help of drivers can see your second hard disk and its contents.
Your Red Hat is indeed very old as I have not worked with such an old 2.4 kernel and such a ancient Grub, even I did have a V0.90 but it was a patched version for DSL.
My guess is even if you manage to get Grub working you still have one hell of an uphill struggle to get Red Hat working with the USB device as that kernel is clearly not equipped to work on USB.
For the cure I am pretty sure you can put a newer version of Grub into your existing installation. You can boot up a recent Linux that has Grub1, say from a Fedora, and copy the booted up /boot/grub directory into your Red Hat directory, which must be of course mounted first. You then used the new Grub from the booted up Fedora, which you use as a Live CD only, to set Grub1 up by command
You should find the new Grub able to detect the (hd1).
Changing the Grub version is a simple matter. I often install Grub on its own this way.
I have a centos5 machine ,so I burned a cd containing its /boot/grub contents. Then I copied it into the same folder on my redhat machine but nothing changed. Can you please confirm if my understanding of your comment is right?
I didn't have success to accomplish this. So I thought if I can resort it and try to install my old redhat on one of my centos partitions and them copy its contents via 'dd if of' to the usb disk (as my centos can recognize the usb disks). Can you please let me know how it can be accomplished (I mean dual booting centos with redhat) ?
Don't think you can dd it out as your hard disk geometry is different to the USB disk.
You could transfer the content of an installed Red Hat by copying every partition of one disk to another disk with the same number of partitions by tar, cp etc commands and then repair Grub and the /etc/fstab. Your Red Hat should be old enough to permit migration.
It is a lot faster if you just take the Red Hat installation CD to the CentOS computer and install it there. I think you should be able to down load the old Red Hat from the Internet.
I have the redhat install cd but my redhat machine does not recognize usb disk (but my centos does). So I thought if I can install redhat on one of its partitions and then copy its contents to usb disk.
Nop. You are copying folder / to folder /new-disk only.
You use dd to clone disk sda to sdb by
dd if=/dev/sda of=/dev/sdb
Just make sure the target disk to be written on sdb is bigger or exactly in size to the source disk and do not mount any of them. This way you copy only the "1" and "0" of the hard disk and so the boot sector, partition table and MBR are cloned.