[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Relaying out my partitions



on Thu, Mar 29, 2001 at 06:36:24PM -0800, Rick Commo (Rick.Commo@verizon.net) wrote:
> I want to change my Linux system from "current" layout to "final" layout,
> shown below.  Debian is what I will go into the future with and this final
> layout makes more sense to me.
> 
> +------+-----------+---------+
> | part | current   | final   |
> |      | layout    | layout  |
> +------+-----------+---------+
> | HDA1 | ML 7.2    | potato  |
> | HDA5 | potato    | woody   |
> | HDA6 | ML 8 beta | sid     |
> | HDA7 | woody     | sandbox |
> | HDA8 | /home     | /home   |
> +------+-----------+---------+
> 
> On the surface it would seem straight forward since all the required kernels
> are in /hda1/boot so I think all that I have to do is
> 
> 	(1) install a new LILO config
> 	(2) copy potato from hda5 to hda1

Yep.

> But of course, there are a couple of questions.
> 
> (a) are there any hidden gotchas?

Get your lilo done right.  I always have to refer to the manual to do it
right.  One option is to chroot into what's going to be your new root
partition and run lilo from there.  Though there are ways to specify the
boot and root partitions, I believe, through command-line options.
There's more than one way to do it®.

> (b) once I have done the copy how do I made a boot floppy for potato now in
> hda1?

    # Insert blank, unformatted floppy in drive.
    # Make sure it's really blank...
    $ dd if=/dev/zero of=/dev/fda bs=1024 count=1440; sync
    # Put kernel on floppy...
    $ dd if=/vmlinuz of=/dev/fda; sync
    # Set boot partition
    $ rdev /dev/fda /dev/hda5
    # confirm boot partition, should return "Root device /dev/hda5".

> Apologies is these seems trivial to some, but I've only been using Debian
> about 5/6 weeks now, have a stable system doing what I want it to do and
> don't want to screw it up.

De nada.  It's pretty easy to make your system unbootable, but it's also
pretty easy to get a bootable disk and undo the damage.   The important
things are remembering not to panic, and having a large hammer.

> Thanks,
> -rick
> 



-- 
Karsten M. Self <kmself@ix.netcom.com>    http://kmself.home.netcom.com/
 What part of "Gestalt" don't you understand?       There is no K5 cabal
  http://gestalt-system.sourceforge.net/         http://www.kuro5hin.org

Attachment: pgpoPhBHgw6qH.pgp
Description: PGP signature


Reply to: