View previous topic :: View next topic |
Author |
Message |
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1039
|
Posted: Fri Jan 03, 2020 6:18 pm Post subject: Linux Recovery System |
|
|
Split from SystemRescueCD quits Gentoo moves to ArchLinux and stuck. -- NeddySeagoon
@Tony0945
LRS on my GDrive
I rebuilt the RAW/VDI/FSA images for my porposes or uses 'cause it's Gentoo !! and I like to play with Gentoo system (and Sabayon )
I'd like to share LRS if you need about this and I hope it can be useful to someone.
If you can rebuild ISO/DVD images , this is welcome ! Please share your ISOs !
As I wrote on LRS info file everyone can build and cusotmize a raw image ...basically it's a Gentoo installation !
================================
Code: | === INTRO ===
This is my own project to replace SystemRescucecd ISO image. Just for fun.
Anyone can do this.
LRS raw image is bootable on BIOS/UEFI systems running Grub2
It is based on Gentoo AMD64 no-multilib. It was build from stage3
LRS raw image can be installed on any USB/HDD device.
USB/HDD Min size required : >=8 GB (8GB should be tiny , depends on USB chipset)
== About Users data ==
* You can install and update LRS system just like a Gentoo installation.
LRS is persistence. All your data will be stored on the device
included passwords , WiFi passwords , accounts and browser cache etc.
and all system changes will be preserved.
=== Wipe all user data ===
* All user data can be safely deleted running /usr/local/sbin/wipe_users_data.sh
This script going to wipe all users data and fill with zeros all free space.
=== About ROOT user ===
==================================================================================
LRS run with ROOT privileges , please pay close attention !!!
For daily use, creating an underprivileged user is highly recommended .
[ https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Finalizing ]
Root autologin is invoked by /etc/inittab (provided by sys-apps/sysvinit package)
# mv /etc/inittab.gentoo /etc/inittab
to reset as default gentoo inittab then create a regular user as explained
to the wiki. |
_________________ LRS 64/32 on G.Drive
Last edited by sabayonino on Thu Oct 06, 2022 12:47 pm; edited 6 times in total |
|
Back to top |
|
|
redblade7 Tux's lil' helper
Joined: 11 Jan 2018 Posts: 106
|
Posted: Sun Jan 05, 2020 10:27 pm Post subject: Re: Live Recovery System |
|
|
sabayonino wrote: | Split from SystemRescueCD quits Gentoo moves to ArchLinux and stuck. -- NeddySeagoon
@Tony0945
I rebuilt the RAW/VDI/FSA images for my porposes or uses 'cause it's Gentoo !! and I like to play with Gentoo system (and Sabayon )
I'd like to share LRS if you need about this and I hope it can be useful to someone.
If you can rebuild ISO/DVD images , this is welcome ! Please share your ISOs !
As I wrote on LRS info file everyone can build and cusotmize a raw image ...basically it's a Gentoo installation !
PS : 20200103 images are available . Keymap setup at boot will be persistent after first system boot |
How do I convert the other image file formats to ISO for use with Rufus? |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1039
|
Posted: Sun Jan 05, 2020 10:59 pm Post subject: |
|
|
No need Rufus or convert to ISO-9660
Please read LRS.info or see Balena Etcher to put *.img file onto USB/disk device
See isoimagewriter
Code: | app-cdr/isoimagewriter
Available versions: (5) (~)0.8
{debug}
Homepage: https://community.kde.org/ISOImageWriter
Description: Write hybrid ISO files onto a USB disk
|
or RosaImageWriter (for Windows,Linux and Mac) also
[edit]
I can build LRS.iso file , but :
This is not a ISO-9660 standard
It is not based on Isolinux boot manager
it is a :
Code: | file LRS.iso
LRS.iso: DOS/MBR boot sector, extended partition table (last) |
I think "Rufus" can play with this ISO file (I can't test this.)
RosaImageWriter does !
I'm gonna to remove *.vdi image (for Dropbox 5GB size limits) and .ISO will be available over zstd compression.
Please be patient , I'm gonna to upload the images soon . _________________ LRS 64/32 on G.Drive |
|
Back to top |
|
|
russellD n00b
Joined: 07 Oct 2014 Posts: 63 Location: 28.5797S,153.338 E
|
Posted: Mon Jan 06, 2020 8:31 am Post subject: |
|
|
Hey sabayonino
Great to hear there is a new edition for 2020!
Hope your able to make the LRS-2020 as a iso file like LRS-201908-13 with a torrent.
The LRS-201908-13 is still live with 256 seeds, my tiny mini server among them
best wishes
- r |
|
Back to top |
|
|
dalek Veteran
Joined: 19 Sep 2003 Posts: 1353 Location: Mississippi USA
|
Posted: Mon Jan 06, 2020 8:41 am Post subject: |
|
|
I have a feeling this is something on my end or my ISP but it has been a issue for a while. When I try to download one of the images, it cuts off somewhere around 800MBs or so. I do sometimes download large files and it downloads fine but not from that site. I've downloaded video files in the past that were over 2GBs with no problem, other than taking a long time. I just can't seem to get any of the files from the host for this.
Has anyone else with a somewhat slow connection had issues with it failing? I have a 1.5MB down DSL. It usually fails saying it can no longer read the file. I can get the exact error by trying again if needed. It will take a little while tho.
Thanks _________________ My rig: Gigabyte GA-970A-UD3P mobo, AMD FX-8350 Eight-Core CPU, ZALMAN CNPS10X Performa CPU cooler,
G.SKILL 32GB DDR3 PC3 12800 Memory Nvidia GTX-650 video card LG W2253 Monitor
60TBs of hard drive space using LVM
Cooler Master HAF-932 Case |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1039
|
Posted: Mon Jan 06, 2020 9:08 am Post subject: |
|
|
Which version did you download ?
20200103 was removed and replaced with latest (20200106) at ~02:00 CEST time and it took ~2 hours for upload to my DropBox _________________ LRS 64/32 on G.Drive |
|
Back to top |
|
|
russellD n00b
Joined: 07 Oct 2014 Posts: 63 Location: 28.5797S,153.338 E
|
Posted: Mon Jan 06, 2020 10:19 am Post subject: |
|
|
a torrent would soon sort out the download failure rate
big hint
- r |
|
Back to top |
|
|
dalek Veteran
Joined: 19 Sep 2003 Posts: 1353 Location: Mississippi USA
|
Posted: Mon Jan 06, 2020 10:30 am Post subject: |
|
|
sabayonino wrote: | Which version did you download ?
20200103 was removed and replaced with latest (20200106) at ~02:00 CEST time and it took ~2 hours for upload to my DropBox |
I've tried several different ones. I know I did the first one, a couple in the middle and the last one was the other day. I think the last one was the first of 2020. This is why I think it is something besides a bad file. I think others would be posting if that were the case. It's also different files too.
russellD wrote: | a torrent would soon sort out the download failure rate
big hint
- r |
It very will could. As I posted, I've downloaded huge files in the past with no problems. Some ISOs and some videos from various sites. _________________ My rig: Gigabyte GA-970A-UD3P mobo, AMD FX-8350 Eight-Core CPU, ZALMAN CNPS10X Performa CPU cooler,
G.SKILL 32GB DDR3 PC3 12800 Memory Nvidia GTX-650 video card LG W2253 Monitor
60TBs of hard drive space using LVM
Cooler Master HAF-932 Case |
|
Back to top |
|
|
redblade7 Tux's lil' helper
Joined: 11 Jan 2018 Posts: 106
|
Posted: Mon Jan 06, 2020 7:35 pm Post subject: |
|
|
I have a suggestion for LRS. I mentioned it briefly in one of the other threads, but if you want to create an encrypted partition such as with LUKS, you need entropy. As LRS (and its predecessor SystemRescueCD v5) lacks sys-apps/rng-tools (best for modern systems) and sys-apps/haveged (best for older, virtual, or embedded systems) with no way to compile them, I've had to use Ubuntu-based live media for this step.
You should add both sys-apps/rng-tools and sys-apps/haveged, disabled at boot but still installed, to LRS. This way, if you need to create encrypted partitions, you can set up the config files to fit your system and run either of the daemons yourself, and you won't need separate binary distros for this step. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54586 Location: 56N 3W
|
Posted: Mon Jan 06, 2020 9:14 pm Post subject: |
|
|
sabayonino,
Time to move to github or gitlab maybe?
Then you could accept pull requests with patches :) _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1039
|
Posted: Mon Jan 06, 2020 9:52 pm Post subject: |
|
|
redblade7 wrote: | with no way to compile them, I've had to use Ubuntu-based live media for this step.
You should add both sys-apps/rng-tools and sys-apps/haveged, disabled at boot but still installed, to LRS. This way, if you need to create encrypted partitions, you can set up the config files to fit your system and run either of the daemons yourself, and you won't need separate binary distros for this step. |
Hi.
Thanks for pointing out the useful apps.
Tools will be available soon , but keep in mind that if you need some apps , you can compile by yourself (L)RS is upgradeable. It isn't a real "Live" but it is a disk image and it can be writable.
You can keep it updated by yourself ... according on your device performances
@Neddy
I'll think about it _________________ LRS 64/32 on G.Drive |
|
Back to top |
|
|
redblade7 Tux's lil' helper
Joined: 11 Jan 2018 Posts: 106
|
Posted: Tue Jan 07, 2020 12:50 am Post subject: |
|
|
sabayonino wrote: | redblade7 wrote: | with no way to compile them, I've had to use Ubuntu-based live media for this step.
You should add both sys-apps/rng-tools and sys-apps/haveged, disabled at boot but still installed, to LRS. This way, if you need to create encrypted partitions, you can set up the config files to fit your system and run either of the daemons yourself, and you won't need separate binary distros for this step. |
Hi.
Thanks for pointing out the useful apps.
Tools will be available soon , but keep in mind that if you need some apps , you can compile by yourself (L)RS is upgradeable. It isn't a real "Live" but it is a disk image and it can be writable.
You can keep it updated by yourself ... according on your device performances
@Neddy
I'll think about it |
You can't emerge anything because there's no gcc.
I'd imagine adding gcc would create unnecessary bloat for a rescue disk. |
|
Back to top |
|
|
russellD n00b
Joined: 07 Oct 2014 Posts: 63 Location: 28.5797S,153.338 E
|
Posted: Tue Jan 07, 2020 1:05 am Post subject: |
|
|
Please add a simple way to connect to a local wifi network.
I found that I wasn't able to use local wifi network with LRS-201908-13 as there was no obviously simple way to make this occur.
So I had to resort to Knoppix to get to the internet on a broken machine.
On other bootable usb, NetworkManager or wicd are two applications I have used to successfully connect to local wifi networks.
Hope "easy to use" wifi application can added in the new round of LRS for 2020! |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1039
|
Posted: Tue Jan 07, 2020 2:02 am Post subject: |
|
|
@redblade7
which version of LRS do you mean?
Latest raw image has a gcc installed . Just update portage tree.
@Russel
NetworkManager applet is installed on RAW images and NM works to all pc's I've tested
LRS-201908-13 was dropped time ago.
ISOs based on SystemRescueCD was dropped from my dropbox and they're no longer supported.
LRS is build from a raw disk image now. It boot from Grub2 MBR/UEFI support (for my purposes)
https://imagizer.imageshack.com/img924/4229/RY48yL.png _________________ LRS 64/32 on G.Drive |
|
Back to top |
|
|
russellD n00b
Joined: 07 Oct 2014 Posts: 63 Location: 28.5797S,153.338 E
|
Posted: Tue Jan 07, 2020 10:36 am Post subject: |
|
|
Hey sabayonino,
Fantastic news to hear you were able to get a image that is both: able to do wifi and more significantly, completely and uniquely Gentoo!
music to my ears!
How can I replace the older LRS-201908-13 if I can't download your newer and better image as an iso and as a torrent?
as soon as its available, I put my server to work sharing it out! |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1039
|
Posted: Tue Jan 07, 2020 11:41 am Post subject: |
|
|
See my signature
No torrent available at this time but I'm planing to share as torrent one release at month and sharing LRS "daily" updates on my DropBox
Please be patient. And thanks for your support _________________ LRS 64/32 on G.Drive |
|
Back to top |
|
|
redblade7 Tux's lil' helper
Joined: 11 Jan 2018 Posts: 106
|
Posted: Tue Jan 07, 2020 3:07 pm Post subject: |
|
|
sabayonino wrote: | @redblade7
which version of LRS do you mean?
Latest raw image has a gcc installed . Just update portage tree. |
My bad, was thinking of SystemRescueCD and didn't think to check the LRS pkglist for gcc. |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1039
|
Posted: Wed Jan 08, 2020 11:57 pm Post subject: |
|
|
=== UPDATE ===
= Release 20200108-2210 =
Code: | ============ 20200108-2210 ============
Add :
* sys-apps/rng-tools-6.7-r2
* sys-apps/haveged-1.9.2-r1
* sys-power/acpid-2.0.31
Major updates :
* dev-util/ccache-3.7.6 [3.7.4]
* sys-apps/openrc-42.1 [41.2]
* www-client/firefox-bin-72.0 [71.0]
Misc :
* Add boot option to resize filesystem on the fly.
It may take a long time to resize the root filesystem
* Add a warning message to TTY for Root account
Known Issues :
* Segfault running partclone with -N option (ncurses support/interface)
(Partclone : v0.3.13 (08772bdc755a0f0f2177b45286535b3f77d18de3) |
Torrent files available on my DropBox and direct download --> "daily" folder (Images uploading in progress...)
Available images :
VirtualBox Disk Image
Code: | magnet:?xt=urn:btih:3fadb7067e996618f14d2b26d66b5d49677d0215&dn=20200108-2210-LRS_%5BVDI%5D&tr=http%3A%2F%2Fh4.trakx.nibba.trade%3A80%2Fannounce
|
Raw Disk Image
Code: | magnet:?xt=urn:btih:a6003d7c832d31578cc938f9edb3dcc136ddee55&dn=20200108-2210-LRS_%5BIMG%5D&tr=http%3A%2F%2Fh4.trakx.nibba.trade%3A80%2Fannounce
|
FSArchive Backup Image
Code: | magnet:?xt=urn:btih:af6b1235e9e0b65c990e5a6ebdb690886da1b69b&dn=20200108-2210-LRS_%5BFSA%5D&tr=http%3A%2F%2Fh4.trakx.nibba.trade%3A80%2Fannounce
|
ISO Disk Image
Code: | magnet:?xt=urn:btih:1eb1a43f167e4ac17d31b0b38ba64e6c85fea5a9&dn=20200108-2210-LRS_%5BISO%5D&tr=http%3A%2F%2Fh4.trakx.nibba.trade%3A80%2Fannounce
|
Warning : This is not Live ISO. It can't works on CD/DVD media support. Only for USB/HDD bootable media.
Built for use with the rufus application & C. ... It should work (I can't test this)
Good luck and have a fun ! _________________ LRS 64/32 on G.Drive |
|
Back to top |
|
|
jfp Guru
Joined: 08 Jul 2007 Posts: 326 Location: Virginia, USA
|
Posted: Thu Jan 09, 2020 3:51 pm Post subject: |
|
|
So I am a bit confused...
I know nothing about bitTorrent. I did install net-p2p/ktorrent and I think I'm downloading te image for Virtualbox but I'm not at all confidant that is actually working... Like I said I know nothing about bitTorrent and have little idea of what to expect.
My immediate goal is simply to get Virtualbox to boot one of the images much as I do with the systemrescurecd iso
I also did a normal download (not with bitTorrent) and when unzipped looks like this:
Code: | NAShost /home/john/Downloads/LRS-2020108 # ls -al *
-rwxr--r-- 1 john john 61949 Jan 8 23:22 '20200108-2210-LRS_[FSA].torrent'
-rwxr--r-- 1 john john 55071 Jan 8 23:23 '20200108-2210-LRS_[IMG].torrent'
-rwxr--r-- 1 john john 55066 Jan 8 23:23 '20200108-2210-LRS_[ISO].torrent'
-rwxr--r-- 1 john john 55098 Jan 8 23:22 '20200108-2210-LRS_[VDI].torrent'
-rwxr--r-- 1 john john 1503 Jan 8 23:25 CHANGELOG
-rwxr--r-- 1 john john 157628 Jan 8 23:24 kernel-config
-rwxr--r-- 1 john john 5391 Jan 8 23:25 LRS.info
-rwxr--r-- 1 john john 22840 Jan 8 23:25 pkglist
daily:
total 8434190
drwxr--r-- 2 john john 12 Jan 9 10:25 .
drwxr-xr-x 3 john john 11 Jan 9 08:24 ..
-rwxr--r-- 1 john john 1545189241 Jan 9 02:56 20200108-2210-LRS.fsa
-rwxr--r-- 1 john john 8074035200 Jan 9 01:34 20200108-2210-LRS.img
-rwxr--r-- 1 john john 1364827568 Jan 9 01:34 20200108-2210-LRS.img.zst
-rwxr--r-- 1 john john 8074035200 Jan 9 00:19 20200108-2210-LRS.iso
-rwxr--r-- 1 john john 1364827614 Jan 9 00:19 20200108-2210-LRS.iso.zst
-rwxr--r-- 1 john john 353 Jan 8 22:59 20200108-2210-LRS.md5
-rwxr--r-- 1 john john 1503 Jan 8 23:00 CHANGELOG
-rwxr--r-- 1 john john 157628 Jan 8 23:00 kernel-config
-rwxr--r-- 1 john john 5391 Jan 8 23:00 LRS.info
-rwxr--r-- 1 john john 22840 Jan 8 23:00 pkglist
NAShost /home/john/Downloads/LRS-2020108 #
|
As you can see I uncompressed both the img and iso images. However, when I point Virtualbox at either I get failure.
When I boot using the virtualbox efi boot mode, VB doesn't seem to recognize the .img or .iso file at all.
When I boot using the normal BIOS mode, I simply get:
"FATAL: No bootable media found! System halted."
Obviously I seem to doing something wrong but it is completely unclear what that might be.
Simple question:
Which file should Virtualbox be able to boot?
Beyond simply uncompressing the .img.zst or .iso.zst file, are additional preprocessing steps required before trying to VB boot the image?
Thanks very much and Thanks for inventing this project! _________________ jfp |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1039
|
Posted: Thu Jan 09, 2020 6:51 pm Post subject: |
|
|
As I wrote :
Quote: | Warning : This is not Live ISO. It can't works on CD/DVD media support. Only for USB/HDD bootable media. |
VDI is available as torrent 'cause my DB is full. (5Gb only)
VirtualBox doesn't recognize *.img image. You need to convert it
So , you can convert *.img to *.vdi
Code: | VBoxManage convertdd <LRS>.img <LRS>.vdi --format VDI |
_________________ LRS 64/32 on G.Drive |
|
Back to top |
|
|
jfp Guru
Joined: 08 Jul 2007 Posts: 326 Location: Virginia, USA
|
Posted: Thu Jan 09, 2020 7:25 pm Post subject: |
|
|
sabayonino,
Quote: | So , you can convert *.img to *.vdi
Code:
VBoxManage convertdd <LRS>.img <LRS>.vdi --format VDI |
Yay! That bit of magic works! I never would have figured that out. Learn something new every day!
I created a new virtualmachine and pointed it at the new .vdi file and it booted perfectly.
I have a new 16GB .img file I created using the instructions in LRS.info. My main goal was to add support for zfs. Unfortuanately it fails to boot. Of course I am using the .efi file created by grub-install (/boot/grub/x86_64-efi/normal.mod). But now I know how to do the convert to .vdi so I'm sure I'll figure it out.
Thanks very much for your help! _________________ jfp |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1039
|
Posted: Thu Jan 09, 2020 8:16 pm Post subject: |
|
|
[quote="jfp"]sabayonino,
Quote: |
I have a new 16GB .img file I created using the instructions in LRS.info. My main goal was to add support for zfs. Unfortuanately it fails to boot. Of course I am using the .efi file created by grub-install (/boot/grub/x86_64-efi/normal.mod). But now I know how to do the convert to .vdi so I'm sure I'll figure it out.
|
If you read "==== Create your own RAW sparse image with fixed size (Example 15 GB) ===="
You'll get a file *.img but you can manage it as special device , read "=== Manage the raw file ==="
LRS.img mounted on /dev/loop0 (i.e.) is partitioned as follow
Code: | fdisk -l /dev/loop0
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
Dispositivo Start Fine Settori Size Tipo
/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
|
You can partitoned and mount the filesystems and chroot in.
You can install your Gentoo from scratch on this special device
..or customize LRS if you like. _________________ LRS 64/32 on G.Drive |
|
Back to top |
|
|
jfp Guru
Joined: 08 Jul 2007 Posts: 326 Location: Virginia, USA
|
Posted: Thu Jan 09, 2020 8:28 pm Post subject: |
|
|
Quote: | If you read "==== Create your own RAW sparse image with fixed size (Example 15 GB) ===="
You'll get a file *.img but you can manage it as special device , read "=== Manage the raw file ===" |
Yes that was what I did. I think my problem was I managed to not mount the /dev/loop0p2 (of my new image) as /mnt/gentoo/boot. Of course that had a negative affect on the ability to boot! Fixing that now.
Thanks again. Your LRS project opened my eyes to stuff I had no idea about. This is great! _________________ jfp |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1039
|
Posted: Thu Jan 09, 2020 8:52 pm Post subject: |
|
|
Partitioning schema in LRS.info is just an example
in LRS
/dev/loop0p1 is BIOS/Grub partition (for Bios boot, need for grub stage2)
/dev/loop0p2 is FAT32 EFI partition mounted on /boot/efi (for UEFI boot)
/dev/loop0p3 ... the / system
Obvious ... replace/partitioning according your needs _________________ LRS 64/32 on G.Drive |
|
Back to top |
|
|
redblade7 Tux's lil' helper
Joined: 11 Jan 2018 Posts: 106
|
Posted: Fri Jan 10, 2020 4:54 pm Post subject: |
|
|
I tried using the img file, but it appears the disk is persistent. That should not be, it's supposed to operate in RAM and not save settings on shutdown. |
|
Back to top |
|
|
|