grub2-mkconfig da live

scusami…eccoti il tutto… ha dato errore nel terzultimo comando…

[root@localhost liveuser]# blkid
/dev/sdb1: LABEL="FEDORA-LIVE" UUID="0819-5433" TYPE="vfat" 
/dev/loop0: TYPE="squashfs" 
/dev/loop1: TYPE="DM_snapshot_cow" 
/dev/loop2: TYPE="squashfs" 
/dev/loop3: LABEL="_Fedora-Live-Des" UUID="e48f57e7-199c-4837-9c5d-08c10250e6db" TYPE="ext4" 
/dev/loop4: TYPE="DM_snapshot_cow" 
/dev/sda1: LABEL="Riservato per il sistema" UUID="4EBE278FBE276F21" TYPE="ntfs" 
/dev/sda2: UUID="1AE82A57E82A3205" TYPE="ntfs" 
/dev/sda3: UUID="qn5NZ2-THxf-LOYB-VaNt-f84R-K9bk-pyfWkv" TYPE="LVM2_member" 
/dev/sda4: LABEL="Dati" UUID="78AE4C0A1E43061D" TYPE="ntfs" 
/dev/mapper/fedora-root: UUID="57f6b844-6b7c-48f7-948b-7ca1aebd0017" TYPE="ext4" 
/dev/mapper/fedora-swap: UUID="6d1156bf-de71-401d-823a-218829dd9395" TYPE="swap" 
/dev/mapper/live-rw: LABEL="_Fedora-Live-Des" UUID="e48f57e7-199c-4837-9c5d-08c10250e6db" TYPE="ext4" 
/dev/mapper/live-osimg-min: LABEL="_Fedora-Live-Des" UUID="e48f57e7-199c-4837-9c5d-08c10250e6db" TYPE="ext4" 
[root@localhost liveuser]# mkdir -p /media/rescue
[root@localhost liveuser]# mount /dev/mapper/fedora-root /media/rescue
[root@localhost liveuser]# ll /media/rescue/boot
total 77328
-rw-r--r--. 1 root root   131339 Nov  4 09:14 config-3.11.7-200.fc19.x86_64
-rw-r--r--. 1 root root   127669 Jun 11 15:46 config-3.9.5-301.fc19.x86_64
drwxr-xr-x. 4 root root     4096 Jun 27 13:13 efi
-rw-r--r--. 1 root root   178176 Sep 16 06:14 elf-memtest86+-4.20
drwxr-xr-x. 6 root root     4096 Nov 13 08:18 grub2
-rw-------. 1 root root 36628117 Nov 10 21:15 initramfs-0-rescue-7725dfc225d14958a625ddaaaea5962b.img
-rw-------. 1 root root 10924582 Nov 11 02:42 initramfs-3.11.7-200.fc19.x86_64.img
-rw-------. 1 root root  9868973 Nov 10 21:13 initramfs-3.9.5-301.fc19.x86_64.img
-rw-r--r--. 1 root root   557674 Nov 11 02:41 initrd-plymouth.img
-rw-r--r--. 1 root root   176500 Sep 16 06:14 memtest86+-4.20
-rw-------. 1 root root  2688224 Nov  4 09:14 System.map-3.11.7-200.fc19.x86_64
-rw-------. 1 root root  2594764 Jun 11 15:46 System.map-3.9.5-301.fc19.x86_64
-rwxr-xr-x. 1 root root  5055896 Nov 10 21:15 vmlinuz-0-rescue-7725dfc225d14958a625ddaaaea5962b
-rwxr-xr-x. 1 root root  5149112 Nov  4 09:14 vmlinuz-3.11.7-200.fc19.x86_64
-rwxr-xr-x. 1 root root  5055896 Jun 11 15:46 vmlinuz-3.9.5-301.fc19.x86_64
[root@localhost liveuser]# ll /media/rescue/etc/fstab
-rw-rw-r--. 1 root root 371 Nov 10 21:12 /media/rescue/etc/fstab
[root@localhost liveuser]# # for i in {/dev/,/dev/pts/,/proc/,/sys/}; do mount -o bind "$i" "/media/rescue$i"; done
[root@localhost liveuser]# chroot /media/rescue

