gnome shell 崩溃

分享于 

3分钟阅读

ubuntu

  繁體



fsck

首先检查你的文件系统。

  • 以Ubuntu Live dvd usb "Try Ubuntu"模式启动
  • terminal键打开Ctrl+Alt+T窗口
  • 类型sudo fdisk -l
  • 为你的"Linux文件系统标识/dev/sdXX设备名称"
  • 类型 sudo fsck -f /dev/sdXX 用之前找到的号码替换sdXX
  • 如果出现错误,请重复fsck命令
  • 敲入reboot
  • NCQ

    然后我们修复NCQ错误。

    编辑 sudo -H gedit /etc/default/grub ,并更改以下行以包含此额外参数,然后执行sudo update-grub将更改写入磁盘,重新引导,监视器挂起,并监视/var/log/syslogdmesg继续错误消息。

    
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash libata.force=noncq"
    
    
    
    

    坏块

    以"Try Ubuntu"模式启动到Ubuntu Live DVD/USB。

    terminal

    sudo fdisk -l #标识所有"Linux文件系统"分区

    sudo e2fsck -fcky /dev/sdXX #只读测试

    或者

    sudo e2fsck -fccky /dev/sdXX #无损读写测试(推荐)

    -k很重要,因为它保存了以前的坏块表,并将新的坏块添加到该表,

    -fccky参数。

    
     -f Force checking even if the file system seems clean.
    
    
    
     -c This option causes e2fsck to use badblocks(8) program to do
    
    
     a read-only scan of the device in order to find any bad blocks.
    
    
     If any bad blocks are found, they are added to the bad block
    
    
     inode to prevent them from being allocated to a file or direc‐
    
    
     tory. If this option is specified twice, then the bad block scan
    
    
     will be done using a non-destructive read-write test.
    
    
    
     -k When combined with the -c option, any existing bad blocks in the
    
    
     bad blocks list are preserved, and any new bad blocks found by
    
    
     running badblocks(8) will be added to the existing bad blocks
    
    
     list.
    
    
    
     -y Assume an answer of `yes' to all questions; allows e2fsck to be
    
    
     used non-interactively. This option may not be specified at the
    
    
     same time as the -n or -p options.
    
    
    
    


    BOO  引导  Shell  Gnome  Gnome Shell  
    相关文章