AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-325236

WiTon Nope's questions

Martin Hope
WiTon Nope
Asked: 2016-12-16 11:58:00 +0800 CST

Cloudlinux上没有安装Testdisk

  • 0

我正在尝试在 CloudLinux 服务器上安装 testdisk,但它不起作用听起来 Cloudlinux 不支持库

yum install testdisk
Loaded plugins: fastestmirror, rhnplugin, security, universal-hooks
Setting up Install Process
Loading mirror speeds from cached hostfile
 * EA4: 85.13.201.2
 * cloudlinux-x86_64-server-6: cl-mirror.cloud.dk
No package testdisk available.
Error: Nothing to do

有没有人经历过这种情况并知道该怎么做?

cloudlinux
  • 1 个回答
  • 155 Views
Martin Hope
WiTon Nope
Asked: 2015-12-04 20:09:41 +0800 CST

RAID/LVM 配置上的外部驱动器

  • -2

我有 2 个驱动器损坏,现在用 RAID 0 上的新驱动器替换。安装新驱动器后,我通过 USB 连接了 2 个损坏的旧驱动器以从中检索数据。这 2 个驱动器是构建 RAID 0 并使用 LVM,服务器现在可以识别这两个驱动器但 ind

Disk /dev/sdd: 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: 0x5527e79b
Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1      121470   975698944   8e  Linux LVM

Disk /dev/sdc: 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: 0x1f0bbe1f
Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1       60802   488383488    7  HPFS/NTFS

我正在尝试安装驱动器,但它不工作

mount /dev/sdc1 /mnt/sdc1 -t ntfs
NTFS signature is missing.
Failed to mount '/dev/sdc1': Invalid argument
The device '/dev/sdc1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

mount /dev/sdd1 /mnt/sdd1
mount: wrong fs type, bad option, bad superblock on /dev/sdd1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail  or so

dmesg | tail -l
EXT4-fs (sdd1): bad geometry: block count 157286400 exceeds size of device (122096390 blocks)

有没有办法安装这两个驱动器而不会丢失数据并覆盖 RAID 或 LVM 配置?

我找到了这个例子:https ://unix.stackexchange.com/questions/115698/fix-ext4-fs-bad-geometry-block-count-exceeds-size-of-device

sfdisk -d /dev/sdx >sdx.txt
cat sdx.txt
sfdisk /dev/sdx <sdx.txt

这会有帮助吗?

我的输出是

# partition table of /dev/sdd
unit: sectors
/dev/sdd1 : start=     2048, size=1951397888, Id=8e
/dev/sdd2 : start=        0, size=        0, Id= 0
/dev/sdd3 : start=        0, size=        0, Id= 0
/dev/sdd4 : start=        0, size=        0, Id= 0
centos
  • 1 个回答
  • 93 Views
Martin Hope
WiTon Nope
Asked: 2015-12-03 10:29:53 +0800 CST

将旧磁盘备份到外部磁盘(新)

  • 0

服务器上的 2 x 500GB 驱动器之一崩溃了,可以读取但不能写入数据,它们都在硬件 RAID 0 上。所以我连接了一个外部 1TB 新驱动器来备份数据并替换那些 2 x 500GB。

我只是想确保“dd”可以作为备份而不是克隆。

使用以下命令。

dd if=/dev/sda of=/dev/sdd

或者最好使用普通的 cp 命令。我想要最快最安全的数据备份方式。

backup
  • 1 个回答
  • 51 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve