Re: Resizing partitons for triple boot system?

From: Bit Twister (BitTwister_at_localhost.localdomain)
Date: 09/10/04


Date: Fri, 10 Sep 2004 16:59:49 GMT

On Fri, 10 Sep 2004 09:18:14 -0700, Larry Gagnon wrote:
> I currently have a dual boot machine (Mandrake Linux and WinXP) on a 120GB

Always provide linux version with question. May help you get better answers.

> hard disc, using LILO. I want to add a third boot to Yoper Linux. My
> partitions currently are:
>
> Primary: 49GB, NTFS, WinXP
> Extended: 68GB, Ext3, Linux
> Logical: 6GB, Ext3, /
> Logical: 512MB, Linux Swap
> Logical: 57GB, Ext3 /home
>
> I want to resize the NTFS Primary partition to 40GB and the third Logical
> partition to 40GB to give me 26GB of space for Yoper Linux.

When you shrink NTFS and set that new 9GB partition, you will have to
modify /etc/fstab and /etc/lilo.conf to set their new partition numbers.

>Is there one
> tool that will do that (I believe "parted" will not resize the NTFS part.)??

Have you looked in the Mandrake Control Center--> Hardware --> Hardware
click the hda and Run Config Tool bottom right.
click the ntfs and umount it.

> Secondly, once I have the space on the hard drive how what do I have to
> add to my lilo.conf to get it to show Yoper Linux on the Lilo boot menu?

First thing I do is create a lilo boot diskette and test it.
lilo -b /dev/fd0
Ignoring entry 'boot'

Or verify you know how to use cd 1 in the rescue mode to replace MD lilo mbr

Also you can do the following in yoper, mount the MD partition and
paste in the Mandrake stanza so you can boot right back into MD.

I usually install a new distro and select lilo in the mbr just like I do on
Mandrake. I then boot Mandrake back up and click up two root terminals
to do the following:

mkdir /yoper
mount -t auto /dev/hdaX /yoper # you solve for X
less /yoper/etc/lilo.conf

I then cut/paste the stanza from /yoper/etc/lilo.conf
into /etc/lilo.conf and add /yoper
to the image and initrd lines and change the label.

Examples from my Mandrake 10.0 Official Edition

Mandrake 10.1 RC1 (/md101rc1) snippet

image=/md101rc1/boot/vmlinuz
        label="md10_1_rc1"
        root=/dev/hdb6
        initrd=/md101rc1/boot/initrd.img
        append="devfs=nomount resume=/dev/hdb1 splash=0"
        vga=788
        read-only
        
and Redhat 8.0 (/rh80) snippet

image=/rh80/boot/vmlinuz-2.4.18-14
        label="Redhat_8_0"
        initrd=/rh80/boot/initrd-2.4.18-14.img
        read-only
        append="root=LABEL=/"

Once changes are made, install them
lilo -v

-- 
The warranty and liability expired as you read this message.
If the above breaks your system, it's yours and you keep both pieces.
Practice safe computing. Backup the file before you change it. 
Do a,  man command_here or less command_here, before using it.


Relevant Pages

  • Re: Help installing both Fat32 AND NTFS on Seperate or Same drive
    ... Win9x/ME can't read, write, boot from, or even SEE an NTFS volume. ... Win9x/ME can't boot at all if the "system partition" (the first primary ... Boot from the WinXP ...
    (microsoft.public.windowsxp.hardware)
  • Re: User access
    ... If one uses the built-in groups/accounts when setting NTFS permissions ... What I stated relative to Safe Mode ... The NTFS partition is the boot ... > DriveImage 7.0 off a boot CD for recovery and it recognizes NTFS. ...
    (microsoft.public.security)
  • Re: I dont see anything to answer my q
    ... > just fine, but not NTFS. ... They have a live ISO that makes life nice. ... partition and created a 2GB swap and a 20G partition for the OS ... Then I dd off the the 1st 512 bytes of that drive(the boot sector) to ...
    (freebsd-questions)
  • Dual boot with Debian (long)
    ... I'm trying to setup my Windows XP Pro box to dual-boot into Debian ... I used a stray 10GB partition and put Debian on it. ... Lilo, pointing it at the appropriate partitions. ... being used to boot XP and this confuses Lilo so I tried removing them ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: Dual (triple) boot problem (win98, Linux, WinXP)
    ... > Device Boot Start End Blocks Id System ... Note that hda4, the extended partition, ends at the last cylinder, ... Simply adding an entry to Lilo for XP is not enough. ... Win98 was already on the machine when you installed Linux) ...
    (linux.redhat.misc)