My /boot is now not on a separate partition, but in a directory of /
partition.
I would like to have /boot as a separate partition, and to make it
without reinstalling the whole system. Since my first disk already has
max number of primary partitions, I am thinking of creating a new
partition on my second HDD, copying somehow my /boot content there and
then switch to use the new one for booting my SuSE 9.1...
Is it possible?
If yes, then my question is how to make it in a safe way?
Yes it is.
BTW: I do not recommend using primary pratitions for the reason that
On Mon, 09 Aug 2004 12:04:28 +0200
Radule Soskic wrote:
they are limited to 4. I always make an extended partition for Linux so
that I can have as many as I want.
That said, what you need to do first is to create that partition on the
new drive, let's assume partition 1 on the secondary master (/dev/hdc1).
Mount that partition somewhere on your existing system and recursively
copy the contents - example:
Become root
mount /dev/hdc1 /mnt
cd /boot
cp -Rp . /mnt
umount /mnt
Edit your fstab and create the following entry:
/dev/hdc1 /boot reiserfs defaults 1 2
This will cause it to be automatically mounted on boot. You may want to
use noauto so it is only mounted when you install a new kernel.
cd /
mv boot oldboot # This is not necessary, but it gives you a quick way to
# recover from an error.
mkdir boot # create an empty /boot directory for mounting
mount /boot # mount the new boot partition. You will need to do this because
you have moved the location of the GRUB stage2.
Run YaST2 System/Boot Loader Configuration
I prefer to edit the configuration myself. In your case, change (hd0, 0)
to (hd2,0)
hd0,0 == first hd (primary master), first partition
hd2,0 == Third hd (secondary master), first partition
Once you click on Finish, the boot loader information will be installed
into the MBR of the first drive.
Once you do this, exit YaST, and reboot. Make sure you have a rescue
disk just in case.
--
Jerry Feldman
Boston Linux and Unix user group
http://www.blu.org PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9