[SOLVED] Shared home partition with Ubuntu and Mint

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help

Re: Shared home partition with Ubuntu and Mint

Postby Fred on Tue May 13, 2008 6:45 pm

Mapleblack,

I am going to get a bite to eat. I'll be back in about an hour. You should be able to keep busy until I get back. :-)

Let grub install to the mbr on each install. We are going to change it all anyway. Just don't panic that the only install that works is the last one you installed. We will fix it. :-)

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Linux Mint is funded by ads and donations.
 

Re: Shared home partition with Ubuntu and Mint

Postby Husse on Tue May 13, 2008 7:36 pm

Just don't panic that the only install that works is the last one

They should all work :)
Fred I assume you're talking of that they won't boot
They generally don't after an install only the last install has a correct menu.lst and is able to boot - I don't care any more - that's enough :)
To discover this you have to start using another grub ...
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: Shared home partition with Ubuntu and Mint

Postby Fred on Tue May 13, 2008 9:33 pm

Husse,

Well in this case he is making three installs. All of them use UUIDs, so only the last install will have the correct UUIDs and a correct menu.lst. So only the last one installed will boot and work correctly. :-)

Once we correct the Menu.lst and the fstab everything will be ok. :-)

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: Shared home partition with Ubuntu and Mint

Postby Husse on Wed May 14, 2008 6:22 am

Sorry - fstab gets screwed up too - you're right. I normally change to /dev/sdxx when I'm happy with it
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: Shared home partition with Ubuntu and Mint

Postby Mapleblack on Wed May 14, 2008 12:07 pm

Ok So I installed Ubuntu and reïnstalled Mint Daryna. All installs boot perfectly fine.

This is what my disk in Gparted looks like:
Schermafdruk--dev-sda - GParted.png
Schermafdruk--dev-sda - GParted.png (49.36 KiB) Viewed 2393 times

sda5: Elyssa
sda6: Daryna
sda7: Ubuntu
sda8: Ubuntu's /home

FStab
Elyssa
Code: Select all
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/sda5
UUID=700f9692-6b1f-4294-aea0-95fb105c3418 /               ext3    relatime,errors=remount-ro 0       1
# /dev/sda2
UUID=1b649ef2-0635-49d2-a151-2787deb57778 none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0


Daryna
Code: Select all
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/sda6
UUID=463420b0-8ea2-40f6-8cd5-051166b3d1f3 /               ext3    defaults,errors=remount-ro 0       1
# /dev/sda1
UUID=1824892B24890CC6 /media/sda1     ntfs    defaults,umask=007,gid=46 0       1
# /dev/sda5
UUID=700f9692-6b1f-4294-aea0-95fb105c3418 /media/sda5     ext3    defaults        0       2
# /dev/sda7
UUID=3d13d481-ba7a-4f2e-9482-17fcac846af1 /media/sda7     ext3    defaults        0       2
# /dev/sda8
UUID=6fcc8da6-d888-4c9f-9a8f-d0e0246464ef /media/sda8     ext3    defaults        0       2
# /dev/sda2
UUID=1b649ef2-0635-49d2-a151-2787deb57778 none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec 0       0


Ubuntu
Code: Select all
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/sda7
UUID=3d13d481-ba7a-4f2e-9482-17fcac846af1 /               ext3    relatime,errors=remount-ro 0       1
# /dev/sda8
UUID=6fcc8da6-d888-4c9f-9a8f-d0e0246464ef /home           ext3    relatime        0       2
# /dev/sda2
UUID=1b649ef2-0635-49d2-a151-2787deb57778 none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0



menu.list
Elyssa
Code: Select all
# 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-legacy-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

gfxmenu=/etc/grub/message.elyssa

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

# 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=/dev/sda5 ro

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

## 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

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery mode) 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

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title      Linux Mint, kernel 2.6.24-16-generic
root      (hd0,4)
kernel      /boot/vmlinuz-2.6.24-16-generic root=/dev/sda5 ro quiet splash
initrd      /boot/initrd.img-2.6.24-16-generic

