我的问题是,我有一个硬盘,有一个linux服务器(It fails during booting up process)和一些有价值的文件。( tried almost all solutions on the internet but no luck)
现在我找到了一家公司,它可以发送硬盘进行修复,但是由于我的硬盘上有一些有价值的信息,我需要能够复制硬盘并将副本发送给它们(以防丢失、失败等)。
发现了解决方案,但在linux系统正常工作时(如dd ,Partimage ,Partclone )可以正常工作。
但是,我想知道如何在不启动时获得linux硬盘的第二份副本?有可能吗?(我相信,即使
我会将我的操作系统磁盘( Linux : CentOS)从128 Gb减少到64 Gb,以节省成本。 当我转到门户并调整大小时:显示一条错误消息: Failed to update disk 'XXXXXXXXXXXXXXXXXX'. Error: The disk/snapshot resource with id hayppyness-preprod/providers/Microsoft.Compute/disks/XXXXXXXXXXXXXXX cannot be resized down. Reducing disk/snapshot size is not sup
我在Vmware中运行我的Ubuntu。不幸的是,我的Ubuntu光盘大小变得太低。解决这个问题的方法是什么?我确实在Vmwareand中扩展了分区,并得到了消息:
The disk was successfully expanded. You must repartition the disk and expand the file systems from within the guest operating system.
但是现在如何在Ubuntu中调整磁盘分区的大小呢?
fdisk -f的UPD输出
Disk /dev/sda: 26.8 GB, 26843545600 bytes
我一直在尝试使用using ()来获取linux系统上的硬盘大小。
我有一个函数,它应该返回正确的大小:
unsigned long long getsize(FILE *fp){
unsigned long long prev=ftell(fp);
fseek(fp,0,SEEK_END);
unsigned long long size=ftell(fp);
fseek(fp,prev,SEEK_SET);
return size;
}
但是当我在硬盘上使用它时,它会返回18446744073709551615或2^64-1.
它似乎并不总是把它还回