summaryrefslogtreecommitdiff
path: root/sys/src/cmd/disk/prep
AgeCommit message (Collapse)Author
2021-11-01mainly just spelling and typosStuart Morrow
2021-04-09disk/fdisk: add OpenBSD partition typeHumm
2017-12-05disk/edisk: allow printing and readonly inspection of hybrid MBR/GPT disks ↵cinap_lenrek
(thanks aiju) dumping hybrid MBR/GPT disks is fine, which can sometimes be found on USB sticks. but prohibit editing. however, always barf on disks with dos partitions and missing protecive MBR partition entry.
2017-08-01disk/edisk: add some headroom in the type table for dynamic entriescinap_lenrek
2017-08-01disk/edisk: add more partition type uuid's from wikipedia (thanks qeed)cinap_lenrek
2016-07-08disk/prep: if no 9fat, reserve space for plan9 partition table in autopart ↵cinap_lenrek
(thanks Shamar) usually, the plan9 partition table is contained in the first 9fat partition after the pbs/fat header, but when no 9fat partition is requested, we have to make sure partitions wont overlap the partition table (start at sector offset >= 2).
2016-01-05fdisk: properly convert byte units K,M,G and T to cylinders/sectorscinap_lenrek
the shared command language assumed 512 byte sectors, which is not the case for fdisk as it uses cylinders for the block unit. so we introduce an extra argument in the Edit structure and parseexpr() function so byte sizes are properly converted to the block unit when the K,M,G and T postfixes are used.
2015-06-05disk/edisk: create esp partition in addition to plan9 partition in auto modecinap_lenrek
2015-06-03disk/edisk: fix blank modecinap_lenrek
there where two problems with blank (-b flag): we did not update the backup header when there was already a valid backup header in place. we always want to initialize a new backup header in blank mode! we now also check the backup header matches the primary (or the other way arround depending on which header could be read), reporting any mismatches and restoring the backup from the data of the primary. the protective mbr needs to start at sector 1 not 0 (apparently, this matters for ovmf).
2015-05-31disk/fdisk: learn about EFI system partition (type 0xEF), honor protective ↵cinap_lenrek
mbr (type 0xEE) efi systems may use traditional dos partition table with an esp (efi system partition). otherwise, honor the protective mbr partition (0xEE) and exit when we encounter it.
2015-05-31disk/edisk: little improvementscinap_lenrek
- make UU() shorter by using long long constant to encode node field - store Flag as a mask, not as a shift count - put the attributes before the name in cmdsum() as it is fixed length
2015-05-30disk/edisk: fix usage (was disk/gdisk)cinap_lenrek
2015-05-30disk/edisk: gpt partition table editor (no manpage, work in progress)cinap_lenrek
2015-05-30disk/fdisk: fix help textcinap_lenrek
2013-10-16fdisk: fix struct padding for amd64 (from erik quanstros fdisk-64-bit-table ↵cinap_lenrek
patch) small little patch to help fdisk work properly on 64-bit machines. sizeof(Table) is 4 bytes too big.
2012-09-09Print correct sizes in prep autopart.google
2012-09-09Add alignment hints for e512 ATA drives.google
2012-07-30import updated compilers from sourcescinap_lenrek
2011-07-17fdisk: attempt fixing extended partition handlingcinap_lenrek
2011-07-14fdisk: use lba values in fdisk when writing partition not possibly rounded ↵cinap_lenrek
cylinders (because we might guessed the disk geometry wrong) libdisk: make partition geometry detection work
2011-04-20add Fish-'s installer patches; possibly not in a working state. ↵stanley lieber
testing/fixes requested.
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen