Crash durante aggiornamento e bug

:frowning: Sigh. Evidentemente avevo riscritto il comando invece di copiarlo come faccio quando sono loggato. Vabbé, si vede che devo soffrire e aspettare :stuck_out_tongue: :smiley:

Però il risultato è strano:

[root@localhost-live ~]# cat /proc/mdstat
Personalities : 
unused devices: <none>
[root@localhost-live ~]#

Quanto a fsck:

Ecco:

[root@localhost-live ~]# fsck -f /dev/sda1
fsck from util-linux 2.33.2
fsck.fat 4.1 (2017-01-24)
/dev/sda1: 15 files, 998/60895 clusters
[root@localhost-live ~]#

Grazie, per ora…

bebo_sudo, questa è la mia risposta alla tua domanda nel post #17. Abbiamo 3 dischi da 4TB in configurazione RAID. DI colpo non sei riuscito ad eseguire un normale aggiornamento del sistema. Questo è un evento che già di per sè non dovrebbe succedere. I dischi con il controllo dei dati SMART mostrano valori corretti. Tutto bene? No. Un disco rigido può apparire perfettamente funzionante, in regola, i dati SMART sembrare normali… ma ti può morire l’indomani. Questa è una cosa che mi è successa. Avevo un disco rigido con installato Linux. Funzionava normalmente. Mi appare l’avviso su KDE che c’è un problema con quel disco e mi preparo per l’indomani a farne una copia… mai effettuata. Quel disco all’avvio era morto stecchito. Diciamo che è meglio prevenire che curare e ricordati di quel detto in economia: “Statistiche, statistiche e poi solo bugie…”. I dati SMART su un disco rigido sono utili, ma vanno trattati con le pinze, se mi capisci. Il mio è un consiglio che viene dall’istinto, dall’intuizione, dall’esperienza, se ti va. Spero di essermi chiarito.

Rieccomi, scusate… sono stato bombardato di impegni.

@d68qdq8dq

Certamente, i dischi sono oggetti meccanici che possono deteriorarsi rompersi, e potrebbe essere che entrambi i dischi si siano rotti contemporaneamente (cosa piu’ probabile se provenienti dallo stesso lotto) e che sia stato quello a far congelare la sessione di giampaolo.

Pero’ non possiamo esserne sicuri, non e’ l’unica ipotesi, c’e’ anche il bug di dnf riportato nel messaggio iniziale. Quindi direi di continuare a investigare per tentare di riavere accesso alla macchina.

Ovviamente giampaolo, se hai dati importanti, copiali subito all’esterno/cloud se riesci gia’ ad accedere alle partizioni in qualche modo, ad es con il gestore file della live.

Tornando alla macchina: non vediamo il raid probabilmente perche’ siamo nella solita live.
Installiamo temporaneamente mdadm sulla live (che forse e’ gia’ installato) e facciamogli fare una scan dei dischi:

[code]# dnf install mdadm

mdadm --assemble --scan

cat /proc/mdstat[/code]

Non ci speravo quasi più!

È stata la prima cosa che ho fatto.

[quote=bebo_sudo]
Tornando alla macchina: non vediamo il raid probabilmente perche’ siamo nella solita live.
Installiamo temporaneamente mdadm sulla live (che forse e’ gia’ installato) e facciamogli fare una scan dei dischi:

[code]# dnf install mdadm

mdadm --assemble --scan

cat /proc/mdstat[/code][/quote]

Ho l’impressione che non abbia fatto alcuna differenza, purtroppo:

[liveuser@localhost-live ~]$ su - [root@localhost-live ~]# dnf install mdadm Fedora Modular 30 - x86_64 2.1 MB/s | 2.7 MB 00:01 Fedora Modular 30 - x86_64 - Updates 4.5 MB/s | 3.3 MB 00:00 Fedora 30 - x86_64 - Updates 9.4 MB/s | 20 MB 00:02 Fedora 30 - x86_64 17 MB/s | 70 MB 00:04 Package mdadm-4.1-rc2.0.3.fc30.x86_64 is already installed. Dependencies resolved. Nothing to do. Complete! [root@localhost-live ~]# mdadm --assemble --scan mdadm: No arrays found in config file or automatically [root@localhost-live ~]# cat /proc/mdstat Personalities : unused devices: <none> [root@localhost-live ~]#
Corretto?

Rieccomi, ho chiesto consulto ad un amico.

Allora, per ora direi di fregarcene del raid, dato che contiene presumibilmente solo le home, corretto? Perche’ per queste operazioni non ci servono.

Ora, ci sono una serie di operazioni da fare; se anche solo uno di questi passaggi ritorna un errore, fermati e posta tutto qua:

# mkdir -p /mnt/fedora
# mount /dev/sda3 /mnt/fedora/
# mount /dev/sda2 /mnt/fedora/boot
# mount /dev/sda1 /mnt/fedora/boot/efi
# for i in {/dev/,/dev/pts/,/proc/,/sys/}; do mount -o bind "$i" "/mnt/fedora$i"; done
# chroot /mnt/fedora

# ping -c 3 8.8.8.8
# ping -c 3 google.it
# dnf reinstall grub2-efi shim
# conf=/boot/grub2/grub.cfg; if  ! -f $conf ]; then conf=/boot/efi/EFI/fedora/grub.cfg; fi; grub2-mkconfig -o $conf
# exit
# for i in {/boot/efi,/boot/,/sys/,/proc/,/dev/pts/,/dev/}; do umount "/mnt/fedora$i"; done
# umount /mnt/fedora

Se tutto ha finito correttamente, posta comunque l’output e riavvia.

[quote=bebo_sudo]Rieccomi, ho chiesto consulto ad un amico.

Allora, per ora direi di fregarcene del raid, dato che contiene presumibilmente solo le home, corretto? Perche’ per queste operazioni non ci servono.

Ora, ci sono una serie di operazioni da fare; se anche solo uno di questi passaggi ritorna un errore, fermati e posta tutto qua:

# mkdir -p /mnt/fedora
# mount /dev/sda3 /mnt/fedora/
# mount /dev/sda2 /mnt/fedora/boot
# mount /dev/sda1 /mnt/fedora/boot/efi
# for i in {/dev/,/dev/pts/,/proc/,/sys/}; do mount -o bind "$i" "/mnt/fedora$i"; done
# chroot /mnt/fedora

# ping -c 3 8.8.8.8
# ping -c 3 google.it
# dnf reinstall grub2-efi shim
# conf=/boot/grub2/grub.cfg; if  ! -f $conf ]; then conf=/boot/efi/EFI/fedora/grub.cfg; fi; grub2-mkconfig -o $conf
# exit
# for i in {/boot/efi,/boot/,/sys/,/proc/,/dev/pts/,/dev/}; do umount "/mnt/fedora$i"; done
# umount /mnt/fedora

Se tutto ha finito correttamente, posta comunque l’output e riavvia.[/quote]

Non so se faccio bene a fermarmi su un comando come quello, visto che probabilmente basterebbere aggiungere il nameserver per farlo funzionare, ma ecco:

[liveuser@localhost-live ~]$ su -
[root@localhost-live ~]# mkdir -p /mnt/fedora
[root@localhost-live ~]# mount /dev/sda3 /mnt/fedora/
[root@localhost-live ~]# mount /dev/sda2 /mnt/fedora/boot
[root@localhost-live ~]# mount /dev/sda1 /mnt/fedora/boot/efi
[root@localhost-live ~]# for i in {/dev/,/dev/pts/,/proc/,/sys/}; do mount -o bind "$i" "/mnt/fedora$i"; done
[root@localhost-live ~]# chroot /mnt/fedora
[root@localhost-live /]# ping -c 3 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=56 time=3.67 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=56 time=3.67 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=56 time=3.49 ms

--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 6ms
rtt min/avg/max/mdev = 3.485/3.609/3.673/0.087 ms
[root@localhost-live /]# ping -c 3 google.it
ping: google.it: Name or service not known
[root@localhost-live /]# ping -c 3 google.com
ping: google.com: Name or service not known
[root@localhost-live /]#

Grazie per ora…

Immaginavo che non ci fosse in automatico il resolver.
Aggiungiamo il resolver di google momentaneamente, in modo da far funzionare dnf:

# mkdir -p /mnt/fedora
# mount /dev/sda3 /mnt/fedora/
# mount /dev/sda2 /mnt/fedora/boot
# mount /dev/sda1 /mnt/fedora/boot/efi
# for i in {/dev/,/dev/pts/,/proc/,/sys/}; do mount -o bind "$i" "/mnt/fedora$i"; done
# chroot /mnt/fedora

# ping -c 3 8.8.8.8
# echo 'nameserver 8.8.8.8' > /etc/resolv.conf
# ping -c 3 google.it
# dnf reinstall grub2-efi shim
# conf=/boot/grub2/grub.cfg; if  ! -f $conf ]; then conf=/boot/efi/EFI/fedora/grub.cfg; fi; grub2-mkconfig -o $conf
# exit
# for i in {/boot/efi,/boot/,/sys/,/proc/,/dev/pts/,/dev/}; do umount "/mnt/fedora$i"; done
# umount /mnt/fedora

Grazie Bebo.

Sono diventato un po’ matto per mettere a posto il resolve.conf (era un link simbolico rotto, e ne ho provate diverse), poi si è piantato sul conf
Ecco tutta la trafila:

[liveuser@localhost-live ~]$ su -
[root@localhost-live ~]# mkdir -p /mnt/fedora
[root@localhost-live ~]# mount /dev/sda3 /mnt/fedora/
[root@localhost-live ~]# mount /dev/sda2 /mnt/fedora/boot
[root@localhost-live ~]# mount /dev/sda1 /mnt/fedora/boot/efi
[root@localhost-live ~]# for i in {/dev/,/dev/pts/,/proc/,/sys/}; do mount -o bind "$i" "/mnt/fedora$i"; done
[root@localhost-live ~]# chroot /mnt/fedora
[root@localhost-live /]# ping -c 3 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=56 time=3.52 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=56 time=3.85 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=56 time=3.70 ms

