Se eu posso rodar grub no cli, isso significa que meu pc ainda irá inicializar quando eu reiniciar?

0

Eu executei grub , que funciona bem e grub-emu , que retorna isso:

error: no suitable video mode found.
error: sparse file not allowed.
error: can't find command 'linux'.
error: can't find command 'initrd'.

Press any key to continue...
Failed to boot both default and fallback entries.

E depois mostra:

Issosignificaqueareinicializaçãofuncionará?

Acabeideatualizarogrubporacidente(tentandocorrigirumproblemasemanalemqueomeudiscoraiz torna-se somente leitura ) e estou preocupado que, se eu reiniciar meu servidor, ele não inicializará novamente (qualquer maneira de confirmar ou negar isso)?

update-grub retorna:

Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-3.16.0-70-generic.efi.signed
Found kernel: /boot/vmlinuz-3.16.0-70-generic
Found kernel: /boot/vmlinuz-3.16.0-37-generic.efi.signed
Found kernel: /boot/vmlinuz-3.16.0-37-generic
Found kernel: /boot/vmlinuz-3.13.0-85-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

grub-install --recheck /dev/sdc1 retorna:

The file /boot/grub/stage1 not read correctly.

Ao executar cat /boot/grub/grub.cfg | grep "UUID"

linux   /boot/vmlinuz-3.16.0-70-generic root=UUID=f674c348-4bad-44fa-a71b-0410f9f42895 ro  quiet splash nomdmonddf nomdmonisw $vt_handoff
    linux   /boot/vmlinuz-3.16.0-70-generic root=UUID=f674c348-4bad-44fa-a71b-0410f9f42895 ro  quiet splash nomdmonddf nomdmonisw $vt_handoff
    linux   /boot/vmlinuz-3.16.0-70-generic root=UUID=f674c348-4bad-44fa-a71b-0410f9f42895 ro recovery nomodeset 
    linux   /boot/vmlinuz-3.16.0-37-generic root=UUID=f674c348-4bad-44fa-a71b-0410f9f42895 ro  quiet splash nomdmonddf nomdmonisw $vt_handoff
    linux   /boot/vmlinuz-3.16.0-37-generic root=UUID=f674c348-4bad-44fa-a71b-0410f9f42895 ro recovery nomodeset 
    linux   /boot/vmlinuz-3.13.0-85-generic root=UUID=f674c348-4bad-44fa-a71b-0410f9f42895 ro  quiet splash nomdmonddf nomdmonisw $vt_handoff
    linux   /boot/vmlinuz-3.13.0-85-generic root=UUID=f674c348-4bad-44fa-a71b-0410f9f42895 ro recovery nomodeset

Ao executar cat /etc/fstab :

UUID=f674c348-4bad-44fa-a71b-0410f9f42895 / ext4 defaults 0 1
UUID="58E0160571D68CEC" /RAID   ntfs-3g nobootwait,permissions,locale=en_US.utf8,allow_other

Ao executar cat /etc/mtab :

/dev/sdc1 / ext4 rw 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
sysfs /sys sysfs rw,noexec,nosuid,nodev 0 0
none /sys/fs/cgroup tmpfs rw 0 0
none /sys/fs/fuse/connections fusectl rw 0 0
none /sys/kernel/debug debugfs rw 0 0
none /sys/kernel/security securityfs rw 0 0
udev /dev devtmpfs rw,mode=0755 0 0
devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=0620 0 0
tmpfs /run tmpfs rw,noexec,nosuid,size=10%,mode=0755 0 0
none /run/lock tmpfs rw,noexec,nosuid,nodev,size=5242880 0 0
none /run/shm tmpfs rw,nosuid,nodev 0 0
none /run/user tmpfs rw,noexec,nosuid,nodev,size=104857600,mode=0755 0 0
none /sys/fs/pstore pstore rw 0 0
cgroup /sys/fs/cgroup/cpuset cgroup rw,relatime,cpuset 0 0
cgroup /sys/fs/cgroup/cpu cgroup rw,relatime,cpu 0 0
cgroup /sys/fs/cgroup/cpuacct cgroup rw,relatime,cpuacct 0 0
cgroup /sys/fs/cgroup/memory cgroup rw,relatime,memory 0 0
cgroup /sys/fs/cgroup/devices cgroup rw,relatime,devices 0 0
cgroup /sys/fs/cgroup/freezer cgroup rw,relatime,freezer 0 0
cgroup /sys/fs/cgroup/net_cls cgroup rw,relatime,net_cls 0 0
cgroup /sys/fs/cgroup/blkio cgroup rw,relatime,blkio 0 0
cgroup /sys/fs/cgroup/perf_event cgroup rw,relatime,perf_event 0 0
cgroup /sys/fs/cgroup/net_prio cgroup rw,relatime,net_prio 0 0
cgroup /sys/fs/cgroup/hugetlb cgroup rw,relatime,hugetlb 0 0
/dev/md0 /RAID fuseblk rw,nosuid,nodev,allow_other,allow_other,default_permissions,blksize=4096 0 0
rpc_pipefs /run/rpc_pipefs rpc_pipefs rw 0 0
systemd /sys/fs/cgroup/systemd cgroup rw,noexec,nosuid,nodev,none,name=systemd 0 0
nfsd /proc/fs/nfsd nfsd rw 0 0

Quando eu corro df -h :

udev            3.9G   12K  3.9G   1% /dev
tmpfs           793M  1.1M  792M   1% /run
/dev/sdc1       235G   41G  183G  19% /
none            4.0K     0  4.0K   0% /sys/fs/cgroup
none            5.0M     0  5.0M   0% /run/lock
none            3.9G     0  3.9G   0% /run/shm
none            100M     0  100M   0% /run/user
/dev/md0        3.7T  484G  3.2T  13% /RAID

Quando eu corro file -a /dev/sdc1

/dev/sdc1: Linux rev 1.0 ext4 filesystem data, UUID=f674c348-4bad-44fa-a71b-0410f9f42895 (needs journal recovery) (extents) (large files) (huge files)

Quando eu corro tune2fs -l /dev/sdc1

tune2fs 1.42.9 (4-Feb-2014)
Filesystem volume name:   <none>
Last mounted on:          /
Filesystem UUID:          f674c348-4bad-44fa-a71b-0410f9f42895
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags:         signed_directory_hash 
Default mount options:    user_xattr acl
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              15630336
Block count:              62512923
Reserved block count:     3125646
Free blocks:              50951852
Free inodes:              14591779
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      1009
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
Flex block group size:    16
Filesystem created:       Sat Apr 30 12:13:53 2016
Last mount time:          Thu Mar  2 20:08:35 2017
Last write time:          Thu Mar  2 20:08:35 2017
Mount count:              78
Maximum mount count:      -1
Last checked:             Mon Sep 12 16:42:10 2016
Check interval:           0 (<none>)
Lifetime writes:          593 GB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:           256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
First orphan inode:       11534988
Default directory hash:   half_md4
Directory Hash Seed:      186a9bb7-e178-4c33-bfc9-e4661661ee50
Journal backup:           inode blocks

Quando eu corro cat /boot/grub/device.map :

(fd0)   /dev/fd0
(hd0)   /dev/sda
(hd1)   /dev/sdb
(hd2)   /dev/sdc
(hd3)   /dev/sdd

No grub:

grub> root (hd0,0)
root (hd0,0)
grub> root (hd1,0)                
root (hd1,0)
grub> root (hd2,0)    
root (hd2,0)
grub> root (hd3,0)
root (hd3,0)
grub> root (hd4,0)
root (hd4,0)

Error 21: Selected disk does not exist
grub> 

Por favor, tenha em mente que estou a 200 milhas de distância deste servidor em casa.

    
por maxisme 02.03.2017 / 23:50

0 respostas

Tags