Author Topic: partition not found (Solved via reformat)  (Read 11327 times)

Brotherred

  • Newbie
  • *
  • Posts: 20
partition not found (Solved via reformat)
« on: March 22, 2016, 20:21:48 PM »
Hello all. I am new here. I have been a Linux user for about twenty years but still rather n0obish, sadly. Anyway I have been running Peppermint OS for long time (v3) and now I have Pepp6 installed on a old laptop. I have posted this issue to my Distro forums here: http://forum.peppermintos.com/index.php/topic,3204.msg31635.html#msg31635

My full system configuration is here:
Code: [Select]
$ inxi -a
/usr/bin/inxi: illegal option -- a
Error 7: One of the options you entered in your script parameters: -a
is not supported.The option may require extra arguments to work.
For supported options (and their arguments), check the help menu: inxi -h
*** ~ $ inxi -A
Audio:     Card: Silicon Integrated Systems [SiS] SiS7012 AC'97 Sound Controller driver: snd_intel8x0
           Sound: Advanced Linux Sound Architecture ver: k3.16.0-67-generic
mobileme@SnappyPenquen ~ $ inxi -D
Drives:    HDD Total Size: 80.0GB (64.1% used) 1: id: /dev/sda model: WDC_WD800BEVE size: 80.0GB
***~ $ inxi -P
Partition: ID: / size: 7.4G used: 2.2G (32%) fs: ext4 ID: /boot size: 1.4G used: 45M (4%) fs: ext4
           ID: /home size: 42G used: 36G (91%) fs: ext4 ID: /var size: 4.9G used: 1.8G (38%) fs: ext4
           ID: /usr size: 14G used: 8.3G (63%) fs: ext4

You will see there in my Distro forums that the suggested code that I was given was:
Code: [Select]
menuentry "Install Plop Boot Manager" {
    set root='hd0,msdos7'
    linux16 /boot/plpinstc.com
}

And just today I tried /dev/sda6 and /dev/sda9. All of these have failed. I am not sure of where this issue may be already posted here in this forum. I have searched but did not see it. Any help would be much appreciated. Like I suppose many here LIVE USBs have been a huge help to me.
Regards
« Last Edit: April 23, 2016, 05:29:58 AM by Brotherred »

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2491
  • a command shell is enough to do amazing things
Re: partition not found
« Reply #1 on: March 24, 2016, 07:11:12 AM »
Hello,

You will see there in my Distro forums that the suggested code that I was given was:
Code: [Select]
menuentry "Install Plop Boot Manager" {
    set root='hd0,msdos7'
    linux16 /boot/plpinstc.com
}
This configuration makes no sense.




I suggest that you use the Live version. Use plpbt.bin instead of plpinstc.com. When your /boot partition is the first partition on the hard disk then use for grub2
Code: [Select]
#!/bin/sh
exec tail -n +3 $0

menuentry "Plop Boot Manager" {
    set root=(hd0,1)
    linux16 /plpbt.bin
}

See https://www.plop.at/en/bootmanager/plpbt.bin.html#rungrub2



Best regards
Elmar
« Last Edit: March 24, 2016, 07:16:06 AM by Elmar »

Brotherred

  • Newbie
  • *
  • Posts: 20
Re: partition not found
« Reply #2 on: March 25, 2016, 00:04:41 AM »
It seems then that a major issue then is that I have my /boot at the end of the drive. Is there a remedy that does not involve my rearranging my partitions?

Regards

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2491
  • a command shell is enough to do amazing things
Re: partition not found
« Reply #3 on: March 25, 2016, 07:16:19 AM »
It doesn't matter if the /boot partition is the first or last partition or somewhere in between.

When your /boot partition is sda5 then change
set root=(hd0,1)
- to -
set root=(hd0,5)

Code: [Select]
#!/bin/sh
exec tail -n +3 $0

menuentry "Plop Boot Manager" {
    set root=(hd0,5)
    linux16 /plpbt.bin
}

See the Grub2 documentation for details.

Best regards
Elmar

Brotherred

  • Newbie
  • *
  • Posts: 20
Re: partition not found
« Reply #4 on: April 03, 2016, 07:15:53 AM »
I did everything just as you said, I believe. And it still says partition not found. Oh and I reinstalled the system and put the /boot at the beginning of the drive. I did that before your reply about that.

Code: [Select]
inxi -p
Partition: ID: / size: 13G used: 591M (5%) fs: ext4 ID: /boot size: 2.3G used: 83M (4%) fs: ext4
           ID: /usr size: 9.3G used: 4.0G (46%) fs: ext4 ID: /var size: 4.7G used: 1.5G (34%) fs: ext4
           ID: /home size: 39G used: 5.8G (16%) fs: ext4 ID: /home/mobileme size: 39G used: 5.8G (16%) fs: ecryptfs[code]

[code]ls /boot
abi-3.16.0-37-generic         memtest86+.bin
abi-3.16.0-67-generic         memtest86+.elf
config-3.16.0-37-generic      memtest86+_multiboot.bin
config-3.16.0-67-generic      plpbt.bin
grub                          System.map-3.16.0-37-generic
initrd.img-3.16.0-37-generic  System.map-3.16.0-67-generic
initrd.img-3.16.0-67-generic  vmlinuz-3.16.0-37-generic
lost+found                    vmlinuz-3.16.0-67-generic

Quote
Code: [Select]
sudo nano /etc/grub.d/40_custom
The contents of that file are now:
Code: [Select]
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
#!/bin/sh
exec tail -n +3 $0