--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 5ms
rtt min/avg/max/mdev = 3.520/3.692/3.854/0.145 ms
[root@localhost-live /]# echo 'nameserver 8.8.8.8' > /etc/resolv.conf
bash: /etc/resolv.conf: No such file or directory
[root@localhost-live /]# cd et
bash: cd: et: No such file or directory
[root@localhost-live /]# cd etc/
[root@localhost-live etc]# echo 'nameserver 8.8.8.8' > resolv.conf     
bash: resolv.conf: No such file or directory
[root@localhost-live etc]# echo nameserver 8.8.8.8 > resolv.conf  
bash: resolv.conf: No such file or directory
[root@localhost-live etc]# echo nameserver 8.8.8.8 > /etc/resolv.conf
bash: /etc/resolv.conf: No such file or directory
[root@localhost-live etc]# ls -m
abcde.conf, abrt, adjtime, aliases, alsa, alternatives, anacrontab, appstream.conf, asound.conf, at.deny, atmsigd.conf, audit, authselect, avahi,
bash_completion.d, bashrc, bindresvport.blacklist, binfmt.d, bluetooth, bonobo-activation, brlapi.key, brltty, brltty.conf, cagibid.conf, capi20.conf,
capi.conf, chkconfig.d, chromium, chrony.conf, chrony.keys, chrony.keys.rpmnew, chrony.keys.rpmsave, cifs-utils, cron.d, cron.daily, cron.deny,
cron.hourly, cron.monthly, crontab, cron.weekly, crypto-policies, crypttab, csh.cshrc, csh.login, cups, cupshelpers, dbus-1, dcmtk, dconf, default,
depmod.d, dhcp, DIR_COLORS, DIR_COLORS.256color, DIR_COLORS.lightbgcolor, dnf, dnsmasq.conf, dnsmasq.d, dracut.conf, dracut.conf.d, dumpdates, duplicity,
egl, environment, ethertypes, exports, exports.d, extlinux.conf, favicon.png, fcoe, fedora-release, festival, filesystems, firefox, firewalld, flatpak,
fonts, foomatic, fprintd.conf, fstab, fuse.conf, fw_env.config, gamin, gconf, gcrypt, gdbinit, gdbinit.d, geoclue, gimp, glvnd, gnome-vfs-2.0, gnupg,
GREP_COLORS, groff, group, group-, grub2-efi.cfg, grub.d, gshadow, gshadow-, gss, gssproxy, hba.conf, hba.conf.rpmsave, host.conf, hostname, hosts,
hosts.allow, hosts.atm, hosts.deny, hp, httpd, idmapd.conf, ImageMagick-6, init.d, inittab, inputrc, iproute2, ipsec.conf, ipsec.d, ipsec.secrets, iscsi,
isdn, issue, issue.d, issue.net, java, jvm, jvm-commmon, jwhois.conf, kde, kde4rc, kderc, kdump.conf, kernel, krb5.conf, krb5.conf.d, ksysguarddrc,
ld.so.cache, ld.so.conf, ld.so.conf.d, lftp.conf, libaudit.conf, libblockdev, libnl, libpaper.d, libreport, libuser.conf, libvirt, lirc, locale.conf,
localtime, login.defs, logrotate.conf, logrotate.d, lsb-release.d, lvm, machine-id, magic, mailcap, mail.rc, makedumpfile.conf.sample, man_db.conf, mcelog,
mecabrc, memtest86+.conf, mime.types, mke2fs.conf, modprobe.d, modules-load.d, mono, motd, motd.d, mtab, mtools.conf, multipath, my.cnf, my.cnf.d, nanorc,
ndctl, netconfig, NetworkManager, networks, Nextcloud, nfs.conf, nfsmount.conf, nftables, nginx, nilfs_cleanerd.conf, nsswitch.conf, nsswitch.conf.bak,
nsswitch.conf.rpmnew, odbc.ini, odbcinst.ini, oddjob, oddjobd.conf, oddjobd.conf.d, openal, OpenCL, openldap, openni, opensc-x86_64.conf, openvpn, opt,
os-release, ostree, ownCloud, PackageKit, pam.d, pam_pkcs11, papersize, passwd, passwd-, passwdqc.conf, pcmcia, pdfpcrc, pear, pear.conf, pear.conf.rpmnew,
php.d, php-fpm.conf, php-fpm.d, php.ini, php-zts.d, pinforc, pipewire, pkcs11, pki, plymouth, pm, polkit-1, popt.d, ppp, prelink.conf.d, printcap, profile,
profile.d, protocols, pulse, purple, qemu-ga, rc0.d, rc1.d, rc2.d, rc3.d, rc4.d, rc5.d, rc6.d, rc.d, rc_keymaps, rc_maps.cfg, reader.conf.d, redhat-lsb,
redhat-release, request-key.conf, request-key.d, resolv.conf, rmt, rpc, rpm, rsyncd.conf, rsyslog.conf, rsyslog.d, rwtab, rwtab.d, samba, sane.d, sasl2,
scl, sddm, sddm.conf, security, selinux, services, sestatus.conf, setroubleshoot, setuptool.d, sgml, shadow, shadow-, shells, signond.conf, skel, slp.conf,
smartmontools, sos.conf, sound, speech-dispatcher, sphinx, ssh, ssl, sssd, statetab, statetab.d, strongswan, stunnel, subgid, subgid-, subgid.rpmnew,
subuid, subuid-, subuid.rpmnew, sudoers, sudoers.d, swid, sysconfig, sysctl.conf, sysctl.d, systemd, system-release, system-release-cpe, tcsd.conf,
teamviewer, terminfo, texlive, tmpfiles.d, tor, Trolltech.conf, trusted-key.key, ts.conf, udev, udisks2, unbound, updatedb.conf, UPower,
usb_modeswitch.conf, vconsole.conf, vdpau_wrapper.cfg, virc, vmware-tools, vpnc, vulkan, wgetrc, wpa_supplicant, wvdial.conf, X11, xattr.conf, xdg,
xinetd.d, xl2tpd, xml, youtube-dl.conf, yum, yum.conf, yum.repos.d
[root@localhost-live etc]# dpkg-reconfigure resolvconf
bash: dpkg-reconfigure: command not found
[root@localhost-live etc]# head /etc/resolv.conf
head: cannot open '/etc/resolv.conf' for reading: No such file or directory
[root@localhost-live etc]# head resolv.conf     
head: cannot open 'resolv.conf' for reading: No such file or directory
[root@localhost-live etc]# ls -l /etc/resolv.conf
lrwxrwxrwx. 1 root root 35 Aug 22 15:10 /etc/resolv.conf -> /var/run/NetworkManager/resolv.conf
[root@localhost-live etc]# echo nameserver 8.8.8.8 > /var/run/NetworkManager/resolv.conf
bash: /var/run/NetworkManager/resolv.conf: No such file or directory
[root@localhost-live etc]# cd /var/run/NetworkManager/
bash: cd: /var/run/NetworkManager/: No such file or directory
[root@localhost-live etc]# cd ..
[root@localhost-live /]# pwd
/
[root@localhost-live /]# cd var/run/
[root@localhost-live run]# ls
[root@localhost-live run]# ping -c 3 google.it
ping: google.it: Name or service not known
[root@localhost-live run]# ls
[root@localhost-live run]# cd etc/
bash: cd: etc/: No such file or directory
[root@localhost-live run]# cd /etc/
[root@localhost-live etc]# ls
abcde.conf              depmod.d                 gss               locale.conf               openni              rc_maps.cfg        subuid-
abrt                    dhcp                     gssproxy          localtime                 opensc-x86_64.conf  reader.conf.d      subuid.rpmnew
adjtime                 DIR_COLORS               hba.conf          login.defs                openvpn             redhat-lsb         sudoers
aliases                 DIR_COLORS.256color      hba.conf.rpmsave  logrotate.conf            opt                 redhat-release     sudoers.d
alsa                    DIR_COLORS.lightbgcolor  host.conf         logrotate.d               os-release          request-key.conf   swid
alternatives            dnf                      hostname          lsb-release.d             ostree              request-key.d      sysconfig
anacrontab              dnsmasq.conf             hosts             lvm                       ownCloud            resolv.conf        sysctl.conf
appstream.conf          dnsmasq.d                hosts.allow       machine-id                PackageKit          rmt                sysctl.d
asound.conf             dracut.conf              hosts.atm         magic                     pam.d               rpc                systemd
at.deny                 dracut.conf.d            hosts.deny        mailcap                   pam_pkcs11          rpm                system-release
atmsigd.conf            dumpdates                hp                mail.rc                   papersize           rsyncd.conf        system-release-cpe
audit                   duplicity                httpd             makedumpfile.conf.sample  passwd              rsyslog.conf       tcsd.conf
authselect              egl                      idmapd.conf       man_db.conf               passwd-             rsyslog.d          teamviewer
avahi                   environment              ImageMagick-6     mcelog                    passwdqc.conf       rwtab              terminfo
bash_completion.d       ethertypes               init.d            mecabrc                   pcmcia              rwtab.d            texlive
bashrc                  exports                  inittab           memtest86+.conf           pdfpcrc             samba              tmpfiles.d
bindresvport.blacklist  exports.d                inputrc           mime.types                pear                sane.d             tor
binfmt.d                extlinux.conf            iproute2          mke2fs.conf               pear.conf           sasl2              Trolltech.conf
bluetooth               favicon.png              ipsec.conf        modprobe.d                pear.conf.rpmnew    scl                trusted-key.key
bonobo-activation       fcoe                     ipsec.d           modules-load.d            php.d               sddm               ts.conf
brlapi.key              fedora-release           ipsec.secrets     mono                      php-fpm.conf        sddm.conf          udev
brltty                  festival                 iscsi             motd                      php-fpm.d           security           udisks2
brltty.conf             filesystems              isdn              motd.d                    php.ini             selinux            unbound
cagibid.conf            firefox                  issue             mtab                      php-zts.d           services           updatedb.conf
capi20.conf             firewalld                issue.d           mtools.conf               pinforc             sestatus.conf      UPower
capi.conf               flatpak                  issue.net         multipath                 pipewire            setroubleshoot     usb_modeswitch.conf
chkconfig.d             fonts                    java              my.cnf                    pkcs11              setuptool.d        vconsole.conf
chromium                foomatic                 jvm               my.cnf.d                  pki                 sgml               vdpau_wrapper.cfg
chrony.conf             fprintd.conf             jvm-commmon       nanorc                    plymouth            shadow             virc
chrony.keys             fstab                    jwhois.conf       ndctl                     pm                  shadow-            vmware-tools
chrony.keys.rpmnew      fuse.conf                kde               netconfig                 polkit-1            shells             vpnc
chrony.keys.rpmsave     fw_env.config            kde4rc            NetworkManager            popt.d              signond.conf       vulkan
cifs-utils              gamin                    kderc             networks                  ppp                 skel               wgetrc
cron.d                  gconf                    kdump.conf        Nextcloud                 prelink.conf.d      slp.conf           wpa_supplicant
cron.daily              gcrypt                   kernel            nfs.conf                  printcap            smartmontools      wvdial.conf
cron.deny               gdbinit                  krb5.conf         nfsmount.conf             profile             sos.conf           X11
cron.hourly             gdbinit.d                krb5.conf.d       nftables                  profile.d           sound              xattr.conf
cron.monthly            geoclue                  ksysguarddrc      nginx                     protocols           speech-dispatcher  xdg
crontab                 gimp                     ld.so.cache       nilfs_cleanerd.conf       pulse               sphinx             xinetd.d
cron.weekly             glvnd                    ld.so.conf        nsswitch.conf             purple              ssh                xl2tpd
crypto-policies         gnome-vfs-2.0            ld.so.conf.d      nsswitch.conf.bak         qemu-ga             ssl                xml
crypttab                gnupg                    lftp.conf         nsswitch.conf.rpmnew      rc0.d               sssd               youtube-dl.conf
csh.cshrc               GREP_COLORS              libaudit.conf     odbc.ini                  rc1.d               statetab           yum
csh.login               groff                    libblockdev       odbcinst.ini              rc2.d               statetab.d         yum.conf
cups                    group                    libnl             oddjob                    rc3.d               strongswan         yum.repos.d
cupshelpers             group-                   libpaper.d        oddjobd.conf              rc4.d               stunnel
dbus-1                  grub2-efi.cfg            libreport         oddjobd.conf.d            rc5.d               subgid
dcmtk                   grub.d                   libuser.conf      openal                    rc6.d               subgid-
dconf                   gshadow                  libvirt           OpenCL                    rc.d                subgid.rpmnew
default                 gshadow-                 lirc              openldap                  rc_keymaps          subuid
[root@localhost-live etc]# nano resolv.conf                                             
[root@localhost-live etc]# cat /etc/resolv.conf
cat: /etc/resolv.conf: No such file or directory
[root@localhost-live etc]# nm-tool | grep -i dns
bash: nm-tool: command not found
[root@localhost-live etc]# cat /run/resolvconf/resolv.conf
cat: /run/resolvconf/resolv.conf: No such file or directory
[root@localhost-live etc]# echo "nameserver 8.8.8.8" | tee /etc/resolv.conf             
tee: /etc/resolv.conf: No such file or directory
nameserver 8.8.8.8
[root@localhost-live etc]# ls
abcde.conf              depmod.d                 gss               locale.conf               openni              rc_maps.cfg        subuid-
abrt                    dhcp                     gssproxy          localtime                 opensc-x86_64.conf  reader.conf.d      subuid.rpmnew
adjtime                 DIR_COLORS               hba.conf          login.defs                openvpn             redhat-lsb         sudoers
aliases                 DIR_COLORS.256color      hba.conf.rpmsave  logrotate.conf            opt                 redhat-release     sudoers.d
alsa                    DIR_COLORS.lightbgcolor  host.conf         logrotate.d               os-release          request-key.conf   swid
alternatives            dnf                      hostname          lsb-release.d             ostree              request-key.d      sysconfig
anacrontab              dnsmasq.conf             hosts             lvm                       ownCloud            resolv.conf        sysctl.conf
appstream.conf          dnsmasq.d                hosts.allow       machine-id                PackageKit          rmt                sysctl.d
asound.conf             dracut.conf              hosts.atm         magic                     pam.d               rpc                systemd
at.deny                 dracut.conf.d            hosts.deny        mailcap                   pam_pkcs11          rpm                system-release
atmsigd.conf            dumpdates                hp                mail.rc                   papersize           rsyncd.conf        system-release-cpe
audit                   duplicity                httpd             makedumpfile.conf.sample  passwd              rsyslog.conf       tcsd.conf
authselect              egl                      idmapd.conf       man_db.conf               passwd-             rsyslog.d          teamviewer
avahi                   environment              ImageMagick-6     mcelog                    passwdqc.conf       rwtab              terminfo
bash_completion.d       ethertypes               init.d            mecabrc                   pcmcia              rwtab.d            texlive
bashrc                  exports                  inittab           memtest86+.conf           pdfpcrc             samba              tmpfiles.d
bindresvport.blacklist  exports.d                inputrc           mime.types                pear                sane.d             tor
binfmt.d                extlinux.conf            iproute2          mke2fs.conf               pear.conf           sasl2              Trolltech.conf
bluetooth               favicon.png              ipsec.conf        modprobe.d                pear.conf.rpmnew    scl                trusted-key.key
bonobo-activation       fcoe                     ipsec.d           modules-load.d            php.d               sddm               ts.conf
brlapi.key              fedora-release           ipsec.secrets     mono                      php-fpm.conf        sddm.conf          udev
brltty                  festival                 iscsi             motd                      php-fpm.d           security           udisks2
brltty.conf             filesystems              isdn              motd.d                    php.ini             selinux            unbound
cagibid.conf            firefox                  issue             mtab                      php-zts.d           services           updatedb.conf
capi20.conf             firewalld                issue.d           mtools.conf               pinforc             sestatus.conf      UPower
capi.conf               flatpak                  issue.net         multipath                 pipewire            setroubleshoot     usb_modeswitch.conf
chkconfig.d             fonts                    java              my.cnf                    pkcs11              setuptool.d        vconsole.conf
chromium                foomatic                 jvm               my.cnf.d                  pki                 sgml               vdpau_wrapper.cfg
chrony.conf             fprintd.conf             jvm-commmon       nanorc                    plymouth            shadow             virc
chrony.keys             fstab                    jwhois.conf       ndctl                     pm                  shadow-            vmware-tools
chrony.keys.rpmnew      fuse.conf                kde               netconfig                 polkit-1            shells             vpnc
chrony.keys.rpmsave     fw_env.config            kde4rc            NetworkManager            popt.d              signond.conf       vulkan
cifs-utils              gamin                    kderc             networks                  ppp                 skel               wgetrc
cron.d                  gconf                    kdump.conf        Nextcloud                 prelink.conf.d      slp.conf           wpa_supplicant
cron.daily              gcrypt                   kernel            nfs.conf                  printcap            smartmontools      wvdial.conf
cron.deny               gdbinit                  krb5.conf         nfsmount.conf             profile             sos.conf           X11
cron.hourly             gdbinit.d                krb5.conf.d       nftables                  profile.d           sound              xattr.conf
cron.monthly            geoclue                  ksysguarddrc      nginx                     protocols           speech-dispatcher  xdg
crontab                 gimp                     ld.so.cache       nilfs_cleanerd.conf       pulse               sphinx             xinetd.d
cron.weekly             glvnd                    ld.so.conf        nsswitch.conf             purple              ssh                xl2tpd
crypto-policies         gnome-vfs-2.0            ld.so.conf.d      nsswitch.conf.bak         qemu-ga             ssl                xml
crypttab                gnupg                    lftp.conf         nsswitch.conf.rpmnew      rc0.d               sssd               youtube-dl.conf
csh.cshrc               GREP_COLORS              libaudit.conf     odbc.ini                  rc1.d               statetab           yum
csh.login               groff                    libblockdev       odbcinst.ini              rc2.d               statetab.d         yum.conf
cups                    group                    libnl             oddjob                    rc3.d               strongswan         yum.repos.d
cupshelpers             group-                   libpaper.d        oddjobd.conf              rc4.d               stunnel
dbus-1                  grub2-efi.cfg            libreport         oddjobd.conf.d            rc5.d               subgid
dcmtk                   grub.d                   libuser.conf      openal                    rc6.d               subgid-
dconf                   gshadow                  libvirt           OpenCL                    rc.d                subgid.rpmnew
default                 gshadow-                 lirc              openldap                  rc_keymaps          subuid
[root@localhost-live etc]# ls -l /etc/resolv.conf                                       
lrwxrwxrwx. 1 root root 35 Aug 22 15:10 /etc/resolv.conf -> /var/run/NetworkManager/resolv.conf
[root@localhost-live etc]# cd v
vmware-tools/ vpnc/         vulkan/       
[root@localhost-live etc]# cd ..
[root@localhost-live /]# cd var/
[root@localhost-live var]# cd run/
[root@localhost-live run]# ls
[root@localhost-live run]# mkdir NetworkManager
[root@localhost-live run]# ls
NetworkManager
[root@localhost-live run]# cd NetworkManager/
[root@localhost-live NetworkManager]# nano resolv.conf                                
[root@localhost-live NetworkManager]# ping -c 3 google.it
PING google.it (216.58.198.3) 56(84) bytes of data.
64 bytes from mil04s03-in-f3.1e100.net (216.58.198.3): icmp_seq=1 ttl=56 time=3.39 ms
64 bytes from mil04s03-in-f3.1e100.net (216.58.198.3): icmp_seq=2 ttl=56 time=3.40 ms
64 bytes from mil04s03-in-f3.1e100.net (216.58.198.3): icmp_seq=3 ttl=56 time=3.49 ms

--- google.it ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 5ms
rtt min/avg/max/mdev = 3.386/3.423/3.486/0.044 ms
[root@localhost-live NetworkManager]# dnf reinstall grub2-efi shim
Adobe Systems Incorporated                                                                                                  21 kB/s | 2.9 kB     00:00    
Fedora Modular 29 - x86_64                                                                                                  51 kB/s |  25 kB     00:00    
Fedora Modular 29 - x86_64 - Updates                                                                                       147 kB/s |  21 kB     00:00    
Fedora Modular 29 - x86_64 - Updates                                                                                       1.7 MB/s | 2.0 MB     00:01    
Fedora 29 - x86_64 - Updates                                                                                                50 kB/s |  23 kB     00:00    
Fedora 29 - x86_64 - Updates                                                                                                10 MB/s |  29 MB     00:02    
Fedora 29 - x86_64                                                                                                          12 kB/s |  25 kB     00:02    
google-chrome                                                                                                               22 kB/s | 1.3 kB     00:00    
google-chrome                                                                                                               31 kB/s | 4.2 kB     00:00    
google-talkplugin                                                                                                           16 kB/s | 951  B     00:00    
Node.js Packages for Fedora Linux 28 - x86_64                                                                               26 kB/s | 2.5 kB     00:00    
PostgreSQL 11 29 - x86_64                                                                                                   15 kB/s | 3.8 kB     00:00    
PostgreSQL 11 29 - x86_64                                                                                                  663 kB/s | 824 kB     00:01    
PostgreSQL 10 29 - x86_64                                                                                                   18 kB/s | 3.8 kB     00:00    
PostgreSQL 10 29 - x86_64                                                                                                  575 kB/s | 766 kB     00:01    
PostgreSQL 9.6 29 - x86_64                                                                                                 6.3 kB/s | 3.8 kB     00:00    
PostgreSQL 9.6 29 - x86_64                                                                                                 415 kB/s | 727 kB     00:01    
PostgreSQL 9.5 29 - x86_64                                                                                                  28 kB/s | 3.8 kB     00:00    
PostgreSQL 9.5 29 - x86_64                                                                                                 697 kB/s | 710 kB     00:01    
PostgreSQL 9.4 29 - x86_64                                                                                                 6.3 kB/s | 3.8 kB     00:00    
PostgreSQL 9.4 29 - x86_64                                                                                                 597 kB/s | 660 kB     00:01    
RPM Fusion for Fedora 29 - Free - Updates                                                                                   71 kB/s |  10 kB     00:00    
RPM Fusion for Fedora 29 - Free - Updates                                                                                  1.0 MB/s | 428 kB     00:00    
RPM Fusion for Fedora 29 - Free                                                                                             75 kB/s |  11 kB     00:00    
skype (stable)                                                                                                              24 kB/s | 2.9 kB     00:00    
skype (stable)                                                                                                              15 kB/s | 4.1 kB     00:00    
Yarn Repository                                                                                                             41 kB/s | 2.9 kB     00:00    
Dependencies resolved.
===========================================================================================================================================================
 Package                                 Architecture                     Version                                   Repository                        Size
===========================================================================================================================================================
Reinstalling:
 grub2-efi-x64                           x86_64                           1:2.02-62.fc29                            fedora                           352 k
 shim-x64                                x86_64                           15-7                                      fedora                           658 k

Transaction Summary
===========================================================================================================================================================

Total download size: 1.0 M
Installed size: 7.7 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): grub2-efi-x64-2.02-62.fc29.x86_64.rpm                                                                               1.5 MB/s | 352 kB     00:00    
(2/2): shim-x64-15-7.x86_64.rpm                                                                                            1.8 MB/s | 658 kB     00:00    
-----------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                      1.2 MB/s | 1.0 MB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                   1/1 
  Reinstalling     : shim-x64-15-7.x86_64                                                                                                              1/4 
  Reinstalling     : grub2-efi-x64-1:2.02-62.fc29.x86_64                                                                                               2/4 
  Cleanup          : shim-x64-15-7.x86_64                                                                                                              3/4 
  Cleanup          : grub2-efi-x64-1:2.02-62.fc29.x86_64                                                                                               4/4 
  Verifying        : grub2-efi-x64-1:2.02-62.fc29.x86_64                                                                                               1/4 
  Verifying        : grub2-efi-x64-1:2.02-62.fc29.x86_64                                                                                               2/4 
  Verifying        : shim-x64-15-7.x86_64                                                                                                              3/4 
  Verifying        : shim-x64-15-7.x86_64                                                                                                              4/4 

