LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-10-2006, 05:54 AM   #1
Tioneb
LQ Newbie
 
Registered: Jan 2006
Location: Europe
Distribution: Ubuntu Dapper
Posts: 15

Rep: Reputation: 0
partition for boot


Hi,

If I create a small partition for /boot (around 200MB) on /hda1 does it mean that I will always save the boot and LILO even if bull*** happen to WindowZ or Linux ?

I'm a new user in Linux and I don't want to trash the WindowZ start by trashing Linux

best regards
 
Old 01-10-2006, 06:03 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Distribution: SLES 12
Posts: 1,785

Rep: Reputation: 127Reputation: 127
The /boot partition contains the linux kernel and grub.
 
Old 01-10-2006, 07:56 AM   #3
Tioneb
LQ Newbie
 
Registered: Jan 2006
Location: Europe
Distribution: Ubuntu Dapper
Posts: 15

Original Poster
Rep: Reputation: 0
So....
were I wrong or right with my assumptions ?

 
Old 01-10-2006, 08:33 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Making a /boot partition has nothing to do with how you set up boot loaders (eg LILO).

Note: You cannot make a partition on /dev/sda1---it already IS a partition.

Assuming that you have a Windows install, and you then install Linux, you will be prompted for where to put the boot loader---eg GRUB or LILO. One typical place is the MBR of the first hard drive. This will replace the Windows MBR---which is easily restorable using your Windows install CD.

More details on your setup and we can be more help.....
 
Old 01-10-2006, 10:19 AM   #5
Tioneb
LQ Newbie
 
Registered: Jan 2006
Location: Europe
Distribution: Ubuntu Dapper
Posts: 15

Original Poster
Rep: Reputation: 0
I thought I wasn't clear

I meant by placing the /boot in a small /hda1 will save me from what happen to WinZ (in hda/2) or my current Linux other partitions (hda/5 hda/6) that contains /bin et /opt ...

Then I will always get a safe boot as it is in an other partition than the rest of my files ?

If I'm not clear, I will try harder
 
Old 01-10-2006, 10:42 AM   #6
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian
Posts: 2,192

Rep: Reputation: 339Reputation: 339Reputation: 339Reputation: 339
Quote:
Originally Posted by Tioneb
I thought I wasn't clear

I meant by placing the /boot in a small /hda1 will save me from what happen to WinZ (in hda/2) or my current Linux other partitions (hda/5 hda/6) that contains /bin et /opt ...

Then I will always get a safe boot as it is in an other partition than the rest of my files ?

If I'm not clear, I will try harder
You need more than just /boot to boot. You need things in /etc, /sbin, etc.

To do what I think you want I believe you'll need a seperate / (root). You can also have a /boot seperate from root if you desire, or you can include /boot under root. /boot needs to be there one way or another. If everything else is seperate (i.e., /usr, /var, /opt, /tmp, /home, etc.) then you will still be able to boot the system given just a root filesystem (including /boot). You'd be missing stuff of course. No xwindows GUI for one, but you'd still be able to boot to a command line. Of course if somehow you managed to trash /usr, it would still be trashed after booting into just a root filesystem. You'd have to repair or restore /usr in that case. But your system would still technically be bootable.

Is that what you're after?

p.s. - My Debian system currently has about 140Mb in / and 12Mb in /boot (if I were to strip /boot down to only the one kernel I really need). Most of my space is taken up in /usr.
 
Old 01-10-2006, 11:05 AM   #7
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 31
I don't think it's possible not to have a separate root(/). Well... it might be if you had a partition for every directory directly under it, but I'm sure it'll cause problems with apps that assume they can create top-level directories as the super-user...

As far as I understand the original question, you want to separate out Linux and Windows as far as possible so that what you do in one won't affect the other, no matter how destructive it is. Having a separate /boot partition won't really do this; it has a few advantages (e.g. you can have the rest of your partitions in some bizarre filesystem, and just make /boot readable by GRUB/LILO; if another partition gets damaged somehow your boot partition is more likely to be intact leading to recovery) but I don't have a separate boot partition since they're quite marginal IMHO. If you were to "trash" Linux, you'd likely only be able to damage Windows partitions if you had them mounted and they weren't read-only. OTOH, with commands like dd, Linux gives you the power to write directly to a hard drive so if you managed to really mess up (incredibly unlikely if you're not trying) you can write garbage directly to the hard drive, even if its partitions aren't mounted, and wipe out Windows that way.

But back to the case in hand - whether /boot is its own partition or just a directory on the root partition makes very little difference as far as Windows is concerned. The only difference I can think of is where you site the bootloader - but IIRC you get the option to put it on /dev/hda1 even if you don't have a separate partition. It really isn't a big deal, partition it this way if you like, or let it be part of the root partition, it won't make any difference to Linux-Windows integrity.
 
Old 01-10-2006, 12:38 PM   #8
Tioneb
LQ Newbie
 
Registered: Jan 2006
Location: Europe
Distribution: Ubuntu Dapper
Posts: 15

Original Poster
Rep: Reputation: 0
Thank you both

Now I've got a better overview of the /BOOT adn I won't create this partition finally because the /BOOT alone doesn't meann anything

See you
 
  


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
Grub/Dual boot - Windows partition restored via dd won't boot pazzport Ubuntu 1 01-06-2006 01:29 PM
Deleted linux partition, how to boot Windows partition? mysak Linux - General 3 12-14-2005 04:22 PM
Did partition with partition magic now can't boot windows deancicca Programming 1 12-08-2005 10:27 PM
howto boot Suse 9.1 from external usb drive through bios-accessable boot partition McHenner Linux - Hardware 2 09-30-2004 07:27 AM
strange partition table - boot partition empty etanter Linux - General 0 12-23-2003 09:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:17 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration