iSCSI disk mounted in centos 7 lost
iSCSI disk mounted in centos 7 lost
Two days ago I maded terrible mistake. I put in server a disk 3Tb and I tried it to erase and format it to be empty for archive.
But instead of disk sdc1 i have deleted sdk1 which is iSCSI mounted disk in centos 7.
I have tried testdisk but it just found out 400Gb partition where I can't mount it.
Is there a way to restore partition on that iSCSI disk. I can connect it but can't mount it.
But instead of disk sdc1 i have deleted sdk1 which is iSCSI mounted disk in centos 7.
I have tried testdisk but it just found out 400Gb partition where I can't mount it.
Is there a way to restore partition on that iSCSI disk. I can connect it but can't mount it.
Re: iSCSI disk mounted in centos 7 lost
How did you "erase and format" it? What was the original file system?
I seem to remember that there exists software that can scan a disk and see if it finds partitions, file systems and files.
I seem to remember that there exists software that can scan a disk and see if it finds partitions, file systems and files.
Last edited by tunk on 2017/10/02 11:36:59, edited 2 times in total.
Re: iSCSI disk mounted in centos 7 lost
I did it in GUI with program "disks"
yes testdisk program should do that, but can't find whole partition.
If I use photorec I can get files but it is totall mess, all files in one folder.
yes testdisk program should do that, but can't find whole partition.
If I use photorec I can get files but it is totall mess, all files in one folder.
Re: iSCSI disk mounted in centos 7 lost
First, before doing anything else, you may want to make a raw backup of the whole disk with dd.
Did you erase and format sdk1, or sdk? If the former, then the partition info may still be stored in the MBR.
Run fdisk -l /dev/sdk to see if it's the case. If so, then you may run fs check on the partition to see if it can recover anything.
Or you may want to wait until someone more knowledgable can give advice.
Did you erase and format sdk1, or sdk? If the former, then the partition info may still be stored in the MBR.
Run fdisk -l /dev/sdk to see if it's the case. If so, then you may run fs check on the partition to see if it can recover anything.
Or you may want to wait until someone more knowledgable can give advice.
Re: iSCSI disk mounted in centos 7 lost
fdisk -l /dev/sdk
shows me this and size is totally wrong there should be 3Tb
/dev/sdk1 3478184955 4286318714 404066880 ee GPT
Partition 1 does not start on physical sector boundary.
shows me this and size is totally wrong there should be 3Tb
/dev/sdk1 3478184955 4286318714 404066880 ee GPT
Partition 1 does not start on physical sector boundary.
Re: iSCSI disk mounted in centos 7 lost
It may be that fdisk is confused by GPT: Run parted -l and post the full output for sdk.
Re: iSCSI disk mounted in centos 7 lost
This is all what I get
Model: QNAP iSCSI Storage (scsi)
Disk /dev/sdk: 3221GB
Velikost sektorja (logična/fizična): 512B/512B
Preglednica razdelkov: gpt
Disk Flags:
Model: QNAP iSCSI Storage (scsi)
Disk /dev/sdk: 3221GB
Velikost sektorja (logična/fizična): 512B/512B
Preglednica razdelkov: gpt
Disk Flags:
Re: iSCSI disk mounted in centos 7 lost
What filsystem did it have, xfs, ext4 ...?
I haven't used testdisk, but from their home page it says it should be able to find the SuperBlock for ext4.
I've never had to use it; the SuperBlock may/may not include enough info to recreate the partition.
Again, I advise you to make a raw backup of the whole disk with dd before changing anything on the disk.
I haven't used testdisk, but from their home page it says it should be able to find the SuperBlock for ext4.
I've never had to use it; the SuperBlock may/may not include enough info to recreate the partition.
Again, I advise you to make a raw backup of the whole disk with dd before changing anything on the disk.
Re: iSCSI disk mounted in centos 7 lost
I think it was EXT4
-
- Posts: 2019
- Joined: 2015/02/17 15:14:33
- Location: Bulgaria
- Contact:
Re: iSCSI disk mounted in centos 7 lost
I have successfully used on Fedora and CentOS.
Code: Select all
extundelete