我遇到了一个问题,我认为我在 centos7 上编辑 /etc/fstab 时出现了错误,因此无法重新启动我的远程服务器。
我正处于 freebsd 的救援模式。
我无法挂载我的 ada0s3(在 centos 上是 sda3)来修复我的 fstab。
root@rescuefbsd:/mnt # gpart show -p ada0
=> 63 3907029105 ada0 MBR (1.8T)
63 1985 - free - (993K)
2048 2048 ada0s1 linux-data (1.0M)
4096 1024000 ada0s2 linux-data [active] (500M)
1028096 3889223680 ada0s3 linux-data (1.8T)
3890251776 16777216 ada0s4 ebr (8.0G)
3907028992 176 - free - (88K)
root@rescuefbsd:/mnt # file -s /dev/ada0s3
/dev/ada0s3: Linux rev 1.0 ext4 filesystem data, UUID=80281fb1-7589-4a01-b2d0-6e6529e6b09b (needs journal recovery) (extents) (64bit) (large files) (huge files)
root@rescuefbsd:/mnt # dmesg | grep ada0
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <WDC WD2002FAEX-007BA0 05.01D05> ATA-8 SATA 3.x device
ada0: Serial Number WD-WMAY02628053
ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C)
ada0: Previously was known as ad4
WARNING: mount of ada0s3 denied due to unsupported optional features
WARNING: mount of ada0s3 denied due to unsupported optional features
WARNING: mount of ada0s3 denied due to unsupported optional features
WARNING: mount of ada0s3 denied due to unsupported optional features
已尝试(谷歌上的一些解决方案):
root@rescuefbsd:/mnt # mount -t ext4 /dev/ada0s3 /mnt
mount: /dev/ada0s3: Operation not supported by device
root@rescuefbsd:/mnt # mount /dev/ada0s3 /mnt
mount: /dev/ada0s3: Invalid argument
root@rescuefbsd:/mnt # mount -t ext2fs -o ro /dev/ada0s3 /mnt
mount: /dev/ada0s3: Invalid argument
请问有什么想法吗?
答案1
已解决,我的主机为我提供了支持 ext4 的 Rescue 3.0。