How do I zero out my swap space?
by ToddAndMargo
Hi All,
I have a fedora 30 bootable flash drive. /dev/sda5 is my "Linux
Swap". To zero out my swap space to make it more friendly
with gzip?
I would try just dd'ing /dev/zero across it, but I am afraid I
might break some file structure or some other stuff.
Many thanks,
-T
4 years, 7 months
Hey, I know your password is
by Patrick Dupre
Hello,
Today, I got a message, staring:
Hey, I know your password is ........
and asking for money.
The password is one of the password that I use. It is not one giving access
to important accounts, but I am a bit wondering about other account.
I am careful with my accounts and passwords.
How can I prevent sort of password steal?
Thanks.
===========================================================================
Patrick DUPRÉ | | email: pdupre(a)gmx.com
Laboratoire interdisciplinaire Carnot de Bourgogne
9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
Tel: +33 (0)380395988
===========================================================================
4 years, 7 months
How do I generate grub for legacy?
by ToddAndMargo
Hi All,
I have a Fedora 30 flash drive set up for dual booting
from Legacy or UEFI. It boots beautifully from UEFI.
(It also have a bios_grub partition).
It booted perfectly from both under Fedora 29.
Now when booting from legacy, it go into "System Setup".
If you press system Setup, I get a "/grub/core-system"
type error
Remaking grub.cfg, I get
# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Adding boot menu entry for EFI firmware configuration
done
Uhhhhh.. I wanted legacy, not EFI.
What am I missing?
Many thanks,
-T
My procedure:
UEFI.BIOS.Dual.Boot.txt:
References that stink:
https://forums.linuxmint.com/viewtopic.php?t=223015
https://bl.ocks.org/gdamjan/05b799162e4b3e97a30d37a89fed0fa8
https://forum.level1techs.com/t/configure-grub-to-boot-legacy-and-uefi/12...
Requirements:
Fedora 29
Before installing, gparted:
Wipe the target disk
create a partition table as GPT
create a first partition as
1 Meg
unformatted
set the partition flag to "bios_grub"
Install Fedora 29 from a UEFI machine:
"/home" was removed at installation and moved into "/"
--->>> PRESUMED !!! <<<---
The machine was install and booted from UEFI
The machine is mounted as /dev/sda
Install the legacy BIOS boot loader:
Boot into fedora on UEFI
only installs 3 files
# dnf reinstall grub2-pc
create the BIOS .cfg file
# grub2-mkconfig -o /boot/grub2/grub.cfg
Note: if this complains, you forgot to create the partition above
# grub2-install --removable --recheck --target=i386-pc
--boot-directory=/boot /dev/sda
4 years, 7 months
[OT] Password Manager
by das
Advanced apology here at first -- even before I start -- for my
immense stupidity.
I installed a Password Manager and was using it for some days.
Now, can it be deinstalled? I have even forgot the name. I have set
Password for the account and all. But, every time I go to login, it
pushes up a window with two buttons 'OK' and 'Cancel'. I have to
cancel it every time.
I know nothing about the Manager, except only this that I got the name
from the Net and installed it on Fedora 30.
Can I be saved?
--
দাশ das
http://ddts.randomink.org/
4 years, 7 months
F30 KVM: Can't create bootable guest with UEFI and Virtio-SCSI
by Kevin White
I've used CentOS 7 as a host for KVM guests for several years now. I'm using the CentOS Virtualization SIG's version of qemu specifically because I was anxious/curious to try making VMs with UEFI (OVMF). I also transitioned to using Virtio-SCSI a few years ago, so when I started experimenting with OVMF, I used Virtio-SCSI for the block devices, as usual. In that environment (more details below), everything Just Worked.
I'm now experimenting with using Fedora 30 to host guests using KVM. I have successfully create a guest using Q35/OVMF. I used a VirtIO-SCSI block device, as I've done on CentOS in the past. The guest (Fedora 30 Server) PXE network booted in UEFI mode, and correctly installed F30 Server to the block device, creating a UEFI System Partition and a GPT disk.
However, it wouldn't boot. I poked around, comparing the guest made on the F30 host to the guest made on the C7 host, pressing "F2" when the guest booted to get into OVMF's UI. It was there that I realized that OVMF didn't "see" the VirtIO-SCSI block device at all. It didn't list the entire drive it as a boot option, and it (obviously) didn't show the UEFI boot entry stored on its UEFI System Partition.
I switched the device to a VirtIO device, and it booted right up.
So, now I'm wondering if I've missed something. Should OVMF be able to recognize a VirtIO-SCSI block device on a Fedora 30 KVM host? Did something change between what I've been using on CentOS 7 and here to remove that? Or was I maybe just getting lucky on C7 all along, successfully doing something that shouldn't be working?
Below are some of the packages I have installed on my two VM hosts. The Fedora 30 host is very standard. The C7 host has packages from C7's virt SIG, so they're newer than the KVM offered in C7's base install. The base packages don't support Q35/OVMF at all. (Always made me wonder why RHEL 7 included OVMF, but no way to use it.)
I noticed that the guest created on CentOS is using this as the UEFI: /usr/share/OVMF/OVMF_CODE.secboot.fd but the one created on F30 used /usr/share/OVMF/OVMF_CODE.fd instead. I edited the VM to use OVMF_CODE.secboot.fd on the F30's VM, but it still didn't work (the disk was still not recognized when I used F2 to enter OVMF's interface).
Fedora 30:
qemu-3.1.1-2.fc30.x86_64
qemu-img-3.1.1-2.fc30.x86_64
qemu-kvm-3.1.1-2.fc30.x86_64
qemu-kvm-core-3.1.1-2.fc30.x86_64
...
edk2-ovmf-20190501stable-2.fc30.noarch
CentOS 7.6:
From CentOS Virt SIG repo:
qemu-img-ev-2.12.0-18.el7_6.7.1.x86_64
qemu-kvm-common-ev-2.12.0-18.el7_6.7.1.x86_64
From CentOS repo:
OVMF-20180508-3.gitee3198e672e2.el7_6.1.noarch
4 years, 7 months
Squid proxy setup for caching RPMs
by Richard Shaw
Since I have >7 Fedora installations I setup a squid proxy server
specifically for the purpose of reducing my download data since many of the
same packages are going to get downloaded over and over again.
I seem to be getting some hits (still looking for a GOOD squid analyzer!)
but not as much as I would expect. I'm no regex expert but I tried to
update the regex to pick up delta RPMS as well and may have made a
mistake...
Here's my modifications to the default squid conf file...
have not seen a larger RPM yet
maximum_object_size 1 GB
# cache RPMs only
acl rpm_only urlpath_regex \.[d]?rpm
cache allow rpm_only
cache deny all
cache_replacement_policy heap LFUDA
Any ideas?
Thanks,
Richard
4 years, 7 months
Laptop not charging after resume.
by Theodore Papadopoulo
I have a DELL Precision Mobile 5530 with an NVidia card and the
proprietary drivers (if only I could use the non-proprietary ones)...
Since I switched to Fedora 30, it seems that USB-C power supply does not
work (the battery is not charging)... I was afraid of a harware problem,
when I noticed that when I resume after a suspend or a hibernate, the
standard power-plug also does not work either (it re-works after a full
restart of the computer).
So I now tend to believe, it is a software problem...
Has anyone encoutered this situation ?
Has anyone has clues on how to diagnose or correct the trouble ?
I know my kernel is tainted, but would be very grateful of any help tyo
solve the issue...
Thank's in advance for any help...
Theo.
4 years, 7 months