Nuovo di Arch Linux? Nessun problema, fai qui le tue domande

Messaggio2 aprile 2012, 20:52 - problema installazione: unable to find root device #119272

Ciao a tutti.
Ho installato arch diverse volte, ma ora ho un problema appena do il primo pacman -Suy dopo l'installazione del sistema.
Spiego ciò che faccio:

[list=]- installo dal cd live e riavvio il sistema
- do un pacman -Syu, a cui segue il messaggio che è necessario aggiornare innanzitutto pacman
- procedo con l'aggiornamento di pacman e continuo con un #pacman -Syu
- alla richiesta di sostituire init-tools con il suo successore acconsento
- scarico i pacchetti necessari, ma da un errore, a cui risolvo con un pacman #-Syuf come consigliato nella home
- riavvio il sistema ma ottengo il seguente errore[/list]

Waiting 10 seconds for device /dev/disk/by-uuid/{id}...
ERROR: Unable to find root device '{id}'.
You are being dropped to a recovery shel
l

- come consigliato nel forum inserisco il cd live e faccio il chroot con la procedura descritta anche nel wiki
mkdir /mnt/arch
mount /dev/sda3 /mnt/arch (sda3 è la mia partizione /)
cd /mnt/arch
mount -t proc proc proc/
mount -t sysfs sys sys/
mount -o bind /dev dev/
mount /dev/sda1 boot/ (sda1 è la mia partizione di boot)
chroot . /bin/bash


- prima di dare #pacman -Suy do #dhcpcd eth0 altrimenti non ho la rete ed ottengo unknow-host
- aggiorno il sistema, do #pacman -S udev e #pacman -Suyf mkinitcpio
ottengo però i seguenti errori:
waring: could not get filesystem information for /bootmnt: no such file or directory
(stesso errore per /cowspace, /sysfs/root-image ... ecc...)


- do #mkinitcpio -p linux che esegue l'operazione

- riavvio, ma ottengo sempre lo stesso errore

tra tutte le discussioni aperte nel forum sull'errore Unable to find root device non ho trovato nulla riguardante waring: could not get filesystem information for ... e comunque la procedura spiegata su tutti i post non riesce ad aiutarmi.

Spero che qualcuno può darmi una mano.


Grazie a tutti
Wall-E
Novello Arciere
 
Messaggi: 91
Iscritto il: 25 giugno 2011, 0:46
Top

Re: problema installazione: unable to find root device

Messaggio2 aprile 2012, 20:55 - problema installazione: unable to find root device #119273

Puoi postare il tuo /boot/grub/menu.lst e l'output di fdisk -l?
Q6600 @ 3.2 Ghz + Thermalright Ultra 120 Extreme | 2 GB DDR2 Ocz Gold
Asus P5K | Geforce 8800GTS 512 MB | E ovviamente... Arch Linux :)
Avatar utente
Hilinus
Moderatore
 
Messaggi: 5332
Iscritto il: 25 ottobre 2008, 19:28
Top

Re: problema installazione: unable to find root device

Messaggio2 aprile 2012, 21:50 - problema installazione: unable to find root device #119276

Ciao, certo

allora, il file menu.lst ce l'ho in
sda1/grub
e non in
/boot/grub anzi, tale directory non esiste


Codice: Seleziona tutto
# Config file for GRUB - The GNU GRand Unified Bootloader
# /boot/grub/menu.lst

# DEVICE NAME CONVERSIONS
#
#  Linux           Grub
# -------------------------
#  /dev/fd0        (fd0)
#  /dev/sda        (hd0)
#  /dev/sdb2       (hd1,1)
#  /dev/sda3       (hd0,2)
#

#  FRAMEBUFFER RESOLUTION SETTINGS
#     +-------------------------------------------------+
#          | 640x480    800x600    1024x768   1280x1024
#      ----+--------------------------------------------
#      256 | 0x301=769  0x303=771  0x305=773   0x307=775
#      32K | 0x310=784  0x313=787  0x316=790   0x319=793
#      64K | 0x311=785  0x314=788  0x317=791   0x31A=794
#      16M | 0x312=786  0x315=789  0x318=792   0x31B=795
#     +-------------------------------------------------+
#  for more details and different resolutions see
#  https://wiki.archlinux.org/index.php/GRUB#Framebuffer_resolution

# general configuration:
timeout   5
default   0
color light-blue/black light-cyan/blue

# boot sections follow
# each is implicitly numbered from 0 in the order of appearance below
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
#-*

# (0) Arch Linux
title  Arch Linux
root   (hd0,0)
kernel /vmlinuz-linux root=/dev/disk/by-uuid/7efc8f6f-6502-45e3-84c5-08682994adf3 ro
initrd /initramfs-linux.img

# (1) Arch Linux
title  Arch Linux Fallback
root   (hd0,0)
kernel /vmlinuz-linux root=/dev/disk/by-uuid/7efc8f6f-6502-45e3-84c5-08682994adf3 ro
initrd /initramfs-linux-fallback.img

# (2) Windows
#title Windows
#rootnoverify (hd0,0)
#makeactive
#chainloader +1



(ho provato anche a sostituire
root=/dev/disk/by-uuid/7efc8f6f-6502-45e3-84c5-08682994adf3 con root=/dev/sda1)



fdisk -l mi da:

Codice: Seleziona tutto
dispositivo          boot         id        system
/dev/sda1               *       83         linux
/dev/sda2                       82         linux swap
/dev/sda3                       83         linux
/dev/sda4                       83         linux
Wall-E
Novello Arciere
 
Messaggi: 91
Iscritto il: 25 giugno 2011, 0:46
Top

Re: problema installazione: unable to find root device

Messaggio2 aprile 2012, 21:58 - problema installazione: unable to find root device #119277

sda1/grub è un percorso che non ha senso, in quanto sda1 è un file situato in /dev che indica la prima partizione del primo disco. Se ci pensi, una volta montate tutte le partizioni ed effettuato il chroot, in /boot dovresti avere la cartella grub e le varie immagini del kernel ed initrd.

Per scrupolo, puoi postare, da dentro l'ambiente di chroot:
Codice: Seleziona tutto
blkid
ls -l /boot


Posta anche il contenuto di /etc/mkinitcpio.conf.
Q6600 @ 3.2 Ghz + Thermalright Ultra 120 Extreme | 2 GB DDR2 Ocz Gold
Asus P5K | Geforce 8800GTS 512 MB | E ovviamente... Arch Linux :)
Avatar utente
Hilinus
Moderatore
 
Messaggi: 5332
Iscritto il: 25 ottobre 2008, 19:28
Top

Re: problema installazione: unable to find root device

Messaggio2 aprile 2012, 22:23 - problema installazione: unable to find root device #119278

scusami,
hai ragione

ls /boot
grub
initframs-linux-fallback.img
initframs-linux.img
lost+found
vmlinuz-linux


quindi nano /boot/grub/menu.lst

Codice: Seleziona tutto
# Config file for GRUB - The GNU GRand Unified Bootloader
# /boot/grub/menu.lst

# DEVICE NAME CONVERSIONS
#
#  Linux           Grub
# -------------------------
#  /dev/fd0        (fd0)
#  /dev/sda        (hd0)
#  /dev/sdb2       (hd1,1)
#  /dev/sda3       (hd0,2)
#

#  FRAMEBUFFER RESOLUTION SETTINGS
#     +-------------------------------------------------+
#          | 640x480    800x600    1024x768   1280x1024
#      ----+--------------------------------------------
#      256 | 0x301=769  0x303=771  0x305=773   0x307=775
#      32K | 0x310=784  0x313=787  0x316=790   0x319=793
#      64K | 0x311=785  0x314=788  0x317=791   0x31A=794
#      16M | 0x312=786  0x315=789  0x318=792   0x31B=795
#     +-------------------------------------------------+
#  for more details and different resolutions see
#  https://wiki.archlinux.org/index.php/GRUB#Framebuffer_resolution

# general configuration:
timeout   5
default   0
color light-blue/black light-cyan/blue

# boot sections follow
# each is implicitly numbered from 0 in the order of appearance below
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
#-*

# (0) Arch Linux
title  Arch Linux
root   (hd0,0)
kernel /vmlinuz-linux root=/dev/disk/by-uuid/7efc8f6f-6502-45e3-84c5-08682994adf3 ro
initrd /initramfs-linux.img

# (1) Arch Linux
title  Arch Linux Fallback
root   (hd0,0)
kernel /vmlinuz-linux root=/dev/disk/by-uuid/7efc8f6f-6502-45e3-84c5-08682994adf3 ro
initrd /initramfs-linux-fallback.img

# (2) Windows
#title Windows
#rootnoverify (hd0,0)
#makeactive
#chainloader +1


lo stesso file di prima

invece per quanto riguarda blkid
gli uuid delle partizioni sono corretti:


/dev/sda1: UUID="e129cd39-15fd-4d66-a356-d702a1b76f6b" TYPE="ext2"
/dev/sda2: uuid corretto
/dev/sda3: uuid corretto
/dev/sda4: uuid corretto
/dev/loop100: TYPE="squashfs"
/dev/loop101:.......
.............

non è necessario che li scrivo tutto vero?!
Wall-E
Novello Arciere
 
Messaggi: 91
Iscritto il: 25 giugno 2011, 0:46
Top

Re: problema installazione: unable to find root device

Messaggio3 aprile 2012, 18:38 - problema installazione: unable to find root device #119312

Prova ad avviare con l'initrd fallback.
Q6600 @ 3.2 Ghz + Thermalright Ultra 120 Extreme | 2 GB DDR2 Ocz Gold
Asus P5K | Geforce 8800GTS 512 MB | E ovviamente... Arch Linux :)
Avatar utente
Hilinus
Moderatore
 
Messaggi: 5332
Iscritto il: 25 ottobre 2008, 19:28
Top

Re: problema installazione: unable to find root device

Messaggio3 aprile 2012, 19:59 - problema installazione: unable to find root device #119314

Sempre lo stesso: unable to find root device.

se formatto e reinstallo arch, al primo pacman -Syu si ripresenta lo stesso errore :(
Wall-E
Novello Arciere
 
Messaggi: 91
Iscritto il: 25 giugno 2011, 0:46
Top

Re: problema installazione: unable to find root device

Messaggio3 aprile 2012, 20:25 - problema installazione: unable to find root device #119319

Dunque, vediamo se il problema è relativo all'assenza nell'initrd dei moduli necessari per il controller SATA. Posta innanzitutto il contenuto del file /etc/mkinitcpio.conf e poi l'output di

Codice: Seleziona tutto
lspci -k
Q6600 @ 3.2 Ghz + Thermalright Ultra 120 Extreme | 2 GB DDR2 Ocz Gold
Asus P5K | Geforce 8800GTS 512 MB | E ovviamente... Arch Linux :)
Avatar utente
Hilinus
Moderatore
 
Messaggi: 5332
Iscritto il: 25 ottobre 2008, 19:28
Top

Re: problema installazione: unable to find root device

Messaggio3 aprile 2012, 21:13 - problema installazione: unable to find root device #119321

il mio hd non è serial ata, ma dammi 5 minuti e ti posto tutto
Wall-E
Novello Arciere
 
Messaggi: 91
Iscritto il: 25 giugno 2011, 0:46
Top

Re: problema installazione: unable to find root device

Messaggio3 aprile 2012, 21:43 - problema installazione: unable to find root device #119324

ecco il mkinitcpio.conf

Codice: Seleziona tutto
# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES="piix ide_disk reiserfs"
MODULES=""

# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image.  This is run first, so it may be used to
# override the actual binaries used in a given hook.
# (Existing files are NOT overwritten if already added)
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=""

# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way.  This is useful for config files.
# Some users may wish to include modprobe.conf for custom module options
# like so:
#    FILES="/etc/modprobe.d/modprobe.conf"
FILES=""

