mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-12 07:53:43 +02:00
hdd_menu: correctly align partitions for 4k drives
This commit is contained in:
@@ -377,8 +377,8 @@ int CHDDFmtExec::exec(CMenuTarget* /*parent*/, const std::string& key)
|
||||
snprintf(cmd, sizeof(cmd), "/sbin/sfdisk -f -uM /dev/%s", key.c_str());
|
||||
strcpy(cmd2, "0,\n;\n;\n;\ny\n");
|
||||
} else {
|
||||
snprintf(cmd, sizeof(cmd), "/sbin/fdisk /dev/%s", key.c_str());
|
||||
strcpy(cmd2, "o\nn\np\n1\n\n\nw\n");
|
||||
snprintf(cmd, sizeof(cmd), "/sbin/fdisk -u /dev/%s", key.c_str());
|
||||
strcpy(cmd2, "o\nn\np\n1\n2048\n\nw\n");
|
||||
}
|
||||
|
||||
printf("CHDDFmtExec: executing %s\n", cmd);
|
||||
|
Reference in New Issue
Block a user