如何发起突袭

如何发起突袭

我做了以下有趣的实验。我使用实时 usb 在插入 intel ss4200-e 的 usb 上安装了 ubuntu server 12.04 i386 和 webmin,我想用它制作一个无头 samba 服务器。webmin 在分区菜单上显示以下情况:

Disk name       Total size      Make and model      Partitions      Actions   
SCSI device A   7.39 GB     Kingston DataTraveler 3.0   3   Identify drive
SATA device B   953.83 GB   ATA Hitachi HDE72101    1   IDE parameters | Identify drive
SATA device C   953.83 GB   ATA Hitachi HDE72101    1   IDE parameters | Identify drive
SATA device D   953.83 GB   ATA Hitachi HDE72101    1   IDE parameters | Identify drive
SATA device E   953.83 GB   ATA Hitachi HDE72101    1   IDE parameters | Identify drive

突袭菜单显示:

Device name     Status  RAID level  Usable size     Member disk devices
/dev/md0    clean   RAID5 (Distributed Parity)  2.60 TB     /dev/sdb1 | /dev/sdc1 | /dev/sdd1 | /dev/sde1

然后显示 \dev\md0 选项卡

Device file     /dev/md0
UUID    fcf48163:7efca14a:7bb08b15:81161d20
RAID level  RAID5 (Distributed Parity)
Filesystem status   Used in LVM VG volume
Usable size     2794526208 blocks (2.60 TB)
Persistent superblock?  Yes
Layout  left-symmetric
Chunk size  128 kB
RAID status     clean
Partitions in RAID  SATA device B partition 1
SATA device C partition 1
SATA device D partition 1
SATA device E partition 1 

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).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sdb1 during installation
UUID=437ea85c-1a1a-449f-a87f-e358cce2ba7e /               ext2    errors=remount                                                           -ro 0       1
# swap was on /dev/sdb5 during installation
UUID=8800da26-a98b-4a6b-aa96-917fc529bfe1 none            swap    sw                                                                         0       0

光伏系统

  PV         VG     Fmt  Attr PSize PFree
  /dev/md0   volume lvm2 a-   2,60t    0

例如,如何在启动时将 /dev/md0 挂载到 /mnt/raidarray?

答案1

假设您的块设备 /dev/md0已格式化,您可以发出以下命令:

sudo blkid /dev/md0

这将为您提供一个 UUID,通常会告诉您它是在哪种文件系统中格式化的。

然后将以下行添加到您的/etc/fstab

UUID=the-uui-blkid-gave-you /mnt/raidarray file-system-you-used defaults 0 0

然后输入sudo mount -a,你的设备应该就挂载了。请注意,目录/mnt/raidarray应该存在。

相关内容