It is currently Sun May 28, 2017 12:28 pm



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!


Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Boot Partition.
PostPosted: Mon Jul 07, 2008 1:10 am 
Offline

Joined: Tue Jun 24, 2008 1:07 am
Posts: 14
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.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 07, 2008 2:33 am 
Offline
User avatar

Joined: Sun Oct 07, 2007 5:16 pm
Posts: 1520
Location: Canada's South Coast
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

Image

The Home of eriefisher erie's blog


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 07, 2008 3:28 pm 
Offline

Joined: Tue Jun 24, 2008 1:07 am
Posts: 14
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)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
suspicion-preferred