[root@localhost /]# grub2-mkconfig -o /boot/grub2/grub.cfg
/usr/sbin/grub2-probe: error: cannot find a device for / (is /dev mounted?).

[root@localhost /]# grep CMDLINE /etc/default/grub
GRUB_CMDLINE_LINUX="rd.lvm.lv=fedora/swap rd.md=0 rd.dm=0 vconsole.keymap=us $( -x /usr/sbin/rhcrashkernel-param ] && /usr/sbin/rhcrashkernel-param || :) rd.luks=0 vconsole.font=latarcyrheb-sun16 rd.lvm.lv=fedora/root rhgb quiet"
[root@localhost /]# exit
exit
[root@localhost liveuser]# 

Hai commesso un typo qua

… hai copia-incollato il simbolo cancelletto. Riprova.

spero che stavolta sia tutto apposto…

[liveuser@localhost ~]$ su
[root@localhost liveuser]# blkid
/dev/sdb1: LABEL="FEDORA-LIVE" UUID="0819-5433" TYPE="vfat" 
/dev/loop0: TYPE="squashfs" 
/dev/loop1: TYPE="DM_snapshot_cow" 
/dev/loop2: TYPE="squashfs" 
/dev/loop3: LABEL="_Fedora-Live-Des" UUID="e48f57e7-199c-4837-9c5d-08c10250e6db" TYPE="ext4" 
/dev/sda1: LABEL="Riservato per il sistema" UUID="4EBE278FBE276F21" TYPE="ntfs" 
/dev/sda2: UUID="1AE82A57E82A3205" TYPE="ntfs" 
/dev/sda3: UUID="qn5NZ2-THxf-LOYB-VaNt-f84R-K9bk-pyfWkv" TYPE="LVM2_member" 
/dev/sda4: LABEL="Dati" UUID="78AE4C0A1E43061D" TYPE="ntfs" 
/dev/mapper/fedora-root: UUID="57f6b844-6b7c-48f7-948b-7ca1aebd0017" TYPE="ext4" 
/dev/mapper/fedora-swap: UUID="6d1156bf-de71-401d-823a-218829dd9395" TYPE="swap" 
/dev/mapper/live-rw: LABEL="_Fedora-Live-Des" UUID="e48f57e7-199c-4837-9c5d-08c10250e6db" TYPE="ext4" 
/dev/mapper/live-osimg-min: LABEL="_Fedora-Live-Des" UUID="e48f57e7-199c-4837-9c5d-08c10250e6db" TYPE="ext4" 
[root@localhost liveuser]# mkdir -p /media/rescue
[root@localhost liveuser]# mount /dev/mapper/fedora-root /media/rescue
[root@localhost liveuser]# ll /media/rescue/boot
total 77328
-rw-r--r--. 1 root root   131339 Nov  4 09:14 config-3.11.7-200.fc19.x86_64
-rw-r--r--. 1 root root   127669 Jun 11 15:46 config-3.9.5-301.fc19.x86_64
drwxr-xr-x. 4 root root     4096 Jun 27 13:13 efi
-rw-r--r--. 1 root root   178176 Sep 16 06:14 elf-memtest86+-4.20
drwxr-xr-x. 6 root root     4096 Nov 13 08:18 grub2
-rw-------. 1 root root 36628117 Nov 10 21:15 initramfs-0-rescue-7725dfc225d14958a625ddaaaea5962b.img
-rw-------. 1 root root 10924582 Nov 11 02:42 initramfs-3.11.7-200.fc19.x86_64.img
-rw-------. 1 root root  9868973 Nov 10 21:13 initramfs-3.9.5-301.fc19.x86_64.img
-rw-r--r--. 1 root root   557674 Nov 11 02:41 initrd-plymouth.img
-rw-r--r--. 1 root root   176500 Sep 16 06:14 memtest86+-4.20
-rw-------. 1 root root  2688224 Nov  4 09:14 System.map-3.11.7-200.fc19.x86_64
-rw-------. 1 root root  2594764 Jun 11 15:46 System.map-3.9.5-301.fc19.x86_64
-rwxr-xr-x. 1 root root  5055896 Nov 10 21:15 vmlinuz-0-rescue-7725dfc225d14958a625ddaaaea5962b
-rwxr-xr-x. 1 root root  5149112 Nov  4 09:14 vmlinuz-3.11.7-200.fc19.x86_64
-rwxr-xr-x. 1 root root  5055896 Jun 11 15:46 vmlinuz-3.9.5-301.fc19.x86_64
[root@localhost liveuser]# ll /media/rescue/etc/fstab
-rw-rw-r--. 1 root root 371 Nov 10 21:12 /media/rescue/etc/fstab
[root@localhost liveuser]# for i in {/dev/,/dev/pts/,/proc/,/sys/}; do mount -o bind "$i" "/media/rescue$i"; done
[root@localhost liveuser]# chroot /media/rescue
[root@localhost /]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub.cfg ...
  WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
  WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