menuentry "Plop Boot Manager" {
    set root=(hd0,1)
    linux16 /boot/plpbt.bin
Regards
« Last Edit: April 03, 2016, 07:31:08 AM by Brotherred »

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2491
  • a command shell is enough to do amazing things
Re: partition not found
« Reply #5 on: April 03, 2016, 08:14:29 AM »
You did not everything, you also have to remove the /boot in front of /boot/plpbt.bin in the config file.

Best regards
Elmar

Brotherred

  • Newbie
  • *
  • Posts: 20
Re: partition not found
« Reply #6 on: April 03, 2016, 21:50:19 PM »
I just dunno. Still can't find the partition.

Code: [Select]
#!/bin/sh
exec tail -n +3 $0

menuentry "Plop Boot Manager" {
    set root=(hd0,1)
    linux16 plpbt.bin

Regards

Brotherred

  • Newbie
  • *
  • Posts: 20
Re: partition not found
« Reply #7 on: April 05, 2016, 04:08:48 AM »
Would compiling the source code help? Not that I look forward to it the compiling process for plop is nothing like I have seen before.

Regards

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2491
  • a command shell is enough to do amazing things
Re: partition not found
« Reply #8 on: April 05, 2016, 08:00:28 AM »
Compiling the source would not help anything. The problem comes from your Grub configuration. I don't know if it makes a difference and I have no time to check it, but you did not set a "/" in front of plpbt.bin.
Can you make a photo or a video with a smartphone of your monitor when there is the "partition not found" message?

Brotherred

  • Newbie
  • *
  • Posts: 20
Re: partition not found
« Reply #9 on: April 06, 2016, 03:43:09 AM »
Yes, after I set the /

 Regards :-[

Brotherred

  • Newbie
  • *
  • Posts: 20
Re: partition not found
« Reply #10 on: April 07, 2016, 07:21:19 AM »
Yeah it failed like you seemed to expect. Here's the picture.

Regards

Brotherred

  • Newbie
  • *
  • Posts: 20
Re: partition not found
« Reply #11 on: April 13, 2016, 20:12:55 PM »
Sorry is this picture hard to view? Is there anything that I can do for this situation?
Regards

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2491
  • a command shell is enough to do amazing things
Re: partition not found
« Reply #12 on: April 15, 2016, 11:21:59 AM »
You are using Peppermint Linux. I tested now a standard installation of Peppermint linux and the plop boot manager started flawless from the grub menu. The standard installation doesn't use an extra partition for /boot. So i did a second test with /boot on a logical partition and the plop boot manager also started without any problems from the grub boot menu.

What is the device node of your /boot partition.

Brotherred

  • Newbie
  • *
  • Posts: 20
Re: partition not found
« Reply #13 on: April 16, 2016, 07:41:41 AM »
I apologize that had to have been frustrating. I have preferred it this way since back when I ran Fedora Core 3. I can't imagin why your /boot works and mine does not.

Code: [Select]
# /boot was on /dev/sda10 during installation
UUID=e26dbe23-ff1a-4bb8-abda-268e8aa2cbfb /boot           ext4    defaults        0       2

Regards

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2491
  • a command shell is enough to do amazing things
Re: partition not found
« Reply #14 on: April 16, 2016, 08:16:24 AM »
I... I can't imagin why your /boot works and mine does not...

Because I am setting the correct root= in the grub config.

# /boot was on /dev/sda10 during installation

This just show what was and not what is. The mount command will show to what device node the /boot is mounted too.

However, I assume it is still /dev/sda10. Now the config is

Code: [Select]
#!/bin/sh
exec tail -n +3 $0

menuentry "Plop Boot Manager" {
    set root=(hd0,10)
    linux16 /plpbt.bin
}

the grub root= must be the equivalent of  the device node where /boot is mounted.

Regards

Brotherred

  • Newbie
  • *
  • Posts: 20
Re: partition not found
« Reply #15 on: April 17, 2016, 04:11:04 AM »
I tried that and it failed. Indeed my /boot is on /dev/sda10. I copied your code and pasted it into the file 
Code: [Select]
/etc/grub.d/40_custom
Code: [Select]
# / was on /dev/sda6 during installation
UUID=0e7232a8-3264-4d27-9a32-9b550b162857 /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sda10 during installation
UUID=e26dbe23-ff1a-4bb8-abda-268e8aa2cbfb /boot           ext4    defaults        0       2
# /home was on /dev/sda9 during installation
UUID=0d7562a9-a9ec-48e2-826e-e5e0848207a1 /home           ext4    defaults        0       2
# /usr was on /dev/sda7 during installation
UUID=a294efb3-a992-4d30-99cb-1dc80bf8ec59 /usr            ext4    defaults        0       2
# /var was on /dev/sda8 during installation
UUID=d7166a32-1320-4564-b5e1-a6e6b2a7bc52 /var            ext4    defaults        0       2
# swap was on /dev/sda5 during installation
#UUID=0cdeb909-2ca5-4768-a2f9-0a055df83fae none            swap    sw              0       0
/dev/mapper/cryptswap1 none swap sw 0 0

I am very sorry for all of the trouble over something that should be so easy.
Regards
« Last Edit: April 17, 2016, 04:17:21 AM by Brotherred »

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2491
  • a command shell is enough to do amazing things
Re: partition not found
« Reply #16 on: April 17, 2016, 08:34:47 AM »
Did you also run update-grub2 or update-grub?

Regards
Elmar

Brotherred

  • Newbie
  • *
  • Posts: 20
Re: partition not found
« Reply #17 on: April 22, 2016, 23:51:03 PM »
I updated-grub2. But just to be sure I went back and update-grub. But those did not work. Unfortunately my partition configuration has changed. I reworking my plop to reflect that.

Regards