[Risolto] Problema all'avvio

Salve a tutti,
ieri il mio computer accidentalmente si è spento in maniera non corretta a seguito di un calo di tensione. I problemi però sono sorti all’accensione, infatti, il sistema mi da questo errore:

Gerneratomg "/run/initramfs/sosreport.txt"

Entering emergency mode. Exit the shell to continue.
Type "journalctl to view system logs.
You might want to save "/run/initramfs/sosreport.txt" to a USB stick or /boot
after mounting them and attach it to a bug report.

ho provato a vedere il log di sistema e tra gli errori segnati in rosso mi compare:

Failed to mount /sysroot.
Dependency failed for Initrd Root File SDystem.
Dependency failed for Reload Configuration from the Real Root.

ho trovato qualcosa di simile in http://forum.fedoraonline.it/viewtopic.php?id=21321&p=1 ma quando parto in modalità rescue mi dice che non c’è nessuna distro linux installata, tuttavia “fdisk -l” mi da esito positivo come lo dava quando il sistema era “sano”.

C’è qualche rimedio a questo problema??
Grazie!

Non c’è nessuna soluzione?? mi tocca formattare tutto?? :ueee:

Ciao ,hai provato a riavviare usando un kernel precedente ?
Potresti provare con dracut --regenerate-all per rigenerare tutti
gli initramfs .

one

sisi mi da lo stesso errore con tutti i kernel.

per il comando che mi hai dato mi dice un triste “command not found”.

Scusate per la mia insistenza :gratt:
ma prima di buttare tutto a terra non voglio lasciare nulla al caso.
In ogni caso, ho provato a partire da rescue e mi dice che non è installata alcuna partizione linux, tuttavia riesco a salvare alcune informazioni su una penna usb. Le posto qui sperando che siano di aiuto a risolvere il problema.

chroot /mnt/sysimage/

chroot: failed to run command "/bin/bash": No suck file or directory

cat /var/log/boot.log

  OK  ] Started Show Plymouth Boot Screen.
  OK  ] Reached target Paths.
  OK  ] Reached target Basic System.
dracut-initqueue[339]: mount: /dev/sr0 is write-protected, mounting read-only
  OK  ] Started dracut initqueue hook.
         Starting dracut pre-mount hook...
  OK  ] Started dracut pre-mount hook.
  OK  ] Reached target Initrd Root File System.
         Starting Reload Configuration from the Real Root...
  OK  ] Started Reload Configuration from the Real Root.
  OK  ] Reached target Initrd File Systems.
         Starting dracut mount hook...
  OK  ] Started dracut mount hook.
  OK  ] Reached target Initrd Default Target.

Welcome to Fedora 19 (Schrödinger’s Cat)!

  OK  ] Stopped Switch Root.
  OK  ] Stopped target Switch Root.
  OK  ] Stopped target Initrd File Systems.
  OK  ] Stopped target Initrd Root File System.
  OK  ] Listening on Syslog Socket.
  OK  ] Listening on Delayed Shutdown Socket.
  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
  OK  ] Listening on LVM2 metadata daemon socket.
         Starting Create static device nodes in /dev...
  OK  ] Reached target Paths.
         Mounting POSIX Message Queue File System...
  OK  ] Set up automount Arbitrary Executable File Formats File System Automount Point.
         Mounting Huge Pages File System...
         Mounting Debug File System...
         Starting Apply Kernel Variables...
         Mounting Configuration File System...
         Starting Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling...
  OK  ] Listening on udev Kernel Socket.
  OK  ] Listening on udev Control Socket.
         Starting udev Coldplug all Devices...
         Starting Device-Mapper Multipath Device Controller...
  OK  ] Reached target Swap.
         Starting Remount Root and Kernel File Systems...
         Mounting Temporary Directory...
  OK  ] Stopped Trigger Flushing of Journal to Persistent Storage.
         Stopping Journal Service...
  OK  ] Stopped Journal Service.
         Starting Journal Service...
  OK  ] Started Journal Service.
  OK  ] Started Remount Root and Kernel File Systems.
         Starting Import network configuration from initramfs...
         Starting Configure read-only root support...
  OK  ] Started Apply Kernel Variables.
  OK  ] Started udev Coldplug all Devices.
         Starting udev Wait for Complete Device Initialization...
  OK  ] Mounted Configuration File System.
  OK  ] Mounted POSIX Message Queue File System.
  OK  ] Mounted Huge Pages File System.
  OK  ] Mounted Temporary Directory.
  OK  ] Mounted Debug File System.
  OK  ] Started Configure read-only root support.
         Starting Load Random Seed...
  OK  ] Started Create static device nodes in /dev.
  OK  ] Started Load Random Seed.
         Starting udev Kernel Device Manager...
  OK  ] Started Import network configuration from initramfs.
  OK  ] Started udev Kernel Device Manager.
  OK  ] Reached target Local File Systems (Pre).
         Starting LVM2 metadata daemon...
  OK  ] Started LVM2 metadata daemon.
  OK  ] Started udev Wait for Complete Device Initialization.
         Starting Activation of DM RAID sets...
  OK  ] Started Device-Mapper Multipath Device Controller.
  OK  ] Started Activation of DM RAID sets.
  OK  ] Reached target Encrypted Volumes.
  OK  ] Started Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling.
  OK  ] Reached target Local File Systems.
         Starting Recreate Volatile Files and Directories...
         Starting Trigger Flushing of Journal to Persistent Storage...
         Starting Tell Plymouth To Write Out Runtime Data...
  OK  ] Started Trigger Flushing of Journal to Persistent Storage.
  OK  ] Started Tell Plymouth To Write Out Runtime Data.
  OK  ] Started Recreate Volatile Files and Directories.
  OK  ] Reached target System Initialization.
  OK  ] Reached target Timers.
  OK  ] Listening on Open-iSCSI iscsid Socket.
  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
  OK  ] Listening on Open-iSCSI iscsiuio Socket.
  OK  ] Listening on D-Bus System Message Bus Socket.
  OK  ] Reached target Sockets.
  OK  ] Reached target Basic System.
         Starting firewalld - dynamic firewall daemon...
         Starting Terminate Plymouth Boot Screen...
         Starting Wait for Plymouth Boot Screen to Quit...
         Starting System Logging Service...

#parted -l

Model: ATA ST9250315AS (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type      File system  Flags
 1      1049kB  106MB   105MB   primary   ntfs         boot
 2      106MB   31.5GB  31.4GB  primary   ntfs
 3      31.5GB  32.0GB  524MB   primary   ext4
 4      32.0GB  250GB   218GB   extended
 5      32.0GB  250GB   218GB   logical                lvm

#fdisk -l

Disk /dev/sda: 250.1 GB, 250059350016 bytes, 488397168 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
Disk label type: dos
Disk identifier: 0x516d077a

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT
/dev/sda2          206848    61442047    30617600    7  HPFS/NTFS/exFAT
/dev/sda3        61442048    62466047      512000   83  Linux
/dev/sda4        62466048   488396799   212965376    5  Extended
/dev/sda5        62468096   488396799   212964352   8e  Linux LVM

Disk /dev/mapper/live-rw: 2147 MB, 2147483648 bytes, 4194304 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

Sono riuscito a recuperare una live e ho controllato fdisk -l che mi ha dato un output più completo ovvero:

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 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
Disk identifier: 0x516d077a

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT
/dev/sda2          206848    61442047    30617600    7  HPFS/NTFS/exFAT
/dev/sda3        61442048    62466047      512000   83  Linux
/dev/sda4        62466048   488396799   212965376    5  Extended
/dev/sda5        62468096   488396799   212964352   8e  Linux LVM

Disk /dev/mapper/live-rw: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders, total 8388608 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
Disk identifier: 0x00000000

Disk /dev/mapper/live-rw doesn't contain a valid partition table

Disk /dev/mapper/live-osimg-min: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders, total 8388608 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
Disk identifier: 0x00000000

Disk /dev/mapper/live-osimg-min doesn't contain a valid partition table

Disk /dev/mapper/vg_giuseppe-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders, total 104857600 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
Disk identifier: 0x00000000

Disk /dev/mapper/vg_giuseppe-lv_root doesn't contain a valid partition table

Disk /dev/mapper/vg_giuseppe-lv_home: 160.3 GB, 160255967232 bytes
255 heads, 63 sectors/track, 19483 cylinders, total 312999936 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
Disk identifier: 0x00000000

Disk /dev/mapper/vg_giuseppe-lv_home doesn't contain a valid partition table

Disk /dev/mapper/vg_giuseppe-lv_swap: 4127 MB, 4127195136 bytes
255 heads, 63 sectors/track, 501 cylinders, total 8060928 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
Disk identifier: 0x00000000

Disk /dev/mapper/vg_giuseppe-lv_swap doesn't contain a valid partition table

ed ho notato questo “doesn’t contain a valid partition table”, girovagando tra le vecchie discussioni ho trovato un problema simile http://forum.fedoraonline.it/viewtopic.php?id=18098, questa soluzione di eseguire un “fsck -y …” potrebbe risolvere il mio problema??

il -y consente di rispondere si a tutte le richieste da parte del programma senza intervento manuale.

Prova.

Sisi l’avevo immaginato che il -y fosse quella opzione.
Comunque dopo aver dato i comandi da live sono riuscito ad accendere il pc.
Grazie per l’aiuto che mi avete dato.

Appena acceso ho controllato il log di boot (con un “cat /var/log/boot.log”) ed è tutto ok tranne che per una riga che ritengo sospetta:

[FAILED] Failed to start LSB: DKMS kernel modules installer service. See 'systemctl status dkms_autoinstaller.service' for details.
devo preoccuparmi??

Non molto.
Hai VirtualBox installato?

Si ce l’ho installato…

vediamo se va a posto:

# yum reinstall dkms

Ho dato il comando che mi hai detto e tutto funge alla perfezione e nel log non esce più il “failed”.

Grazie a tutti per il supporto che mi ha avete dato :clap: