You are not logged in.

#1 2013-07-14 13:38:41

chieffun
Member
Registered: 2013-07-14
Posts: 3

UEFI Installation on sdc, Windows 8 partitons on sda gone?

Hi all!

I installed arch on my machine today, now it looks like my windows 8 partitions are gone, maybe someone can help me out.

My setting:
sda Windows 8 uefi installation
sdb ntfs
sdc ntfs and arch uefi installation

So what i did:
I freed up 100GB in sdc for the arch partitions:

[root@chief-pc chief]# sudo gdisk -l /dev/sdc
GPT fdisk (gdisk) version 0.8.7

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sdc: 1953525168 sectors, 931.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): C82D4B3F-BE8C-4B1F-B3D6-73ED7B839865
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048      1743808511   831.5 GiB   0700  Basic data partition
   2      1743808512      1744873471   520.0 MiB   EF00  efi
   3      1744873472      1753262079   4.0 GiB     8200  swap
   4      1753262080      1953525134   95.5 GiB    8300  root

As you can see I made a new efi partition on sdc, because I did not want to touch sda at all.
Then I installed grub:

mount -t vfat /dev/sdc2 /boot/efi
mkdir /boot/efi/EFI
modprobe dm-mod
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --recheck 
grub-mkconfig -o /boot/grub/grub.cfg

Everything went fine, I rebooted my system and it automatically booted into grub instead of win8 (win bootloader should have been standard in my asus uefi bios), so I rebooted again and tried to switch back to win bootloader in asus uefi bios, but the win entry was gone.
So back to arch, my output for sda looks like this:

