Opened 12 years ago

Closed 12 years ago

#37582 closed request (invalid)

sfdisk could not be found on mac os and backup the partition table.

Reported by: mparchet@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: sfdisk

Description

Hello,

There is no cd on mac os. So If a virus distort the disk MBR, all data is loss and it's not possible to restore the computer and I can't start my system on linux. (I don't know if my ssd disk work on linux).

So I would like to find how to backup the partition table for mac os.

I have fond the sfdisk utility to backup the partition table but it work only on linux.

Is it possible to make a sfdisk version for mac (sfdisk port) ?

Best regards

mparchet

Change History (3)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: sfdisk partion backup removed
Version: 2.1.2

If "sfdisk ... work only on linux" as you say, then we cannot add it to MacPorts.

Have you looked into gpt which is included with OS X?

comment:2 Changed 12 years ago by larryv (Lawrence Velázquez)

If you’re concerned about data loss, you should be looking into actual backup solutions (a la Time Machine). Saving your partition table will not save your data.

comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Resolution: invalid
Status: newclosed

It appears that the sfdisk program is part of the util-linux package. A port for util-linux was submitted in #37382 and I've just committed it, but it does not install the sfdisk program. The description of that port says "This port contains ONLY those parts of util-linux that run on Darwin." If you believe that sfdisk can be built on Darwin, then please file an enhancement request for the util-linux port.

Note: See TracTickets for help on using tickets.