Results 1 to 5 of 5

Thread: How to add extra hard drive ?

  1. #1
    Join Date
    May 2005
    Location
    Portsmouth UK
    Beans
    227
    Distro
    Ubuntu 10.04 Lucid Lynx

    How to add extra hard drive ?

    I am looking to add an extra hard drive to a system but when I try to boot it up I find the drive designations have changed and the system won't boot. Is there a way I can prevent this from happening, ie hda not becoming hdb when the second drive is added. Thanks a lot.
    IBM T23 Laptop 1.13 Mhz, 80 Gig Hdd, 1 Gig RAM Lucid 10.04
    Compaq Duron 750 Geforce FX5200 Graphics Karmic 9.10
    Dell GX270 with 2.6 Ghz P4, 1 Gig Ram, Geforce 4 MX 420, Lucid 10.04
    Home Build Athlon XP 2600 I Gig DDR Lucid 10.04

  2. #2
    Therion is offline I Ubuntu, Therefore, I Am
    Join Date
    Sep 2007
    Location
    Right behind you...
    Beans
    2,768
    Distro
    Ubuntu Karmic Koala (testing)

    Re: How to add extra hard drive ?

    Do you check your BIOS settings after installing the slave-drive?

    I know that when I'm playing with drives or adding a new slave, I usually have to reset the boot-order to keep things from borking. The fact that you can't boot when adding the slave drive tells me your system is trying to boot from it instead of the primary drive (with the OS installed on it).

    Install the slave drive, reboot, check your BIOS settings and see if you don't need to change the boot-order back to the proper drive.

  3. #3
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: How to add extra hard drive ?

    Once you have the order set in BIOS, you can make sure a device gets mounted the same each time by giving it a label or mounting it in fstab with a UUID. Designating it in fstab via label or UUID is more consistent than using "/dev/sdXX".

    Labels:
    For ext3:
    Code:
    sudo tune2fs -L labelname /dev/sdXX
    Example: sudo tune2fs -L mydata /dev/sda2

    For NTFS:
    Code:
    ntfslabel /dev/sdXX mydata  # install ntfsprogs to have this capability
    In fstab, you would replace the start of the line "/dev/sdXX" with "LABEL="
    So an entry for ext3 might look like this:
    LABEL=mydata /media/mydata ext3 defaults 0 2
    Last edited by drs305; April 24th, 2009 at 09:08 PM.
    GRUB2

    Retired.

  4. #4
    Join Date
    May 2005
    Location
    Portsmouth UK
    Beans
    227
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How to add extra hard drive ?

    Do you check your BIOS settings after installing the slave-drive?
    It seems to install ok as I get a BIOS message saying the configuration has changed and now showing two drives with the original as the master and teh new as the slave. Ubuntu then tries to boot and I see the splash screen before it drops to a console and I get the alert "/dev/disk/by-uuid does not exist". I have the bios set to boot from the hard drive first, but am not able to differentiate between the two drives. If I select the options at the grub loading screen it shows (hd0,4), with or without the second drive fitted. The label idea for the hard drive sounds good but can I do that if I cannot boot into the OS. Your help is much appreciated.
    IBM T23 Laptop 1.13 Mhz, 80 Gig Hdd, 1 Gig RAM Lucid 10.04
    Compaq Duron 750 Geforce FX5200 Graphics Karmic 9.10
    Dell GX270 with 2.6 Ghz P4, 1 Gig Ram, Geforce 4 MX 420, Lucid 10.04
    Home Build Athlon XP 2600 I Gig DDR Lucid 10.04

  5. #5
    Join Date
    May 2005
    Location
    Portsmouth UK
    Beans
    227
    Distro
    Ubuntu 10.04 Lucid Lynx

    Has my help dried up ?

    Code:
    sudo tune2fs -L labelname /dev/sdXX
    If I run the command above to label my first hard drive, and then boot from it, will that prevent grub from not finding the boot partition when I add the second drive back to the system. If that would work ok it would solve the issue I am having. Thanks in advance.
    IBM T23 Laptop 1.13 Mhz, 80 Gig Hdd, 1 Gig RAM Lucid 10.04
    Compaq Duron 750 Geforce FX5200 Graphics Karmic 9.10
    Dell GX270 with 2.6 Ghz P4, 1 Gig Ram, Geforce 4 MX 420, Lucid 10.04
    Home Build Athlon XP 2600 I Gig DDR Lucid 10.04

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •