SuSE GmbH

SuSE Support Database

Title: Changing the partitions of your Linux distribution

----------

Mainpage o Searchform o History o Versions o Categories o Contents
Deutsch

----------

Changing the partitions of your Linux distribution

Sequence

  • 1st. Make sure that you can boot your system from CD boot/installdisks

  • exactly as if to install

  • 2nd. Root is created then as Ramdisk (should this work automatically?)

  • 3rd. Partitioning the hard disk (divisions like the old disk,

  • only bigger partitions). You can carry out this partitioning
    as usual, either with YaST or directly with fdisk.

    3.1 reboot!!!

  • 4th. Create EXT2 filesystem for partitions
    mke2fs -c /dev/????
    for every new partition that you have created. You initialise the swap
    partition by
    mkswap -c /dev/????
    Afterwards, activate your swap partition by:
    swapon /dev/h???

  • 5th. Now mount the partitions exactly like they should be later
  • on in the system, but in /mnt. Assuming you have the following divisions:
    /dev/sdb1 /
    /dev/sdb2 /usr
    /dev/sdb5 /home

    Mount as follows:
    mount -text2 /dev/sdb1 /mnt
    mkdir /mnt/usr
    mount -text2 /dev/sdb2 /mnt/usr
    mkdir /mnt/home
    mount -text2 /dev/sdb5 /mnt/home

  • 6th. Now pack again the system on the hard disk (of course, the
  • ftape modul must be loaded) by
    tar xvNCf /mnt /dev/rft0

  • 7th. If the hard disk goes additionally in the system, you must
  • still change a couple of files (the devicenames have already changed).
    I come espontaneously with /etc/fstab and /etc/lilo.conf. You have an
    editor in /mnt/usr/bin.

  • 8th. Now boot the computer and give to the kernel the root partition
  • by (root=/dev/sdb1).

  • 9th. If you use LILO to boot and your /etc/lilo.conf is o.k.,
  • you only need to call "lilo" and the change is done ;-)

    Additionally for SCSI:

  • 1st. Generate and test kernel with SCSI support(!)
  • 2nd. Boot from disk with this kernel and pass "ramdisk=1440", load
  • the root disk as ramdisk and from here on goes as described above.

    ----------

    Keywords: PARTITIONING, RESTORE, TAR, CD

    ----------

    Feedback welcome: Send Mail to mb@suse.de (Please give the following subject: SDB-mb_9)

    ----------

    Mainpage o Searchform o History o Versions o Categories o Contents
    Deutsch

    ----------

    SDB-mb_9, Copyright SuSE GmbH, Nuremberg, Germany - Version:
    SuSE GmbH - Last generated: 07. Oct 1999 17:34:31 by maddin with sdb_gen 1.00.0