Re: Help: Replacing my Windows partition with Linux in a dual boot machine.
From: Douglas Mayne (doug_at_slackware-1.localnet)
Date: Mon, 14 Nov 2005 21:41:05 -0700
On Mon, 14 Nov 2005 21:47:23 +0000, Marie-France wrote:
> Hi all,
> I got a dual boot machine with Windows and Red Hat Linux 7.3 (yes old
> but stable).
> I no longer use Windows (on /dev/hda1) and I would like to use this
> partition to test different Linux distros. The first one I want to
> install is Suse.
> (Unfortunately, a dual boot Linux/linux machine is not well documented
> especially when upgrading)
> The boot loader I use is GRUB.
> So currently I have:
> /dev/hda1 --> Windows (to be replaced with Suse)
> /dev/hda2 Linux
> /dev/hda3 Linux
> /dev/hda5 Linux
> /dev/hda6 Linux
> /dev/hda7 Linux swap
> I'm not 100% sure what to do and I would like some advices.
> First, I think it is perfectly safe to reuse the same swap and /tmp
> partitions for both Linux systems, right?
Swap: yes. /tmp: probably (see below)
> Also, it should be straighforward to install Linux on /dev/hda1 but I'm
> not too sure what to do next in order to have a dual boot machine with
> Suse and Red Hat.
> Also, I would prefer to use the GRUB configuration file under Red Hat
> since this is my stable OS.
> BTW, a slighty related question:
> I had planned to move my /tmp partition on a different unused partition
> to free more space for SUSE. Both partitions are ext3 partitions.
> Sounds easy I thought. I just need to swap the 2 mount points in fstab
> and reboot. I did just that but after rebooting everything seems fine
> except X would not start!
> every 12 seconds or so the following error message was logged:
> gdm_slave_xioerror_handler: Fatal X error - Restarting :0
> Note: my fstab uses labels but besides having misleading labels (that
> can be corrected anyway) I don't see that as an issue.
> Any idea what I'm missing there?
/tmp needs the sticky bit set. I have never done /tmp as a mount, but I
would presume this is what you do
1. Make the mount point.
2. Set permissions:
chmod ugo+rwxt /tmp
3. Mount as tmp (automatic with fstab on next boot):
mount /dev/hda8 /tmp
I am using hda8 as an example. It should not be set read only in fstab.
4. Test creating a file as ordinary user (not root):
> Thanks again!
Caveat: I am not running Suse. I am not running redhat (anymore.)
Note: comments above.
Assuming that you have enough space for Suse on the target partition and
that you will be using OpenSuse 10.0 you might proceed as follows. If
you will be using another suse version, please disregard this info.
I booted OpenSuse 10.0, disc 1 for this test and proceeded through the
installation for a "base system." You will most likely need to use the
"expert mode" of the "installation settings" dialog within the setup
program to specify which partitions to use. I think that Suse defaults
to two partitions (which will overwrite the entire disc): a swap
and a root partition. If that is not what you want, then very carefully
enter the settings you want; otherwise, you could destroy your existing
system. Now is the time for the disclaimer: BACKUP YOUR SYSTEM BEFORE YOU
The "expert mode" includes access to the "expert partitioning tool" which
allows you to define whether partitions should be formatted (or not), what
file system to use, and what the mount point should be. It's pretty easy
to find this when navigating through the "installation settings" dialog,
and there appear to be multiple ways to get to this partitioning tool. You
can either use the "expert" tab or the "change" button. You probably do
not want the defaults (mentioned above). The "Finish" button confirms
your selections. These should now be correctly shown in the right pane
of the main (installation settings) dialog . When you press the "Accept"
button on that dialog, installation begins.
Setting up the grub loader for dual boot is straight-forward. I don't
know whether Suse setup will do it for you (it may just be single
boot.) Just have a floppy or some other means of booting your
system until you have finalized the settings for the loader.