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

Thread: How to move Live OS to HDD

  1. #1
    Join Date
    Dec 2012
    Beans
    42

    Post How to move Live OS to HDD

    Hey, this is a little bit out of ubuntu, concerning another OS installation over ubuntu, but there's nowhere else to ask this, so here goes.

    Installed Chromium OS Vanilla on a USB as a Live OS. Burned the .img file using ImageWriter.
    There's the screenshot from GParted of how my USB looks like. Ignore the 12 GB of unallocated space because the drive is 16 GB and the OS doesn't take up that much space.
    As you can see, it's quite a mess.

    The thing is, the OS is live, so I'd like to move partitions from this USB to my HDD, so I can use it forever rather than a demo stuck in a USB.
    Question is, which partitions to move? And how do I move partitions? And how to add this new OS to grub?

    Thanks in advance.
    Attached Images Attached Images

  2. #2
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: How to move Live OS to HDD

    Moved to Other O/S talk

  3. #3
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: How to move Live OS to HDD

    The liveCD is intended to be an installer or a way to test Ubuntu and make repairs. It is not intended to be installed to a hard drive and is not updateable, although with persistence you can save some things, but space is limited.

    Pros & cons of persistent install over direct install to flashdrives - C.S.Cameron
    http://ubuntuforums.org/showthread.php?t=1655412


    Install options, Do not use erase entire drive unless that is really what you want.
    http://www.ubuntu.com/download/help/...g-term-support
    https://help.ubuntu.com/community/GraphicalInstall
    https://help.ubuntu.com/community/WindowsDualBoot
    Install Ubuntu 12.10 0 with screenshots
    http://www.ubuntu.com/download/help/...desktop-latest
    http://howtoubuntu.org/how-to-instal...cise-pangolin/
    Install 12.04- side by side auto install with screen shots
    http://www.psychocats.net/ubuntu/installing
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  4. #4
    Join Date
    Jun 2007
    Location
    Hikkaduwa, Sri Lanka
    Beans
    3,449
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: How to move Live OS to HDD

    I played with Chromium OS Vanilla a few years ago.
    If I recall right it is an actual install via image and not what they call "Live".
    I thought it was possible to write the image directly to HDD, perhaps an external USB HDD enclosure is required.

    Otherwise I would suggest deleting all the partitions except SDC1 and SDC3 and move those to the left using gparted.

    You can then use dd to overwrite everything on the hard disk with a clone of the USB drive.
    You can boot from the Live CD to do this.
    (This will delete all existing data on the disk).

    Code:
    sudo dd if=/dev/sdx of=/dev/sdy
    Where x is the from device and y is the to device.

    After you are done you can expand the new HDD partition using gparted.

    Welcome to the Forums
    Last edited by C.S.Cameron; April 3rd, 2013 at 11:01 PM. Reason: missing / added

  5. #5
    Join Date
    Dec 2012
    Beans
    42

    Re: How to move Live OS to HDD

    I ran this:
    Code:
    sudo dd if=/dev/sdc of=dev/sda8
    in which sdc is my USB and sda8 is the target hard drive partition...

    Next I updated GRUB. but it didn't recognized the OS

    By the way, I accidentally ran update-grub while USB was mounted and it recognized the on-USB Chromium. But the on-drive Chromium wasn't listed.

    In light of this information, I'm wondering if I ever missed out copying out the boot sector under the use of "dd".. Or should I have not copied the empty 512 byte partitions but only the two partitions of the USB that are 2 GB and 1 GB?

  6. #6
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: How to move Live OS to HDD

    dd is intended to be same size to same size exact copy. Drive to drive, partition to partition, or either to a file.
    Powerful command, but often misused and then nicknamed "dd" Data Destroyer
    http://www.linuxquestions.org/questi...ommand-362506/


    But you copied a drive to a partition and drive had two partitions? So now you have a partition with two partition structures inside it. I do not think that will work.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  7. #7
    Join Date
    Dec 2012
    Beans
    42

    Re: How to move Live OS to HDD

    Quote Originally Posted by oldfred View Post
    dd is intended to be same size to same size exact copy. Drive to drive, partition to partition, or either to a file.
    But you copied a drive to a partition and drive had two partitions? So now you have a partition with two partition structures inside it. I do not think that will work.
    According to your advice, I manually created the two biggest partitions (sdc3 and sdc1 in screenshot) and copied them with dd.
    This time, grub recognized the OS. But when I opened it, the operating systems' boot screen came but the screen was mixed with a command line and the command line was working and instead of normally booting, Chromium attempted to go into something that looks like a recovery boot, so it looked pretty weird. Would post a screenshot if I could. But I think Chromium is just telling me that I need more than these two partitions to get it to work.

    This time, I will create and clone copy all 12 partitions under an extended partition and will post you the results.

    EDIT: Oh well, I just realized that I forgot copying the sector including the bootflag (dev/sdc12). My bad...
    Attached Images Attached Images
    Last edited by dorruk; April 5th, 2013 at 10:39 PM.

  8. #8
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: How to move Live OS to HDD

    I doubt that you need all those partitions.

    Copying partitions will not copy grub in the MBR, if it uses grub as boot loader. Grub does not use boot flag, but syslinux does.

    Using dd you will have duplicate UUIDs which for most systems is a problem as you cannot have duplicate UUIDs. Be sure to unplug flash so system does not see the duplicates. If you want to keep flash installed you will have to change one or the other to new UUIDs.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  9. #9
    Join Date
    Dec 2012
    Beans
    42

    Re: How to move Live OS to HDD

    Quote Originally Posted by oldfred View Post
    I doubt that you need all those partitions.

    Copying partitions will not copy grub in the MBR, if it uses grub as boot loader. Grub does not use boot flag, but syslinux does.

    Using dd you will have duplicate UUIDs which for most systems is a problem as you cannot have duplicate UUIDs. Be sure to unplug flash so system does not see the duplicates. If you want to keep flash installed you will have to change one or the other to new UUIDs.
    According to this, I tried to boot while the USB is unplugged.
    I have copied sdc8, sdc12, sdc5, sdc3, sdc1. in the exact order, and leaving the necessary unallocated space in between. I used the "ext2" file system when creating a corresponding partition on my HDD for sdc5 (which is an unknown file system).

    Still, the OS doesn't boot normally.
    Do you have an idea which partitions am I supposed to copy?

  10. #10
    Join Date
    Dec 2012
    Beans
    42

    Re: How to move Live OS to HDD

    Quote Originally Posted by C.S.Cameron View Post
    I played with Chromium OS Vanilla a few years ago.
    If I recall right it is an actual install via image and not what they call "Live".
    I thought it was possible to write the image directly to HDD, perhaps an external USB HDD enclosure is required.

    Otherwise I would suggest deleting all the partitions except SDC1 and SDC3 and move those to the left using gparted.
    Done that, still have that problem...

    And something that I have noticed:
    In sdc12, there are two folders named efi and syslinux.
    On my BIOS, "EFI Mode" is off. And my bootloader is grub. But it was working well with my USB.

    In means of providing further information, I have noted down errors appeared within the terminal that I could watch the boot process fail.
    When system boots, it recognizes the computer parts, like naming the sound card, processor etc.

    First, I see on the screen, "your system is repairing itself, please wait" for about 0,2 seconds.
    Then it is being intervened by a terminal in which text begin to flow really fast.
    But I managed to catch some errors..

    First error is:
    Code:
    cryptohome: segfault at 8 ip 777e1c0b sp 7fa3be10 error 4 cryptohome[7777]
    Then:
    Code:
    init: chapsd main process (1323) killed by APRT signal
    init: chapsd main process ended, respawning.
    A repeating error is:
    Code:
    init: cryptohomed-client main process (2248) terminated with status 1
    init: cryptohomed main process (2251) killed by ABRT signal
    init: cryptohomed main process ended, respawning
    Numbers in parantheses are always changing.

    If anybody managed to copy Chromium to their hard drive, please let me know.
    Last edited by dorruk; April 8th, 2013 at 05:41 PM. Reason: Add more.

Page 1 of 2 12 LastLast

Tags for this Thread

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
  •