Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Installing Ubuntu (13.04) on a 3TB hard drive and booting from it

  1. #1
    Join Date
    Apr 2013
    Beans
    10

    Installing Ubuntu (13.04) on a 3TB hard drive and booting from it

    Dear reader at the Ubuntu forums,

    Recently I received my new 3TB hard drives (two of them). I intend to use one as a storage drive for windows (in addition to my SSD on which windows is installed) and the other one as a dedicated drive for Ubuntu. However, I have not been able to boot to the 3TB drive yet, even though Ubuntu (13.04) seems to install to it just fine. Both drives are recognized just fine under my UEFI BIOS. The motherboard I am using is the Asus Sabertooth Z77.

    The first thing I did when receiving the drives was hook them up to my computer and boot into windows. I used the windows partioning software to convert the drives to GPT, which apparently is needed to be able to gain access to all of the 3TB of space. I then used a simple flash drive to install Ubuntu on the hard drive.

    During the installation process I choose 'something else' as the installation option, and take a look at the drive I want to install to (/dev/sdc). I add a swap partition (gets called /dev/sdc1) with 8GB (plenty of space, but there's plenty of space now anyway), and add the rest of the data to an Ext4 partition with mount point '/' (gets called /dev/sdc2). I choose /dev/sdc for the boot loader installation device (not sdc1 or sdc2 but the drive itself, read somewhere I was supposed to). I complete the installation and reboot. However, the disk is not recognized as bootable and there doesn't seem to be a way (maybe there is but I'm not aware) to boot to it in the UEFI BIOS.

    I repeated the same process with the addition of a tiny 'Reserved BIOS boot area' partition as well as a 1GB partition with mount point /boot (so 4 partitions in total). Also repeated with disk set to MBR (in windows partitioning software, I thought 'I'll just deal with 2TB if needed'), but no success.

    Basically, the thing is, I want to boot Ubuntu on a 3TB hard drive using a UEFI bios, but so far I've had little success (installing seems to go fine, booting doesn't).

    I really hope there is someone here who is able to help me out (need to get working on my university project is linux again).
    Last edited by dribbeldog; April 30th, 2013 at 04:17 PM.

  2. #2
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Installing Ubuntu (13.04) on a 3TB hard drive and booting from it

    UEFI is a lot different than BIOS.

    I would not have used Windows to create gpt drives. Does it show all 3TB correctly? Some users have had issues with Windows partitioning tools and large gpt drives. I would suggest gdisk or gparted. Install gdisk and see what it says. Windows may have put backup partition table in wrong place.

    To boot with UEFI you need an efi partition as the first partition, although it may install or maybe should install to the efi partition on the SSD.
    How you boot installer is how it installs.

    You should not need separate /boot, but grub/Ubuntu has had issues with very large / (root) partitions. I would suggest only 25GB for / and then either separate /home or separate data partition(s). If sharing with Windows you should have a NTFS shared data partition.

    For the Total space you want for Ubuntu:
    Ubuntu's standard install is just / (root) & swap, but it is better to add another partition for /home if allocating over 30GB.:
    Only if gpt - all partitions in gpt are primary:
    gpt: 250 MB efi FAT32 (for UEFI boot or future use for UEFI, you only can have one per drive, so if already existing do not attempt another)
    gpt: 1 MB bios_grub no format (for BIOS boot not required for UEFI)
    gpt or MBR(msdos)
    Ubuntu partitions - smaller root only where hard drive space is limited.
    If total space less than about 30GB just use / not separate /home or standard install.
    1. 10-25 GB Mountpoint / primary or logical beginning ext4(or ext3)
    2. all but 2 GB Mountpoint /home logical beginning ext4(or ext3)
    3. 2 GB Mountpoint swap logical

    Depending on how much memory you have you may not absolutely need swap but having some is still recommended. I do not hibernate (boots fast enough for me) but if hibernating then you need swap equal to RAM in GiB not GB. And if dual booting with windows a shared NTFS partition is also recommended. But you usually cannot create that as part of the install, just leave some space. Or partition in advance (recommended).
    One advantage of partitioning in advance is that the installer will use the swap space to speed up the install. Thanks Herman for the tip.
    https://help.ubuntu.com/community/DiskSpace
    http://ubuntuforums.org/showthread.php?t=2021534

    Since it did not have Windows pre-installed, you should not have any of the secure boot issues.

    You will need to use the 64 bit version of 13.04, 12.10 or 12.04.2 and from the UEFI menu boot the flash drive in UEFI mode. That way it will install in UEFI mode.
    Systems need quick boot or fast boot turned off in UEFI settings. Vital for some systems. Best to backup efi partition and Windows partition first.
    Use Windows Disk Tools to shrink Windows main partition, but not to create any new partitions, if installing on same drive.
    https://help.ubuntu.com/community/UEFI
    https://wiki.archlinux.org/index.php/UEFI
    As of 12.04.2, it is possible to install on UEFI systems with Secure Boot enabled (using signed versions of Shim, GRUB, and the Linux kernel). This is only currently set up for Ubuntu (desktop, alternate, and server) and Edubuntu images due to pressures of time; we expect to enable it across the entire Ubuntu family for 12.04.3. Details:
    https://wiki.ubuntu.com/PrecisePango.../UbuntuDesktop
    Installing Grub for UEFI secure boot is only possible if you have booted your system using EFI.


    grub2's os-prober creates wrong style (BIOS) chain boot entry
    https://bugs.launchpad.net/ubuntu/+s...2/+bug/1024383
    type of entry from Boot-Repair that should work.
    'Windows UEFI loader'
    Type of entry that does not work:
    'Windows ...) (on /dev/sdXY)'
    Some info in Post #3 on cleaning up menus, if desired.
    http://ubuntuforums.org/showthread.php?t=2085530
    Boot Repair -Also handles LVM, GPT, separate /boot and UEFI dual boot.:
    https://help.ubuntu.com/community/Boot-Repair


    Two Drive UEFI installs
    Samsung Series 7 laptop - Ubuntu UEFI install to sdc (ignore CSM sidetrack)
    http://ubuntuforums.org/showthread.php?t=2135459
    Installing Ubuntu 12.10 alongside Windows 8 on Asus K95V laptop HD/SSD (EFI) Two drives. Details in post #6
    http://ubuntuforums.org/showthread.php?t=2116610
    UEFI dual boot two drives - HP
    http://ubuntuforums.org/showthread.php?t=2072950
    UEFI dual boot two drives see #14 on how edit UUID to Windows efi partiton
    http://ubuntuforums.org/showthread.php?t=2031836
    For info on UEFI boot install & repair - Updated Mar 2015:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  3. #3
    Join Date
    Apr 2013
    Beans
    10

    Re: Installing Ubuntu (13.04) on a 3TB hard drive and booting from it

    Thank you for the extensive reply already, especially the part about which partitions I precisely needed was very helpful.

    I feel a solution is getting closer. When partitioning and installing as you recommended, I was able to boot into Ubuntu. However, the boot loader (grub) is not able to boot into Windows 7 (64 bit).

    Apparently for some people the solution has been to run boot repair, but this did not work for me yet. I tried to run it from my Ubuntu flash drive (as well as from the installation itself) and the following happens: first it asks me if my 3TB drive is a removable disk (not sure if this does any harm, but it is not, so I click 'no'). Then it says 'EFI detected. Please check the options.', not really sure what it wants me to do here. If I then click 'recommended repair' it gives me an error: 'PT detected. Please create a BIOS-Boot partition (>1MB, unformatted filesystem, bios_grub flag). This can be performed via tools such as Gparted. Then try again. Alternatively, you can retry after activating the [Separate /boot/efi partition:] option.'. The big question is how to proceed from here.

    Anyway, the process fails and I am still not able to boot into Windows using grub. I am able to if I change boot priorities and just set the SSD (windows drive) to the highest priority, but this is obviously not desired.

    Thanks in advance for any further assistance, I really hope this can be resolved with relative ease!

  4. #4
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Installing Ubuntu (13.04) on a 3TB hard drive and booting from it

    It if wants a bios_grub partition, then it seems you may have installed in BIOS mode? If gpt partitioned you can convert with Boot-Repair to UEFI mode. How you boot installer is how it installs. From a UEFI menu the installer show show twice, one UEFI and the other Legacy/CSM/BIOS or whatever.

    Best to post a link to BootInfo report so we can review where you are at.
    For info on UEFI boot install & repair - Updated Mar 2015:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  5. #5
    Join Date
    Apr 2013
    Beans
    10

    Re: Installing Ubuntu (13.04) on a 3TB hard drive and booting from it

    I installed from a USB stick (which boots in UEFI mode) and I believe this means I installed in UEFI mode.

    Here's a link to my BootInfo report: http://paste.ubuntu.com/5603987/

    (Boot loader should be at sdc, as well as my Ubuntu installation. Windows installation at sda, windows massive storage at sbd)

    Thanks again for the help, it is highly appreciated.

  6. #6
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Installing Ubuntu (13.04) on a 3TB hard drive and booting from it

    Boot-Repair may be getting confused with sda being Windows in BIOS with MBR(msdos) partitioning and gpt partitioning on sdb & sdc.

    You cannot easily dual boot as BIOS and UEFI write data for system differently. So the only way you can boot Windows on sda is to go into UEFI/BIOS can change to BIOS, then to Boot Ubuntu, go into UEFI/BIOS and change to UEFI.

    Ubuntu will boot from gpt drives in BIOS mode, but then you do need the 1 or 2MB bios_grub unformatted partition.
    Windows will only boot from gpt drives with UEFI. And only from MBR drives with BIOS.

    Not sure if you want to reinstall Windows on sda with gpt partitioning so everything is gpt and UEFI or if you just want gpt on 3TB drives and boot Ubuntu in BIOS mode. Either way is workable.
    Your sdb is not aligned. And it looks like you have parts of a Windows UEFI install?

    sudo apt-get install gdisk
    GPT fdisk Tutorial -srs5694 in forums
    http://ubuntuforums.org/showthread.php?t=1439794
    http://www.rodsbooks.com/gdisk/


    Alignment 2048 sectors Advanced Format drives
    http://askubuntu.com/questions/20116...d-using-parted

    First, understand that most partitioning tools have moved to a policy of aligning partitions on 1 MiB (2048-sector) boundaries as a way of improving performance with some types of arrays and some types of new hard disks (those with 4096-byte physical sectors). See article by srs5694:
    http://www.ibm.com/developerworks/li...-sector-disks/
    Post on 8-sector boundaries alignment by srs5694
    http://ubuntuforums.org/showthread.php?t=1685666
    it's 8-sector (4096-byte) alignment
    http://ubuntuforums.org/showthread.php?t=1768635
    Alignment issues on 4K drives
    http://ubuntuforums.org/showthread.php?t=1635018
    For info on UEFI boot install & repair - Updated Mar 2015:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  7. #7
    Join Date
    Apr 2013
    Beans
    10

    Re: Installing Ubuntu (13.04) on a 3TB hard drive and booting from it

    Thanks again for the quick reply.

    Preferably, given the current state my Windows installation is in, I would not like to re-install Windows. So in that case, I would like to attempt to boot Ubuntu from BIOS mode. So just to get things straight, I should be able to add a bios_grub partition, run boot-repair, and it should all work out?

    I don't understand the specifics regarding how my specific UEFI BIOS works, but it seems to be regulating thing rather dynamically. I have no problems booting into Windows or Linux, as long as I set the boot priority correctly. So it seems to be able to switch rather easily between BIOS and UEFI boot. However, grub is not as flexible (and the desired situation would obviously be to boot into grub, allowing me to select either Windows or Ubuntu, not having to mess around with boot priorities).

    I'll be trying this out tomorrow (depending on whether your possible reply confirms my question), because tonight I've got a rather busy evening.

    Thanks again!

  8. #8
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Installing Ubuntu (13.04) on a 3TB hard drive and booting from it

    I have only BIOS and use gpt on several drives. But each drive has to have the 1MB (some now say 2MB) bios_grub partition. It has no format.

    How you boot install media is how it installs, so just be sure to always boot in BIOS mode. Boot-Repair can convert a BIOS install to UEFI and vice-versa, so you should not have to reinstall.

    Some BIOS default to UEFI boot if efi partition is found, if not found then boot in BIOS.
    Others have specific settings for secure boot, UEFI boot or CSM/BIOS boot and some combine the switches, just to keep us all confused.
    But you should be able to boot in BIOS mode with Ubuntu and then select to chain to your Windows install. I would keep the Ubuntu boot on the Ubuntu drive and a Windows boot loader on the Windows drive.
    For info on UEFI boot install & repair - Updated Mar 2015:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  9. #9
    Join Date
    Apr 2013
    Beans
    10

    Re: Installing Ubuntu (13.04) on a 3TB hard drive and booting from it

    I knew the sentence "How you boot installer is how it installs" meant a lot, I should have just given it at least an hour of thinking time , so you wouldn't have had to repeat it.

    I thought "why not use a flash drive this time, nice and easy!", but in the end it turns out to be the cause of my trouble (because Windows does BIOS boot and the flash drive UEFI so it installs Ubuntu in UEFI not allowing me to do proper dual boot with Windows).

    I'll just attempt the adding of a small bios_grub partition, and if it doesn't work out with boot-repair I'll just grab a stack of empty DVD's and burn myself disc allowing me to install Ubuntu in BIOS mode (I don't mind having to re-install Ubuntu at all at this point).

  10. #10
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Installing Ubuntu (13.04) on a 3TB hard drive and booting from it

    From UEFI menu you should be two boot choices of flash drive. One usually is clearly UEFI, but the other may be BIOS/Legacy/CSM or whatever.
    For info on UEFI boot install & repair - Updated Mar 2015:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







Page 1 of 2 12 LastLast

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
  •