<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[[实践发现]yum update -y 升级到centos7.5后mkfs.ext4突然没了，Raspberry Pi挂载NTFS磁盘。]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Unix/LinuxC技术]]></category>
<pubDate>Thu, 31 May 2018 10:17:05 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	mkfs.ext4 经yum update的升级到CentOS7.5后没了mkfs.ext4，于是 得安装：<br/>安装https://mirrors.aliyun.com/centos/7.5.1804/os/x86_64/Packages/e2fsprogs-1.42.9-11.el7.x86_64.rpm这个包<br/><br/>[root@iZ889v050nrZ:~]<br/>#cat /etc/redhat-release <br/>CentOS Linux release 7.5.1804 (Core) <br/><br/>[root@iZ889v050nrZ:~]<br/>#rpm -qf /sbin/mkfs.ext4<br/>e2fsprogs-1.42.9-11.el7.x86_64<br/><br/><br/>===========Raspberry挂载NTFS磁盘=====================<br/><br/>[root@mainboard_virtualbox_docker_10_10_0_106:~]<br/>#ssh -l pi 10.10.0.38<br/><br/><br/>fdisk -l<br/>mkfs.ext4 -T largefile4 -n /dev/sda<br/>mkfs.ext4 -T largefile4 -n /dev/sdb<br/><br/><br/>root@raspberrypi:~# dmesg &#124;tail<br/>[ 2296.301317]&nbsp;&nbsp;sdb: sdb1 sdb2<br/>[ 2334.288011] F2FS-fs (sda): Magic Mismatch, valid(0xf2f52010) - read(0xe3c9e316)<br/>[ 2334.288031] F2FS-fs (sda): Can&#039;t find valid F2FS filesystem in 1th superblock<br/>[ 2334.288912] F2FS-fs (sda): Magic Mismatch, valid(0xf2f52010) - read(0x0)<br/>[ 2334.288926] F2FS-fs (sda): Can&#039;t find valid F2FS filesystem in 2th superblock<br/>[ 2334.288980] F2FS-fs (sda): Magic Mismatch, valid(0xf2f52010) - read(0xe3c9e316)<br/>[ 2334.288988] F2FS-fs (sda): Can&#039;t find valid F2FS filesystem in 1th superblock<br/>[ 2334.288998] F2FS-fs (sda): Magic Mismatch, valid(0xf2f52010) - read(0x0)<br/>[ 2334.289006] F2FS-fs (sda): Can&#039;t find valid F2FS filesystem in 2th superblock<br/>[ 2512.016847] EXT4-fs (sda): VFS: Can&#039;t find ext4 filesystem<br/><br/>mkfs.ext3 -T largefile4 -n /dev/sda<br/>mkfs.ext3 -T largefile4 -n /dev/sdb <br/><br/><br/>mount -t ext3&nbsp;&nbsp;/dev/sda /data0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>mount -t ext3&nbsp;&nbsp;/dev/sdb /data1&nbsp;&nbsp; <br/><br/><br/>mount -t ntfs-3g /dev/sda /data0&nbsp;&nbsp; <br/>mount: unknown filesystem type &#039;ntfs-3g&#039;<br/><br/><br/>&nbsp;&nbsp; sudo apt-get install ntfs-3g&nbsp;&nbsp; #From:https://www.cnblogs.com/-jimmy-/p/6986010.html<br/><br/>源不行，看末尾成功加清华源,且要注意版本（E: The repository &#039;http://archive.raspbian.org/raspbian wheezy Release&#039; does no longer have a Release file.）：<br/><a href="https://blog.csdn.net/qq_35586327/article/details/94597760?utm_medium=distribute.pc_aggpage_search_result.none-task-blog-2~all~first_rank_v2~rank_v25-3-94597760.nonecase&amp;utm_term=%E6%A0%91%E8%8E%93%E6%B4%BE%E6%B2%A1%E6%9C%89release%E6%96%87%E4%BB%B6" target="_blank">https://blog.csdn.net/qq_35586327/article/details/94597760?utm_medium=distribute.pc_aggpage_search_result.none-task-blog-2~all~first_rank_v2~rank_v25-3-94597760.nonecase&amp;utm_term=%E6%A0%91%E8%8E%93%E6%B4%BE%E6%B2%A1%E6%9C%89release%E6%96%87%E4%BB%B6</a><br/><br/>mainboard_virtualbox_docker_10_10_0_106 (1) 跳板登录：<br/>root@raspberrypi:~#&nbsp;&nbsp;&nbsp;&nbsp;sudo apt-get install ntfs-3g --fix-missing&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>Reading package lists... Done<br/>Building dependency tree&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br/>Reading state information... Done<br/>The following additional packages will be installed:<br/>&nbsp;&nbsp;libntfs-3g871<br/>The following NEW packages will be installed:<br/>&nbsp;&nbsp;libntfs-3g871 ntfs-3g<br/>0 upgraded, 2 newly installed, 0 to remove and 309 not upgraded.<br/>Need to get 540 kB of archives.<br/>After this operation, 1,665 kB of additional disk space will be used.<br/>Do you want to continue? [Y/n] Y<br/>Get:1 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main armhf libntfs-3g871 armhf 1:2016.2.22AR.1+dfsg-1+deb9u1 [165 kB]<br/>Get:2 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main armhf ntfs-3g armhf 1:2016.2.22AR.1+dfsg-1+deb9u1 [375 kB]<br/>Fetched 540 kB in 0s (1,628 kB/s)<br/>Selecting previously unselected package libntfs-3g871.<br/>(Reading database ... 127338 files and directories currently installed.)<br/>Preparing to unpack .../libntfs-3g871_1%3a2016.2.22AR.1+dfsg-1+deb9u1_armhf.deb ...<br/>Unpacking libntfs-3g871 (1:2016.2.22AR.1+dfsg-1+deb9u1) ...<br/>Selecting previously unselected package ntfs-3g.<br/>Preparing to unpack .../ntfs-3g_1%3a2016.2.22AR.1+dfsg-1+deb9u1_armhf.deb ...<br/>Unpacking ntfs-3g (1:2016.2.22AR.1+dfsg-1+deb9u1) ...<br/>Processing triggers for initramfs-tools (0.130) ...<br/>Processing triggers for libc-bin (2.24-11+deb9u3) ...<br/>Processing triggers for man-db (2.7.6.1-2) ...<br/>Setting up libntfs-3g871 (1:2016.2.22AR.1+dfsg-1+deb9u1) ...<br/>Setting up ntfs-3g (1:2016.2.22AR.1+dfsg-1+deb9u1) ...<br/>Processing triggers for libc-bin (2.24-11+deb9u3) ...<br/>Processing triggers for initramfs-tools (0.130) ...<br/>root@raspberrypi:~# <br/><br/>b<br/>The value &#039;&#92;stable&#039; is invalid for APT::Default-Release as such a release is not available in the sources<br/>rm -rf /etc/apt/apt.conf.d/10defaultRelease<br/><br/>E: Unable to correct problems, you have held broken packages.<br/>解决方案是先upgrade后update：<br/>$ sudo apt-get upgrade<br/>$ sudo apt-get update<br/><br/><br/>源的问题：<br/><textarea name="code" class="php" rows="15" cols="100">
1.编辑sources.list文件;

命令：sudo vim /etc/apt/sources.list

2.注释掉已配置好的raspberry官方镜像，使用#号注释(或直接删除，哈哈)

3.添加清华源镜像：

deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi

deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
4.修改raspi.list文件：

sudo vim /etc/apt/sources.list.d/raspi.list

5.注释掉原内容，并以以下内容替换：

deb http://mirror.tuna.tsinghua.edu.cn/raspberrypi/ stretch main ui

deb-src http://mirror.tuna.tsinghua.edu.cn/raspberrypi/ stretch main ui

6.测试：

sudo apt-get update 

sudo apt-get upgrade
</textarea><br/><br/>
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [实践发现]yum update -y 升级到centos7.5后mkfs.ext4突然没了，Raspberry Pi挂载NTFS磁盘。]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>