View previous topic :: View next topic |
Author |
Message |
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1036
|
Posted: Wed Jan 06, 2021 10:12 am Post subject: |
|
|
If you have an older PC/Laptop that can't recognized UEFI and GPT table :
Look at my laptop shots : It can detect BIOS and UEFI (GPT table needed) from my usb Kingston pendrive
This time I will boot from BIOS legacy (First Kingston target) to test Memtest
After boot system doesn't detetct /sys/firmware/efi directory so I'm sure . LRS boots from BIOS legacy and Memtest starts
https://imagizer.imageshack.com/img923/4623/Si3BUa.jpg
https://imagizer.imageshack.com/img923/142/UfgmJg.jpg
https://imagizer.imageshack.com/img922/1462/4MgNUK.jpg
https://imagizer.imageshack.com/img924/8717/LzpQtc.jpg
So. You need to start LRS as BIOS mode . No need UEFI 'cause I assume your Desktop/Laptop can't recognized UEFI partition . and you can't manage boot priority over UEFI/BIOS boot mode.
Step 1 : Install app-backup/fsarchiver
Step 2 : Donwload LRS.fsa image
Step 3 : Format your USB drive with N°1 partition ( for /) and "bios" as partition table
Check FSArchiver info :
Code: | # # fsarchiver archinfo /home/saba/Dropbox/repo/daily/20210104.23-LRS.fsa
====================== archive information ======================
Archive type: filesystems
Filesystems count: 2
Archive id: 5ff296a1
Archive file format: FsArCh_002
Archive created with: 0.8.5
Archive creation date: 2021-01-05_00-25-09
Archive label: 20210104.23-LRS Backup
Minimum fsarchiver version: 0.6.4.0
Compression level: 16 (zstd level 16)
Encryption algorithm: none
===================== filesystem information ====================
Filesystem id in archive: 0
Filesystem format: vfat
Filesystem label: NO NAME
Filesystem uuid: <none>
Original device: /dev/loop0p2
Original filesystem size: 98.45 MB (103227392 bytes)
Space used in filesystem: 130.00 KB (133120 bytes)
===================== filesystem information ====================
Filesystem id in archive: 1
Filesystem format: ext4
Filesystem label: LRS FileSystem
Filesystem uuid: 2fbc173a-ee88-43f3-a4f2-889224b05631
Original device: /dev/loop0p3
Original filesystem size: 7.24 GB (7774785536 bytes)
Space used in filesystem: 5.02 GB (5393051648 bytes)
|
You need Filesystem id in archive: 1
I assume your USB target is /dev/sdb1 , please adjust your target according your needs.
Step 4 : Restore the LRS filesystem
Code: | # fsarchiver restfs LRS-XXXXX.fsa id=1,dest=/dev/sdb1 -v |
Step 5 : mount your target to chroot in and all pseudo filsystems (According Gentoo wiki installation)
Code: | # mount /dev/sdb1 /mnt/gentoo
# mount --bind /dev /mnt/gentoo/dev
# mount --bind /sys /mnt/gentoo/sys
# mount -t proc none /mnt/gentoo/proc
|
Step 5.1 : Chroot in
Code: | # chroot /mnt/gentoo /bin/bash |
Step 6 : Install grub bootloader to your USB pendrive target
Code: | # grub-install --target=i386-pc /dev/sdb |
Step 6.1 : Update grub
Code: | # grub-mkconfig -o /boot/grub/grub.cfg |
(Maybe memtest menu will be displayed to the next LRS boot)
Step 7 : Umount all previuos mounted filesystems
Code: | # umount /mnt/gentoo/{dev,proc,sys} && umount /mnt/gentoo |
Step 8 : Reboot your system and be sure you can boot from USB[/code]
Cross your fingers and Good Luck !
Edit : If you attemp some 1-2 hours from now , I will update all LRS images _________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA |
|
Back to top |
|
|
Marklar n00b
Joined: 08 Feb 2019 Posts: 5
|
Posted: Fri Apr 02, 2021 4:52 pm Post subject: |
|
|
Hello:
I've installed LRS in a portable USB HD but I'm having a persistant problem. This message:
Code: | INIT: Id "s0" respawning too fast: disabled for 5 minutes |
...spawns and spawns in my consoles. Also, terminal emulators don't start in Xfce (well, they spawn a windows so FAST that I can't read a word in them, and then the windows closes).
I've noticed that when I list:
There are A LOT of /dev/tty, up to /dev/tty63 (also up to /dev/ttyS29). I thought that there should be less consoles in /dev (?). I'm self taught in this Linux thing and this is one of those things I don't understand very well, sorry.
I googled the message a little, and found that there could be something misconfigured in this /etc/inittab line:
Quote: | .
.
.
# SERIAL CONSOLES
.
.
s0:12345:respawn:/sbin/agetty -L 115200 ttymxc0 vt100
|
...and I don't know what can I do now. Can anyone help me?. What's ttymxc0?.
Thanks in advance for any help. |
|
Back to top |
|
|
ewildgoose Tux's lil' helper
Joined: 02 Mar 2003 Posts: 75
|
Posted: Fri Apr 02, 2021 5:18 pm Post subject: |
|
|
I think you can assume these are harmless (under the context)
The respawning too fast is because you don't have that serial port on your device, a /dev/ttymxc0 would be something you would find on an embedded board (does raspberry pi also use this?) however, it won't exist on a PC machine. So by all means edit it away, but equally it's just failing to start, nothing hideous |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1036
|
Posted: Fri Apr 02, 2021 6:37 pm Post subject: |
|
|
@Marklar
thanks for reporting . I'm going to check it . Please be patient
/etc/inittab was modified for the root user privileges and other stuffs
If you create a new user using the initial script , /etc/inittab file will be repalced with the original Gentoo /etc/inittab file
see
Code: | diff /etc/inittab /etc/inittab.gentoo
40,45c40,45
< c1:12345:respawn:/sbin/agetty -nl /bin/bashlogin 38400 tty1 linux
< c2:2345:respawn:/sbin/agetty -nl /bin/bashlogin 38400 tty2 linux
< c3:2345:respawn:/sbin/agetty -nl /bin/bashlogin 38400 tty3 linux
< c4:2345:respawn:/sbin/agetty -nl /bin/bashlogin 38400 tty4 linux
< c5:2345:respawn:/sbin/agetty -nl /bin/bashlogin 38400 tty5 linux
< c6:2345:respawn:/sbin/agetty -nl /bin/bashlogin 38400 tty6 linux
---
> c1:12345:respawn:/sbin/agetty 38400 tty1 linux
> c2:2345:respawn:/sbin/agetty 38400 tty2 linux
> c3:2345:respawn:/sbin/agetty 38400 tty3 linux
> c4:2345:respawn:/sbin/agetty 38400 tty4 linux
> c5:2345:respawn:/sbin/agetty 38400 tty5 linux
> c6:2345:respawn:/sbin/agetty 38400 tty6 linux
|
inittab is the original inittab file raised from systemrescuecd
About -n -l l options
Code: | # man agetty
-l, --login-program login_program
Invoke the specified login_program instead of /bin/login. This
allows the use of a non-standard login program. Such a program
could, for example, ask for a dial-up password or use a differ-
ent password file. See --login-options.
-n, --skip-login
Do not prompt the user for a login name. This can be used in
connection with the --login-program option to invoke a non-stan-
dard login process such as a BBS system. Note that with the
--skip-login option, agetty gets no input from the user who logs
in and therefore will not be able to figure out parity, charac-
ter size, and newline processing of the connection. It defaults
to space parity, 7 bit characters, and ASCII CR (13) end-of-line
character. Beware that the program that agetty starts (usually
/bin/login) is run as root.
|
After the new user is created , /bin/bash becomes the default bash , /etc/initdtab will be replaced from Gentoo inittab
and some scripts will be removed or disabled.
Then you're login in a 99% Gentoo system
/bin/bashlogin is my "dirty" script to run LRS at the first boot upto new user is created.
I apologize if the code is not beautiful or not very functional. : D
but LRS was built from scratch using Gentoo-base system for my own use
if you don't need SerialConsole try to disable it
Code: | # SERIAL CONSOLES
.
.
#s0:12345:respawn:/sbin/agetty -L 115200 ttymxc0 vt100
|
_________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA |
|
Back to top |
|
|
Marklar n00b
Joined: 08 Feb 2019 Posts: 5
|
Posted: Sat Apr 03, 2021 6:14 pm Post subject: |
|
|
Hello:
sabayonino, I've managed to make the X terminals work. I think this could be of help to you and to others:
I commented out these lines in ~/.bashrc:
Code: |
.
.
Check BIOS/MBR for Memtest86+ Menu entry
#/usr/local/bin/mt86check.sh
# Others stuff
#if [ -f ~/.start.sh ] ; then
# exec ~/.start.sh
#fi
|
/usr/local/bin/mt86check.sh doesn't work because a permissions error.
Don't know why, but if I leave those lines of ~/.start.sh uncommented, not any X terminal emulator starts. BTW, ~/.start.sh tries to delete himself?.
Thanks a lot for LRS. I should have said this first. One last question: can I upgrade LRS with?:
Code: |
emerge --update --ask @world
|
EDIT: the message that spawned at the consoles went out by just commenting the line in inittab as suggested. |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1036
|
Posted: Sat Apr 03, 2021 7:48 pm Post subject: |
|
|
[quote="Marklar"]Hello:
sabayonino, I've managed to make the X terminals work. I think this could be of help to you and to others:
I commented out these lines in ~/.bashrc:
Code: |
.
.
Check BIOS/MBR for Memtest86+ Menu entry
#/usr/local/bin/mt86check.sh
# Others stuff
#if [ -f ~/.start.sh ] ; then
# exec ~/.start.sh
#fi
|
This code was removed yesterday.
and Yes ... you can update and reconfigure LRS like Gentoo system.
.start.sh file had a syntax error inside the code . It's not so important . you can remove it
LRS 20210403 rel. fixed a broken truetype rebuild.
and add /home automount if you have an EXT4 partition (usb partition, disk partition etc..) "LRS-home" labeled _________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1036
|
Posted: Tue Apr 06, 2021 12:14 am Post subject: |
|
|
LRS 20210405
Added the following features
LRS /home automount
A labeled LRS-home partition is automounted if detected at boot.
If the partition won't be detetcted for some reason or it is not detected at boot , the missing user data will be created
from scratch if the user is registred in the system , according on /etc/passwd content.
Encrypt /home/<user> directory
When you add the new user using the dialog tool on TTY1 , you can choose to encrypt the user contents.
You can combine /home automount and user data encryption on a separate partiiton or USB device.
Encrypt /home user data on USB device (Data Traveler G2)
https://imagizer.imageshack.com/img922/2301/NogM63.png
Encrypt user data removed.
To the next boot , missing user directory in /home is created from scratch on a plan files/directory
in the ROOT filesystem or another not encrypted partition.
https://imagizer.imageshack.com/img924/7685/VnwD8K.png
Anyway you can encrypt the new user directory running :
Code: | # ecryptfs-migarte-home -u <username> |
to encrypt /home/<user> data .
A safe copy of /home/<user> is created ( /home/<user>.###### )
Test new encrypted login then you can easily remove the copy.
LRS is configured to automount the encrypted /home/<user> at boot.
eCryptFS works at the file and directory level not at the filesystem level .
Every single file or directory is encrypted.
Cheers _________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA |
|
Back to top |
|
|
covici n00b
Joined: 22 Mar 2007 Posts: 19
|
Posted: Wed Aug 25, 2021 9:04 am Post subject: is this project still there |
|
|
Hi. Last post seems a few months old and an Email to the address given in his info file has had no response, so I was wondering if this is a going concern -- I have a few questions about modifying the system.
Thanks. |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1036
|
|
Back to top |
|
|
covici n00b
Joined: 22 Mar 2007 Posts: 19
|
Posted: Wed Aug 25, 2021 12:12 pm Post subject: couple of questions |
|
|
sabayonino wrote: | Hi.
How can I help you ? |
Well, I discovered that I could not emerge anything, the treewas empty. However, portage would not let me sync, because you have a profiles directory in there. Also, I was wondering in case I needed to change to multilib profile, how to do that.
Thanks. |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1036
|
Posted: Wed Aug 25, 2021 6:30 pm Post subject: |
|
|
check /etc/portage/make.conf and comment [ add # at the beginning of the line(s) or remove them ]
Code: | # PORTAGE_BINHOST="file:///var/cache/binpkgs"
# EMERGE_DEFAULT_OPTS="${EMERGE_DEFAULT_OPTS} --getbinpkgonly"
|
and/or remove Portage tree directory and update Portage Tree again
Code: | # rm -rf /var/db/repos/gentoo && eix-sync |
check the right setup of the
MAKEOPTS="-j? -s"
variable in /etc/portge/make.conf also. _________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA |
|
Back to top |
|
|
covici n00b
Joined: 22 Mar 2007 Posts: 19
|
Posted: Wed Sep 15, 2021 2:33 am Post subject: successfully booted but a couple of questions/problems |
|
|
Hi. So, I got the usb stick to boot, but it booted up to a 5.13 kernel, how can I make it boot up with the 5.10.60 gentoo which I made? Also, I need to change a config value, what has been your procedure to coompile the kernel? I have done it before, but I want to conform to the way you have it working.
Thanks in advance for any suggestions. |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1036
|
Posted: Wed Sep 15, 2021 11:13 am Post subject: |
|
|
Hi
If you've build your own kernel , you must to upgrade grub config
Code: |
# grub-mkconfig -o /boot/grub/grub.cfg
|
and choose your kernel at boot
LRS run a pre-build binary kernel provided by portage tree
Code: | sys-kernel/gentoo-kernel-bin |
Its kernel config is listed to /boot and /etc/kernels directories
You can build your own kernel running genkernel
By default you can keep some modules to managed raid, encrypted partitions ,lvm partitions schema and so on :
Code: | genkernel --firmware --busybox --mdadm --do-keymap-auto --luks --lvm --nfs --bootdir=/boot --no-symlink --all-ramdisk-modules --install --kernel-config=/etc/kernels/config --menuconfig all |
(if you don't need to edit the kernel config , you can omitted the --menuconfig option to the genkernel command line)
Use your custom config and run --kernel-config parameter with your own custom config in the genkernel command line
Code: | --kernel-config=/your/kernel/config/file |
If you have some external modules keep in mind to rebuild all modules
Code: | # emerge @module-rebuild |
To boot your kernel , /etc/default/grub
As default : from
to
Code: |
GRUB_DEFAULT=<kernel N position >
|
Update grub
Code: | grub-mkconfig -o /boot/grub/grub.cfg |
Cheers _________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA |
|
Back to top |
|
|
ifys n00b
Joined: 12 Sep 2014 Posts: 35
|
Posted: Mon Oct 04, 2021 5:27 pm Post subject: |
|
|
hi,
i downloaded the latest today
I am unable to boot in legacy/bios only uefi works |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1036
|
Posted: Mon Oct 04, 2021 6:48 pm Post subject: |
|
|
Thanks for reporting . I'm gonna to check it
PS : BIOS boot is (...should be..) available for RAW image only.
MBR must be installed by the user using FSArchiver image and/or *.tar.lz achive . _________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA |
|
Back to top |
|
|
ifys n00b
Joined: 12 Sep 2014 Posts: 35
|
Posted: Mon Oct 04, 2021 8:43 pm Post subject: |
|
|
.....
Step 1 : Install app-backup/fsarchiver
Step 2 : Donwload LRS.fsa image
Step 3 : Format your USB drive with N°1 partition ( for /) and "bios" as partition table
format in fat32 not ext4 ? |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1036
|
Posted: Mon Oct 04, 2021 8:50 pm Post subject: |
|
|
BIOS grub install :
Code: | grub-install --removable --product-version=LRS --target=i386-pc --themes=lrs /dev/<your_device> |
Code: | grub-mkconfig -o /boot/grub/grub.cfg |
as "your-device" i mean : /dev/sda , /dev/sdb ... not partition /dev/sda1.... etc
If you need BIOS grub boot see my previous post _________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Last edited by sabayonino on Mon Oct 04, 2021 8:57 pm; edited 1 time in total |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1036
|
Posted: Mon Oct 04, 2021 8:55 pm Post subject: |
|
|
ifys wrote: | .....
format in fat32 not ext4 ?
|
FSArchiver image boots in UEFI mode only.
Code: |
fsarchiver archinfo <FSA image>
====================== archive information ======================
Archive type: filesystems
Filesystems count: 2
Archive id: 614c22e6
Archive file format: FsArCh_002
Archive created with: 0.8.6
Archive creation date: 2021-09-24_21-48-26
Archive label: 20210924.21-LRS Backup
Minimum fsarchiver version: 0.6.4.0
Compression level: 17 (zstd level 17)
Encryption algorithm: none
===================== filesystem information ====================
Filesystem id in archive: 0
Filesystem format: vfat
Filesystem label: NO NAME
Filesystem uuid: B40E8B95
Original device: /dev/loop0p2
Original filesystem size: 98.45 MB (103227392 bytes)
Space used in filesystem: 129.50 KB (132608 bytes)
===================== filesystem information ====================
Filesystem id in archive: 1
Filesystem format: ext4
Filesystem label: LRS FileSystem
Filesystem uuid: 2fbc173a-ee88-43f3-a4f2-889224b05631
Original device: /dev/loop0p3
Original filesystem size: 14.50 GB (15568502784 bytes)
Space used in filesystem: 5.64 GB (6051397632 bytes)
|
By default / is EXT4 partition
/boot/efi is FAT32 partition for UEFI boot
You can change the / filesystem (see fsarchiver --help) but keep in mind you must adjust /etc/fstab file and update grub config. _________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA |
|
Back to top |
|
|
ifys n00b
Joined: 12 Sep 2014 Posts: 35
|
Posted: Mon Oct 11, 2021 7:47 am Post subject: |
|
|
Hi there,
I m having an issue with lastest LRS 20211010.fsa instaled in legacy bios
I select it on grub while booting but when I create my USER it won t start XFCE and go back to menu create user etc..
ROOT login works,it s not a graphic driver problem i tried it on my pc with nvidia and laptop with intel and it s the same
any idea ?
Last edited by ifys on Tue Oct 12, 2021 1:22 pm; edited 1 time in total |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1036
|
Posted: Mon Oct 11, 2021 3:40 pm Post subject: |
|
|
Hi.
Running latest LRS image , I have not any problem with new account .
Please , paste any logs here
Code: | ~/xsession-errors
/var/log/Xorg.0.log
|
and "dmesg" command.
tnx
PS : Xorg-server should load the drivers at boot by default , so you can avoid selecting them at boot _________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA |
|
Back to top |
|
|
ifys n00b
Joined: 12 Sep 2014 Posts: 35
|
Posted: Mon Oct 11, 2021 11:31 pm Post subject: |
|
|
no xsessions-error file in user folrder
Last edited by ifys on Tue Oct 12, 2021 3:08 pm; edited 1 time in total |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1036
|
Posted: Tue Oct 12, 2021 10:19 am Post subject: |
|
|
Nouveau Video drivers are loaded
Th only errors I can see are:
Code: | EE) dbus-core: error connecting to system bus: org.freedesktop.DBus.Error.FileNotFound (Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory)
[ 1035.151] (EE) event3 - USB Laser Wheel Mouse: client bug: event processing lagging behind by 20ms, your system is too slow
[ 1040.577] (EE) dbus-core: error connecting to system bus: org.freedesktop.DBus.Error.FileNotFound (Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory) |
Not sure if these errors are the fault _________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA |
|
Back to top |
|
|
ifys n00b
Joined: 12 Sep 2014 Posts: 35
|
Posted: Tue Oct 12, 2021 1:23 pm Post subject: |
|
|
sabayonino wrote: | Nouveau Video drivers are loaded
Th only errors I can see are:
Code: | EE) dbus-core: error connecting to system bus: org.freedesktop.DBus.Error.FileNotFound (Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory)
[ 1035.151] (EE) event3 - USB Laser Wheel Mouse: client bug: event processing lagging behind by 20ms, your system is too slow
[ 1040.577] (EE) dbus-core: error connecting to system bus: org.freedesktop.DBus.Error.FileNotFound (Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory) |
Not sure if these errors are the fault |
i edited my post because it s not a graphic driver problem
it fails on nvidia or intel |
|
Back to top |
|
|
ifys n00b
Joined: 12 Sep 2014 Posts: 35
|
Posted: Tue Oct 12, 2021 3:07 pm Post subject: |
|
|
nervermind !!!!!
I forgot to remove the EFI partition in /etc/fstab
Thanks again for LRS !!! |
|
Back to top |
|
|
ifys n00b
Joined: 12 Sep 2014 Posts: 35
|
Posted: Tue Oct 19, 2021 1:48 pm Post subject: |
|
|
Hi, how to get rid of the annoying beep when.loggint out ,terminal paste (when there is nothing to paste) or scroll down in Thunar to the bottom
It happens on Intel Hd audio systems only. |
|
Back to top |
|
|
|