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!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm a beginner only, just start learning Fedora installation and know some configure in graphic mode only, I'm don't know in command mode(start learning).
So, I'm a newbie in Linux. I had meet a problem now, that's I'd like to clone a (SUSE)20GB HDD to 80GB new HDD, but after I used Norton Ghost to clone all the disk to new HDD, when I start the cloned hdd, it's shows the GRUB text and stops at that point.
I had try search the similar threads of this problem, but so ashamed, I still can't solve it.
So, can anybody here teach me how to solve it? If can, I hope is in a simple step.
Unfortunatly Norton Ghost does not support cloning GRUB partitions (and back when I tried ghosting a redhat machine it made a complete hash of lilo partitions as well)
If you still have the original 20GB hard disk the following link may help you to recreate the GRUB partition on the new disk:
I was going to suggest DD however wouldn't you need to boot of a live CD and ensure that both hard disks are not mounted?
If you do go the DD route, please be very careful to make sure the input file and the output file are the right way around.
If the old hard disk is /dev/hda and the new hard disk is /dev/hdb then:
Code:
dd if=/dev/hda of=/dev/hdb bs=512 count=1
Otherwise DD may live up to it's nickname "Data Destroyer"
Quote:
OK, when it's done I've cloned the c: drive successfully! But the new hard drive still isn't bootable - it has no master boot record (MBR). The MBR is a groovy little program kept at the very beginning of the partition table � the BIOS loads it during the boot process, and it tells the computer which partition to boot from. It's 512 bytes long. As it happens, simply copying the first 512 bytes from hda onto the beginning of hdc will make hdc bootable. It's weird that that works. I suspect it would mess up if you did much differently, e.g. if you copied hda1 to any partition on hdc other than hdc1. But anyways, here's how you copy those 512 bytes: "dd if=/dev/hda of=/dev/hdc bs=512 count=1". Note that if you screw anything up at all with this command, you're in hot water - for instance, if you switch the values of the "if" and "of" parameters you'll end out with neither disk bootable. Be careful!
I've done this so many ties, I can do it blindfolded....
NOTE: The following could, potentially, make things worse. It makes the assumption that you have fedora on the first hard drive detected, and that you have a seperate /boot partition that is the first partition on the same first hard drive. If you are confused at this point ... do NOT follow the rest of these instructions.
Boot the fedora cd with the following:
boot: linux rescue
Let is scan and mount your filesystems when prompted.
From the command line (the /mnt/sysimage part varies, it will tell you what to type): HOME=/root chroot /mnt/sysimage /bin/bash --login -i
Now type grub
Wait a second and you will, finally, be at a grub prompt:
grub> root (hd0,0)
grub> setup (hd0)
grub> quit
Now get out and reboot: exit
exit
umount -a
reboot
Dear all senior,
Thanks for all of your help, I'm used the DD to clone the old HDD to New HDD successfully.
But now, I'm meet another problem again, That's when I boot up with the New HDD, it's appear no active partition found, check with pqmagic also can't view any partition. BUT when I used Parted Magic to view it, I CAN view all of the partition. WHY? Anybody can teach me how to solve it?
You have failed in the use of dd or your original disk has the same fault.
dd copies bytes and knows nothing about filing system or active partition.
What dd must do is to produce a mirror image of the original. It cannot do anything other than giving you exactly what you got in the original disk.
Linux never need an active partition to boot from. Linux never uses the damn thing which is only required by the MS systems as they go to pieces without it. It is just the first byte of the partition table that every user can switch it on or off.
To make any partition active you boot up a Linux Live CD that has Grub inside, like Ubuntu, knoppix, Debian, Mandriva or Suse (except Slackware/Slax) families. Activate a Grub shell. If it is the first partition of the first bootable disk, known to Grub as (hd0,0), that need to be made active the commands are
I'm try plug in the old HDD, the Linux program can run properly. Only the NEW HDD can't run. Is it I need to do dd again?
I have a sharing file problem, that's can't access the sharing folder of the SUSE PC. Actually I still can access it by last 2 days, but don't know why, I can't access it now. The SUSE pc not do anything, just like a data pc, and now, when want access the folder via network, it's appear "the folder is not accessible, you might not have permission to use the network resource. Please contact the admin...". Firstly I suspense is network card problem, but I still can access it via WEBMIN. So, I don't know what's problem again, anybody know to solve it?
Thanks for Saikee advice..
I had solve the folder sharing problem already..
But the clone HDD haven't solve yet. I'm try download other software to try it.
Saikee, I need ur advice for the step I do, is it got any problem.
Here the step I do:-
~Boot from Parted Magic disk
~Run Command line
~fdisk -l
(hda is 20GB HDD, hdb is 80GB HDD)
~type "dd if=/dev/hda of=/dev/hdb bs=32256" or bs=32768.
~then it display "16xxxxx+1 in, 16xxxxx+1 out"
~then I type fdisk -l again
~I can see both HDD is same now.
exit the program, and restart pc with cloned HDD, but it appear don't have the boot......
but the original hdd can work properly...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.