title      Linux Mint, kernel 2.6.24-16-generic (recovery mode)
root      (hd0,4)
kernel      /boot/vmlinuz-2.6.24-16-generic root=/dev/sda5 ro single
initrd      /boot/initrd.img-2.6.24-16-generic

title      Linux Mint, kernel memtest86+
root      (hd0,4)
kernel      /boot/memtest86+.bin

### 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


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title      Microsoft Windows XP Professional
root      (hd0,0)
savedefault
makeactive
chainloader   +1


Daryna
Code: Select all
# 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.
default      0

gfxmenu=/etc/grub/message.mint

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

# 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=/dev/sda6 ro

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

## 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

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery mode) 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

## ## End Default Options ##

title      Linux Mint, kernel 2.6.22-14-generic
root      (hd0,5)
kernel      /boot/vmlinuz-2.6.22-14-generic root=/dev/sda6 ro quiet splash
initrd      /boot/initrd.img-2.6.22-14-generic
boot

title      Linux Mint, kernel 2.6.22-14-generic (recovery mode)
root      (hd0,5)
kernel      /boot/vmlinuz-2.6.22-14-generic root=/dev/sda6 ro single
initrd      /boot/initrd.img-2.6.22-14-generic
boot

title      Linux Mint, kernel memtest86+
root      (hd0,5)
kernel      /boot/memtest86+.bin
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


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title      Microsoft Windows XP Professional
root      (hd0,0)
savedefault
makeactive
chainloader   +1


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda5.
title      Linux Mint, kernel 2.6.24-16-generic (on /dev/sda5)
root      (hd0,4)
kernel      /boot/vmlinuz-2.6.24-16-generic root=/dev/sda5 ro quiet splash
initrd      /boot/initrd.img-2.6.24-16-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda5.
title      Linux Mint, kernel 2.6.24-16-generic (recovery mode) (on /dev/sda5)
root      (hd0,4)
kernel      /boot/vmlinuz-2.6.24-16-generic root=/dev/sda5 ro single
initrd      /boot/initrd.img-2.6.24-16-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda5.
title      Linux Mint, kernel memtest86+ (on /dev/sda5)
root      (hd0,4)
kernel      /boot/memtest86+.bin 
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda7.
title      Ubuntu 8.04, kernel 2.6.24-16-generic (on /dev/sda7)
root      (hd0,6)
kernel      /boot/vmlinuz-2.6.24-16-generic root=UUID=3d13d481-ba7a-4f2e-9482-17fcac846af1 ro quiet splash
initrd      /boot/initrd.img-2.6.24-16-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda7.
title      Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode) (on /dev/sda7)
root      (hd0,6)
kernel      /boot/vmlinuz-2.6.24-16-generic root=UUID=3d13d481-ba7a-4f2e-9482-17fcac846af1 ro single
initrd      /boot/initrd.img-2.6.24-16-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda7.
title      Ubuntu 8.04, memtest86+ (on /dev/sda7)
root      (hd0,6)
kernel      /boot/memtest86+.bin 
savedefault
boot


Ubuntu
Code: Select all
# 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 use 'savedefault' 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=3d13d481-ba7a-4f2e-9482-17fcac846af1 ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

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

## 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

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## 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

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title      Ubuntu 8.04, kernel 2.6.24-16-generic
root      (hd0,6)
kernel      /boot/vmlinuz-2.6.24-16-generic root=UUID=3d13d481-ba7a-4f2e-9482-17fcac846af1 ro quiet splash
initrd      /boot/initrd.img-2.6.24-16-generic
quiet

title      Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)
root      (hd0,6)
kernel      /boot/vmlinuz-2.6.24-16-generic root=UUID=3d13d481-ba7a-4f2e-9482-17fcac846af1 ro single
initrd      /boot/initrd.img-2.6.24-16-generic

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

