Ubuntu 12.04 SSD根频繁随机只读文件系统

我真的需要你的帮助。 我的戴尔Inspiron 1545配备8GB内存和Sandisk Extreme 240GB SSD。 磁盘分为三个分区,/ root,/ swap – 8GB,/ home

BLKID:

/dev/sda1: UUID="7cd24cc2-ad1a-4601-944a-b958c002c09b" TYPE="ext4" /dev/sda3: UUID="2cce638f-c3fd-44e8-8787-e2df10f7b593" TYPE="ext4" /dev/sda5: UUID="27fa814e-c4e8-4622-b115-bb1f3537971e" TYPE="swap" /dev/zram0: UUID="a286239a-f0bc-405d-b355-e4c8f7db29da" TYPE="swap" 

我一直有随机系统问题迫使我重新启动,当我这样做时,在启动时它会通过文件系统检查并要求我按f来修复错误。 我检查了驱动器的坏扇区和错误,它是干净的,以及SMART报告,并没有看到任何问题。 我重新安装了操作系统,问题仍然存在。 它随机发生,有时在高磁盘使用期间或正常关机后发生。

在这里我的fstab,我已修改它希望它会有所帮助,但它没有太大变化:

 # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # #       proc /proc proc nodev,noexec,nosuid 0 0 # / was on /dev/sda1 during installation UUID=7cd24cc2-ad1a-4601-944a-b958c002c09b / ext4 discard,noat$ # /home was on /dev/sda3 during installation UUID=2cce638f-c3fd-44e8-8787-e2df10f7b593 /home ext4 discard,noat$ # swap was on /dev/sda5 during installation UUID=27fa814e-c4e8-4622-b115-bb1f3537971e none swap sw $ tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0 

我一直在谷歌搜索这个问题上周一半,仍然找不到解决方法。 有人说这个问题是由内核更新和ext4文件系统引起的。

uname -a:

 Linux juri-laptop 3.5.0-25-generic #39~precise1-Ubuntu SMP Tue Feb 26 00:11:13 UTC 2013 i686 i686 i386 GNU/Linux 

我不是Linux的专家,所以请对我的一些命令和报告温和。

提前谢谢你们。

尤里

编辑 – 更好的fstab副本

 # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # #       proc /proc proc nodev,noexec,nosuid 0 0 # / was on /dev/sda1 during installation UUID=7cd24cc2-ad1a-4601-944a-b958c002c09b / ext4 discard,noatime,nodiratime,errors=remount-ro 0 1 # /home was on /dev/sda3 during installation UUID=2cce638f-c3fd-44e8-8787-e2df10f7b593 /home ext4 discard,noatime,nodiratime,defaults 0 2 # swap was on /dev/sda5 during installation UUID=27fa814e-c4e8-4622-b115-bb1f3537971e none swap sw 0 0 tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0 

以下是我的dmesg日志的一些信息,希望这可能会对问题有所了解。 我在文件中搜索“错误”,这是我得到的:

 [ 4.167274] EXT4-fs warning (device sda1): ext4_clear_journal_err:4407: Filesystem error recorded from previous mount: IO failure [ 4.167278] EXT4-fs warning (device sda1): ext4_clear_journal_err:4408: Marking fs in need of filesystem check. [ 9.487927] EXT4-fs (sda1): re-mounted. Opts: discard,errors=remount-ro [ 24.081103] ERROR @wl_cfg80211_get_station : Could not get rate (-1) [ 24.081110] ERROR @wl_cfg80211_get_station : Could not get rssi (-1) [ 24.081115] ERROR @wl_cfg80211_get_station : Could not get rate (-1) [ 24.081117] ERROR @wl_cfg80211_get_station : Could not get rssi (-1) [ 24.081122] ERROR @wl_dev_intvar_get : error (-1) [ 24.081124] ERROR @wl_cfg80211_get_tx_power : error (-1) [ 42.749595] res 51/40:20:e8:68:5d/00:00:07:00:00/40 Emask 0x409 (media error)  [ 42.749600] ata1.00: error: { UNC } [ 42.770408] Sense Key : Medium Error [current] [descriptor] [ 42.770434] Add. Sense: Unrecovered read error - auto reallocate failed [ 42.770448] end_request: I/O error, dev sda, sector 123562216 

