[SOLVED] Shared home partition with Ubuntu and Mint

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
AK Dave

Re: Shared home partition with Ubuntu and Mint

Post by AK Dave »

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.
Fred

Re: Shared home partition with Ubuntu and Mint

Post by Fred »

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
Fred

Re: Shared home partition with Ubuntu and Mint

Post by Fred »

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.
Fred

Re: Shared home partition with Ubuntu and Mint

Post by Fred »

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.
Fred

Re: Shared home partition with Ubuntu and Mint

Post by Fred »

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.
Fred

Re: Shared home partition with Ubuntu and Mint

Post by Fred »

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
Fred

Re: Shared home partition with Ubuntu and Mint

Post by Fred »

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
Fred

Re: Shared home partition with Ubuntu and Mint

Post by Fred »

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
Fred

Re: Shared home partition with Ubuntu and Mint

Post by Fred »

Mapleblack,

Do you now have a symlink in your mint /home called .tomboy?

Fred
Fred

Re: Shared home partition with Ubuntu and Mint

Post by Fred »

Mapleblack,

ahhhhh..... Wait a minute! You said folder.

You will need to make a symlink for each file in that folder. Rename the original files with bak.

You will then have a folder full of symlinks instead of a single config file.

Fred

EDIT: Delete the broken symlink. You will need to modify the target name and symlink name as required in the command. Look at it, you will figure it out. :-)
Last edited by Fred on Thu May 15, 2008 5:54 pm, edited 1 time in total.
Fred

Re: Shared home partition with Ubuntu and Mint

Post by Fred »

Try it and see I don't think it will work but I could be wrong. :-)

EDIT:
ln -s "/home/richard/BuntuHome/richard/.tomboy " "/home/richard/.tomboy "

If that doesn't work try this:
ln -s "/home/richard/BuntuHome/richard/.tomboy/ " "/home/richard/.tomboy/ "
Fred

Re: Shared home partition with Ubuntu and Mint

Post by Fred »

Mapleblack,

lol... yeah I guess you are busy. Please let me know how it works out. Maybe this old dog can learn a new trick. :-)

Fred
Fred

Re: Shared home partition with Ubuntu and Mint

Post by Fred »

Mapleblack,

Let's try dumping "richard" from the target.

ln -s "/home/richard/BuntuHome/.tomboy/ " "/home/richard/.tomboy/ "

I believe you said the above one came closest to working.

Fred
Fred

Re: Shared home partition with Ubuntu and Mint

Post by Fred »

Mapleblack,

Ok... Let's stop guessing. Let me do a bit of research and I'll get back to you. :-)

Fred
Fred

Re: Shared home partition with Ubuntu and Mint

Post by Fred »

Mapleblack,

If one of the two below don't do the trick I am at a lose to say what to do. According to what I looked at this should do it. I don't understand why it isn't. It is working on my system.

ln -sf /home/richard/BuntuHome/richard/.tomboy .tomboy

ln -sf /home/richard/BuntuHome/.tomboy .tomboy

I am not sure that "richard" is in your path. That's why I gave you both with and without.

Fred
Fred

Re: Shared home partition with Ubuntu and Mint

Post by Fred »

Mapleblack,

Wait a minute, that is where you want to be. So when the Tomboy program tries to open the .tomboy file on one system, it is actually opening it on another system. That is what you want, if I am understanding your needs correctly.

Fred

EDIT: Once you start using the same folder through symlinks, you don't have any folders to sync. I must be misunderstanding something.
Fred

Re: Shared home partition with Ubuntu and Mint

Post by Fred »

Mapleblack,

By symlinking two of the installs to the third real folder, will they all not share the notes in that one folder?

You would have one real folder and two symlinks to that folder. Will that not work? If not, the programs must be marking the notes somehow that prevents them from being used by another program.

I would just like to see it work for you. I have never done that with Tomboy. I have linked other programs, like Opera and Firefox bookmarks, but never anything like Tomboy.

Fred
Fred

Re: Shared home partition with Ubuntu and Mint

Post by Fred »

Mapleblack,

Here is the set-up process for my wife to share my bookmarks.

ln -sf target_file/foldername symlink_filename ....... Base Command

In her system, in a terminal:

cd /home/denise/.mozilla/firefox/79gmvcic.default

mv -i bookmarks.html bookmarksBAK.html

ln -sf /home/denise/Fred/fred/.mozilla/firefox/79gmvcic.default/bookmarks.html bookmarks.html

Close terminal.

This allows her to see and write to my bookmarks when she opens her Firefox. She is actually using my bookmark file through the symlink. Both of our /home directories are read/write for the other. Otherwise we would have permission problems. You shouldn't have that problem since you used the same username.

Now... in the Tomboy thing. Maybe I am not understanding something, so correct me if I am getting it wrong. You have three installs, with Tomboy and a config folder in each. You want to use the same config folder with all three installs. I am assuming that regardless of which program puts a note in the config folder the other install programs can see and use it. This could be the fly in the ointment.

Assuming we can do this, we want to rename the config folders in Mint 4 & 5 so they aren't functional, but won't be lost. Make sure Tomboy isn't running. Let's make a symlink to the config folder we will be using in Ubuntu. I am assuming it is called .tomboy

mv -i .tomboy .tomboyBAK

ln -sf /home/richard/BuntuHome/richard/.tomboy .tomboy

You should now have a symlink in the Mint install you did this in called .tomboy. If we click on it we should see the inside of the .tomboy folder on Ubuntu. If we do the same thing on the other Mint install we should see the same thing when we click on that symlink too. We have only one .tomboy folder but we can see the inside of it by clicking on .tomboy on any one of the three installs.

If you get to this point then you need to test and see if all three installs can read and write to that one folder and see the other notes that were put in by other installs. That will determine if this idea will work. The Tomboy program may or may not recognize the work of the other programs. I just don't know, as I said before. I am hoping for the best. :-)

Fred
Fred

Re: Shared home partition with Ubuntu and Mint

Post by Fred »

Mapleblack,

You are welcome. You have been a pleasure to work with. Many/most would become dissolutioned/frustrated with the amount of work I have asked you to do. :-)

I wish you well in your studies, your willingness to work and stick to the the task at hand will serve you well in that area too.

Please edit your original post and put [Solved] in the subject line.

Fred

EDIT: At some point you may be interested in backing up your files to an external drive or whatever. I wrote some very simple scripts, and instructions on how to make them, if you would be interested. The link is below if you want to take a look at them sometime.

http://www.linuxmint.com/forum/viewtopi ... 42&t=12265
Husse

Re: [SOLVED] Shared home partition with Ubuntu and Mint

Post by Husse »

The tomboy solution interested me as this makes it possible to use the same tomboy in my main install and the beta install
But - I think there's one tomboy too many here :)
ln -sf /home/richard/BuntuHome/richard/.tomboy .tomboy
I suppose you could "middle click" drag and drop > Make link as well
Locked

Return to “Installation & Boot”