All of lore.kernel.org
 help / color / mirror / Atom feed
* Grub saved my Laptop, and made it usable. so i wanted to say thanks to everybody that worked on it.
@ 2022-11-06 20:57 James Wabi
  2022-11-06 21:08 ` Vladimir 'phcoder' Serbinenko
  0 siblings, 1 reply; 7+ messages in thread
From: James Wabi @ 2022-11-06 20:57 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 1413 bytes --]

Hi.

Thanks you all developers that workd on Grub. With grub and the Badram and
Memmap command i was able to fix my Laptop with bad/broken soldered ram
memory in the motherboard.
Actually "memmap" was the one that worked, which reserved specific memory
address making the OS bootable and stable.

The catch was to install linux on a good working PC and edit the cfg
/etc/default/grub  to include some specific memmap lines for the memory
addresses that needed to be blocked, then transfer the hard drive to the
broken memory laptop. This fixed everything. and the laptop has been
running perfectly.

I have not found a way, and there is no information online, if this is
possible to do with a LIVE linux USB flash drive. As soon as you boot from
a live USB flashdrive, the machine starts to use bad broken soldered
memory. And i wish there was a way to edit the live usb boot flash drive so
it has edited GRUB memmap commands  in order to boot with the USB live
linux and blocking that memory address.

I have read i should prepare the live-usb flashdrive with rufus, but the
files are completely different from what you do with a linux that is
already installed on a hard drive  and changing /etc/default/grub cfg

If this can be done in the future it would really help, to most of us that
have bad soldered memory on the motherboard. Would be nice to live boot a
linux and block some memory addresses.

thanks!

[-- Attachment #2: Type: text/html, Size: 1613 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Grub saved my Laptop, and made it usable. so i wanted to say thanks to everybody that worked on it.
  2022-11-06 20:57 Grub saved my Laptop, and made it usable. so i wanted to say thanks to everybody that worked on it James Wabi
@ 2022-11-06 21:08 ` Vladimir 'phcoder' Serbinenko
  2022-11-07  1:53   ` James Wabi
  0 siblings, 1 reply; 7+ messages in thread
From: Vladimir 'phcoder' Serbinenko @ 2022-11-06 21:08 UTC (permalink / raw)
  To: The development of GNU GRUB

Thank you a lot for this feedback. For LiveUSB: put original iso as a
file then install GRUB on the USB and put in boot/grub/grub.cfg:
memmap ...

menuentry "My Live USB" {
  iso_path=<My ISO>
  export iso_path
  loopback loop $iso_path
  root=loop
  configfile /boog/grub/loopback.cfg
}

The config is of the top of my head, might need some corrections. If
so please let me know and post them back for others

On Sun, Nov 6, 2022 at 9:58 PM James Wabi <imitomx1978@gmail.com> wrote:
>
> Hi.
>
> Thanks you all developers that workd on Grub. With grub and the Badram and Memmap command i was able to fix my Laptop with bad/broken soldered ram memory in the motherboard.
> Actually "memmap" was the one that worked, which reserved specific memory address making the OS bootable and stable.
>
> The catch was to install linux on a good working PC and edit the cfg /etc/default/grub  to include some specific memmap lines for the memory addresses that needed to be blocked, then transfer the hard drive to the broken memory laptop. This fixed everything. and the laptop has been running perfectly.
>
> I have not found a way, and there is no information online, if this is possible to do with a LIVE linux USB flash drive. As soon as you boot from a live USB flashdrive, the machine starts to use bad broken soldered memory. And i wish there was a way to edit the live usb boot flash drive so it has edited GRUB memmap commands  in order to boot with the USB live linux and blocking that memory address.
>
> I have read i should prepare the live-usb flashdrive with rufus, but the files are completely different from what you do with a linux that is already installed on a hard drive  and changing /etc/default/grub cfg
>
> If this can be done in the future it would really help, to most of us that have bad soldered memory on the motherboard. Would be nice to live boot a linux and block some memory addresses.
>
> thanks!
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel



-- 
Regards
Vladimir 'phcoder' Serbinenko


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Grub saved my Laptop, and made it usable. so i wanted to say thanks to everybody that worked on it.
  2022-11-06 21:08 ` Vladimir 'phcoder' Serbinenko