Reinstalled:
  grub2-efi-x64-1:2.02-62.fc29.x86_64                                                 shim-x64-15-7.x86_64                                                

Complete!
[root@localhost-live NetworkManager]# conf=/boot/grub2/grub.cfg; if  ! -f $conf ]; then conf=/boot/efi/EFI/fedora/grub.cfg; fi; grub2-mkconfig -o $conf
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.2.7-100.fc29.x86_64
Found initrd image: /boot/initramfs-5.2.7-100.fc29.x86_64.img
Found linux image: /boot/vmlinuz-5.1.20-200.fc29.x86_64
Found initrd image: /boot/initramfs-5.1.20-200.fc29.x86_64.img
Found linux image: /boot/vmlinuz-5.2.7-100.fc29.x86_64+debug
Found initrd image: /boot/initramfs-5.2.7-100.fc29.x86_64+debug.img
Found linux image: /boot/vmlinuz-5.1.20-200.fc29.x86_64+debug
Found initrd image: /boot/initramfs-5.1.20-200.fc29.x86_64+debug.img
Found linux image: /boot/vmlinuz-0-rescue-0b0e4201b7714af38d773e962898302e
Found initrd image: /boot/initramfs-0-rescue-0b0e4201b7714af38d773e962898302e.img
exit
^C
[root@localhost-live NetworkManager]# conf=/boot/grub2/grub.cfg; if  ! -f $conf ]; then conf=/boot/efi/EFI/fedora/grub.cfg; fi; grub2-mkconfig -o $conf
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.2.7-100.fc29.x86_64
Found initrd image: /boot/initramfs-5.2.7-100.fc29.x86_64.img
Found linux image: /boot/vmlinuz-5.1.20-200.fc29.x86_64
Found initrd image: /boot/initramfs-5.1.20-200.fc29.x86_64.img
Found linux image: /boot/vmlinuz-5.2.7-100.fc29.x86_64+debug
Found initrd image: /boot/initramfs-5.2.7-100.fc29.x86_64+debug.img
Found linux image: /boot/vmlinuz-5.1.20-200.fc29.x86_64+debug
Found initrd image: /boot/initramfs-5.1.20-200.fc29.x86_64+debug.img
Found linux image: /boot/vmlinuz-0-rescue-0b0e4201b7714af38d773e962898302e
Found initrd image: /boot/initramfs-0-rescue-0b0e4201b7714af38d773e962898302e.img
device-mapper: reload ioctl on osprober-linux-sdd1  failed: Device or resource busy
Command failed.
done
[root@localhost-live NetworkManager]# 

