[实践发现]yum update -y 升级到centos7.5后mkfs.ext4突然没了,Raspberry Pi挂载NTFS磁盘。

jackxiang 2018-5-31 18:17 | |
mkfs.ext4 经yum update的升级到CentOS7.5后没了mkfs.ext4,于是 得安装:
安装https://mirrors.aliyun.com/centos/7.5.1804/os/x86_64/Packages/e2fsprogs-1.42.9-11.el7.x86_64.rpm这个包

[root@iZ889v050nrZ:~]
#cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)

[root@iZ889v050nrZ:~]
#rpm -qf /sbin/mkfs.ext4
e2fsprogs-1.42.9-11.el7.x86_64


===========Raspberry挂载NTFS磁盘=====================

[root@mainboard_virtualbox_docker_10_10_0_106:~]
#ssh -l pi 10.10.0.38


fdisk -l
mkfs.ext4 -T largefile4 -n /dev/sda
mkfs.ext4 -T largefile4 -n /dev/sdb


root@raspberrypi:~# dmesg |tail
[ 2296.301317]  sdb: sdb1 sdb2
[ 2334.288011] F2FS-fs (sda): Magic Mismatch, valid(0xf2f52010) - read(0xe3c9e316)
[ 2334.288031] F2FS-fs (sda): Can't find valid F2FS filesystem in 1th superblock
[ 2334.288912] F2FS-fs (sda): Magic Mismatch, valid(0xf2f52010) - read(0x0)
[ 2334.288926] F2FS-fs (sda): Can't find valid F2FS filesystem in 2th superblock
[ 2334.288980] F2FS-fs (sda): Magic Mismatch, valid(0xf2f52010) - read(0xe3c9e316)
[ 2334.288988] F2FS-fs (sda): Can't find valid F2FS filesystem in 1th superblock
[ 2334.288998] F2FS-fs (sda): Magic Mismatch, valid(0xf2f52010) - read(0x0)
[ 2334.289006] F2FS-fs (sda): Can't find valid F2FS filesystem in 2th superblock
[ 2512.016847] EXT4-fs (sda): VFS: Can't find ext4 filesystem

mkfs.ext3 -T largefile4 -n /dev/sda
mkfs.ext3 -T largefile4 -n /dev/sdb


mount -t ext3  /dev/sda /data0      
mount -t ext3  /dev/sdb /data1  


mount -t ntfs-3g /dev/sda /data0  
mount: unknown filesystem type 'ntfs-3g'


   sudo apt-get install ntfs-3g   #From:https://www.cnblogs.com/-jimmy-/p/6986010.html

源不行,看末尾成功加清华源,且要注意版本(E: The repository 'http://archive.raspbian.org/raspbian wheezy Release' does no longer have a Release file.):
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&utm_term=%E6%A0%91%E8%8E%93%E6%B4%BE%E6%B2%A1%E6%9C%89release%E6%96%87%E4%BB%B6

mainboard_virtualbox_docker_10_10_0_106 (1) 跳板登录:
root@raspberrypi:~#    sudo apt-get install ntfs-3g --fix-missing                                                                                  
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following additional packages will be installed:
  libntfs-3g871
The following NEW packages will be installed:
  libntfs-3g871 ntfs-3g
0 upgraded, 2 newly installed, 0 to remove and 309 not upgraded.
Need to get 540 kB of archives.
After this operation, 1,665 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
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]
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]
Fetched 540 kB in 0s (1,628 kB/s)
Selecting previously unselected package libntfs-3g871.
(Reading database ... 127338 files and directories currently installed.)
Preparing to unpack .../libntfs-3g871_1%3a2016.2.22AR.1+dfsg-1+deb9u1_armhf.deb ...
Unpacking libntfs-3g871 (1:2016.2.22AR.1+dfsg-1+deb9u1) ...
Selecting previously unselected package ntfs-3g.
Preparing to unpack .../ntfs-3g_1%3a2016.2.22AR.1+dfsg-1+deb9u1_armhf.deb ...
Unpacking ntfs-3g (1:2016.2.22AR.1+dfsg-1+deb9u1) ...
Processing triggers for initramfs-tools (0.130) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up libntfs-3g871 (1:2016.2.22AR.1+dfsg-1+deb9u1) ...
Setting up ntfs-3g (1:2016.2.22AR.1+dfsg-1+deb9u1) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for initramfs-tools (0.130) ...
root@raspberrypi:~#

b
The value '\stable' is invalid for APT::Default-Release as such a release is not available in the sources
rm -rf /etc/apt/apt.conf.d/10defaultRelease

E: Unable to correct problems, you have held broken packages.
解决方案是先upgrade后update:
$ sudo apt-get upgrade
$ sudo apt-get update


源的问题:


作者:jackxiang@向东博客 专注WEB应用 构架之美 --- 构架之美,在于尽态极妍 | 应用之美,在于药到病除
地址:http://jackxiang.com/post/9773/
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!


最后编辑: jackxiang 编辑于2020-9-4 02:38
评论列表
发表评论

昵称

网址

电邮

打开HTML 打开UBB 打开表情 隐藏 记住我 [登入] [注册]