Moving a Linux installed distrib to other partitions on same drive

Moving a Linux installed distrib to other partitions on same drive

Post by mike » Sun, 31 Dec 1899 09:00:00



Hi
    I would like to know if copying all the partitions of an
installed Linux distribution to another set of partitions
on the same drive would be workable. Assuming that you
could boot into it, would it work properly, exactly as if
it was at the other location, if I changed all the partition
references in the fstab file? Or would all the links within
the directories have to be changed to reflect the partition
changes?
  Are the links, soft or hard in Linux relative or absolute?

                                                      Thanks
                                                        Mike

 
 
 

Moving a Linux installed distrib to other partitions on same drive

Post by Dances With Cro » Sun, 31 Dec 1899 09:00:00



>    I would like to know if copying all the partitions of an
>installed Linux distribution to another set of partitions on the same
>drive would be workable. Assuming that you could boot into it, would it
>work properly, exactly as if it was at the other location, if I changed
>all the partition references in the fstab file? Or would all the links
>within the directories have to be changed to reflect the partition
>changes?  Are the links, soft or hard in Linux relative or absolute?

There should be no problem in doing what you describe.  I don't know
exactly what you mean by "relative or absolute" links here... symbolic
links point directly to filenames; you can have a symbolic link at
/bin/vi that points to /usr/bin/vim, and these links go through the
filesystem and do not depend on absolute sector addresses or anything
like that.  It is possible to have a symbolic link point to, say,
../blah, and that could be considered a relative link.  So long as you
keep the directory structure consistent (ie, not moving /usr/local into
/usr/opt) then there should be no problems.

Hard links are entries in a directory which basically say, "file1 has
inode #3456" and "file2 also has inode #3456".  Hard links cannot cross
filesystem boundaries.

You'll most likely want to boot the changed system with a boot disk and
the command line "linux root=/dev/hdXX", then once the system's up,
re-run LILO after editing /etc/lilo.conf to reflect the changes.

--
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin /  Those who do not understand Unix are
http://www.brainbench.com     /   condemned to reinvent it, poorly.
-----------------------------/           --Henry Spencer

 
 
 

Moving a Linux installed distrib to other partitions on same drive

Post by Leonard Even » Sun, 31 Dec 1899 09:00:00



> Hi
>     I would like to know if copying all the partitions of an
> installed Linux distribution to another set of partitions
> on the same drive would be workable. Assuming that you
> could boot into it, would it work properly, exactly as if
> it was at the other location, if I changed all the partition
> references in the fstab file? Or would all the links within
> the directories have to be changed to reflect the partition
> changes?
>   Are the links, soft or hard in Linux relative or absolute?

>                                                       Thanks
>                                                         Mike

As someone has already told you, there should be no problem.
There are several ways to copy.  One is cp -a, but make sure
you understand how to do it.

One problem you may encounter is that your kernel may no longer
be in partition entirely below cylinder 1024.  If so your lilo
may not work.  But the latest version of lilo allows you to
boot on such a system from the hard drive.  Of course you should
be able to boot from a floppy, but you may have to fiddle a bit
passing parameters to tell the kernel where the root partition is.

--


Dept. of Mathematics, Northwestern Univ., Evanston, IL 60208

 
 
 

1. Move Linux from Drive 1 to Drive 2 without re-install ??

hi,

 i have slackware 3.0 installed on my drive 1 (a wd 525), however I want
to make it drive 2 with out reinstalling it because I still need to run
all my dos junk (a quatum 5??)!! I can boot off the linux when it's
drive 2 (i.e /dev/hdb2) however it willn't let me do to much of
anything. any and all help will be greatlly appreciated.

Michael B. Williams

2. Video and Sound

3. Linux MDK install problem (same problem with other linux distrib)

4. terminal emulation package TI 924 or TI931 VDT terminal

5. Moving/Resizing Linux (ext2) partitions with Partition Magic: It works!

6. Apache warning again

7. Difficulty in install to 8.4g drive and others !

8. VFS for OS/2 HPFS

9. Installing Linux from scratch w/o distrib - How ?

10. Moving linux installation from 1st drive to 2nd drive

11. RH 5.0 install freaks out drive partition table...now can't fdisk the drive!

12. can't boot after moving /usr partition/drive

13. Moving a partition to a new drive