Found linux image: /boot/vmlinuz-3.11.7-200.fc19.x86_64
Found initrd image: /boot/initramfs-3.11.7-200.fc19.x86_64.img
  WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
  WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
  WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
  WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
  WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
  WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
  WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
  WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
Found linux image: /boot/vmlinuz-3.9.5-301.fc19.x86_64
Found initrd image: /boot/initramfs-3.9.5-301.fc19.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-7725dfc225d14958a625ddaaaea5962b
Found initrd image: /boot/initramfs-0-rescue-7725dfc225d14958a625ddaaaea5962b.img
  WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
  WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
umount: /var/lib/os-prober/mount: target is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
rmdir: failed to remove '/var/lib/os-prober/mount': Device or resource busy
umount: /var/lib/os-prober/mount: target is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
rmdir: failed to remove '/var/lib/os-prober/mount': Device or resource busy

con questo comando grub2-mkconfig -o /boot/grub2/grub.cfg e rimasto bloccato perche la risorsa e occupata e quindi non ho potuto eseguire gli ultimi due comandi.

ps. sto usando la live cd

Se il file /etc/default/grub della Fedora installata era stato già opportunamente modificato, dovrebbe bastare. Se non basta/non avevi provveduto a ripristinare il corretto /etc/default/grub, vediamo

[code]# mkdir -p /media/rescue

mount /dev/mapper/fedora-root /media/rescue

cat /media/rescue/etc/fstab

cat /media/rescue/etc/default/grub[/code]

ecco a te

[liveuser@localhost ~]$ su
[root@localhost liveuser]# mkdir -p /media/rescue
[root@localhost liveuser]# mount /dev/mapper/fedora-root /media/rescue
[root@localhost liveuser]# cat /media/rescue/etc/fstab

#
# /etc/fstab
# Created by anaconda on Sun Nov 10 21:12:37 2013
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/fedora-root /                       ext4    defaults        1 1
/dev/mapper/fedora-swap swap                    swap    defaults        0 0
[root@localhost liveuser]# cat /media/rescue/etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rd.lvm.lv=fedora/swap rd.md=0 rd.dm=0 vconsole.keymap=us $( -x /usr/sbin/rhcrashkernel-param ] && /usr/sbin/rhcrashkernel-param || :) rd.luks=0 vconsole.font=latarcyrheb-sun16 rd.lvm.lv=fedora/root rhgb quiet"
GRUB_DISABLE_RECOVERY="true"

[root@localhost liveuser]#

Quali sono le modifiche che avevi apportato al file /etc/default/grub?
Riporta anche (da live)

# efibootmgr -v
# mkdir -p /media/rescue
# mount /dev/mapper/fedora-root /media/rescue
# ll /media/rescue/boot/grub2/grub.cfg
# for i in {/dev/,/run/,/proc/,/sys/}; do mount -o bind "$i" "/media/rescue$i"; done
# chroot /media/rescue
# yum --setopt=history_list_view=cmds history
# rpm -qa | grep kmod
# grub2-mkconfig -o /boot/grub2/grub.cfg

