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

Re: Moving /boot to diferent partition



Hmmm.

>From your hda numbering, I gather that bootable Win2k sits on primary
partition 1 as C:,  /boot sits on primary hda2,  first logical hda5 is win
data D: and of course root sits on hda9.

Once you merge hda1 and hda5, you have a choice of  returning /boot to a
primary (now hda2) or using a logical, which is what I am going to do below.
To make this as painless as possible, borrow the 2 diskette version of
Partiton Magic V6 and do this:

1. Delete hda2 (There is no need to save it; but you can if you have
something special in it.)
2. Merge hda5 to hda1 (and may the Lord have mercy on your win 2k registry!)
I think that with Partition Magic V6, you can do it in one operation.
3. You may need to fiddle the resulting partition sizes to gain a one track
partition ant the begining of your extended partition. It should be a revived
hda5 for your new boot. If you don't put it there, all your fstab mount
points will be wrong, and you will need to edit them manually (I've been
there!) Make sure that you format your little boot partition as ext2.
(Partition Magic will do it for you.)
4.Use your installation diskette to boot your existing system - well I don't
know how it goes with Debian, but it's no problem with SuSE.
5. Edit fstab to mount /boot on hda5, then mount /boot
6. Again, this is installation dependent: Somewhere you should have a utility
to select a kernel and copy all the relevant stuff to /boot. (Again, with
SuSE, it's a breeze.)
7. Edit lilo.conf (or use some friendly utility) to reflect the new location
of /boot, and, yes, to install the boot record in the MBR (unless you are
using some other boot manager.) Make sure lilo.conf still has your Win2k
partiton as a boot option.
8. Run lilo
9. Prepare an emergency boot diskette, by repeating steps 7-8, to target the
diskette instead of  /boot. (Make sure that your lilo.conf is restored to
/boot!)
10. Hold your breath and take a three fingered salute ...

You biggest potential problem will not be Linux. If you had any Win stuff
installed on D: you will have registry woes. I suggest that you uninstall any
Win stuff on D: before you do this, and reinstall it later, on your enlarged
C:


Feigin Micha wrote:

> Hello
>
> I am currently currentlly running /boot from its own parition. I wish to
> make some changes in the partition setuo on my machine which requires
> moving it to the root partition and later back to a new seperate
> partition.
>
> I am running a dual system win2k/linux(debian)
> The current partition setup (relevant ones):
> hda1: fat32
> hda2: boot
> hda5: fat32
> hda9: root
>
> I wan't to unite hda1 and hda5 into one partition which requires moving
> hda2 out of the way and later recreating it after the united partition.
> I am using lilo as the boot manager, installed on hda2 at the moment, not
> the MBR (I think at list, when I change the active partition to win2k it
> boots correctly).
>
>  How do I do this?
> Thank you
> Micha
> michf@post.tau.ac.il
>
> =================================================================
> To unsubscribe, send mail to linux-il-request@linux.org.il with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail linux-il-request@linux.org.il
begin:vcard 
n:Feiglin;Daniel
x-mozilla-html:FALSE
adr:;;;;;;
version:2.1
email;internet:dilogsys@inter.net.il
fn:Daniel Feiglin
end:vcard

Reply to: