Menu

Formatting HDD Prior to Install?

Follow

Comments

18 comments

  • Avatar
    Tom Miller

    I had to use: sudo dd if=/dev/zero of=/dev/sda

    This may take a while. After 15 minutes the command prompt had not come back. Now the screen has "garbled" and done 2 line feeds. Still no command prompt.

    Given all my previous Linux installs on this machine took roughly four times longer than on a non-SSD machine, I am going to give it an hour.

  • Avatar
    Forrest Smith

    Tom,

    The command is pretty slow because it writes bitwise.

    If you want to speed the process up, you can cancel out of it and then re-boot and use a slightly altered:

    sudo dd if=/dev/zero of=/dev/sda bs=4M

    This will just increase the block size and probably speed up the process.

    Good luck!

  • Avatar
    Forrest Smith

    Just a note:

    1) You can probably use bs=16M to speed things up

    2) You maybe only need to run this command for 30 seconds and then use ctrl+c to end it early - that wipes the disk's head where (what we think is) the relevant info is

  • Avatar
    Mucahit Senol

    If you see "Primary GPT Header is invalid" and "Secondary GPT Header is invalid" message during command line install, just terminate ctrl+c the installation do not wait for badblock check.

    Boot your computer with a Ubuntu usb disk and launch Gparted. Select your harddisk that you want to install ChromeOS. Create GPT Partition Table. After that it should be easy to install ChromeOS.

  • Avatar
    Brett Grosso

    So I'm trying this and it says
    dd: writing to '/dev/sda' : input/output error
    Anyone have any suggestions? I get essentially the same error when trying to install ChromeOS from the terminal. Ugh

  • Avatar
    Forrest Smith

    Brett -

    I/O errors usually mean the device has somehow come unplugged or is broken. Try physically re-seating it and then go again

  • Avatar
    Brett Grosso

    Thank you for the reply Forrest!! You mean the actual hard drive internally?

  • Avatar
    Forrest Smith

    yeah, assuming your computer is doing the normal thing and showing the internal HDD as /dev/sda .

    I don't have knowledge to tell you how, but you might also want to try live-booting some other linux distro/tool like gnuparted in order to try wiping the disk.

  • Avatar
    Brett Grosso

    Cool, I will give those things a try! Thank you!

  • Avatar
    Brett Grosso

    So I did try reseating the hard drive, didn't seem to help.. at this point I'm beginning to wonder if the hard drive is corrupt. The whole reason I'm doing this is because windows 10 wouldn't load suddenly. Just kept loading to a blank screen, mouse working and all. So I figured just turn it into a Chromebook, as this is my daughter's laptop. I'm kind of at a loss.. any further thoughts? thanks for all your support btw..

  • Avatar
    Forrest Smith

    If Windows breaking was the first thing to happen, and reseating it didn't work, then I think your hdd is toast. They're cheap to replace via amazon if you think the computer is still in good shape otherwise.

  • Avatar
    Anthony Emma

    Hey folks,

    Forrest, I'm running sudo dd if=/dev/zero of=/dev/sda bs=16M and I just have what appears to be a frozen screen. I saw

    "You maybe only need to run this command for 30 seconds and then use ctrl+c to end it early - that wipes the disk's head where (what we think is) the relevant info is"

    Has that worked for anyone?

  • Avatar
    Forrest Smith

    Anthony -

    Safest thing is to let it run - it looks frozen, but really it just take ~30 minutes.

    Once the cmd line returns to a normal prompt it should be fully wiped

  • Avatar
    Anthony Emma (Edited )

    IT WORKED!!

    Background:
    I have a stack of old WinXP Compaq 610 Notebooks. The machine isn't listed on the compatibility list, so I had slim hopes.

    The GUI Installer didn't ever work after leaving it overnight, so I tried the command line install (http://tinyurl.com/h826q9f) and it worked w/o a hitch.

    I moved to the second notebook and just kept getting the "Primary GPT Header is invalid" and "Secondary GPT Header is invalid" errors.

    I left it on my desk overnight. It was done in the AM and now the command line install is working perfectly.

    Thanks all.

  • Avatar
    Forrest Smith

    Glad to hear it! Hope your installations continue well.

  • Avatar
    Greg Robinson

    Sorry for the rookie question here, but can someone provide the step-by-step instructions for doing this HDD format? I've tried 3 times using the Install CloudReady function on my old HP laptop (previously running Win7) and it keeps never finishing. I've let it run as much as 90 mins to no avail. It's a 320GB HDD. Should I wait longer?

    Assuming my issue is something on the HDD, I'd like to try this format as step 1. But I'm a total linux rookie. Can I get the steps written out? Sorry if they're already posted somewhere and I missed them. Feel free to point me to another URL if easier.

    Thanks in advance! Really want to give CloudReady a shot but I'm not keen on running off the USB forever. :)

  • Avatar
    Forrest Smith

    Hi Greg -

    1) Log in
    2) press "ctl+alt+t"
    3) type "shell" and then "enter"
    4) Do the steps above, replacing "sdX" with your HDD's name. It is probably "sda", but make sure that NOTHING of importance is left on your computer, since all of it will be nuked, and that the ONLY storage devices attached to the computer are the USB installer and the single internal HDD you want to erase.
    ----you'll be prompted for a password, which is "chrome"
    5) When all that is done, reboot into your USB installer once more, and try the GUI-install wizard again.

  • Avatar
    Greg Robinson

    Thanks, Forrest!

Please sign in to leave a comment.

Powered by Zendesk