无需安装即可从驱动器访问数据
最近,我的专用服务器上的硬盘崩溃了,托管公司不得不更换该驱动器。但是我有一个备份硬盘每天进行备份。
现在我安装了新的驱动器和新的操作系统。备份硬盘已连接到服务器,但我不确定如何访问该驱动器并恢复备份文件。
安装驱动器会删除其上的所有当前数据吗?如果是,那么从硬盘恢复数据的最佳方法是什么? (而且我没有物理访问驱动器的权限)
Recently my hard drive on my dedicated server crashed and the hosting company had to replace the drive. however I had a backup hard drive that was taking daily backups.
Now I have a new drive and a fresh OS installed. the backup hard drive is attached to the server but I am not sure how to access the drive and restore the backup files.
would mounting the drive remove all the current data on it? if yes then whats the best way to restore the data from the hard drive? (also I dont have physical access to the drive)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要知道备份驱动器上使用的文件系统是什么
(安装不会删除任何文件除非您使用了错误的文件类型声明)
您需要知道备份设备的名称(例如:
/dev/sdaX
)现在作为新系统上的根用户创建一个挂载点(一个目录) - 通常你应该把它放进去
/mnt
,例如/mnt/backup
do mount -t [备份驱动器上的文件系统] [备份设备] [挂载点]
例如:
mount -t ext4 /dev/sda5 /mnt/backup
如果一切正常,所有备份都可以在 /mnt/backup 中使用,您可以用它做任何您想做的事情
请参阅:
http://linux.die.net/man/8/mount
http://www.linfo.org/mount_point.html
you need to know what was filesystem used on backup drive
(mounting will not erase any files unless you use wrong filetype declaration)
you need to know the name of the backup device (for example:
/dev/sdaX
)now as a root on your fresh system create a mountpoint (a directory) - usually you should put it in
/mnt
, for example/mnt/backup
do mount -t [filesystem on backup drive] [backup device] [mountpoint]
for example:
mount -t ext4 /dev/sda5 /mnt/backup
if everything is fine all your backup is available in /mnt/backup and you can do whatever you want with it
See:
http://linux.die.net/man/8/mount
http://www.linfo.org/mount_point.html