### 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


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title      Microsoft Windows XP Professional
root      (hd0,0)
savedefault
makeactive
chainloader   +1


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda5.
title      Linux Mint, kernel 2.6.24-16-generic (on /dev/sda5)
root      (hd0,4)
kernel      /boot/vmlinuz-2.6.24-16-generic root=/dev/sda5 ro quiet splash
initrd      /boot/initrd.img-2.6.24-16-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda5.
title      Linux Mint, kernel 2.6.24-16-generic (recovery mode) (on /dev/sda5)
root      (hd0,4)
kernel      /boot/vmlinuz-2.6.24-16-generic root=/dev/sda5 ro single
initrd      /boot/initrd.img-2.6.24-16-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda5.
title      Linux Mint, kernel memtest86+ (on /dev/sda5)
root      (hd0,4)
kernel      /boot/memtest86+.bin 
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
title      Linux Mint, kernel 2.6.22-14-generic (on /dev/sda6)
root      (hd0,5)
kernel      /boot/vmlinuz-2.6.22-14-generic root=/dev/sda6 ro quiet splash
initrd      /boot/initrd.img-2.6.22-14-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
title      Linux Mint, kernel 2.6.22-14-generic (recovery mode) (on /dev/sda6)
root      (hd0,5)
kernel      /boot/vmlinuz-2.6.22-14-generic root=/dev/sda6 ro single
initrd      /boot/initrd.img-2.6.22-14-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
title      Linux Mint, kernel memtest86+ (on /dev/sda6)
root      (hd0,5)
kernel      /boot/memtest86+.bin 
savedefault
boot


Again I hope I've given you enough information :) And thanks.
Last edited by Mapleblack on Thu May 15, 2008 4:05 am, edited 1 time in total.
Mapleblack
Level 1
Level 1
 
Posts: 44
Joined: Sat May 10, 2008 5:24 pm
Location: The Netherlands

Re: Shared home partition with Ubuntu and Mint

Postby Fred on Wed May 14, 2008 3:27 pm

Mapleblack

Thought I forgot about you didn't you? :-)

I need to know what your username is.

Also, would you repost the /boot/grub/menu.lst for Ubuntu. The one you posted as Ubuntu was actually Daryna. That's ok, go ahead and make your mistakes now. When we start editing, mistakes aren't allowed. :-)

Fred

EDIT: Also. Is this a laptop?
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: Shared home partition with Ubuntu and Mint

Postby AK Dave on Wed May 14, 2008 3:59 pm

I'm following this discussion eagerly because this is almost exactly what I want to do at home. I have an existing Ubuntu install, currently upgraded to 8.04, with seperate partitions for swap / /boot /usr and /home. I already plan to scrub and reinstall the Ubuntu. I'd like to put Mint Elyssa alongside. Can Ubuntu and Mint share the same /boot or should I scrap that plan entirely? Can Ubuntu32 and Mint share the same /usr? That would be very cool.

I'd like to do this while not messing with my existing /home AND while maintaining a seperate /boot partition. I'd really like to have Evolution share data between all installs.

Current partition layout is:
1gb /boot - massive overkill
10gb /
4gb swap
30gb /usr - massive overkill
115gb /home

Proposed partition layout is:
1gb /boot - still massive overkill
4gb swap
10gb / - Ubuntu64
10gb / - Mint Elyssa
10gb / - Ubuntu32
10gb / - unallocated at present
115gb /home

The idea of a shared /usr between several different Debian-derivatives would be very efficient, if this is possible. Any thoughts? Or should I not bother?
User avatar
AK Dave
Level 6
Level 6
 
Posts: 1042
Joined: Wed May 14, 2008 3:39 pm
Location: Anchorage, AK USA

Re: Shared home partition with Ubuntu and Mint

Postby Husse on Wed May 14, 2008 4:04 pm

While it is possible to share boot this is something I do not recommend. I know Fred can fill in
I don't know if a shared /usr would be possible, but I would not recommend that either
And both options are for "super gurus"
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: Shared home partition with Ubuntu and Mint

Postby Fred on Wed May 14, 2008 4:22 pm

AK Dave,

To answer your question. The short answer is yes, it can be done. Having said that. Unless you are pretty familiar with Linux I wouldn't suggest it. It won't be a plug-n-play set-up. Depending on the distros involved there may be some tweaking necessary to get all the distros to run properly together.

In my opinion it would be more trouble than it is worth unless you are talking about a lot of large, special programs you have, or are going to compile, that you want to share instead of having to duplicate them for each install. It just isn't that beneficial for a desktop binary distro like Mint or Ubuntu. You also have all your eggs in one basket, so-to-speak. An up grade on one distro could break the others, so you have to be very careful when trying to upgrade programs.

On the issue of helping you. I will be happy to do so when I finish with the gentleman I am working with now. I have a single tasking mind in a multi-tasking world. :-)

I would rather not take on another project until I finish with this one. If you will start another thread with the information that you posted above, I will respond when I finish here. :-)

Fred

EDIT: Sharing /boot would be a nightmare. Don't :-)
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: Shared home partition with Ubuntu and Mint

Postby AK Dave on Wed May 14, 2008 4:32 pm

Thats fine. I'm not convinced that there is any benefit, other than purely academic, to maintaining seperate / /boot and /usr in a single drive system. Old slackware habit I suppose, more relevant to an earlier decade of linux experience when kernels updated weekly and everything was rolled from source. I'm relearning my roots. I remember lilo, not grub.

No need for XP. One simplification. I'll maintain the /boot and swap and the only primary partitions, I suppose, but I won't be able to share the /boot.

Looks like the basic idea from above is to hardcode the UUIDs into menu.lst and merge the boot options from all 3 menu.lst files into one. But that final menu.lst will be in /boot, right? Which is the problem, I think.

I don't want to install XP just to have an excuse for a primary parition, bootable, for grub. Do I even need one? Or does grub put something at the MBR to redirect out to a logical partition to find menu.lst?

My existing Ubuntu install was based off of a weekend of "I'm torqued at XP, this is the last straw, out the door you go" and a semi-planned linux install. I didn't plan for a multi distro install like this. So now I'm going to scrub and re-do, so lets do it right from the start.
User avatar
AK Dave
Level 6
Level 6
 
Posts: 1042
Joined: Wed May 14, 2008 3:39 pm
Location: Anchorage, AK USA

Re: Shared home partition with Ubuntu and Mint

Postby Fred on Wed May 14, 2008 4:39 pm

AK Dave,

Like I said, give me some time, my old brain is tied in a knot right now. Start a new thread, put all the info you can think of in it,(how you will use the system, kind of system, number and size of drives, how many systems you want to be able to run, amount of RAM, etc.), and I''ll help you when I finish here. :-)

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: Shared home partition with Ubuntu and Mint

Postby Fred on Wed May 14, 2008 4:48 pm

AK Dave,

Like I said, give me some time, my old brain is tied in a knot right now. Start a new thread, put all the info you can think of in it,(how you will use the system, kind of system, number and size of drives, how many systems you want to be able to run, amount of RAM, etc.), and I''ll help you when I finish here. :-)

Fred

EDIT: Oh... I see you did start a new thread. Thanks.
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: Shared home partition with Ubuntu and Mint

Postby Mapleblack on Thu May 15, 2008 4:08 am

Fred wrote:Mapleblack

Thought I forgot about you didn't you? :-)

I need to know what your username is.

Also, would you repost the /boot/grub/menu.lst for Ubuntu. The one you posted as Ubuntu was actually Daryna. That's ok, go ahead and make your mistakes now. When we start editing, mistakes aren't allowed. :-)

Fred

EDIT: Also. Is this a laptop?

Hey
No didn't thought that.. but I lost the thread since it has moved =p

Corrected the menu.lst for Ubuntu.

My username is "richard" (pleased to meet you ;)) and I'm on a HP Pavilion dv9000 laptop.
Mapleblack
Level 1
Level 1
 
Posts: 44
Joined: Sat May 10, 2008 5:24 pm
Location: The Netherlands

Re: Shared home partition with Ubuntu and Mint

Postby Fred on Thu May 15, 2008 9:50 am

Mapleblack,

OK, I have all your files corrected. Be very careful with the editing process and try not to make mistakes. If you have questions come back and ask. The modified files are in the code box to try to save space.


Instructions:

1) Use the Gparted live cd and set the labels for the partitions you have. If swap shows that it is mounted in Gparted, unmount it before trying to assign it a label. Only set and commit the labels, nothing else.

sda1 = Windows
sda2 = Swap-1
sda5 = Root-1
sda6 = Root-2
sda7 = Root-3
sda8 = Home-1


2) Boot Mint 4. You should try to do the rest of the work in Mint 4 without trying to reboot. Open a terminal and type:

mkdir -vm 777 /media/sda5/home/richard/BuntuHome

mkdir -vm 777 /home/richard/BuntuHome

sudo tune2fs -o journal_data_writeback /dev/sda5
sudo tune2fs -o journal_data_writeback /dev/sda6
sudo tune2fs -o journal_data_writeback /dev/sda7
sudo tune2fs -o journal_data_writeback /dev/sda8


3) Open /etc/fstab in Mint 4 in a terminal for editing with:

gksu gedit /etc/fstab

Remove the contents of that file and replace with the Mint 4 fstab file I sent you, save and quite.

gksu gedit /media/sda5/etc/fstab

Remove the contents of that file and replace with the Mint 5 fstab file I sent you, save and quite.

gksu gedit /media/sda7/etc/fstab

Remove the contents of that file and replace with the Ubuntu fstab file I sent you, save and quite.


4) Now we will fix the menu.lst files.

gksu gedit /media/sda7/boot/grub/menu.lst

Remove the contents of that file and replace with the Ubuntu menu.lst file I sent you, save and quite.

gksu gedit /media/sda5/boot/grub/menu.lst

Remove the contents of that file and replace with the Mint 5 menu.lst file I sent you, save and quite.

gksu gedit /boot/grub/menu.lst

Remove the contents of that file and replace with the Mint 4 menu.lst file I sent you, save and quite.

Open a terminal and type:

sudo grub

root (hd0,5)

setup (hd0)

quit

Close the terminal

We may need to create some folders in the /media files that weren't picked up, but we can come back in and do that if it proves necessary.

You should be finished with everything except putting the symlinks in for the programs you want to share config files with. When you have all this working come back and we can work with that issue a bit more. Reboot and enjoy. :-)

Good Luck, :-)

Fred


Code: Select all
LABELS
sda1 = Windows
sda2 = Swap-1
sda5 = Root-1
sda6 = Root-2
sda7 = Root-3
sda8 = Home-1


fstab for Mint 4

#
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
#
# /dev/sda6
# UUID=
LABEL=Root-2   /      ext3    noatime,nodiratime,defaults,data=writeback,errors=remount-ro     0       1
#
# /dev/sda1
# UUID=
LABEL=Windows   /media/sda1   ntfs    defaults,umask=007,gid=46 0       1
#
# /dev/sda5
# UUID=
LABEL=Root-1   /media/sda5     ext3    noatime,nodiratime,defaults,data=writeback            0       2
#
# /dev/sda7
# UUID=
LABEL=Root-3   /media/sda7     ext3      noatime,nodiratime,defaults,data=writeback           0       2
#
# /dev/sda8
# UUID=
LABEL=Home-1   /media/sda8     ext3    noatime,nodiratime,defaults,data=writeback                0       2
#
# /dev/sda8
# UUID=
LABEL=Home-1   /home/richard/BuntuHome   ext3    noatime,nodiratime,defaults,data=writeback           0     2
#
# /dev/sda2
# UUID=
LABEL=Swap-1   none            swap    sw                0       0
#
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec     0       0
#

===========================================================================


fstab for Ubuntu

#
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
#
# /dev/sda1
# UUID=
LABEL=Windows   /media/sda1   ntfs    defaults,umask=007,gid=46 0       1
#
# /dev/sda5
# UUID=
LABEL=Root-1   /media/sda5     ext3    noatime,nodiratime,defaults,data=writeback            0       2
#
# /dev/sda6
# UUID=
LABEL=Root-2   /media/sda6      ext3    noatime,nodiratime,defaults,data=writeback           0       2
#
# /dev/sda7
# UUID=
LABEL=Root-3   /                    ext3    noatime,nodiratime,defaults,data=writeback,errors=remount-ro     0       1
#
# /dev/sda8
# UUID=
LABEL=Home-1   /home         ext3   noatime,nodiratime,defaults,data=writeback           0     2
#
# /dev/sda2
# UUID=
LABEL=Swap-1   none            swap    sw                0       0
#
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
#

===========================================================================


fstab for Elyssa

#
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
#
# /dev/sda1
# UUID=
LABEL=Windows   /media/sda1   ntfs    defaults,umask=007,gid=46 0       1
#
# /dev/sda5
# UUID=
LABEL=Root-1   /               ext3    noatime,nodiratime,defaults,data=writeback,errors=remount-ro     0       1
#
# /dev/sda6
# UUID=
LABEL=Root-2   /media/sda6   ext3    noatime,nodiratime,defaults,data=writeback           0       2
#
# /dev/sda7
# UUID=
LABEL=Root-3   /media/sda7     ext3      noatime,nodiratime,defaults,data=writeback           0       2
#
# /dev/sda8
# UUID=
LABEL=Home-1   /home/richard/BuntuHome   ext3    noatime,nodiratime,defaults,data=writeback           0     2
#
# /dev/sda8
# UUID=
LABEL=Home-1   /media/sda8         ext3    noatime,nodiratime,defaults,data=writeback           0     2
#
# /dev/sda2
# UUID=
LABEL=Swap-1   none            swap    sw           0       0
#
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
#

===========================================================================


Mint 4 menu.lst

#
# 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.
default      0

gfxmenu=/etc/grub/message.mint

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

# 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=LABEL=Root-2 ro

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

## 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 rootflags=data=writeback

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

## 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

## ## End Default Options ##

title      Linux Mint 4 Gnome
root      (hd0,5)
kernel      /boot/vmlinuz-2.6.22-14-generic root=LABEL=Root-2 ro quiet splash
initrd      /boot/initrd.img-2.6.22-14-generic
boot

title      Linux Mint, kernel 2.6.22-14-generic (recovery mode)
root      (hd0,5)
kernel      /boot/vmlinuz-2.6.22-14-generic root=LABEL=Root-2 ro single
initrd      /boot/initrd.img-2.6.22-14-generic
boot

title      Linux Mint, kernel memtest86+
root      (hd0,5)
kernel      /boot/memtest86+.bin
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


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title      Microsoft Windows XP Professional
root      (hd0,0)
savedefault
makeactive
chainloader   +1


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda5.
title      Linux Mint Elyssa Beta
root      (hd0,4)
kernel      /boot/vmlinuz-2.6.24-16-generic root=LABEL=Root-1 ro quiet splash
initrd      /boot/initrd.img-2.6.24-16-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda5.
title      Linux Mint, kernel 2.6.24-16-generic (recovery mode) (on /dev/sda5)
root      (hd0,4)
kernel      /boot/vmlinuz-2.6.24-16-generic root=LABEL=Root-1 ro single
initrd      /boot/initrd.img-2.6.24-16-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda5.
title      Linux Mint, kernel memtest86+ (on /dev/sda5)
root      (hd0,4)
kernel      /boot/memtest86+.bin
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda7.
title      Ubuntu 8.04 Hardy
root      (hd0,6)
kernel      /boot/vmlinuz-2.6.24-16-generic root=LABEL=Root-3 ro quiet splash
initrd      /boot/initrd.img-2.6.24-16-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda7.
title      Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode) (on /dev/sda7)
root      (hd0,6)
kernel      /boot/vmlinuz-2.6.24-16-generic root=LABEL=Root-3 ro single
initrd      /boot/initrd.img-2.6.24-16-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda7.
title      Ubuntu 8.04, memtest86+ (on /dev/sda7)
root      (hd0,6)
kernel      /boot/memtest86+.bin
savedefault
boot

==========================================================================


Mint 5 menu.lst

#
# 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-legacy-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

gfxmenu=/etc/grub/message.elyssa

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

# 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=LABEL=Root-1 ro

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

## 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 rootflags=data=writeback

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

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

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

## 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

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title      Linux Mint 5 Gnome,
root      (hd0,4)
kernel      /boot/vmlinuz-2.6.24-16-generic root=LABEL=Root-1 ro quiet splash
initrd      /boot/initrd.img-2.6.24-16-generic
boot

title      Linux Mint, kernel 2.6.24-16-generic (recovery mode)
root      (hd0,4)
kernel      /boot/vmlinuz-2.6.24-16-generic root=LABEL=Root-1 ro single
initrd      /boot/initrd.img-2.6.24-16-generic
boot

title      Linux Mint, kernel memtest86+
root      (hd0,4)
kernel      /boot/memtest86+.bin
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


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title      Microsoft Windows XP Professional
root      (hd0,0)
savedefault
makeactive
chainloader   +1


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
title      Linux Mint 4 Gnome
root      (hd0,5)
kernel      /boot/vmlinuz-2.6.22-14-generic root=LABEL=Root-2 ro quiet splash
initrd      /boot/initrd.img-2.6.22-14-generic
boot


title      Linux Mint, kernel 2.6.22-14-generic (recovery mode)
root      (hd0,5)
kernel      /boot/vmlinuz-2.6.22-14-generic root=LABEL=Root-2 ro single
initrd      /boot/initrd.img-2.6.22-14-generic
boot


title      Linux Mint, kernel memtest86+
root      (hd0,5)
kernel      /boot/memtest86+.bin
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda7.
title      Ubuntu 8.04 Hardy
root      (hd0,6)
kernel      /boot/vmlinuz-2.6.24-16-generic root=LABEL=Root-3 ro quiet splash
initrd      /boot/initrd.img-2.6.24-16-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda7.
title      Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode) (on /dev/sda7)
root      (hd0,6)
kernel      /boot/vmlinuz-2.6.24-16-generic root=LABEL=Root-3 ro single
initrd      /boot/initrd.img-2.6.24-16-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda7.
title      Ubuntu 8.04, memtest86+ (on /dev/sda7)
root      (hd0,6)
kernel      /boot/memtest86+.bin
savedefault
boot
#

==========================================================================


Ubuntu Hardy menu.lst


#
# 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 use 'savedefault' 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=LABEL=Root-3 ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

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

## 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 rootflags=data=writeback

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

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## 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 rootflags=data=writeback

## 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

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title      Ubuntu 8.04, kernel 2.6.24-16-generic
root      (hd0,6)
kernel      /boot/vmlinuz-2.6.24-16-generic root=LABEL=Root-3 ro quiet splash
initrd      /boot/initrd.img-2.6.24-16-generic
quiet

title      Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)
root      (hd0,6)
kernel      /boot/vmlinuz-2.6.24-16-generic root=LABEL=Root-3 ro single
initrd      /boot/initrd.img-2.6.24-16-generic

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

### 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


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title      Microsoft Windows XP Professional
root      (hd0,0)
savedefault
makeactive
chainloader   +1


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda5.
title      Linux Mint 5 Gnome
root      (hd0,4)
kernel      /boot/vmlinuz-2.6.24-16-generic root=LABEL=Root-1 ro quiet splash
initrd      /boot/initrd.img-2.6.24-16-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda5.
title      Linux Mint 5 Gnome (recovery mode) (on /dev/sda5)
root      (hd0,4)
kernel      /boot/vmlinuz-2.6.24-16-generic root=LABEL=Root-1 ro single
initrd      /boot/initrd.img-2.6.24-16-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda5.
title      Linux Mint, kernel memtest86+ (on /dev/sda5)
root      (hd0,4)
kernel      /boot/memtest86+.bin
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
title      Linux Mint 4 Gnome
root      (hd0,5)
kernel      /boot/vmlinuz-2.6.22-14-generic root=LABEL=Root-2 ro quiet splash
initrd      /boot/initrd.img-2.6.22-14-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
title      Linux Mint 4 Gnome (recovery mode)
root      (hd0,5)
kernel      /boot/vmlinuz-2.6.22-14-generic root=LABEL=Root-2 ro single
initrd      /boot/initrd.img-2.6.22-14-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
title      Linux Mint, kernel memtest86+ (on /dev/sda6)
root      (hd0,5)
kernel      /boot/memtest86+.bin
savedefault
boot

===========================================================================