se si blocca, dai un ctrl+c quindi

[code]# ll /boot/grub2/grub.cfg

exit[/code]

di preciso non ricordo cosa ho modificato, si trattava di una cosa banale come il cambiamento di sfondo, ma di preciso non ricordo, comunque ecco tutto l output, come la volta prima si e bloccato all ultima istruzione

[code][root@localhost liveuser]# efibootmgr -v
Fatal: Couldn’t open either sysfs or procfs directories for accessing EFI variables.
Try ‘modprobe efivars’ as root.
[root@localhost liveuser]# mkdir -p /media/rescue
[root@localhost liveuser]# mount /dev/mapper/fedora-root /media/rescue
[root@localhost liveuser]# ll /media/rescue/boot/grub2/grub.cfg
-rw-------. 1 root root 5035 Nov 12 10:40 /media/rescue/boot/grub2/grub.cfg
[root@localhost liveuser]# for i in {/dev/,/run/,/proc/,/sys/}; do mount -o bind “$i” “/media/rescue$i”; done
[root@localhost liveuser]# chroot /media/rescue
[root@localhost /]# yum --setopt=history_list_view=cmds history
Loaded plugins: langpacks, refresh-packagekit
ID | Command line | Date and time | Action(s) | Altered

18 | install powertop         | 2013-11-12 09:38 | Install        |    1   
17 | update                   | 2013-11-12 09:03 | Update         |    5   
16 | install beesu            | 2013-11-11 21:34 | Install        |    1   
15 | install git              | 2013-11-11 21:33 | Install        |    4   
14 |                          | 2013-11-11 19:20 | Install        |    1   
13 |                          | 2013-11-11 18:59 | Install        |    2 EE
12 | install lm_sensors       | 2013-11-11 18:28 | Install        |    2   
11 | install kmod-catalyst.x8 | 2013-11-11 17:13 | Install        |    4   
10 |                          | 2013-11-11 16:43 | Install        |    9  <
 9 | install vlc              | 2013-11-11 15:35 | Install        |   23 > 
 8 | upgrade                  | 2013-11-11 15:32 | Install        |   46   
 7 | localinstall --nogpgchec | 2013-11-11 15:29 | Install        |    2   
 6 |                          | 2013-11-11 13:50 | Install        |    1   
 5 | install gnome-tweak-tool | 2013-11-11 10:30 | Install        |    3   
 4 |                          | 2013-11-11 10:27 | Install        |   98 EE
 3 | install gparted          | 2013-11-11 08:50 | Install        |    2   
 2 | update                   | 2013-11-11 08:23 | I, O, U        |  581 EE
 1 |                          | 2013-06-27 19:11 | Install        | 1187   

history list
[root@localhost /]# rpm -qa | grep kmod
kmod-14-1.fc19.x86_64
kmod-libs-14-1.fc19.x86_64
kmod-catalyst-13.9-2.fc19.5.x86_64
kmod-catalyst-3.11.7-200.fc19.x86_64-13.9-2.fc19.5.x86_64
[root@localhost /]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub.cfg …
Found linux image: /boot/vmlinuz-3.11.7-200.fc19.x86_64
Found initrd image: /boot/initramfs-3.11.7-200.fc19.x86_64.img
Found linux image: /boot/vmlinuz-3.9.5-301.fc19.x86_64
Found initrd image: /boot/initramfs-3.9.5-301.fc19.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-7725dfc225d14958a625ddaaaea5962b
Found initrd image: /boot/initramfs-0-rescue-7725dfc225d14958a625ddaaaea5962b.img
umount: /var/lib/os-prober/mount: target is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
rmdir: failed to remove ‘/var/lib/os-prober/mount’: Device or resource busy
umount: /var/lib/os-prober/mount: target is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
rmdir: failed to remove ‘/var/lib/os-prober/mount’: Device or resource busy
^C
[root@localhost /]# ll /boot/grub2/grub.cfg
-rw-------. 1 root root 5035 Nov 12 16:40 /boot/grub2/grub.cfg
[root@localhost /]# exit
exit
[root@localhost liveuser]#
[/code]

