Peppermint OS

Support => Installation => Topic started by: puls on July 12, 2015, 12:33:51 am

Title: Grub problem after install PM6
Post by: puls on July 12, 2015, 12:33:51 am
Hi,

I am totally new to Peppermint Linux.
I need some help fixing the installation.
I downloaded the iso file, made a bootable USB with Unetbootin and installed the PM6 on my netbook choosing the option to wipe the disk of the previous system and install PM on whole the disk. It all went smoothly.
However, after the installation when I removed my USB stick and turned on the computer it goes into

GNU GRUB version 2.02~beta2-9ubuntu1.3

Minimal BASH-like line editing is supported. for the first word, TAB lists possible command completions. Anywhere else TAB lists possible device or file completions.

....and stops there.
Using some of the tricks I could find on the internet I found out that I can launch PM6 writing at the grub line:
grub> set  pager=1
grub> set root=(hd0,2)
grub> linux /boot/vmlinuz-3.16.0-37-generic root=/dev/sda2
grub> initrd /boot/initrd.img-3.16.0-37-generic
grub> boot

and it does work every time. But how do i do that automatic? It just sounds ridiculous to do that every time.
Thanks
Title: Re: Grub problem after install PM6
Post by: PCNetSpec on July 12, 2015, 01:22:36 am
Is this a UEFI dual boot configuration ?

and can you post the output from:
Code: [Select]
sudo fdisk -l


[EDIT]

