Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Linux Recovery System
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1037

PostPosted: Wed Oct 20, 2021 11:15 am    Post subject: Reply with quote

:?: :?:
_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
ifys
n00b
n00b


Joined: 12 Sep 2014
Posts: 35

PostPosted: Wed Oct 20, 2021 6:44 pm    Post subject: Reply with quote

sabayonino wrote:
:?: :?:



i found out .

Code:
xset b off
Back to top
View user's profile Send private message
covici
n00b
n00b


Joined: 22 Mar 2007
Posts: 19

PostPosted: Tue May 17, 2022 4:30 pm    Post subject: problems with grub in LRS Reply with quote

Hi. When trying to boot my LRS, I get the error
Error: symbol 'grub_calloc' not found

I can re emerge grub, but how do I install it, I have a disk file and I normally mount using -o loop offset of where the third partition begins.

So, how do I install grub and on what device do I install it. I am assuming that if I can do this, the error will go away.

Thanks in advance for any suggestions.
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1037

PostPosted: Tue May 17, 2022 5:28 pm    Post subject: Reply with quote

Hi covici

I think you're missimg "bios_grub" partition in your image.

basically , LRS is configured for hybrid boot (BIOS/UEFI) , so "BIOS boot" partition is needed to BIOS boot.
Code:

Disk /dev/loop0: 14.89 GiB, 15990784000 bytes, 31232000 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
Disklabel type: gpt
Disk identifier: 700981BF-1069-491E-B47C-B3CA35C35A5C

Device        Start      End  Sectors  Size Type
/dev/loop0p1   2048     4095     2048    1M BIOS boot
/dev/loop0p2   4096   208895   204800  100M EFI System
/dev/loop0p3 208896 31231933 31023038 14.8G Linux filesystem


If your setup is to boot UEFI only (no BIOS boot partition) , you must reinstall Uefi grub and generate a new grub config file.

Running LRS chroot-in , run :
Code:

# grub-install --efi-directory=/boot/efi --target=x86_64-efi --bootloader-id=LRS-Grub --product-version=LRS
# grub-mkconfig -o /boot/grub/grub.cfg


/boot/efi must be mounted and formatted as "FAT32 EFI system"

PS no need to mount 3rd partition offset , just mount it as is.
Code:

losetup --find --show --partscan /your/LRS.img


You can manage your /dev/loop device just like a disk

Please read LRS.info file


I would like to take this opportunity to report that LRS has switched to LXQT desktop
_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
covici
n00b
n00b


Joined: 22 Mar 2007
Posts: 19

PostPosted: Tue May 17, 2022 6:25 pm    Post subject: problem booting lrs file system Reply with quote

WEll, I know that the image has 3 partitions. If I do gdisk on the file, the first partition says bios boot partition. The second partition says says its an EFI system partition and the third partition is the regular file system (ext4). So, how would I re install grub given that setup. I can mount the third partition by using its offset, so I can get into it.
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1037

PostPosted: Tue May 17, 2022 6:42 pm    Post subject: Reply with quote

As I wrote , no need to mount offset of 3rd partition . just mount /dev/loop0p3 as is

when you exit from /dev/loop0p3 and umount this , please umount all mounted partitions and close the Loop image
Code:
 losetup -d /your/image


if you don't change anything about "boot" and grub or partition schema , no need to reinstall grub.

So I think you have skipped some steps during mount the loop device , please paste here your steps you've done.

Thanks :wink:
_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
covici
n00b
n00b


Joined: 22 Mar 2007
Posts: 19

PostPosted: Tue May 17, 2022 8:30 pm    Post subject: Problem booting LRS Reply with quote

Well, not sure how to answer, to work on my gentoo file system, the only way that works is to do the following
mount -o loopk,offset=1066954752 20210820.18-LRS.img/mnt/misc
After mounting that and the proc and other things, I can work on the system.

I have not seen a way to access the other partitions this way.

I think I need to re install grub to fix the error, how to do that?
There is a boot directory on the system, but its not mounted on anything.

I hope I have explained this correctly.
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1037

PostPosted: Tue May 17, 2022 10:43 pm    Post subject: Reply with quote

Your procedure is wrong

As reporting in LRS.info file :
Quote:
=== Manage the raw file ===

You can mount LRS raw image and update the image :
Example /dev/loop0 is considered and you may have different:

# losetup --partscan --find --show LRS.img
/dev/loop0

# fdsik -l /dev/loop0

Disk /dev/loop0: 15 GiB, 16106127360 bytes, 31457280 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
Disklabel type: gpt
Disk identifier: BA83F68A-C71F-4811-91EA-ED92B06D4DB3

Password:
Disk /dev/loop0: 7,5 GiB, 8074035200 bytes, 15769600 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
Disklabel type: gpt
Disk identifier: 700981BF-1069-491E-B47C-B3CA35C35A5C

Device Start End Sectors Size Type
/dev/loop0p1 2048 4095 2048 1M BIOS boot
/dev/loop0p2 4096 208895 204800 100M EFI System
/dev/loop0p3 208896 15769566 15560671 7,4G Linux filesystem

Mount the /dev/loop0p3 (the root filesystem) /dev (and /dev/shm) /proc /sys filesystems according on https://wiki.gentoo.org/wiki/Chroot

chroot in /dev/loop0p3.

Do anything.
Exit and umount all filesystems

To remove the loop device :
losetup -d /dev/loop0


"losetup" commnd is provided by sys-apps/util-linux package , It is installed by default for all distributions.
When you get the loop device , and all its partitions , you can manage this loop device as a common hard drive
_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
covici
n00b
n00b


Joined: 22 Mar 2007
Posts: 19

PostPosted: Wed May 18, 2022 10:36 am    Post subject: Problem booting LRS Reply with quote

OK, thanks, that is better.

But now, I still have to re install grub in the bios partition, how do I do that? Or is that the right place to install grub?
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1037

PostPosted: Wed May 18, 2022 10:53 am    Post subject: Reply with quote

Download the new clean image and start from scratch :wink:
_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2, 3, 4, 5
Page 5 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum