LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-22-2004, 01:13 PM   #1
dibblethewrecke
Member
 
Registered: Nov 2003
Location: UK
Distribution: Arch Linux
Posts: 210

Rep: Reputation: 30
create a dedicated /boot partition after install


I am in the process of repartitioning my disk so that i can install winXP and have a triple boot. It seems wise at this point to set up a dedicated /boot partition so i can add more linux distros in the free space at the end of the drive later.

I already have a distro installed but despite searching LQ and Google I can't seem to find a case of setting up a /boot after you've installed.

I created a dedicated /home after installation and i imagine it is a similar, but maybe less complicated (as it doesn't have to be in /mnt)

a quick hand would be much appreciated!
 
Old 06-22-2004, 08:19 PM   #2
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
I haven't tried this myself because I created a separate /boot partition prior to installation, but I imagine this would be pretty straightforward. What I think ought to work would be to:

* Create the partition and format it with whatever file system you use (ext2, ext3, whatever)
* Reboot into Linux, and go the root directory: cd /
* As root, rename /boot to something else, such as /boot_old.
* Create a new /boot directory at the / level, and verify its permissions are similar to the other /-level directories.
* Mount the new partition to the new /boot mount point
(To illustrate: mount /dev/hdxy /boot where 'x' is the drive and 'y' is the partition)
* Copy the contents of /boot_old back into /boot
* Edit /etc/fstab to include a reference to the new /boot partition

I think that ought to do it, but as I said, I haven't done this personally so take this with a grain a salt. However, if you have already done this before with /home, then doing it for /boot should be essentially exactly the same thing. The fact that it's the /boot partition does not make it any different than any other partition. Good luck with it. -- J.W.
 
Old 06-23-2004, 04:44 AM   #3
dibblethewrecke
Member
 
Registered: Nov 2003
Location: UK
Distribution: Arch Linux
Posts: 210

Original Poster
Rep: Reputation: 30
that's exactly the plan i had in mind. anyone else have any feedback as to whether this will work?

i have the installation cd for my distro which lets me boot the system by giving the root partition. does this mean that it bypasses the local boot info and uses info of the CD? if this is so then it would be safe to try this wouldn't it, cos i can boot from the CD and reconfigure - yes?
 
Old 06-23-2004, 05:17 AM   #4
iluvatar
Member
 
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Rep: Reputation: 30
I did this a while ago. above steps are correct, however I would add one step: re-install your bootloader. almost all bootloaders have at least two stages: one is located in the MBR and just executes the second stage. By moving the /boot to another place, the second stage starts at another point on harddisk so re-installing the bootloader is nessesary. for lilo, just run /sbin/lilo (as root), fur grub, I'm not sure.....
Quote:
i have the installation cd for my distro which lets me boot the system by giving the root partition. does this mean that it bypasses the local boot info and uses info of the CD?
that's right. In such case, the boot stuff is done from CD, it just mounts the hard drive's partition as / dir, so you can always revert the stuff if something goes wrong.

Greetz,
.-=~ iluvatar ~=-.
 
Old 06-23-2004, 05:21 AM   #5
dibblethewrecke
Member
 
Registered: Nov 2003
Location: UK
Distribution: Arch Linux
Posts: 210

Original Poster
Rep: Reputation: 30
Dank u wel!

Just what i needed to know It's so nice to finally know the answers to the questions and just have people confirm them
 
Old 06-23-2004, 06:03 AM   #6
dibblethewrecke
Member
 
Registered: Nov 2003
Location: UK
Distribution: Arch Linux
Posts: 210

Original Poster
Rep: Reputation: 30
worked perfectly.

the only thing is i am not sure what options to use for the partition in lilo. at the mo it is set the same as / as that seemed saftest, that ok? What does everyone else use?
 
Old 06-23-2004, 07:09 AM   #7
iluvatar
Member
 
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Rep: Reputation: 30
sorry but I don't completely understand the question I think, but if you mean where to install lilo, it's safest to install on the first bootable partition (they say...) Although I personally prefer the MBR, because I just got problems and more problems with lilo on the first bootable partition.

.-=~ iluvatar ~=-.
 
Old 06-23-2004, 07:34 AM   #8
dibblethewrecke
Member
 
Registered: Nov 2003
Location: UK
Distribution: Arch Linux
Posts: 210

Original Poster
Rep: Reputation: 30
sorry, was gabbering gibberish a bit there!

i meant the options in fstab not lilo, lilo is fine and dandy and untouched for this exercise, sorry:

/dev/hda6 /boot ext2 defaults,errors=remount-ro 0 1

these options are the same as my root settings, this seemed the best (safest) way to do, is this a good or bad idea? i know what the options do but i don't know when they are most suitable

answered my own question, should be

/dev/hda6 /boot ext2 defaults,errors=remount-ro 0 2

Last edited by dibblethewrecke; 06-23-2004 at 07:37 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using partition magic to create Linux partition then install EviLBoX Linux - General 5 09-12-2008 05:01 AM
Should I create a 1GB PRIMARY Partition for /boot bluedevlx Linux - Newbie 10 11-20-2004 05:36 PM
How can I create a Fat32 Windows share partition on my RH9 install(dual boot w/XP) andrewc Linux - Newbie 1 07-21-2004 08:28 AM
create username and passwd on dedicated server tony286 Linux - General 3 07-18-2003 01:30 PM
Swap - is it still best to use a dedicated partition? ericcarlson Linux - Software 5 01-22-2002 05:31 AM


All times are GMT -5. The time now is 08:52 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration