antiX-forum Forum Index antiX-forum
Forum for users of antiX linux. "Mean and Lean"
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

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 new topic   Reply to topic    antiX-forum Forum Index -> antiX-M7.2 VETËVENDOSJE!
View previous topic :: View next topic  
Author Message
coq_vi



Joined: 24 Jun 2008
Posts: 14

PostPosted: Mon Jul 07, 2008 2:10 am    Post subject: Boot Partition. Reply with quote

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.
Back to top
View user's profile Send private message
eriefisher



Joined: 07 Oct 2007
Posts: 676
Location: Canada's South Coast

PostPosted: Mon Jul 07, 2008 3:33 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
coq_vi



Joined: 24 Jun 2008
Posts: 14

PostPosted: Mon Jul 07, 2008 4:28 pm    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    antiX-forum Forum Index -> antiX-M7.2 VETËVENDOSJE! All times are GMT + 3 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum

Community Chest


Powered by phpBB
Hosted by FreeForums.org