Transferring Linux on the new HD?
Hello Linux folkz, Due to my old HD (8 years) random failures I have to transfer all my Linux partitions on a new one. I created three partitions on a new HD: swap, /boot (ext2) and / (reiserfs) I mounted new HD on the old one under corresponding /mnt/new and /mnt/new/boot directories and copied all respective directories from my old HD on the new HD. In /fstab I entered: /dev/hde1 swap swap defaults 0 0 /dev/hde2 /mnt/new/boot ext2 defaults 1 1 /dev/hde3 /mnt/new reiserfs defaults 0 0 First question: After reboot my /mnt/new/boot partition has disappeared with all its content. I can mount /mnt/new/ and /mnt/new/boot separately one after another but why they are not mounted properly upon boot up? Why /mnt/new/ supersedes /mnt/new/boot/ ? Second question: If I remove my old faulty HD how I can start using the new one? Can I just change a boot specifying line in /etc/lilo.conf to boot /dev/hde3, remove lines about old HD and modify lines about new HD in /etc/fstab? /dev/hde1 swap swap defaults 0 0 /dev/hde2 /boot ext2 defaults 1 1 /dev/hde3 / reiserfs defaults 0 0 Will it work or not? I don't want to screw up my whole Linux installation Thank you in advance for any ideas. Alex -- MS Windows users should be covered under the Americans with disabilities Act.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Þann föstudagur 20 apríl 2001 17:21 skrifaðir þú:
Hello Linux folkz,
Due to my old HD (8 years) random failures I have to transfer all my Linux partitions on a new one. I created three partitions on a new HD: swap, /boot (ext2) and / (reiserfs) I mounted new HD on the old one under corresponding /mnt/new and /mnt/new/boot directories and copied all respective directories from my old HD on the new HD. In /fstab I entered:
/dev/hde1 swap swap defaults 0 0 /dev/hde2 /mnt/new/boot ext2 defaults 1 1 /dev/hde3 /mnt/new reiserfs defaults 0 0
First question: After reboot my /mnt/new/boot partition has disappeared with all its content. I can mount /mnt/new/ and /mnt/new/boot separately one after another but why they are not mounted properly upon boot up? Why /mnt/new/ supersedes /mnt/new/boot/ ?
/mnt/new should precede /mnt/new/boot in fstab. Mounts are done in chronological order.
Second question: If I remove my old faulty HD how I can start using the new one? Can I just change a boot specifying line in /etc/lilo.conf to boot /dev/hde3, remove lines about old HD and modify lines about new HD in /etc/fstab?
Will your new hard disk be hde in the future ? Can your motherboard boot from hde ? If so, then just make sure the fstab on /mnt/new/etc/fstab is correct for your setup, your /mnt/new/etc/lilo.conf is correct too, and run lilo -r /mnt/new [snip] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE64HSO6mRH+PEpr2YRAksIAKCR9lF8R7V8chsVkesMtFvFOha+HwCfWkGi wwynSeTgjqseKnl9gBDQzK0= =ysSY -----END PGP SIGNATURE-----
participants (2)
-
Alex Daniloff
-
Tor Sigurdsson