Have you tried simply booting the way you mentioned above, then in the running system opening a terminal and running:
Code: [Select]
sudo grub-install /dev/sda?
Title: Re: Grub problem after install PM6
Post by: puls on July 12, 2015, 01:31:25 am
Hey,
yes - it is a rather new netbook (HP Pavilion 10.1 TouchScreen) but i used to install numerous linux distributions like kubuntu on it and it ran with no problem.
Not sure if that would be a doubleboot as during the installation i chose to erase the disk and install the system on whole disk.
(https://photos-6.dropbox.com/t/2/AAAvXp1FRv9ugVTJBsbX65Oh3LpFBMyD8-HocKiGvyoTtQ/12/206842145/jpeg/32x32/1/_/1/2/wp_20150712_10_26_27_pro.jpg/EN7Jj5wBGF4gAigC/Hq9SBRS0fXnDPi5K1f5AwX5MCHVGBILlrwyWLbuJLv8?size=1280x960&size_mode=2)

The other thing:
sudo grub-install /dev/sda

as you said - returned: No errors found.

But it still stops at grub line during launching the computer
Title: Re: Grub problem after install PM6
Post by: PCNetSpec on July 12, 2015, 01:34:50 am
Can you open a terminal and run:
Code: [Select]
sudo fdisk -lthen post back here what was returned in the terminal.
Title: Re: Grub problem after install PM6
Post by: puls on July 12, 2015, 01:35:44 am
the picture above is what shows after sudo fdisk -l
(https://www.dropbox.com/s/ttpnt813614b7fs/wp_20150712_10_26_27_pro.jpg?dl=0)

or simply click here
https://www.dropbox.com/s/ttpnt813614b7fs/wp_20150712_10_26_27_pro.jpg?dl=0
Title: Re: Grub problem after install PM6
Post by: PCNetSpec on July 12, 2015, 01:54:40 am
The image you posted above doesn't display for anyone other than you .. you need to be logged onto your dropbox account for it to display.

Either put it in the "Public" folder on dropbox, then provide the link between IMG tags

or host it on IMGUR:
http://imgur.com/
then post the IMG link

That said, images aren't searchable, so it would be better if you just copied the text from the terminal and pasted it into your next posting between CODE tags
Title: Re: Grub problem after install PM6
Post by: puls on July 12, 2015, 02:01:02 am
Code: [Select]
WARNING: GPT (Guid Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sda" 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes /4096 bytes
Disk identifier: 0x000000000
Device     Boot       Start          End           Blocks        Id       System
/dev/sda1                       1  976773167    488386583+   ee         GPT
Title: Re: Grub problem after install PM6
Post by: PCNetSpec on July 12, 2015, 02:02:33 am
It seems you have a GPT partition table, are you game for formatting the HDD with an msdos style partition table (which will erase the drive as a consequence) then reinstalling Peppermint ?
Title: Re: Grub problem after install PM6
Post by: puls on July 12, 2015, 02:05:01 am
Absolutely yes. There is basically nothing on that computer anyway. If you just told me how to do that - I will be more than happy to do that
Title: Re: Grub problem after install PM6
Post by: PCNetSpec on July 12, 2015, 02:19:39 am
OK, boot to a Peppermint LiiveCD/LiveUSB

once at the Live session desktop, fire up GParted
menu > System Tools > GParted

in GParted, make sure  /dev/sda is selected on the right of the toolbar.

then select
Device > Create Partition Table...

when prompted select "msdos style parttion table" and continue

once done, close GParted, then run the Peppermint installer from the desktop icon.



Note:-

When you select Device > Create Partition Table... you may be told GParted cannot continue because a partition is currently in use .. in that case, one at a time right-click on the partitions in the list and select "Unmount" (or Swapoff" in the case of the linux-swap partition), then try Device > Create Partition Table... again.
Title: Re: Grub problem after install PM6
Post by: puls on July 12, 2015, 02:22:32 am
Ok, but to clarify, by "boot to LiveUSB" you mean :

-boot from USB
-choose try Peppermint Linux without installing
-and then follow your instructions?
Title: Re: Grub problem after install PM6
Post by: PCNetSpec on July 12, 2015, 03:14:01 am
Boot from the LiveUSB stick or LiveCD you created earlier (whatever you used for the earlier installation) and select "Try Peppermint"
Title: Re: Grub problem after install PM6
Post by: puls on July 12, 2015, 03:17:41 am
Did all of the above. Just finished installing. Resetted the computer and it finished.... at grub line again.  :(
The funny thing is that fdisk states a GPT partition again. Somehow it did not change it to msdos
Title: Re: Grub problem after install PM6
Post by: PCNetSpec on July 12, 2015, 03:23:38 am
You could try using boot-repair:
http://help.ubuntu.com/community/Boot-Repair
Title: Re: Grub problem after install PM6
Post by: Slim.Fatz on July 12, 2015, 03:29:03 am
Hi puls,

Also, when you did the LiveUSB reformat of the HDD to msdos using GParted, did you remember to apply the change and actually reformat the HDD? Did the process itself then return any error messages?

Regards,

-- Slim
Title: Re: Grub problem after install PM6
Post by: puls on July 12, 2015, 03:35:30 am
The boot-repair result is:

Boot successfully repaired.

The boot files of [The OS now in use - Peppermint Six] are far from the start of the disk. Your BIOS may not detect them. You may want to retry after creating a /boot partition(EXT4, >200MB, start of the disk). This can be performed via tools such as gParted. Then select this partition via the [Separate /boot partition:] option of [Boot Repair].

No idea what that all means
Title: Re: Grub problem after install PM6
Post by: Slim.Fatz on July 12, 2015, 03:43:07 am
Hi puls,

I think that what it means is to go back to the LiveUSB, start with Try Peppermint, then start GParted and use its functions to move your existing partitions so that at the beginning of the HDD there is an empty, unassigned partition that is >200 MB, then formatting it to be of type EXT4. Then use this as your /boot partition as you continue the process of doing the Boot Repair.

Regards,

-- Slim
Title: Re: Grub problem after install PM6
Post by: puls on July 12, 2015, 03:45:39 am
I've just rerun LiveUSB, enter gParted and it looks like the same.
At the top right corner i have /dev/sda selected - so that's good

The list shows:
/dev/sda1   fat32           512MiB          8.25MiB     503.75MiB   boot
/dev/sda2  ext4            463.54GiB    10.47GiB     453.08GIB
/dev/sda3  linuxswap 1.71GiB              0.00B            1.71GiB
unallocated unallocated  1.02MiB          -                     -

for dev/sda3 after right-click i have the option to swapoff
but for sda1 and sda2 i have only Delete   Resize/Move   Copy    Format to...    Manage Flags     Check   Label   New UUID    Information
Title: Re: Grub problem after install PM6
Post by: PCNetSpec on July 12, 2015, 03:51:49 am
If "Unmount" is greyed out it means they're not mounted.

so go to
Device > Create Partition Table
and select msdos style partition table.

once it's done the drive should contain NO parttiions

close GParted and run:
Code: [Select]
sudo fdisk -land see if it still mentions a detected GUID Partition Table (GPT) .. if not try reinstalling
Title: Re: Grub problem after install PM6
Post by: puls on July 12, 2015, 03:58:17 am
did that. it doesn't show GPT anymore now.
just states the following:


Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00065d8f

   Device Boot      Start         End      Blocks   Id  System

Disk /dev/sdb: 2031 MB, 2031091712 bytes
255 heads, 63 sectors/track, 246 cylinders, total 3966976 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00091bb7

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *         128     3966975     1983424    6  FAT16

is that what it should be? witn no /dev/sda devices?

As to gParted: before i deleted the partitions the "Mount" was greyed out. So not sure about that. Then again there was no "Unmount" button


Also during the installation I chose "Erase disk and install Peppermint". Maybe I should choose "Something else"? Not sure where the devil is in here :)
Title: Re: Grub problem after install PM6
Post by: PCNetSpec on July 12, 2015, 04:25:50 am
That's spot on.

Just install Peppermint now .. choosing to use the whole disk.
(in other words, just accept the defaults).
Title: Re: Grub problem after install PM6
Post by: puls on July 12, 2015, 05:13:57 am
Oh my, I hope I'm not annoying you too much.

I did just what you wrote me to do. Just finished installing. Reset. Grub command line again.
And what is even funnier fdisk writes that GPT partition detected on /dev/sda.

It looks as if those partitions get created during install process.
during the process of installing i got notified that there will be 3 partitions created #1 efi, #2 ext4, #3 swap
Title: Re: Grub problem after install PM6
Post by: PCNetSpec on July 12, 2015, 05:33:13 am
Ahh, right .. you need to set the UEFI BIOS to Legacy BIOS mode (and disable Secure boot if enabled)
Title: Re: Grub problem after install PM6
Post by: puls on July 12, 2015, 05:43:04 am
Tried that however to no avail. It is all the same.
Title: Re: Grub problem after install PM6
Post by: PCNetSpec on July 12, 2015, 06:00:45 am
OK, your other option would be to install the 32bit version of Peppermint which doesn't have a EFI  mode
Title: Re: Grub problem after install PM6
Post by: puls on July 12, 2015, 06:03:46 am
oh! didn't think of that! Will do that then. Will see if that helps. In case it doesn't - will report back.
Thanks for all your help so far.
Title: Re: Grub problem after install PM6
Post by: PCNetSpec on July 12, 2015, 06:14:03 am
Be sure to set the partition table back to msdos style before installing.
Title: Re: Grub problem after install PM6
Post by: puls on July 12, 2015, 08:00:40 am
thanks for everything guys. 32-bit runs smoothly with no problems.

Excellent help! Will stick to peppermint from now onwards. OS is one thing, but community like that is another.

Talk to you soon.
Problem solved
Title: Re: Grub problem after install PM6
Post by: PCNetSpec on July 12, 2015, 08:03:38 am
Great news :)

We're looking into the 64bit dual boot Win8/GRUB/UEFI/GPT issue .. hopefully it'll be fixed in a respin.

Your issue seems slightly different, but maybe it'll be solved by whatever fix we come up with for the other issue.
Title: Re: Grub problem after install PM6
Post by: WaltH on August 13, 2015, 09:51:53 pm
Great news :)

We're looking into the 64bit dual boot Win8/GRUB/UEFI/GPT issue .. hopefully it'll be fixed in a respin.

Your issue seems slightly different, but maybe it'll be solved by whatever fix we come up with for the other issue.
It looks like there's several of us having this very same issue (plus however many people simply gave up after several tries). I've spent more than seven hours on this and really don't think I should have to "settle" for running the 32-bit version on my 64-bit machine.

I do hope Peppermint gets this resolved, as I really like the look and feel of Peppermint 6, but if I can't get 6 to boot outside of using the live USB, the looks do me no good. I know this machine can run Linux as I've had Manjaro loaded on it.
Title: Re: Grub problem after install PM6
Post by: PCNetSpec on August 14, 2015, 02:48:56 am
Keep an eye out for a respin VERY soon .. the 64bit UEFI/Secureboot problem is solved and in testing as we speak.

We very much appreciate your patience :)
Title: Re: Grub problem after install PM6
Post by: WaltH on August 14, 2015, 05:49:44 am
Keep an eye out for a respin VERY soon .. the 64bit UEFI/Secureboot problem is solved and in testing as we speak.

We very much appreciate your patience :)
Fingers crossed.