Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Fixed the old HDD so that is booting OK now.
but I'm still having problems getting the new HDD to work.
I'm trying to "setup" the new HDD without using a rescue disk.
I sure am doing something wrong or am missing some part of making it bootable.
One time I tried to boot from it, it said something about my /dev/sdb3/ and that is the new "swap" drive, but that can't make it unbootable I think.
If you have changed not only the size of the partitions (in comparison to your old setup) but also the order of the partitions, you also have to adapt the /etc/fstab file of the new system, especially when your system is now on /dev/sdb instead of /dev/sda.
I personally would recommend to remove the dying disk and fix your new install from a live-CD, that should be much easier and will prevent later trouble, when you have to remove the dying disk anyways.
So please, remove the old disk, boot from a live-CD and post the output of
Code:
sudo fdisk -l
and the contents of your /etc/fstab and /boot/grub/menu.lst, of course from the new system.
I'll do that, but...
If I copy all files from the old disk's partitions to the new and then try to install the grub boot on it, that should work, right?
I've copied all partitions, the '/' and the '/data' is the most important partitions
well... the '/' too or else I need to reinstall the system
and after this try to 'grub-install' that SHOULD make the disk bootable and a copy of the old one, right?
You don't need to chroot, just mount your new system (don't forget the boot partition) and then use the --root-directory option. In your case, after removing the old disk and starting from a live-CD it should look somewhat like this:
Code:
mount /dev/sda2 /mnt
mount /dev/sda1 /mnt/boot
grub-install --root-directory=/mnt /dev/sdb
but then all of a sudden no directories existed at all.
so again(getting more and more confused...) by your latest post...
you mean, after have booted on the original drive and copied all files from the original partition to the new disk's partitions...
Then I remove the old HDD and with a the "full" Fedora 12 DVD and using 'rescue' mode... get "into" the prompt and then do the
mountings as you say?
If I mount /dev/sda2 /mnt ... then not one directory exist at all.
seems to me like a bad disk or something, but the disk when checked is OK.
If I 'umount' I still get the same, like no directory exists.
I'm off this for tonight, but any clues for this will help...
According to your previous posts the second primary partition, which should be /dev/sda2 when no other disk is in the system, is the /-partition of your new system.
When after trying to mount it with
Code:
mount /dev/sda2 /mnt
there are no files in /mnt that can only mean that either the mount failed (got any error messages?) or you didn't copy the files.
There was some error of some sort on the new disk so I recopied all and then the it worked... well the mount anyways
If I now just have the NEW drive attached then the thing you said before:
Quote:
mount /dev/sda2 /mnt
mount /dev/sda1 /mnt/boot
grub-install --root-directory=/mnt /dev/sdb
That must be ALL /dev/sdax you mean right? since that's the only HDD device in /dev/
If mounted these in /mnt/1/ and /mnt/1/boot/
If I do that then I get this:
Quote:
bash-4.0# grub-install --root-directory=/mnt/1/ /dev/sda
/sbin/grub: Not found
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.