解决硬盘挂载报错:
mount: unknown filesystem type 'LVM2_member'
mount: you must specify the filesystem type
[root@renwole-com ~]# fdisk -l Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000a9411 Device Boot Start End Blocks Id System /dev/sda1 * 1 26 204800 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 26 6553 52428800 83 Linux /dev/sda3 6553 7075 4194304 82 Linux swap / Solaris /dev/sda4 7075 60802 431557656 5 Extended /dev/sda5 7076 60802 431556608 83 Linux Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xa154a154 Device Boot Start End Blocks Id System /dev/sdb1 * 1 64 512000 83 Linux Partition 1 does not end on cylinder boundary. /dev/sdb2 64 60802 487873536 8e Linux LVM Disk /dev/mapper/VolGroup-lv_root: 53.7 GB, 53687091200 bytes 255 heads, 63 sectors/track, 6527 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/mapper/VolGroup-lv_home: 441.8 GB, 441765068800 bytes 255 heads, 63 sectors/track, 53708 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 ...
说明:红色部分是以前系统坏的老盘。
安装 lvm2:
[root@renwole-com ~]# yum install lvm2 -y
查看物理卷:
[root@renwole-com ~]# pvs PV VG Fmt Attr PSize PFree /dev/sdb2 VolGroup lvm2 a--u 465.27g 0
查看卷组:
[root@renwole-com ~]# lvdisplay --- Logical volume --- LV Path /dev/VolGroup/lv_root LV Name lv_root VG Name VolGroup LV UUID 3Y5UYD-x0H9-F25h-foUz-rm0O-cgzl-pE8FbF LV Write Access read/write LV Creation host, time localhost.localdomain, 2015-07-20 17:29:35 +0800 LV Status available # open 0 LV Size 50.00 GiB Current LE 12800 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:0 --- Logical volume --- LV Path /dev/VolGroup/lv_home LV Name lv_home VG Name VolGroup LV UUID Eu7UKx-LPkM-RDQ6-ACym-KOOW-t2RC-oVq0Zn LV Write Access read/write LV Creation host, time localhost.localdomain, 2015-07-20 17:29:56 +0800 LV Status available # open 1 LV Size 411.43 GiB Current LE 105325 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:1 --- Logical volume --- LV Path /dev/VolGroup/lv_swap LV Name lv_swap VG Name VolGroup LV UUID PBkdrg-lhsO-vkde-RvC0-ryUh-p0pf-aMnBds LV Write Access read/write LV Creation host, time localhost.localdomain, 2015-07-20 17:32:40 +0800 LV Status available # open 0 LV Size 3.84 GiB Current LE 984 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:2
激活卷组:
[root@renwole-com ~]# vgchange -ay /dev/VolGroup 3 logical volume(s) in volume group "VolGroup" now active
挂载硬盘:
[root@renwole-com ~]# mount /dev/VolGroup/lv_home /apps/
/apps是我新建的目录。
查看挂载情况:
[root@renwole-com ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 50G 2.1G 45G 5% / tmpfs 3.9G 0 3.9G 0% /dev/shm /dev/sda1 194M 34M 151M 19% /boot /dev/sda5 406G 199M 385G 1% /home /dev/mapper/VolGroup-lv_home 405G 199M 385G 1% /apps
进入apps目录一看,哇;数据还在,可喜可贺呀。
另外:如果挂载报错:
mount: you must specify the filesystem type
可以使用以下方法查看磁盘格式类型,然后加参数 -t
指定格式挂载即可。
相关推荐
BackTrack5提示error-unknown filesystem怎么办.docx
win10环境下,通过cmake3.22.5和VS2015编译生成的gtsam库,内含eigen-3.4.0和boost1.74.0第三方库和头文件。
FileSystem, USB: Changed variant selection to "MDK-Plus". Updated Graphics examples to use Segger emWin version 5.50. CMSIS Driver: CAN: Corrected SetBitrate function to leave Silent and Loopback ...
mount: you must specify the filesystem type 先执行:mkfs.ext3 /dev/vdb # mkfs.ext3 /dev/vdb mke2fs 1.41.12 (17-May-2010) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 ...
FTP客户端实现上传下载功能: 该代码文件是在vs2010下编译并运行,使用者安装...2.boost::filesystem::create_directory不能递归创建文件夹,需手动实现; 3.支持文件夹先打包压缩再上传功能(m_bZibFlag控制是否压缩)
ShieldTV刷机系统文件,Tegra_Linux_Sample-Root-Filesystem_R24.2.1_aarch64.tbz2。 来自于Jetpack3.0的系统样本文件,包含系统根目录
离线安装包,亲测可用
working with fat jn stm32 russian translation book "mastering stm32"
本文档介绍了如何在LINUX下用NAND FLASH实现YAFFS文件系统的流程.
c++ 17 std::filesystem for c++ 11 / c++ 14/ c++ 17/ c++ 20 on Windows, macOS, Linux和FreeBSD的实现。- gulrak /文件系统-源码
./make_ext4fs [filesystem] [output_file] [-S binary_policy -f spec_file -a mount_point] [-b block_size] [-O feature] [-l image_size] [-L volume_label] 参数说明: filesystem_dir:文件系统路径。 output...
ozone 文件系统的介绍和使用场景概要
安装# npmnpm i -g autarky# yarnyarn global add autarky用法$ > autarky为什么自给自足在当今世界,存储比计算要昂贵。 大多数开发人员使用MacBook,遗憾的是MacBook的存储空间非常低(适用于基本型号)。...
官方离线安装包,亲测可用
人偶LVM模块提供用于Puppet的逻辑资源管理(LVM)功能。使用范例该模块提供了四种资源类型(和相关的提供程序): volume_group , logical_volume , physical_volume和filesystem 。 定义工作逻辑卷所需的基本依赖...
Boost FileSystem demo
PHP file operations example on premise autonomous
dvk udcbds udb suefcs dcsdr
FileSystem_1.0_1_20221201(1).apk.1