# HOOKS
# This is the most important setting in this file.  The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
##   This setup specifies all modules in the MODULES setting above.
##   No raid, lvm2, or encrypted root is needed.
#    HOOKS="base"
#
##   This setup will autodetect all modules for your system and should
##   work as a sane default
#    HOOKS="base udev autodetect pata scsi sata filesystems"
#
##   This is identical to the above, except the old ide subsystem is
##   used for IDE devices instead of the new pata subsystem.
#    HOOKS="base udev autodetect ide scsi sata filesystems"
#
##   This setup will generate a 'full' image which supports most systems.
##   No autodetection is done.
#    HOOKS="base udev pata scsi sata usb filesystems"
#
##   This setup assembles a pata mdadm array with an encrypted root FS.
##   Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
#    HOOKS="base udev pata mdadm encrypt filesystems"
#
##   This setup loads an lvm2 volume group on a usb device.
#    HOOKS="base udev usb lvm2 filesystems"
#
##   NOTE: If you have /usr on a separate partition, you MUST include the
#    fsck and shutdown hooks.
HOOKS="base udev autodetect pata scsi sata filesystems usbinput fsck"

# COMPRESSION
# Use this to compress the initramfs image. With kernels earlier than
# 2.6.30, only gzip is supported, which is also the default. Newer kernels
# support gzip, bzip2 and lzma. Kernels 2.6.38 and later support xz
# compression.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"

# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=""
Wall-E
Novello Arciere
 
Messaggi: 91
Iscritto il: 25 giugno 2011, 0:46
Top

Re: problema installazione: unable to find root device

Messaggio4 aprile 2012, 18:45 - problema installazione: unable to find root device #119357

Manca lspci -k.
Q6600 @ 3.2 Ghz + Thermalright Ultra 120 Extreme | 2 GB DDR2 Ocz Gold
Asus P5K | Geforce 8800GTS 512 MB | E ovviamente... Arch Linux :)
Avatar utente
Hilinus
Moderatore
 
Messaggi: 5332
Iscritto il: 25 ottobre 2008, 19:28
Top

Re: problema installazione: unable to find root device

Messaggio4 aprile 2012, 22:49 - problema installazione: unable to find root device #119365

preciso che sono un nabbo e che spero di imparare qualcosa.

al comando lspci -k ricevo in output l'elenco dei dispositivi connessi. 2 schermate.
da loggato come charoot non ho la più pallida idea di come scrivertele :(
Wall-E
Novello Arciere
 
Messaggi: 91
Iscritto il: 25 giugno 2011, 0:46
Top

Re: problema installazione: unable to find root device

Messaggio5 aprile 2012, 18:06 - problema installazione: unable to find root device #119399

Abilita la rete all'interno del chroot copiando il file /etc/resolv.conf dal sistema host all'ambiente di chroot. Naturalmente prima di procedere, la rete deve funzionare anche sul sistema host.

Installa ora wgetpaste e dai:
Codice: Seleziona tutto
lspci -k > drivers.txt
wgetpaste drivers.txt


Copia qui il link risultante.
Q6600 @ 3.2 Ghz + Thermalright Ultra 120 Extreme | 2 GB DDR2 Ocz Gold
Asus P5K | Geforce 8800GTS 512 MB | E ovviamente... Arch Linux :)
Avatar utente
Hilinus
Moderatore
 
Messaggi: 5332
Iscritto il: 25 ottobre 2008, 19:28
Top

Re: problema installazione: unable to find root device

Messaggio5 aprile 2012, 20:15 - problema installazione: unable to find root device #119405

hummm... non so se c'entra o meno...
faccio il chroot
rete già fuzionante
(per sicureza provo anche a pingare google e il ping funziona)
do un pacman -S wgetpaste ed ottengo
ata drdy error
Wall-E
Novello Arciere
 
Messaggi: 91
Iscritto il: 25 giugno 2011, 0:46
Top

Re: problema installazione: unable to find root device

Messaggio5 aprile 2012, 20:36 - problema installazione: unable to find root device #119408

Mmh... sicuro che il tuo HD sia integro? Prova a controllare che non ci siano settori riallocati e/o danneggiati.
Q6600 @ 3.2 Ghz + Thermalright Ultra 120 Extreme | 2 GB DDR2 Ocz Gold
Asus P5K | Geforce 8800GTS 512 MB | E ovviamente... Arch Linux :)
Avatar utente
Hilinus
Moderatore
 
Messaggi: 5332
Iscritto il: 25 ottobre 2008, 19:28
Top


Torna a Angolo del newbie

Chi c’è in linea

Visitano il forum: Nessuno e 1 ospite

Moderatori: 4javier, aleph, veleno77, adriano, Hilinus

cron