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.
I am trying to clone a SATA drive from one PC to an IDE drive on another PC. I have created similar partitions (ie. hda1 5G ext3, hda2 800meg swap, hda3 the rest jfs) and mkfs.ext3/mkswap, etc on the destination IDE. I created an image using g4l of the SATA drive first partition (sda1) and started the g4l server. Than on the destination PC I start g4l and restored the SATA sda1 partition. Shutdown destination PC, rebooted it with KNOPPIX and mounted hda1 and edited fstab to change all the sda1's to hda1's and changed lilo to point to hda. than issued lilo -r /mnt/hda1.
Now when I reboot the system LILO loads and some of the hardware information flashes by (the last thing I can make out is hdc which is my cdrom) than I start to get screens full of Segmentation Fault followed by:
/etc/init: Out of file descriptors
Kernel panic - not syncing: attempted to kill init.
I had done this before with this configuration and somehow it worked, but obviously I'm missing something this time. Any help would be appreciated.
Forgot to add: when I reboot with KNOPPIX and look at the log files on hda1, there is nothing new.
I am moving 3 distros at the moment between two IDE disks. As far as I am aware Linux can be moved around as I done this loads of time. Many of my distros are installed 2 machines before.
The segmentation problem sounds like a bad cloning to me. If it is a real clone the two partitions must be exact size, down to the last byte, otherwise you are better off using tar command.
The steps I took were
(1) clone one partition to another using for example "dd if=/dev/hda8 of=/dev/hdc44 bs=32768". My partitions are standardised at 5Gb each and the operation took 2 minutes each with a transfer rate 42Mb/s.
(2) Amend the boot loader, Grub in all three cases, so that "root" and "kernel" statement reflect the new partition name.
(3) Amend /etc/fstab to change the location of the "/". I used swap at hda5 in all cases so no change needed there.
(4) I restore Grub at the root partition so that they are all "chainloadable"
All the above operations can be done in one Linux (Live CD included).
I am typing this reply with the 3rd transferred distro as all work in the first attempt.
The reason I needed to re-house these 3 distros is because their installers couldn't cope with scanning the 140+ partitions in my box and halted in the installation process. I therefore installed them in the same PC with existing 4 hard disks removed but with only one hard drive having only 15 partitions inside. These 3 distros could then be installed and now moved back to the 4-disk system.