Riproviamo, dalla live:

[code]

uname -r

mkdir -p /media/rescue

mount /dev/mapper/fedora-root /media/rescue

for i in {/dev/,/run/,/proc/,/sys/}; do mount -o bind “$i” “/media/rescue$i”; done

chroot /media/rescue

umount /var/lib/os-prober/mount

grub2-mkconfig -o /boot/grub2/grub.cfg[/code]

Se si blocca, dai un ctrl+c , quindi

[code]# umount /var/lib/os-prober/mount

grub2-mkconfig -o /boot/grub2/grub.cfg

ll /boot/grub2/grub.cfg[/code]

ecco tutto l-output, e come al solito si e bloccato nell ultima istruzione del primo blocco del post 28

[liveuser@localhost ~]$ su [root@localhost liveuser]# uname -r 3.9.5-301.fc19.x86_64 [root@localhost liveuser]# mkdir -p /media/rescue [root@localhost liveuser]# mount /dev/mapper/fedora-root /media/rescue [root@localhost liveuser]# for i in {/dev/,/run/,/proc/,/sys/}; do mount -o bind "$i" "/media/rescue$i"; done [root@localhost liveuser]# chroot /media/rescue [root@localhost /]# umount /var/lib/os-prober/mount umount: /var/lib/os-prober/mount: not mounted [root@localhost /]# grub2-mkconfig -o /boot/grub2/grub.cfg Generating grub.cfg ... Found linux image: /boot/vmlinuz-3.11.7-200.fc19.x86_64 Found initrd image: /boot/initramfs-3.11.7-200.fc19.x86_64.img Found linux image: /boot/vmlinuz-3.9.5-301.fc19.x86_64 Found initrd image: /boot/initramfs-3.9.5-301.fc19.x86_64.img Found linux image: /boot/vmlinuz-0-rescue-7725dfc225d14958a625ddaaaea5962b Found initrd image: /boot/initramfs-0-rescue-7725dfc225d14958a625ddaaaea5962b.img umount: /var/lib/os-prober/mount: target is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1)) rmdir: failed to remove '/var/lib/os-prober/mount': Device or resource busy umount: /var/lib/os-prober/mount: target is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1)) rmdir: failed to remove '/var/lib/os-prober/mount': Device or resource busy umount: /var/lib/os-prober/mount: target is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1)) rmdir: failed to remove '/var/lib/os-prober/mount': Device or resource busy ^C [root@localhost /]# umount /var/lib/os-prober/mount [root@localhost /]# grub2-mkconfig -o /boot/grub2/grub.cfg Generating grub.cfg ... Found linux image: /boot/vmlinuz-3.11.7-200.fc19.x86_64 Found initrd image: /boot/initramfs-3.11.7-200.fc19.x86_64.img Found linux image: /boot/vmlinuz-3.9.5-301.fc19.x86_64 Found initrd image: /boot/initramfs-3.9.5-301.fc19.x86_64.img Found linux image: /boot/vmlinuz-0-rescue-7725dfc225d14958a625ddaaaea5962b Found initrd image: /boot/initramfs-0-rescue-7725dfc225d14958a625ddaaaea5962b.img rmdir: failed to remove '/var/lib/os-prober/mount': Device or resource busy done [root@localhost /]# ll /boot/grub2/grub.cfg -rw-------. 1 root root 4535 Nov 29 14:40 /boot/grub2/grub.cfg [root@localhost /]#

nell immagine allegata ce un errore mentro eseguo l ultima istruzione del primo blocco del post 28

http://www.imagestime.com/show.php/902849_Screenshotfrom20131129083911.png.htmlhttp://s10.imagestime.com/out.php/i902849_Screenshotfrom20131129083911.png

Alla fine ha terminato con

[quote] ...] done [root@localhost /]# ll /boot/grub2/grub.cfg -rw-------. 1 root root 4535 Nov 29 14:40 /boot/grub2/grub.cfg [root@localhost /][/quote]; il messaggio di errore può essere ignorato.
Al riavvio stai usando senz’altro il grub.cfg appena generato.