@ 2022-11-07  1:53   ` James Wabi
  2022-11-07  3:41     ` Vladimir 'phcoder' Serbinenko
  0 siblings, 1 reply; 7+ messages in thread
From: James Wabi @ 2022-11-07  1:53 UTC (permalink / raw)
  To: The development of GNU GRUB

[-- Attachment #1: Type: text/plain, Size: 4011 bytes --]

Hi Vladimir
thank you for your response,

I managed to follow this guide from start to end, and i have a bootable USB
flash drive with grub and also with the ubuntu.iso in it, just like you
explained.
tutorial:
https://www.pendrivelinux.com/install-grub2-on-usb-from-ubuntu-linux/

*Inside my usb flash drive, the contents on the boot/grub/grub.cfg are*:
*--------------*










*# This Menu entry brought to you courtesy of
https://www.pendrivelinux.com/install-grub2-on-usb-from-ubuntu-linux/
<https://www.pendrivelinux.com/install-grub2-on-usb-from-ubuntu-linux/>set
timeout=10set default=0menuentry "Run Ubuntu Live ISO" { loopback loop
/ubuntu.iso linux (loop)/casper/vmlinuz boot=casper
iso-scan/filename=/ubuntu.iso splash -- initrd (loop)/casper/initrd}*
*--------------*
Now my quesiton is, where should i add this line?:
*memmap=8K\\\$0x00000005A00C000,4K\\\$0x00000005A00E000,8K\\\$0x00000005C00C000,4K\\\$0x00000005C00E000*


That line above is the fix for my memory in grub.cfg but i don´t know where
to put it.

On a pc where linux has already been installed into the hard drive, the
line would look something similar to this:

*GRUB_CMDLINE_LINUX_DEFAULT="quiet splash
memmap=8K\\\$0x00000005A00C000,4K\\\$0x00000005A00E000,8K\\\$0x00000005C00C000,4K\\\$0x00000005C00E000"*


*But on bootable live flashdrive in boot/grub/grub.cfg im not sure how i am
supposed to add it.*


*do you know?*
*thanks*


On Sun, Nov 6, 2022 at 6:09 PM Vladimir 'phcoder' Serbinenko <
phcoder@gmail.com> wrote:

> Thank you a lot for this feedback. For LiveUSB: put original iso as a
> file then install GRUB on the USB and put in boot/grub/grub.cfg:
> memmap ...
>
> menuentry "My Live USB" {
>   iso_path=<My ISO>
>   export iso_path
>   loopback loop $iso_path
>   root=loop
>   configfile /boog/grub/loopback.cfg
> }
>
> The config is of the top of my head, might need some corrections. If
> so please let me know and post them back for others
>
> On Sun, Nov 6, 2022 at 9:58 PM James Wabi <imitomx1978@gmail.com> wrote:
> >
> > Hi.
> >
> > Thanks you all developers that workd on Grub. With grub and the Badram
> and Memmap command i was able to fix my Laptop with bad/broken soldered ram
> memory in the motherboard.
> > Actually "memmap" was the one that worked, which reserved specific
> memory address making the OS bootable and stable.
> >
> > The catch was to install linux on a good working PC and edit the cfg
> /etc/default/grub  to include some specific memmap lines for the memory
> addresses that needed to be blocked, then transfer the hard drive to the
> broken memory laptop. This fixed everything. and the laptop has been
> running perfectly.
> >
> > I have not found a way, and there is no information online, if this is
> possible to do with a LIVE linux USB flash drive. As soon as you boot from
> a live USB flashdrive, the machine starts to use bad broken soldered
> memory. And i wish there was a way to edit the live usb boot flash drive so
> it has edited GRUB memmap commands  in order to boot with the USB live
> linux and blocking that memory address.
> >
> > I have read i should prepare the live-usb flashdrive with rufus, but the
> files are completely different from what you do with a linux that is
> already installed on a hard drive  and changing /etc/default/grub cfg
> >
> > If this can be done in the future it would really help, to most of us
> that have bad soldered memory on the motherboard. Would be nice to live
> boot a linux and block some memory addresses.
> >
> > thanks!
> >
> >
> > _______________________________________________
> > Grub-devel mailing list
> > Grub-devel@gnu.org
> > https://lists.gnu.org/mailman/listinfo/grub-devel
>
>
>
> --
> Regards
> Vladimir 'phcoder' Serbinenko
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>

[-- Attachment #2: Type: text/html, Size: 5413 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Grub saved my Laptop, and made it usable. so i wanted to say thanks to everybody that worked on it.
  2022-11-07  1:53   ` James Wabi
@ 2022-11-07  3:41     ` Vladimir 'phcoder' Serbinenko
  2022-11-07 18:49       ` James Wabi
  0 siblings, 1 reply; 7+ messages in thread
From: Vladimir 'phcoder' Serbinenko @ 2022-11-07  3:41 UTC (permalink / raw)
  To: The development of GNU GRUB

On Mon, Nov 7, 2022 at 2:54 AM James Wabi <imitomx1978@gmail.com> wrote:
>
> Hi Vladimir
> thank you for your response,
>
> I managed to follow this guide from start to end, and i have a bootable USB flash drive with grub and also with the ubuntu.iso in it, just like you explained.
> tutorial:  https://www.pendrivelinux.com/install-grub2-on-usb-from-ubuntu-linux/
>
> Inside my usb flash drive, the contents on the boot/grub/grub.cfg are:
> --------------
>
> # This Menu entry brought to you courtesy of https://www.pendrivelinux.com/install-grub2-on-usb-from-ubuntu-linux/
> set timeout=10
> set default=0
>
> menuentry "Run Ubuntu Live ISO" {
>  loopback loop /ubuntu.iso
>  linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/ubuntu.iso splash --
>  initrd (loop)/casper/initrd
> }
>
> --------------
> Now my quesiton is, where should i add this line?:
> memmap=8K\\\$0x00000005A00C000,4K\\\$0x00000005A00E000,8K\\\$0x00000005C00C000,4K\\\$0x00000005C00E000
>
>
> That line above is the fix for my memory in grub.cfg but i don´t know where to put it.
>
> On a pc where linux has already been installed into the hard drive, the line would look something similar to this:
>
> GRUB_CMDLINE_LINUX_DEFAULT="quiet splash memmap=8K\\\$0x00000005A00C000,4K\\\$0x00000005A00E000,8K\\\$0x00000005C00C000,4K\\\$0x00000005C00E000"
>

Well this option is not a GRUB command at all and has nothing to do
with similarly named GRUB facility that can be used to achieve the
same result.

This is a linux option that you need to add to the end of linux line
>
> But on bootable live flashdrive in boot/grub/grub.cfg im not sure how i am supposed to add it.
>
> do you know?
> thanks
>
>
> On Sun, Nov 6, 2022 at 6:09 PM Vladimir 'phcoder' Serbinenko <phcoder@gmail.com> wrote:
>>
>> Thank you a lot for this feedback. For LiveUSB: put original iso as a
>> file then install GRUB on the USB and put in boot/grub/grub.cfg:
>> memmap ...
>>
>> menuentry "My Live USB" {
>>   iso_path=<My ISO>
>>   export iso_path
>>   loopback loop $iso_path
>>   root=loop
>>   configfile /boog/grub/loopback.cfg
>> }
>>
>> The config is of the top of my head, might need some corrections. If
>> so please let me know and post them back for others
>>
>> On Sun, Nov 6, 2022 at 9:58 PM James Wabi <imitomx1978@gmail.com> wrote:
>> >
>> > Hi.
>> >
>> > Thanks you all developers that workd on Grub. With grub and the Badram and Memmap command i was able to fix my Laptop with bad/broken soldered ram memory in the motherboard.
>> > Actually "memmap" was the one that worked, which reserved specific memory address making the OS bootable and stable.
>> >
>> > The catch was to install linux on a good working PC and edit the cfg /etc/default/grub  to include some specific memmap lines for the memory addresses that needed to be blocked, then transfer the hard drive to the broken memory laptop. This fixed everything. and the laptop has been running perfectly.
>> >
>> > I have not found a way, and there is no information online, if this is possible to do with a LIVE linux USB flash drive. As soon as you boot from a live USB flashdrive, the machine starts to use bad broken soldered memory. And i wish there was a way to edit the live usb boot flash drive so it has edited GRUB memmap commands  in order to boot with the USB live linux and blocking that memory address.
>> >
>> > I have read i should prepare the live-usb flashdrive with rufus, but the files are completely different from what you do with a linux that is already installed on a hard drive  and changing /etc/default/grub cfg
>> >
>> > If this can be done in the future it would really help, to most of us that have bad soldered memory on the motherboard. Would be nice to live boot a linux and block some memory addresses.
>> >
>> > thanks!
>> >
>> >
>> > _______________________________________________
>> > Grub-devel mailing list
>> > Grub-devel@gnu.org
>> > https://lists.gnu.org/mailman/listinfo/grub-devel
>>
>>
>>
>> --
>> Regards
>> Vladimir 'phcoder' Serbinenko
>>
>> _______________________________________________
>> Grub-devel mailing list
>> Grub-devel@gnu.org
>> https://lists.gnu.org/mailman/listinfo/grub-devel
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel



-- 
Regards
Vladimir 'phcoder' Serbinenko


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Grub saved my Laptop, and made it usable. so i wanted to say thanks to everybody that worked on it.
  2022-11-07  3:41     ` Vladimir 'phcoder' Serbinenko
@ 2022-11-07 18:49       ` James Wabi
  2022-11-26  4:51         ` Project Development
  0 siblings, 1 reply; 7+ messages in thread
From: James Wabi @ 2022-11-07 18:49 UTC (permalink / raw)
  To: The development of GNU GRUB

[-- Attachment #1: Type: text/plain, Size: 5861 bytes --]

Thanks vladimir, sadly it did not work. What i did was to include the
memmap line like this on* boot/grub/grub.cfg*


# This Menu entry brought to you courtesy of
https://www.pendrivelinux.com/install-grub2-on-usb-from-ubuntu-linux/
set timeout=10
set default=0

menuentry "Run Ubuntu Live ISO" {
 loopback loop /ubuntu.iso
* linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/ubuntu.iso
splash --
memmap=16K\\\$0x0000000B4018000,16K\\\$0x0000000B2018000,4K\\\$0x0000000B401C000,4K\\\$0x0000000B201C000*
 initrd (loop)/casper/initrd
}

Then i booted ubuntu from live usb, and i wanted to double check if those
areas in the memory were reserved. So i opened terminal, and executed :
*dmesg*
A long list of reserved things were displayed but nothing related to those
specific memory addresses.

regards!




On Mon, Nov 7, 2022 at 12:43 AM Vladimir 'phcoder' Serbinenko <
phcoder@gmail.com> wrote:

> On Mon, Nov 7, 2022 at 2:54 AM James Wabi <imitomx1978@gmail.com> wrote:
> >
> > Hi Vladimir
> > thank you for your response,
> >
> > I managed to follow this guide from start to end, and i have a bootable
> USB flash drive with grub and also with the ubuntu.iso in it, just like you
> explained.
> > tutorial:
> https://www.pendrivelinux.com/install-grub2-on-usb-from-ubuntu-linux/
> >
> > Inside my usb flash drive, the contents on the boot/grub/grub.cfg are:
> > --------------
> >
> > # This Menu entry brought to you courtesy of
> https://www.pendrivelinux.com/install-grub2-on-usb-from-ubuntu-linux/
> > set timeout=10
> > set default=0
> >
> > menuentry "Run Ubuntu Live ISO" {
> >  loopback loop /ubuntu.iso
> >  linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/ubuntu.iso
> splash --
> >  initrd (loop)/casper/initrd
> > }
> >
> > --------------
> > Now my quesiton is, where should i add this line?:
> >
> memmap=8K\\\$0x00000005A00C000,4K\\\$0x00000005A00E000,8K\\\$0x00000005C00C000,4K\\\$0x00000005C00E000
> >
> >
> > That line above is the fix for my memory in grub.cfg but i don´t know
> where to put it.
> >
> > On a pc where linux has already been installed into the hard drive, the
> line would look something similar to this:
> >
> > GRUB_CMDLINE_LINUX_DEFAULT="quiet splash
> memmap=8K\\\$0x00000005A00C000,4K\\\$0x00000005A00E000,8K\\\$0x00000005C00C000,4K\\\$0x00000005C00E000"
> >
>
> Well this option is not a GRUB command at all and has nothing to do
> with similarly named GRUB facility that can be used to achieve the
> same result.
>
> This is a linux option that you need to add to the end of linux line
> >
> > But on bootable live flashdrive in boot/grub/grub.cfg im not sure how i
> am supposed to add it.
> >
> > do you know?
> > thanks
> >
> >
> > On Sun, Nov 6, 2022 at 6:09 PM Vladimir 'phcoder' Serbinenko <
> phcoder@gmail.com> wrote:
> >>
> >> Thank you a lot for this feedback. For LiveUSB: put original iso as a
> >> file then install GRUB on the USB and put in boot/grub/grub.cfg:
> >> memmap ...
> >>
> >> menuentry "My Live USB" {
> >>   iso_path=<My ISO>
> >>   export iso_path
> >>   loopback loop $iso_path
> >>   root=loop
> >>   configfile /boog/grub/loopback.cfg
> >> }
> >>
> >> The config is of the top of my head, might need some corrections. If
> >> so please let me know and post them back for others
> >>
> >> On Sun, Nov 6, 2022 at 9:58 PM James Wabi <imitomx1978@gmail.com>
> wrote:
> >> >
> >> > Hi.
> >> >
> >> > Thanks you all developers that workd on Grub. With grub and the
> Badram and Memmap command i was able to fix my Laptop with bad/broken
> soldered ram memory in the motherboard.
> >> > Actually "memmap" was the one that worked, which reserved specific
> memory address making the OS bootable and stable.
> >> >
> >> > The catch was to install linux on a good working PC and edit the cfg
> /etc/default/grub  to include some specific memmap lines for the memory
> addresses that needed to be blocked, then transfer the hard drive to the
> broken memory laptop. This fixed everything. and the laptop has been
> running perfectly.
> >> >
> >> > I have not found a way, and there is no information online, if this
> is possible to do with a LIVE linux USB flash drive. As soon as you boot
> from a live USB flashdrive, the machine starts to use bad broken soldered
> memory. And i wish there was a way to edit the live usb boot flash drive so
> it has edited GRUB memmap commands  in order to boot with the USB live
> linux and blocking that memory address.
> >> >
> >> > I have read i should prepare the live-usb flashdrive with rufus, but
> the files are completely different from what you do with a linux that is
> already installed on a hard drive  and changing /etc/default/grub cfg
> >> >
> >> > If this can be done in the future it would really help, to most of us
> that have bad soldered memory on the motherboard. Would be nice to live
> boot a linux and block some memory addresses.
> >> >
> >> > thanks!
> >> >
> >> >
> >> > _______________________________________________
> >> > Grub-devel mailing list
> >> > Grub-devel@gnu.org
> >> > https://lists.gnu.org/mailman/listinfo/grub-devel
> >>
> >>
> >>
> >> --
> >> Regards
> >> Vladimir 'phcoder' Serbinenko
> >>
> >> _______________________________________________
> >> Grub-devel mailing list
> >> Grub-devel@gnu.org
> >> https://lists.gnu.org/mailman/listinfo/grub-devel
> >
> > _______________________________________________
> > Grub-devel mailing list
> > Grub-devel@gnu.org
> > https://lists.gnu.org/mailman/listinfo/grub-devel
>
>
>
> --
> Regards
> Vladimir 'phcoder' Serbinenko
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>

[-- Attachment #2: Type: text/html, Size: 8085 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Grub saved my Laptop, and made it usable. so i wanted to say thanks to everybody that worked on it.
  2022-11-07 18:49       ` James Wabi
@ 2022-11-26  4:51         ` Project Development
  2022-11-27  1:22           ` James Wabi
  0 siblings, 1 reply; 7+ messages in thread
From: Project Development @ 2022-11-26  4:51 UTC (permalink / raw)
  To: The development of GNU GRUB

On Mon, Nov 7, 2022 at 9:50 AM James Wabi <imitomx1978@gmail.com> wrote:
>
> Thanks vladimir, sadly it did not work. What i did was to include the memmap line like this on boot/grub/grub.cfg
>
>
> # This Menu entry brought to you courtesy of https://www.pendrivelinux.com/install-grub2-on-usb-from-ubuntu-linux/
> set timeout=10
> set default=0
>
> menuentry "Run Ubuntu Live ISO" {
>  loopback loop /ubuntu.iso
>  linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/ubuntu.iso splash -- memmap=16K\\\$0x0000000B4018000,16K\\\$0x0000000B2018000,4K\\\$0x0000000B401C000,4K\\\$0x0000000B201C000

I bet your problem here is one too many levels of escaping being done. Try:

  linux (loop)/casper/vmlinuz boot=casper
iso-scan/filename=/ubuntu.iso splash --
memmap=16K\$0x0000000B4018000,16K\$0x0000000B2018000,4K\$0x0000000B401C000,4K\$0x0000000B201C000

A little more generic, and not linux specific way would be to use
GRUB's cutmem command[1]. Based on the documentation, I think you
could have the following lines at the top of the grub config:

 cutmem 2949216K 2949232K
 cutmem 2916448K 2916464K
 cutmem 2949232K 2949236K
 cutmem 2916464K 2916468K

Glenn

[1] https://www.gnu.org/software/grub/manual/grub/html_node/cutmem.html

>
>  initrd (loop)/casper/initrd
> }
>
> Then i booted ubuntu from live usb, and i wanted to double check if those areas in the memory were reserved. So i opened terminal, and executed :  dmesg
> A long list of reserved things were displayed but nothing related to those specific memory addresses.
>
> regards!


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Grub saved my Laptop, and made it usable. so i wanted to say thanks to everybody that worked on it.
  2022-11-26  4:51         ` Project Development
@ 2022-11-27  1:22           ` James Wabi
  0 siblings, 0 replies; 7+ messages in thread
From: James Wabi @ 2022-11-27  1:22 UTC (permalink / raw)
  To: The development of GNU GRUB

[-- Attachment #1: Type: text/plain, Size: 3725 bytes --]

Thank you Glenn !
Your answer was very helpful, the Cutmem i think worked, but the other one
did not.

*From a machine that had already usuntu installed and running, i knew that
if the modifications worked, then if i run in terminal sudo Dmesg , i
should see something like this:*

*[    0.000000] reserve setup_data: [mem
0x00000000b4018000-0x00000000b401cfff] reserved[    0.000000] reserve
setup_data: [mem 0x00000000b2018000-0x00000000b201cfff] reserved*

1) So, I started from scratch with an ubuntu iso and rufus. and modified
boot/grub/grug.cfg like you said.






*menuentry "Ubuntu (safe graphics)" { set gfxpayload=keep linux
/casper/vmlinuz nomodeset file=/cdrom/preseed/ubuntu.seed maybe-ubiquity
quiet splash ---
memmap=16K\$0x0000000B4018000,16K\$0x0000000B2018000,4K\$0x0000000B401C000,4K\$0x0000000B201C000
initrd /casper/initrd}*

I was able to boot ubuntu from liveusb, and did sudo Dmesg, i could not
find any address for b4018000 nor b2018000
so pretty much for me it means it failed, and if i run any program later on
there is a high chance that it will crash because of bad memory.


2) So i went back to boot/grub/grug.cfg and added as the first lines the
one you told me:




*cutmem 2949216K 2949232K  cutmem 2916448K 2916464K  cutmem 2949232K
2949236Kcutmem 2916464K 2916468K*

booted ubuntu live usb, did sudo dmesg ,and i found some "unusable"
addresses for bios-e820 that matched b4018000 and b2018000
[    0.000000] BIOS-e820: [mem 0x00000000b2018000-0x00000000b201cfff]
unusable
[    0.000000] BIOS-e820: [mem 0x00000000b4018000-0x00000000b401cfff]
unusable


so pretty much i think the cutmem worked! just need to test for many hours
that there are no crashes using live usb.
At least now i might be able to boot many different linux distros from live
USB too! which is what i was looking for!!

thanks!






On Sat, Nov 26, 2022 at 1:52 AM Project Development <
development@efficientek.com> wrote:

> On Mon, Nov 7, 2022 at 9:50 AM James Wabi <imitomx1978@gmail.com> wrote:
> >
> > Thanks vladimir, sadly it did not work. What i did was to include the
> memmap line like this on boot/grub/grub.cfg
> >
> >
> > # This Menu entry brought to you courtesy of
> https://www.pendrivelinux.com/install-grub2-on-usb-from-ubuntu-linux/
> > set timeout=10
> > set default=0
> >
> > menuentry "Run Ubuntu Live ISO" {
> >  loopback loop /ubuntu.iso
> >  linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/ubuntu.iso
> splash --
> memmap=16K\\\$0x0000000B4018000,16K\\\$0x0000000B2018000,4K\\\$0x0000000B401C000,4K\\\$0x0000000B201C000
>
> I bet your problem here is one too many levels of escaping being done. Try:
>
>   linux (loop)/casper/vmlinuz boot=casper
> iso-scan/filename=/ubuntu.iso splash --
>
> memmap=16K\$0x0000000B4018000,16K\$0x0000000B2018000,4K\$0x0000000B401C000,4K\$0x0000000B201C000
>
> A little more generic, and not linux specific way would be to use
> GRUB's cutmem command[1]. Based on the documentation, I think you
> could have the following lines at the top of the grub config:
>
>  cutmem 2949216K 2949232K
>  cutmem 2916448K 2916464K
>  cutmem 2949232K 2949236K
>  cutmem 2916464K 2916468K
>
> Glenn
>
> [1] https://www.gnu.org/software/grub/manual/grub/html_node/cutmem.html
>
> >
> >  initrd (loop)/casper/initrd
> > }
> >
> > Then i booted ubuntu from live usb, and i wanted to double check if
> those areas in the memory were reserved. So i opened terminal, and executed
> :  dmesg
> > A long list of reserved things were displayed but nothing related to
> those specific memory addresses.
> >
> > regards!
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>

[-- Attachment #2: Type: text/html, Size: 5086 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-11-26 22:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-06 20:57 Grub saved my Laptop, and made it usable. so i wanted to say thanks to everybody that worked on it James Wabi
2022-11-06 21:08 ` Vladimir 'phcoder' Serbinenko
2022-11-07  1:53   ` James Wabi
2022-11-07  3:41     ` Vladimir 'phcoder' Serbinenko
2022-11-07 18:49       ` James Wabi
2022-11-26  4:51         ` Project Development
2022-11-27  1:22           ` James Wabi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.