好的伙计们,好吧。 我认为它现在已经解决了,这要归功于数小时的谷歌搜索,测试和固执。

正如我上面提到的,我通过将我的内核升级到3.8.2来修复了只读文件系统问题,但随后它引起了我的wifi驱动程序的问题(Broadcom Corporation BCM4312 802.11b / g LP-PHY [14e4:4315]( rev 01))。 我无法使用wifi,因为它似乎是wl模块的问题。

不过,我发现这篇文章( http://www.mindwerks.net/2012/06/wireless-bcm4312-with-the-3-4-and-3-5-kernel/ ),这有助于我修复wifi问题。 所以我决定再给内核3.8.2尝试使用wifi修复它并且它有效。

总结一下:如果您只读过文件系统问题但没有任何工作,请检查您运行的是哪个版本的内核uname -a 。 如果低于3.8.2,则按照以下步骤升级到它:

我一直用于内核升级/降级的最简单的指令是由ubuntuforums.org用户提供的lykwydchykyn名称(我为此post修改了url):

 Go here: http://kernel.ubuntu.com/~kernel-ppa/mainline/ Download 3 (maybe 4) debs to a folder somewhere: linux-headers-VERSION-NUMBER_all.deb linux-headers-VERSION-NUMBER_amd64.deb linux-image-VERSION-NUMBER_amd64.deb linux-image-extra-VERSION-NUMBER_amd64.deb # if available Install the debs with whatever package manager front-end you use (is gdebi still around?), or use these commands: cd /path/to/folder/where/you/put/the/debs sudo dpkg -i *.deb 

资料来源: http : //ubuntuforums.org/showthread.php?p = 11391743#post11391743

如果升级内核后出现wifi问题。 然后尝试以下步骤:

 Download the 32 or 64-bit version: http://www.broadcom.com/support/802.11/linux_sta.php Download my patches: bc_wl_abiupdate.patch and switch_to.patch Extract the sources: cd ~/Downloads; mkdir -p wl; cd wl; tar xf ../hybrid-portsrc*.tar.gz Patch and compile the sources: patch -p0 src/wl/sys/wl_linux.c < ~/Downloads/switch_to.patch; patch -p0 src/wl/sys/wl_linux.c < ~/Downloads/bc_wl_abiupdate.patch; make; sudo make install; sudo depmod; sudo modprobe wl 

在加载“wl”内核模块后几秒钟给Ubuntu,然后最终网络管理器将开始寻找无线网络。

就是这样,应该有效。

祝大家好运。

如何更新Ubuntu,Linux Mint或基于Debian的内核

更新内核将帮助您修复安全漏洞,改进稳定性,更新驱动程序,新内核function以及提高速度。

找出你的内核版本

 # uname -r 

要么

 # cat /proc/version_signature 

或者在gui中使用gnome-system-monitor,在菜单中查找系统监视器并查看第一个选项卡System。

对于x86-64

下载包:

 $ wget -c kernel.ubuntu.com/~kernel-ppa/mainline/v3.13.1-trusty/linux-headers-3.13.1-031301_3.13.1-031301.201401291035_all.deb $ wget -c kernel.ubuntu.com/~kernel-ppa/mainline/v3.13.1-trusty/linux-headers-3.13.1-031301-generic_3.13.1-031301.201401291035_amd64.deb $ wget -c kernel.ubuntu.com/~kernel-ppa/mainline/v3.13.1-trusty/linux-image-3.13.1-031301-generic_3.13.1-031301.201401291035_amd64.deb 

安装内核3.13.1:

 # dpkg -i *.deb # update-grub # reboot