Re: Request of urgent help....
> Il 13/01/2022 03:08 David Christensen <dpchrist@holgerdanske.com> ha scritto:
>
>
> On 1/12/22 10:00 AM, frantal@libero.it wrote:
> > Hi. I inadvertently deleted the Mac and EFI partitions of an HD inserted on a Macbook Pro (2009). Fortunately I have the Linux one (with Debian XFCE) that I am writing from. I tried to recover with Gparted (by installing gpart), but after more than an hour I stopped having no recovery signal. Then I installed test disk and this is the screen.
> > <TestDisk 7.1, Data Recovery Utility, July 2019
> > Christophe GRENIER <grenier@cgsecurity.org>
> > https://www.cgsecurity.org
> >
> > Disk /dev/sda - 480 GB / 447 GiB - CHS 58369 255 63
> > Partition Start End Size in sectors
> > P EFI System 40 409639 409600 [EFI System Partition]
> >> P Mac HFS 409640 700519039 700109400
> > P Linux filesys. data 700520448 759113727 58593280
> > P Linux Swap 759113728 761114607 2000880
> > P Linux filesys. data 761114624 937701375 176586752
> >
> > Structure: Ok. Use Up/Down Arrow keys to select partition.
> > Use Left/Right Arrow keys to CHANGE partition characteristics:
> > P=Primary D=Deleted
> > Keys A: add partition, L: load backup, T: change type,
> > Enter: to continue
> > HFS+ blocksize=4096 + Backup, 358 GB / 333 GiB>
> >
> > All partitions appear highlighted in green.
> > What can I do to reset Mac OS?
> > I don't dare shut down because I'm afraid it won't reboot anymore having wiped the EFI partition as well.
> > How can I do without loosing the Mac data? Thanks in advance
> > Francesco
>
>
> Please run the following commands and reply with the complete console
> session -- prompts displayed, commands entered, and output displayed:
>
> # cat /etc/debian_version ; uname -a
> 11.2
Linux debian 5.10.0-10-amd64 #1 SMP Debian 5.10.84-1 (2021-12-08) x86_64 GNU/Linux
> # lsblk
> NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 447,1G 0 disk
├─sda3 8:3 0 27,9G 0 part /
├─sda4 8:4 0 977M 0 part [SWAP]
└─sda5 8:5 0 84,2G 0 part /home
sdc 8:32 1 57,8G 0 disk
└─sdc1 8:33 1 57,7G 0 part /media/frantal/KINGSTON
sr0 11:0 1 1024M 0 rom
> # fdisk -l
> Disk /dev/sda: 447,13 GiB, 480103981056 bytes, 937703088 sectors
Disk model: CT480BX500SSD1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 20F7D036-E7D4-4247-9944-2190A2A933AE
Device Start End Sectors Size Type
/dev/sda3 700520448 759113727 58593280 27,9G Linux filesystem
/dev/sda4 759113728 761114623 2000896 977M Linux swap
/dev/sda5 761114624 937701375 176586752 84,2G Linux filesystem
Disk /dev/sdc: 57,8 GiB, 62058921984 bytes, 121208832 sectors
Disk model: DataTraveler 3.0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x2e247b39
Device Boot Start End Sectors Size Id Type
/dev/sdc1 * 257280 121208831 120951552 57,7G c W95 FAT32 (LBA)
> # which parted
> /usr/sbin/parted
>
> David
gpart version:
gpart v0.2.3-dev (c) 1999-2001 Michail Brzitwa <michail@brzitwa.de>
Regards
Francesco
Reply to: