파일 복구를 위해 /var/www 마운트

파일 복구를 위해 /var/www 마운트

"복구" 모드에서 서버의 파일을 복구하는 중입니다. RAID1에 2x3TB를 갖춘 Ubuntu 12.04입니다. 지침은 "Rescue" 모드에서 서버에 SSH로 접속하고, 파티션을 마운트하고, chroot로 /mnt파일을 복구하는 것이었습니다. chrooting 후에 루트 비밀번호도 변경해야 합니다 .

문제:/var/www대부분의 파일이 있는 파티션을 마운트할 수 없는 것 같습니다 .

내가 장착을 시도했을 //var/www

root@rescue:~# mount /dev/md3 /mnt/

mount: /dev/md3 already mounted or /mnt/ busy
mount: according to mtab, /dev/md3 is already mounted on /mnt

root@rescue:~# /dev/sda /mnt/var/www

mount: /dev/sda already mounted or /mnt/var/www busy

그러나 chroot내부에는 아무것도 보이지 않습니다 /var/www!!! 내가 잘못 마운트했거나 모든 데이터를 잃어버렸나요?

root@rescue:~# chroot /mnt/

root@rescue:/# ls /var/www
root@rescue:/#

파티션 마법사 설정

여기에 이미지 설명을 입력하세요

fdisks -l

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sda: 3000.6 GB, 3000592982016 bytes
255 heads, 63 sectors/track, 364801 cylinders, total 5860533168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1  4294967295  2147483647+  ee  GPT
Partition 1 does not start on physical sector boundary.

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdb: 3000.6 GB, 3000592982016 bytes
255 heads, 63 sectors/track, 364801 cylinders, total 5860533168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1  4294967295  2147483647+  ee  GPT
Partition 1 does not start on physical sector boundary.

Disk /dev/md3: 21.5 GB, 21473722368 bytes
2 heads, 4 sectors/track, 5242608 cylinders, total 41940864 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Alignment offset: 3584 bytes
Disk identifier: 0x00000000

Disk /dev/md3 doesn't contain a valid partition table

Disk /dev/md2: 314 MB, 314507264 bytes
2 heads, 4 sectors/track, 76784 cylinders, total 614272 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Alignment offset: 3584 bytes
Disk identifier: 0x00000000

Disk /dev/md2 doesn't contain a valid partition table

관련 정보