Curioso che dopo quei comandi non funzioni più il resolve.conf, per cui la Live adesso non vede più internet. Il file è ancora li, ma non va lo stesso.

Quindi non riesci ancora ad entrare dentro fedora normalmente?

Sembra che si stia rompendo cercando sistemi operativi su sdd1, una partizione vuota della tua chiavetta live. Direi di disabilitare momentaneamente osprober per farci arrivare in fondo; ripeti le operazioni sopra, ma prima del mkconfig:

# nano /etc/default/grub

(oppure un altro editor)
e aggiungi:

GRUB_DISABLE_OS_PROBER=true

e infine, prima di uscire dal chroot, vorrei essere sicuro sia un’installazione con uefi:

[code]# echo $conf

efibootmgr -v[/code]

Ah, per il resolv.conf, penso ti basti eliminare il link prima di metterci il dns server di google, con:

# rm -f /etc/resolv.conf

Ciao Bebo, e grazie ancora per l’assistenza.

Sono riuscito ad entrare in F29, ma la macchina non si comporta in modo normale: dopo la nuova sequenza ho provato a fare boot senza pennetta, ma mi è ricomparso il messaggio di rifare boot e scegliere o inserire un dispositivo con boot loader, come faceva prima di tutti i comandi.
Però questa volta forse ho intuito cosa voleva: invece di ripartire dalla pennetta o lasciare che facesse da sola (che tanto poi si incantava) ho scelto la SSD (non ricordo se la versione Uefi o normale). A quel punto mi ha proposto il grub solito anche se con look diverso (font molto più piccoli, come quelli del boot da pennetta.) Scegliendo il secondo kernel, quello che sapevo che funzionava, è partita. Il dubbio che lo avrebbe fatto anche le volte scorse mi è venuto.

Però non vorrei che il problema fosse ancora a monte del grub: non vede i dispositivi, da solo, neanche la pennetta. Come mai li vede solo dal setup della mobo?

Comunque, ecco i risultati delle operazioni. Non so se ho eseguito tutto bene, per i comandi aggiuntivi che non sono certo di aver posizionato bene.

Questi comunque i risultati di tutta la trafila:

[liveuser@localhost-live ~]$ su -
[root@localhost-live ~]# mkdir -p /mnt/fedora
[root@localhost-live ~]# mount /dev/sda3 /mnt/fedora/
[root@localhost-live ~]# mount /dev/sda2 /mnt/fedora/boot
[root@localhost-live ~]# mount /dev/sda1 /mnt/fedora/boot/efi
[root@localhost-live ~]# for i in {/dev/,/dev/pts/,/proc/,/sys/}; do mount -o bind "$i" "/mnt/fedora$i"; done
[root@localhost-live ~]# chroot /mnt/fedora
[root@localhost-live /]# ping -c 3 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=56 time=3.60 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=56 time=3.52 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=56 time=3.70 ms

--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 6ms
rtt min/avg/max/mdev = 3.518/3.605/3.703/0.102 ms
[root@localhost-live /]# rm -f /etc/resolv.conf
[root@localhost-live /]# echo 'nameserver 8.8.8.8' > /etc/resolv.conf
[root@localhost-live /]# ping -c 3 google.it
PING google.it (216.58.205.67) 56(84) bytes of data.
64 bytes from mil04s25-in-f3.1e100.net (216.58.205.67): icmp_seq=1 ttl=56 time=3.85 ms
64 bytes from mil04s25-in-f3.1e100.net (216.58.205.67): icmp_seq=2 ttl=56 time=3.76 ms
64 bytes from mil04s25-in-f3.1e100.net (216.58.205.67): icmp_seq=3 ttl=56 time=3.46 ms

--- google.it ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 6ms
rtt min/avg/max/mdev = 3.464/3.689/3.845/0.163 ms
[root@localhost-live /]# dnf reinstall grub2-efi shim
Fedora Modular 29 - x86_64 - Updates                                                45 kB/s |  24 kB     00:00    
Fedora 29 - x86_64 - Updates                                                        42 kB/s |  25 kB     00:00    
Dependencies resolved.
===================================================================================================================
 Package                       Architecture           Version                         Repository              Size
