Welcome
Welcome to antiX-forum.

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!

Boot Partition.

Post comments, problems, bugs here.

Boot Partition.

Postby coq_vi on Mon Jul 07, 2008 2:10 am

Hello,

I run a dual-boot Antix M7.2. and windows 2000 on my laptop. I have created a 200 MB partition on sda called sda2 and would like to know what files I have to transfer to it and how to configure the Grub to obtain an independent boot partition.

Windows is installed on sda1
My future boot on sda2
my root on sda3
and the swap on sda4.

Thank you for any advise.
coq_vi
 
Posts: 14
Joined: Tue Jun 24, 2008 2:07 am

Postby eriefisher on Mon Jul 07, 2008 3:33 am

I think you need everything under /boot and you will have to reinstall grub as well for it to work if your not going to do it from a fresh install.
eriefisher
------------------------------------------------------------
If I knew It was this good I would have been "Anti" everything long ago.

The first thing a I met was a fly with a buzz......America
User avatar
eriefisher
 
Posts: 704
Joined: Sun Oct 07, 2007 6:16 pm
Location: Canada's South Coast

Postby coq_vi on Mon Jul 07, 2008 4:28 pm

As eriefisher wrote, to create an independent boot partition I had to move the hole /boot directory to sda2 and reinstall grub.

To do so, as root, I had to mount sda2 :

# mount -t ext3 /dev/sda2 /mnt/sda2

Move the /boot directory to /mnt/sda2

Access the grub shell :

# grub

This takes a few minutes to access and issues :

grub>

As I had moved the grub installation to a different partition by moving my /boot to sda2, I had to ask the grub to find out on which partition it was installed :

grub> find /boot/grub/stage1

It returns the number of the partition in which Grub locates its installation files. In my case :

grub> find /boot/grub/stage1
(hd0,1)

For the grub hd0,1 is equivalent to sda2.

Before reinstalling Grub, I had to notify to him that my grub resided in the hd0,1 partition by typing the command :

grub> root (hd0,1)

Finally to reinstall grub in the MBR I had to set it up on sda without indicating the number part :

grub> setup (hd0)

Exit the grub-shell prompt using “Ctrl+c”.

As I also moved the kernel by moving the /boot directory I had to edit the /mnt/sda2/boot/grub/menu.lst file and correct the partition indications to (hd0,1)
coq_vi
 
Posts: 14
Joined: Tue Jun 24, 2008 2:07 am


Return to antiX-M7.2 VETËVENDOSJE!

Who is online

Users browsing this forum: No registered users and 2 guests