On Sun, 23 Mar 2003 21:32:58 +0100
Patrick Marquetecken <[EMAIL PROTECTED]> wrote:
> Hi,
>
> 1) When i installed Gentoo i had two other OS systems, Windows XP and Red Hat 7.3.
> Grub was installed on the MBR and grub used the /boot to read the grub.conf from RH
> on /dev/hda8.
> Now i Gentoo is almost compleet, and the partition 4GB is full for 84 %, so its time
> to delete the RH partition and move some data to new created partitions. If i delete
> the /dev/hda8 will my system still boot and how to change his, so it uses /boot from
> my Gentoo on /dev/hda11? I know i have to change the partition numbers to keep
> Gentoo boot.
>
> this command at the grub prompt
> root(hd0,11)
Nope, that hda11 would be hd0,10 grub style.
Based on what you have below in grub.conf, what you need to do is
0) I presume from your entry for gentoo, that you are not using a /boot
partition. I'm really confused by the kernel line for gentoo, instructing
grub to use hda0,10 which is hda11 but instructing the kernel to use
hda12 as root filesystem. Do you really have hda11 as /boot and hda12
as / , in which case I would expect to see root(hd0,10) and simply
kernel /boot/bzImage root=/dev/hda12 hdc=ide-scsi as I have in my
grub.conf
1) insure that your /boot/grub/ on hda?? containins the grub stg* files and
grub.conf
2) grub
root(hd0,?) one less than the hda? of your /boot (or / if not using a boot
partition)
setup (hd0)
quit
3) Assuming that nothing else has changed in your grub.conf, you will now be using the
grub info in hda? at boot time, and nothing else should have changed.
4) eliminate partitions other than hdan and alter grub.conf accordingly.
>
>
> 2) If this is done i'm going to create new partitions and move /usr /var /home to
> there new partitions. Whats the best way to do this?
> cp -Rp
> tar -cvpf
> ...
>
Don't know about the best way, but I always
1) Shutdown to init 1
2) format and mount the partition (example /mnt/var)
3) cp -a /var/* /mnt/var
4) umount /mnt/var
5) mount /dev/hdan /var
6) verify that everything looks copacetic
7) umount /var
8) modify /etc/fstab to mount /dev/hdan as /var automatically
9) cd /var and rm -r *
10) mount /dev/hdan /var again
11) continue with init 3 or init 5 or reboot now
>
> My grub.conf
> #boot=/dev/hda
> default=0
> timeout=3
>
> splashimage=(hd0,10)/grub/splash.xpm.gz
>
> title Gentoo 1.4_r3
> root (hd0,11)
> kernel (hd0,10)/boot/bzImage root=/dev/hda12 hdc=ide-scsi
> title Windows XP
> rootnoverify (hd0,0)
> chainloader +1
> title Red Hat Linux (2.4.18-26.7.x)
> root (hd0,7)
> kernel /vmlinuz-2.4.18-26.7.x ro root=/dev/hda9 hdc=ide-scsi
> initrd /initrd-2.4.18-26.7.x.img
>
> A lot of questions, i know but Gentoo is still verry new to me
>
> TIA
> Patrick
>
>
> --
> Knowledge in a databank,is like food which is in a deepfreeze.
> Nothing comes out better than what is initially put in.
>
> PGP Key: http://users.pandora.be/rivendell/marquetp.gpg
> Registered Linux User #44550
> http://counter.li.org
>
--
[EMAIL PROTECTED] mailing list