[root@chief-pc chief]# sudo gdisk -l /dev/sda
GPT fdisk (gdisk) version 0.8.7

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 234441648 sectors, 111.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): FFB20C3D-64F8-46F9-9504-C591105405FC
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 234441614
Partitions will be aligned on 2048-sector boundaries
Total free space is 233827181 sectors (111.5 GiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048          616447   300.0 MiB   2700  Basic data partition

So where are all the win8 partitions? efi, system-reserved and ntfs
I never touched sda during the installation.

Please help me out here smile

best regards chief

Offline

#2 2013-07-14 14:10:24

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: UEFI Installation on sdc, Windows 8 partitons on sda gone?

Well, I think it is pretty obvious that there is more to the story than what you told here because if you only did what you indicated here, then you would still have a windows setup.  The manual nature of the Arch Linux installation means that you (should) know exactly what you are implementing and what it is doing.  So the only way that Arch Linux can wipe out another system is if the administrator (you) wipes them out.  This might have been by accident, but there is no feasible way that this could have happened automatically.

The only thing you can try is to see if you can use some kind of partition recovery software.  There are some out there that can (somewhat reliably) detect where the start and end points of the old partitions were, and regenerate the partition table for you.  The other type of recovery software is those that scan the device and try to recover individual lost files.  Some of them do both.  You should probably start reading up on them.

If the data on that now-gone system is important to you, then the first thing you should do is make a copy of the entire disk.  Use dd to do a bit-by-bit copy.  Then try to recover the data from only one of the disks (preferably the new copy).

Offline

#3 2013-07-14 14:16:24

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,551
Website

Re: UEFI Installation on sdc, Windows 8 partitons on sda gone?

Are you sure that's not just what you were calling sdb?  There is not assurance that these block device names will be consistent across boots.  Check UUIDs.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2013-07-14 14:25:40

chieffun
Member
Registered: 2013-07-14
Posts: 3

Re: UEFI Installation on sdc, Windows 8 partitons on sda gone?

Hi, thanks for your time. Yeah, first I thought that cannot be, it must have been my fault, so I took a look at the root bash history. One time a parted /dev/sdc... And the strange thing is, that not everything on sda is gone, but everything beginning with the efi partition. So I thought that maybe arch does not like 2 efi partitions in one system and corrupted it somehow. But who knows...

I also tried to rescue with parted rescue command and gpart, looks like something completely wiped (or corrupted) the partitions away. As if they have never been there in the first place...

Last edited by chieffun (2013-07-14 14:27:06)

Offline

#5 2013-07-14 14:38:25

chieffun
Member
Registered: 2013-07-14
Posts: 3

Re: UEFI Installation on sdc, Windows 8 partitons on sda gone?

Hi Trilby, thanks for that suggestion. My ssds siye is 120GB, so I am sure.

Offline

#6 2013-07-14 15:00:46

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,136

Re: UEFI Installation on sdc, Windows 8 partitons on sda gone?

2 EFI partitions can be problematic, I believe, for Windows. However, that would not wipe anything from your disk.

When you say you looked at root's bash history, I'm not sure I understand. If you were installing Arch, weren't you booted from a live media when you partitioned? So whatever you did would not be included in any history on disk.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#7 2013-07-14 15:14:12

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: UEFI Installation on sdc, Windows 8 partitons on sda gone?

Some of it would be included, as the stuff that happens within the chroot would be happening on the new installation.  But there would certainly be a whole hell of a lot missing.

Offline

#8 2013-07-14 15:28:03

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,136

Re: UEFI Installation on sdc, Windows 8 partitons on sda gone?

But the stuff within the chroot would not include partitioning or mkfs as you can't chroot until after you've created something to chroot into. And most likely it is at the partitioning stage that damage was done.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#9 2013-07-14 15:37:34

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: UEFI Installation on sdc, Windows 8 partitons on sda gone?

Yes, this is true.  I just wanted to point out that most of the stuff during the install would not be present in the history, but there would be parts. 

Additionally, the OP mentions looking at the root bash history.  Even if the history of events in the live media were recorded, it certainly wouldn't be in the bash history since you are using zsh.

Offline

#10 2013-07-14 16:17:48

srs5694
Member
From: Woonsocket, RI
Registered: 2012-11-06
Posts: 719
Website

Re: UEFI Installation on sdc, Windows 8 partitons on sda gone?

chieffun wrote:
[root@chief-pc chief]# sudo gdisk -l /dev/sda
...
Disk /dev/sda: 234441648 sectors, 111.8 GiB
...
Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048          616447   300.0 MiB   2700  Basic data partition

So where are all the win8 partitions? efi, system-reserved and ntfs
I never touched sda during the installation.

First, please verify that this is the correct disk. As Trilby pointed out, disk device names (/dev/sda, /dev/sdb, etc.) can change. There may be a clue in the disk size: 111.8GiB. If both /dev/sda and /dev/sdb were identical, that might not be enough of a clue; but if your disks all had unique sizes, the disk size should tell you which one is which.

Second, the type code 2700 refers to a Windows Recovery Environment (RE) partition. This suggests that this partition is an emergency partition, and the size of 300MiB seems consistent with that. OTOH, the partition name of "Basic data partition" suggests something else. The fact that the  one partition fills far less than the entire disk is not a good sign. You could try using "blkid" on the partition in Linux to see what its filesystem type is, and perhaps mount it to examine its contents.

Finally, try using gdisk's recovery features. You can start with the "-v" option to perform a check on the GPT's integrity. It's conceivable that this will report a problem that you'll then be able to correct in one way or another. You could also play with the options on the gdisk recovery & transformation menu (type "r" at the main menu to get here). In particular, it's conceivable that the "c" option on that menu will help; it loads the backup partition table and uses it in preference to the main one. If you use that option and it restores your partitions, save your changes with "w".

WonderWoofy wrote:

The manual nature of the Arch Linux installation means that you (should) know exactly what you are implementing and what it is doing.  So the only way that Arch Linux can wipe out another system is if the administrator (you) wipes them out.

I agree. Some inadvertent action that you haven't reported must be responsible for these problems. It's conceivable that the action was in another distribution's installer or even in Windows.

WonderWoofy wrote:

The only thing you can try is to see if you can use some kind of partition recovery software.  There are some out there that can (somewhat reliably) detect where the start and end points of the old partitions were, and regenerate the partition table for you.  The other type of recovery software is those that scan the device and try to recover individual lost files.  Some of them do both.  You should probably start reading up on them.

In Linux, the TestDisk utility can scan for missing partitions, while PhotoRec can scan for lost files. I gather there are better Windows tools for scanning for lost files on NTFS volumes, but I don't happen to have any pointers. TestDisk tends to do a decent job, but it's a bit confusing to the uninitiated, and it can become hopelessly confused if the disk has been repartitioned a lot in the past.

chieffun wrote:

So I thought that maybe arch does not like 2 efi partitions in one system and corrupted it somehow.

No, that can't be it. As cfr says, Windows doesn't like multiple ESPs; but that's mostly an issue for the Windows installer. (It tends to get confused and aborts halfway through the installation.) I'm not even sure if Windows misbehaves in this way when the ESPs are on different disks; it might handle that situation OK, for all I know. Windows certainly doesn't go postal on its own partitions if it sees two ESPs. That said, it's conceivable that a Windows bug did cause this problem, if you booted Windows at some point during the process.

chieffun wrote:

I also tried to rescue with parted rescue command and gpart, looks like something completely wiped (or corrupted) the partitions away. As if they have never been there in the first place...

In my experience, the partition rescue features of GParted and parted are unreliable at best. TestDisk does a much better job.

Offline

Board footer

Powered by FluxBB