EDIT: You should find this set-up noticeably faster than what you have been using. There will also be much less wear and tear on your Laptop hard drive.
Last edited by Fred on Fri May 16, 2008 10:30 am, edited 2 times in total.
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: Shared home partition with Ubuntu and Mint

Postby Mapleblack on Thu May 15, 2008 3:30 pm

Thanks for the isntructions Fred! Looks like you have done this more than once :)

I wasn't able to label the swap. GParted mounted it.

I did everthing you instructed. Great Buntuhome is now mounted in my home.
As you suspected: I got some problems in /media.
I cannot mount Windows, Root-3, Root-2 with my normal user account, I get a message like "Only Root can do that". When I try to mount Root-2 for example with root powers I get "mount point /media/sda6 doesn't exist". So I guess it are just some missing folders :)
Mapleblack
Level 1
Level 1
 
Posts: 44
Joined: Sat May 10, 2008 5:24 pm
Location: The Netherlands

Re: Shared home partition with Ubuntu and Mint

Postby Fred on Thu May 15, 2008 3:53 pm

Mapleblack,

Yes you are right. Just go into /media and create folders for the partitions to be mounted to. That should solve that problem.

Fred

EDIT: You probably couldn't label the swap partition because it was mounted at the time. I should have told you to unmount it first. My mistake, sorry. :-)
Last edited by Fred on Thu May 15, 2008 4:01 pm, edited 1 time in total.
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: Shared home partition with Ubuntu and Mint

Postby Fred on Thu May 15, 2008 3:58 pm

Mapleblack,

Do you know how to create symlinks? If you don't I can show you.

Try symlinking the config. files of the programs you want to share to the config file in Ubuntu /home. Use a soft link and not a hard link, (use the -s flag).

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: Shared home partition with Ubuntu and Mint

Postby Mapleblack on Thu May 15, 2008 4:08 pm

Allright, mounting works now.

Symlinks.. I recall creating some from a tutorial but hard .. soft .. I wouldn't know. Please give me some final instructions :)
Mapleblack
Level 1
Level 1
 
Posts: 44
Joined: Sat May 10, 2008 5:24 pm
Location: The Netherlands

Re: Shared home partition with Ubuntu and Mint

Postby Fred on Thu May 15, 2008 4:31 pm

Mapleblack,

The basic command for a soft symlink is:

ln -s target_filename symlink_filename

Let's say you have a config file in your Mint 4 home called .tomboy6config

Let's say you have a config file in your Ubuntu home called .tomboy6aconfig

They may or may not have the same name. It makes no difference for our purposes.

Rename the config file in Mint 4 home to say .tomboy6configbak

Then run this command in a Mint 4 terminal:

ln -s /home/richard/BuntuHome/richard/.tomboy6aconfig /home/richard/.tomboy6config

You can do the same thing over again from the Mint 5 install.

That's it. I'll be interested to see how that works out. I have never tried to use a symlink like that before. :-)

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: Shared home partition with Ubuntu and Mint

Postby Fred on Thu May 15, 2008 4:45 pm

Mapleblack,

There is something else you need to know. You need to make a note somewhere and remember this.

I have you running in ext3 write back mode. This will give you faster disk I/O and help reduce your disk thrashing.

You must change it back to ordered mode to install another distro however. Once the distro is installed you can put the correct settings in its' /etc/fstab and change it back to write back.

Run the below commands to set it back to ordered mode:

sudo tune2fs -o journal_data_ordered /dev/sda5
sudo tune2fs -o journal_data_ordered /dev/sda6
sudo tune2fs -o journal_data_ordered /dev/sda7
sudo tune2fs -o journal_data_ordered /dev/sda8

Do your install, fix its' fstab like the others and set it back to writeback mode.

sudo tune2fs -o journal_data_writeback /dev/sda5
sudo tune2fs -o journal_data_writeback /dev/sda6
sudo tune2fs -o journal_data_writeback /dev/sda7
sudo tune2fs -o journal_data_writeback /dev/sda8

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Linux Mint is funded by ads and donations.
 
PreviousNext

Return to Installation & Boot

Who is online

Users browsing this forum: No registered users and 18 guests