在linux debian下挂载NTFS Raid0磁盘

在linux debian下挂载NTFS Raid0磁盘

在我的新笔记本电脑中,我有一个 RAID 0 配置,带有一个普通磁盘和一个较小的 SSD 驱动器。我已移除 DVD 托架,并用 256 GB SSD 驱动器替换 DVD 播放器,并在其中运行 Linux Debian。我已在基本配置中提供的 Windows 8.1 和 Debian Linux Jessie 之间配置了双启动。一切运行正常。但是我的 SSD 驱动器空间不足,我想在 Linux 下安装 RAID0 NTFS 磁盘。我的问题是我不完全确定如何操作

经过简短的调查后,我发出了以下命令

fdisk -l输出

Disk /dev/sda: 298.1 GiB, 320072933376 bytes, 625142448 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x6a17bc42

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1  *         2048 167774207 167772160    80G  7 HPFS/NTFS/exFAT
/dev/sda2       167774208 625135615 457361408 218.1G  7 HPFS/NTFS/exFAT

Disk /dev/sdc: 29.8 GiB, 32017047552 bytes, 62533296 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sdb: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0913cd0f

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sdb1            2048 472852479 472850432 225.5G 83 Linux
/dev/sdb2       472854526 488396799  15542274   7.4G  5 Extended
/dev/sdb5       472854528 488396799  15542272   7.4G 82 Linux swap/Solaris

lscpi-vv相关配置

00:1f.2 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode] (rev 04)
Subsystem: Hewlett-Packard Company Device 1993
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin B routed to IRQ 45
Region 0: I/O ports at 30a8 [size=8]
Region 1: I/O ports at 30b4 [size=4]
Region 2: I/O ports at 30a0 [size=8]
Region 3: I/O ports at 30b0 [size=4]
Region 4: I/O ports at 3060 [size=32]
Region 5: Memory at d073c000 (32-bit, non-prefetchable) [size=2K]
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
    Address: fee0c00c  Data: 4122
Capabilities: [70] Power Management version 3
    Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot+,D3cold-)
    Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [a8] SATA HBA v1.0 BAR4 Offset=00000004
Kernel driver in use: ahci

这是我的猫/ proc /分区输出

major minor  #blocks  name
8        0  312571224 sda
8       32   31266648 sdc
8       16  244198584 sdb
8       17  236425216 sdb1
8       21    7771136 sdb5

这是我的猫/proc/mdstat输出

Personalities : 
md126 : inactive sda[0](S)
      2128 blocks super external:imsm

md127 : inactive sdc[0](S)
      2772 blocks super external:imsm

unused devices: <none>

这是我的mdadm -D /dev/md126mdadm -D /dev/md127输出

/dev/md126:
Version : imsm
Raid Level : container
Total Devices : 1
Working Devices : 1
UUID : 806e6778:fa1107b0:aeb7aff1:296bcdb9
Member Arrays :
Number   Major   Minor   RaidDevice
   0       8        0        -        /dev/sda

/dev/md127:
Version : imsm
Raid Level : container
Total Devices : 1
Working Devices : 1
UUID : ea548bde:d7a7e0fb:ab71c32e:1c109924
Member Arrays :
Number   Major   Minor   RaidDevice
   0       8       32        -        /dev/sdc

我的理解关联从所显示命令的输出来看,我有一个软件 RAID 配置。此外,从这个关联我认为我必须发出 mdadm 命令,然后挂载该设备。来自上述线程的内容如下:

sudo mdadm --build /dev/md0 --chunk=64 --level=0 --raid-devices=2    /dev/sdd2 /dev/sdc2
sudo mkdir /media/Windows
sudo mount -t ntfs /dev/md0 /media/Windows

正如我所说,我不完全确定我的情况的参数,以及如何将配置添加到 fstab 以允许登录后挂载。

相关内容