LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-15-2006, 01:42 PM   #1
paulsiu
Member
 
Registered: Apr 2006
Posts: 143

Rep: Reputation: 15
Linux Partition for experimentation


I recently upgraded my laptop's HD. What I like to do is to try out different distro on my laptop. Here's what I am proposing:

1. I create the following partitions:

Windows Partition - Primary, NTFS, Boot
OS Share - Primary, FAT32
Linux root - Primary, ReiserFS
Linux /home - Logical, ResierFS
Linux Swap - Logical

The OS share will be used to share data between Linux and Windows. I used a separate /home because I will be able to maintain the same home directory if I want to install different version of Linux. In addition, I can backup the partition using Acronis TrueImage, which can backup Linux partitions, but not individual Linux directories.

I am assuming that Linux root has to be an primary partition (more on that later).

2. Install GRUB or Lilo on Linux Root Boot sector. Use dd to copy the boot sector to a file and copy it to the OS Share.

3. Copy the boot sector file to the Windows Partition and configure NTLDR to load it. This is why I said I needed the Linux root on an primary partition since I doubt windows allow loading from a logical parition. I am not sure if OS Share would work from a logical partition either.

This should allow me to install a version of Linux on the Linux partition. When I need to switch, I can use Acronis TrueImage to backup the partitions to an image file to be restored later on if I need to.

One thing does puzzled me though. I can get NTLDR to load Grub/Lilo via the copied boot sector file, but will the copied boot sector still work if change the partition size?

Paul
 
Old 06-15-2006, 10:17 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Personally, I just make /boot a separate partition (the third primary on my laptop) and then use grub to dual boot. Then if I nuke the linux / partition or the Windows partition, things will still boot. If I reinstall windows and overwrite the mbr, I just boot a knoppix cd and reinstall grub to the mbr.

In my (limited) experience, the OS share partition and the linux root partition don't care whether they're logical partitions or not.

Just my

Last edited by pljvaldez; 06-15-2006 at 10:20 PM.
 
Old 06-16-2006, 06:15 AM   #3
paulsiu
Member
 
Registered: Apr 2006
Posts: 143

Original Poster
Rep: Reputation: 15
If I install a new version of Linux, wouldn't the /boot be toast, too? How do you prevent it from happening other than backing it up?
 
Old 06-16-2006, 06:22 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Don't install a loader with the latter distros, or install it to the root partition.

Works well.
Copying lilo over is a mugs game - has to be done every time you run the lilo command. Grub is better in this respect, but pljvaldez suggestion is best.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
no Internet: a frequent result of experimentation ctos Slackware 3 04-10-2006 08:16 PM
I am using windows and linux i one partition now ia m awnt remove the linux partition sathish80 Linux - Newbie 2 01-23-2006 10:55 PM
install slack 9.1 experimentation. xviddivxoggmp3 Slackware - Installation 5 03-04-2004 01:12 AM
How to add new partition before Linux partition in an existing Linux box? ashutosh Linux - Software 3 04-23-2002 03:26 AM
Experimentation ryanstrayer Linux - General 3 01-22-2002 05:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:26 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
Open Source Consulting | Domain Registration