Mounting two bootable Linux drives on the same system
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Mounting two bootable Linux drives on the same system
I have two hard drives - one that I am actively using in my Fedora Core 2 64-bit system. The other is an old Linux install that is still bootable.
I would like to mount my old Linux disc in my system, copy some files onto my new disc, then reformat the old disc and use it for storage.
The problem is that when I try to boot with both discs installed, the system invariably ends up booting from and mounting the old Linux disc but with the swap partition on the new Linux disc. I have changed boot order. I have even tried telling BIOS to ignore the old disc. Nothing seems to change.
My question: Is there a graceful way (i.e., something short of unplugging my current system disc and using my Fedora rescue CD to wipe out the boot partition on the old disc) that will allow me to mount my old disc under my new system to copy files and then reformat?
If your BIOS, hard drive jumpers, hard drive cables, and boot manager are set up right that should not be happening.
An easy workaround would be to tell the BIOS to ignore your Old Linux hard drive.
The PC should ignore it but Linux will still find it.
----------------------
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hdg2
# initrd /initrd-version.img
#boot=/dev/hdg
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core (2.6.8-1.521)
root (hd0,0)
kernel /vmlinuz-2.6.8-1.521 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.8-1.521.img
title Fedora Core (2.6.7-1.494.2.2)
root (hd0,0)
kernel /vmlinuz-2.6.7-1.494.2.2 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.7-1.494.2.2.img
title Fedora Core (2.6.5-1.358)
root (hd0,0)
kernel /vmlinuz-2.6.5-1.358 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.5-1.358.img
-------------------------
I have a single disc SATA as my primary system drive with /boot, / and swap partitions.
The second drive (i.e., old linux drive) is a PATA drive configured as slave (shows up as hdb1/2/3 for boot, / and swap partitions).
It doesn't seem to matter what BIOS choices I make. I can tell BIOS to IGNORE the PATA drive. It still shows up and acts as the boot drive! The only thing that makes it disappear is to unplug the drive.
Does the old disk have a RH or Fedora distro on it? If so I would guess that having multiple partitions with the same label is causing problems. Have you seen any errors during the boot process?
You can use the tune2fs utility to change the labels on the old drive to something besides / and boot.
The advantages to labels is that you can move partitions around with out having to change the bootloader or the /etc/fstab file.
I do not know if you will need to boot a rescue disk to perform to change the labels or not.
I will bow out as I have no idea how SATA devices affect boot up behavior.
Setting the problem drive to none in the BIOS should leave it unfound.
Good Luck.
There is an error when I boot, when linux tried to mount other partitions, it complains there are two boot partitions and fails to mount the second boot partiton.
It looks like tune2fs might be my best option. I'll give it a try...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.