setting up partitions, multi users by using command line

Keith ac7xcLnx at newsguy.com
Mon Oct 30 08:46:58 UTC 2006


On Mon, 2006-10-30 at 03:07 -0500, Tobiasissml at aol.com wrote:
> I would like to setup more than one partition and install 5.10 on one
> partition and 6.06 on another - just for practice' sake. I would also
> like to set up a multi user/ multi group environment again for
> practice sake.
>  
> I have a PII with 40 GB hard disk and 6.06 currently installed. I have
> both the disks - for 5.10 & 6.06. I have no data to save so i can
> start from scratch.
> 1) I would like to know how to proceed doing this from the present
> environment  - having 6.06 already installed on my computer.
>  
> 2) I would also like to know how to do this if i had nothing on the
> hard disk - assume i had a brand new hard disk with nothing installed.
>  
> tobias


Obtain Gparted live CD, partition it with two ext 3 partitions and one
swap partition. Install one version in the 1st partition using the swap
partition, you want to use advanced partitioning in Ubuntu and install
grub on the master boot record. Then install the second Ubuntu on the
second partition and select the same swap partition, but do not install
GRUB on the master boot record. 
 After installation boot the 1st distro then with the mounted partition
of the second Ubuntu version go to /media/hda2/boot/grub/ and find the
menu.lst file. Copy the boot commands list for the second version into
the /boot/grub/menu.lst  at the very bottom. Here is my menu.lst file
for a multi-boot system that also has Freespire on another partition. 

Insert the boot lines after this line in menu.lst so when you upgrade 
the 1st distro the menu.lst file will be modified. If you install a new
kernel on the second distro then you will again have to copy the changes
the the boot partition. 

### END DEBIAN AUTOMAGIC KERNELS LIST


# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from
0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default
entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved'
or your
# array will desync and will not let you boot your system.
default		0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the
default entry
# (normally the first entry defined).
timeout		10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive
editing
# control (menu entry editor and command-line)  and entries protected by
the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title		Windows 95/98/NT/2000
# root		(hd0,0)
# makeactive
# chainloader	+1
#
# title		Linux
# root		(hd0,1)
# kernel	/vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=ad0177f1-c539-4e37-a5c2-500d541fc4e8 ro
# kopt_2_6=root=/dev/hda1 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with
the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## ## End Default Options ##

title		Ubuntu, kernel 2.6.17-10-generic
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.17-10-generic root=/dev/hda1 ro quiet splash
initrd		/boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot

title		Ubuntu, kernel 2.6.17-10-generic (recovery mode)
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.17-10-generic root=/dev/hda1 ro single
initrd		/boot/initrd.img-2.6.17-10-generic
boot

title		Ubuntu, memtest86+
root		(hd0,0)
kernel		/boot/memtest86+.bin
quiet
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the 
# Debian
# ones.
title		Other operating systems:
root

title		Debian GNU/Linux (3.1) (on /dev/hda4)
root		(hd0,3)
kernel		/boot/vmlinuz-2.6.14-gratis root=/dev/hda4 
savedefault
boot

# hda4, boot entry
title Freespire Ver. 1.0.13
root (hd0,3)
kernel /boot/vmlinuz-2.6.14-gratis  root=/dev/root rootdev=0x0304
ramdisk=35392 video=vesafb:nomtrr jiffymount=noatime
resume2=swap:/dev/hda4:0x1068000 vga=0x311 splash=silent
initrd /boot/initrd-2.6.14-gratis.gz

# hda4, diagnostic boot entry of /dev/ide/host0/bus0/target0/lun0/part4
title Diagnostics
root (hd0,3)
kernel /boot/vmlinuz-2.6.14-gratis noresume2 single Diagnostics splash=0
root=/dev/root rootdev=0x0304 ramdisk=35392 video=vesafb:nomtrr
jiffymount=noatime resume2=swap:/dev/hda4:0x1068000
initrd /boot/initrd-2.6.14-gratis.gz

# hda4, redetect boot entry of /dev/ide/host0/bus0/target0/lun0/part4
title Redetect
root (hd0,3)
kernel /boot/vmlinuz-2.6.14-gratis noresume2 redetect splash=0
root=/dev/root rootdev=0x0304 ramdisk=35392 video=vesafb:nomtrr
jiffymount=noatime resume2=swap:/dev/hda4:0x1068000
initrd /boot/initrd-2.6.14-gratis.gz



-- 
BC-246T Control & Programming Tool TCL/TK
http://home.comcast.net/~kilowattradio/ftp/
Ham _Scanner SWL Info http://home.comcast.net/~kilowattradio/
WindowXP <> Linux Easy Dual Boot
http://home.comcast.net/~kilowattradio/linux/wXP_linux_boot.txt





More information about the ubuntu-users mailing list