===================================================================================================================
Reinstalling:
 grub2-efi-x64                 x86_64                 1:2.02-62.fc29                  fedora                 352 k
 shim-x64                      x86_64                 15-7                            fedora                 658 k

Transaction Summary
===================================================================================================================

Total download size: 1.0 M
Installed size: 7.7 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): grub2-efi-x64-2.02-62.fc29.x86_64.rpm                                       775 kB/s | 352 kB     00:00    
(2/2): shim-x64-15-7.x86_64.rpm                                                    1.4 MB/s | 658 kB     00:00    
-------------------------------------------------------------------------------------------------------------------
Total                                                                              1.6 MB/s | 1.0 MB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                           1/1 
  Reinstalling     : shim-x64-15-7.x86_64                                                                      1/4 
  Reinstalling     : grub2-efi-x64-1:2.02-62.fc29.x86_64                                                       2/4 
  Cleanup          : shim-x64-15-7.x86_64                                                                      3/4 
  Cleanup          : grub2-efi-x64-1:2.02-62.fc29.x86_64                                                       4/4 
  Verifying        : grub2-efi-x64-1:2.02-62.fc29.x86_64                                                       1/4 
  Verifying        : grub2-efi-x64-1:2.02-62.fc29.x86_64                                                       2/4 
  Verifying        : shim-x64-15-7.x86_64                                                                      3/4 
  Verifying        : shim-x64-15-7.x86_64                                                                      4/4 

Reinstalled:
  grub2-efi-x64-1:2.02-62.fc29.x86_64                             shim-x64-15-7.x86_64                            

Complete!
[root@localhost-live /]# nano /etc/default/grub
[root@localhost-live /]# conf=/boot/grub2/grub.cfg; if  ! -f $conf ]; then conf=/boot/efi/EFI/fedora/grub.cfg; fi; grub2-mkconfig -o $conf
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.2.7-100.fc29.x86_64
Found initrd image: /boot/initramfs-5.2.7-100.fc29.x86_64.img
Found linux image: /boot/vmlinuz-5.1.20-200.fc29.x86_64
Found initrd image: /boot/initramfs-5.1.20-200.fc29.x86_64.img
Found linux image: /boot/vmlinuz-5.2.7-100.fc29.x86_64+debug
Found initrd image: /boot/initramfs-5.2.7-100.fc29.x86_64+debug.img
Found linux image: /boot/vmlinuz-5.1.20-200.fc29.x86_64+debug
Found initrd image: /boot/initramfs-5.1.20-200.fc29.x86_64+debug.img
Found linux image: /boot/vmlinuz-0-rescue-0b0e4201b7714af38d773e962898302e
Found initrd image: /boot/initramfs-0-rescue-0b0e4201b7714af38d773e962898302e.img
done
[root@localhost-live /]# echo $conf
/boot/efi/EFI/fedora/grub.cfg
[root@localhost-live /]# efibootmgr -v
EFI variables are not supported on this system.
[root@localhost-live /]# exit
[root@localhost-live /]# for i in {/boot/efi,/boot/,/sys/,/proc/,/dev/pts/,/dev/}; do umount "/mnt/fedora$i"; done
[root@localhost-live /]# umount /mnt/fedora
umount: /mnt/fedora: target is busy
[root@localhost-live /]# 

Tieni presente che al primo giro mi ero dimenticato di mettere il comando exit, ed era fallito lo script di umount. Poi mi sono accorto, ho dato l’exit, mi ha eseguito lo scriptino correttamente, ma non l’ultimo umount di fedora. Però siccome i risultati del terminale si erano incasinati e mi sembrava che non si capisse più molto (avevo fatto anche un check di cosa era montato e provato un altro paio di comandi informativi) ho editato a mano simulando come avrei dovuto fare.

Ciao!

Bene che tu abbia ritrovato il modo di entrare in Fedora.
Probabilmente si e’ “spannato” UEFI; hai provato a guardare su internet se il produttore della tua mobo ha rilasciato aggiornamenti?

[quote=bebo_sudo]Bene che tu abbia ritrovato il modo di entrare in Fedora.
Probabilmente si e’ “spannato” UEFI; hai provato a guardare su internet se il produttore della tua mobo ha rilasciato aggiornamenti?[/quote]

Si, la avevo già aggiornata durante il periodo di down, ma non era servito. Ho rifatto il computer da zero con una F30, perché non potevo restare ancora fermo.

Cose da notare:

  • I dischi funzionano tutti e tre perfettamente;
  • i due dischi in mirror lo sono rimasti anche dopo aver riformattato la SSD.
    Ovviamente ora che la SSD non funziona più come cache l’accesso ai dati su quei dischi è più lento (il sistema che mi aveva fatto Frafra era spettacolare. Mi piacerebbe rifare qualcosa del genere ma non credo sarei in grado neanche dedicandoci una settimana.)

Grazie per i suggerimenti. Mi spiace che non siano serviti, ma ho imparato un po’ di cose.

Ciao

Reinstallando Fedora quindi sono scomparsi i problemi di UEFI? curioso.

Ah, non penso di avertelo piu’ detto, ma il setup raid probabilmente era dentro LVM, ed e’ per quello che non si vedeva in mdadm; per la questione ssd as a cache, prova a giocare con lvmcache, che e’ scritto sopra dm-cache.

Si, del tutto direi. Non saprei spiegare perché, ma non ce n’è traccia.

Mmm… temo che tu mi sopravvaluti :smiley: Ma appena ho un po’ di tempo libero provo a capire che cosa intendi, e magari a giocare.

Grazie

Beh, ora che hai appena reinstallato e’ ancora un buon momento per giocare e “pasticciare” :wink: