Commit graph

93 commits

Author SHA1 Message Date
Eric Kohl 91d6a8f428 [USETUP]
Fix unbootable system after recreating the boot partition
Patch by Wim Hueskens.
CORE-11232 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=74019
2017-03-01 20:46:24 +00:00
Eric Kohl bee3e24b5e [USETUP]
Scroll in partitions list doesn't work.
Patch by thc.
CORE-11895 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=73997
2017-02-27 14:32:09 +00:00
Amine Khaldi d12708671c [BASE] Spelling fixes by Josh Soref. CORE-12286
svn path=/trunk/; revision=73133
2016-11-05 14:55:55 +00:00
Hermès Bélusca-Maïto 4ef92827aa [USETUP]
- Don't hardcode buffer string size in GetPartTypeStringFromPartitionType calls.
- Possibly check whether the first character of the PartTypeString string is NULL before printing a generic partition information in case the partition type is unknown. We might check instead for the STRING_FORMATUNKNOWN string...
- Don't check for PartTypeString being NULL since it's not a pointer. CID #1363481 and CID #1363494.

svn path=/trunk/; revision=71911
2016-07-12 22:30:55 +00:00
Eric Kohl ade016e3a4 [USETUP]
Debug output in usetup.
Patch by Wim Hueskes.
CORE-11230 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=71320
2016-05-12 15:30:49 +00:00
Hermès Bélusca-Maïto e3445e18d1 [USETUP]
- bootsup.c/.h, usetup.c: Save the old MBR sector in the system partition (this makes easier to restore the old one).
- fslist.c/.h, usetup.h: Fix header inclusion order.
- partlist.c/.h, usetup.c: On BIOS-PC architectures, the system partition can be formatted in any FS as long as it is the active partition (on the contrary, on architectures where such system partition is required, it is formatted in FAT). We currently do not have write support for all FSes out there (apart for FAT until now), so do a "clever" "trick" to work around this problem: on initialized disks, find the active partition and check its FS. If we support write access to this FS then we're OK, otherwise we change the (active) system partition for the one on which we are going to install ReactOS (which is, by construction, formatted with a FS on which we support write access).
The MBR (resp. the VBR) of the disk (resp. of the system partition) are always saved into files, making easy for people to boot on them (using FreeLdr) or restoring them.

CORE-10898

svn path=/trunk/; revision=70837
2016-03-01 15:00:56 +00:00
Hermès Bélusca-Maïto 679011f92d [USETUP]
- Formatting fixes only.
[DISKPART]
- Fix a confusion CylinderAlignment vs. SectorAlignment.
- Formatting fixes.

svn path=/trunk/; revision=70820
2016-02-29 20:58:32 +00:00
Hermès Bélusca-Maïto 960b573f7b [REACTOS]: s/partiton/partition/
svn path=/trunk/; revision=70815
2016-02-29 01:22:02 +00:00
Hermès Bélusca-Maïto dd0671dab2 [USETUP]
- Remove some unused structure members.
- Consistently use the vocable "system partition" and "boot partition" (using MS aka. hardware-oriented definition) according to:
  https://en.wikipedia.org/wiki/System_partition_and_boot_partition
  http://homepage.ntlworld.com/jonathan.deboynepollard/FGA/boot-and-system-volumes.html
  in few words:
  "system partition": the one that will be started by the platform firmware, and where the bootloader is found (only one per computer);
  "boot partition": the one where the OS of your choice resides (any number).

svn path=/trunk/; revision=70797
2016-02-28 15:25:22 +00:00
Hermès Bélusca-Maïto ad68f421d5 [USETUP]
- Use a more complete list of partition type names for displaying the partition types in the list.
CORE-4043 #resolve
- HACK (for ChkDsk): Guess the filesystem type of the current partition, based on its partition type ID. This is hackish because partitions with the same ID can be formatted with different file systems (e.g.: Linux partition ID 0x83 can cover EXT2/3/4, ReiserFS, etc). Therefore do NOT use GetPartTypeStringFromPartitionType for that!! (see r68156 and r70283).

svn path=/trunk/; revision=70792
2016-02-27 20:49:17 +00:00
Eric Kohl 1acc2401b3 [USETUP]
Little Improvements:
  * Duplicate code removement regarding the simple list pages (and now everyone has pageup/down + selection via char)
  * Duplicate code removement regarding the partition type string
  * Document the pages

Patch my Michael Fritscher
#CORE-10012 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=70283
2015-12-06 20:14:29 +00:00
Amine Khaldi 2added2367 [SETUP][USETUP][WELCOME] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69218
2015-09-13 16:40:36 +00:00
Eric Kohl 6fdee3b3af Show a warning page, when a user tries to delete an active partition.
CORE-9996 #resolve

svn path=/trunk/; revision=68652
2015-08-09 13:14:00 +00:00
Eric Kohl c681e13dae [USETUP]
Assign the HiddenSectors values properly.

svn path=/trunk/; revision=68340
2015-07-04 16:10:50 +00:00
Eric Kohl 5e346150a3 [USETUP]
- Add description of the 'L' key to the partition selection page.
- Make the 'ENTER' key work for logical partitions too. Selected unpartitioned space will be converted to a logical partition.
Patch by Gerhard Gruber (sparhawk).
CORE-9641 #resolve 

svn path=/trunk/; revision=68339
2015-07-04 16:04:09 +00:00
Eric Kohl 562e0f513f [USETUP]
- ReAllocateLayoutBuffer: Write all new partition table entries to the disk.
- UpdateDiskLayout:
  - Create link entries for logical partitions.
  - Wipe unused logical partiton table entries.

svn path=/trunk/; revision=68257
2015-06-24 20:06:33 +00:00
Eric Kohl c1b19cee9b [USETUP]
UpdateDiskLayout:
- Resize the layout buffer if necessary.
- Start writing logical partitions to the disk.
- Disable the code that wipes unused table entries. May be enabled later.
Right now, you can only create one logical partition because the link entries are not created yet.

svn path=/trunk/; revision=68235
2015-06-21 20:18:23 +00:00
Eric Kohl 38638f5766 [USETUP]
UpdateDiskLayout:
- Set the proper HiddenSectors value.
- Fix counting the PartitonaNumber.
UpdatePartitionNumbers() has become obsolete. Remove it.

svn path=/trunk/; revision=68226
2015-06-21 08:55:43 +00:00
Eric Kohl f7bbd54974 [USETUP]
DumpPartitionTable: Improve the output and print the partition start and length in sectors instead of bytes.

svn path=/trunk/; revision=68214
2015-06-20 18:17:03 +00:00
Eric Kohl 566b655046 [USETUP]
AddDiskToList: Fix the allocation of the disk layout buffer.

CORE-9821 #resolve #comment Please retest.

svn path=/trunk/; revision=68213
2015-06-20 17:59:14 +00:00
Eric Kohl 22d0c7022c [USETUP]
Add support for logical partitions to the partition deletion code.

svn path=/trunk/; revision=68207
2015-06-20 13:42:39 +00:00
Eric Kohl 501e32913a [USETUP]
Implement CreateLogicalPartition. Now we can create logical partitons, but they will not be written to a disk yet.

svn path=/trunk/; revision=68197
2015-06-19 19:01:39 +00:00
Eric Kohl 84d963d77a [USETUP]
AssignDriveLetters: Fix the code that assigns drive letters to logical partitions.

svn path=/trunk/; revision=68124
2015-06-13 23:11:57 +00:00
Eric Kohl 1d240a84ee [USETUP]
Allocate a disk layout buffer that is large enough to keep all partitions of the disk.

CORE-5818 resolve

svn path=/trunk/; revision=68122
2015-06-13 12:46:42 +00:00
Eric Kohl be9ea7e123 [USETUP]
Get rid of CheckForLinuxFdiskPartitions.

svn path=/trunk/; revision=68115
2015-06-13 10:08:36 +00:00
Eric Kohl 063de8230b [USETUP]
Mark a disk as clean after the partition table has been written to the disk.

svn path=/trunk/; revision=68113
2015-06-12 22:56:36 +00:00
Eric Kohl 76e910579c [USETUP]
- Implement mandatory filesystem selection, formatting and filesystem checks for all new partitons.
- Implement optional filesystem selection, formatting and filesystem checks for formatted boot and install partitions.
- Enable installing ReactOS on primary partitions other than the first one. Usetup will install Freeloader on the first (or active) partition (aka boot partition) and install ReactOS on the chosen partition (aka install partition).

svn path=/trunk/; revision=68112
2015-06-12 21:51:57 +00:00
Amine Khaldi b6f88d3326 [USETUP] 1024 * 1024 is 1048576 not 1048756. Spotted by Mike Nordell aka tamlin. CORE-9792
svn path=/trunk/; revision=68100
2015-06-10 09:56:48 +00:00
Eric Kohl 38b7201227 [USETUP]
- Fix indenttation fof comments.
- Replace SectorsPerTrack by SectorAlignment in partition size and location calculations.

svn path=/trunk/; revision=67951
2015-05-29 14:06:01 +00:00
Eric Kohl ed6621d704 [USETUP]
- Revert partiton code to pre-r65855.


svn path=/trunk/; revision=65969
2015-01-04 13:53:45 +00:00
Eric Kohl a5c4f052be [USETUP]
Implement pre-install 'select format' and 'format' pages. These enable the user to re-format an existing install partitition.

CORE-9005 #resolve

svn path=/trunk/; revision=65962
2015-01-03 15:33:22 +00:00
Eric Kohl ac0ac23b55 [USETUP]
Change the partition creation workflow, so that the user is forced to choose a file system type and format a partition after it has been created.

svn path=/trunk/; revision=65899
2014-12-29 21:23:30 +00:00
Eric Kohl cdc15f3bc5 [USETUP]
Update the on-disk partition tables immediately after modifying the in-memory tables. 

svn path=/trunk/; revision=65855
2014-12-28 09:16:41 +00:00
Eric Kohl 9eba5bef02 [USETUP]
AddPartitionToDisk: Initialize DiskEntry pointer for existing partition entries.

svn path=/trunk/; revision=65846
2014-12-27 10:15:32 +00:00
Eric Kohl ce3e70b717 [USETUP]
Show an indicator for active partitons in the partition list.

svn path=/trunk/; revision=65587
2014-12-07 22:28:12 +00:00
Timo Kreuzer a841fadcaa [HAMMERTIMESTFU]
Silence "a few" DPRINTs

svn path=/trunk/; revision=65181
2014-11-02 11:30:14 +00:00
Eric Kohl 6b19e75efa [USETUP]
Remove obsolete partition creation checks and their corresponding error messages.

svn path=/trunk/; revision=64487
2014-10-03 11:05:56 +00:00
Eric Kohl 908fdb6ee8 [USETUP]
- DeleteCurrentPartition: A deleted partition is of type PARTITION_ENTRY_UNUSED.
- ScrollDownPartitionList / ScrollUpPartitionList: Ignore container partitions if they are not used.
CORE-8413 #resolve #comment Fixed in r64482.

svn path=/trunk/; revision=64482
2014-10-03 09:24:54 +00:00
Eric Kohl 9955f52225 [USETUP]
Re-enable scrolling through multiple disks and support logical partitions.

svn path=/trunk/; revision=63597
2014-06-15 12:02:08 +00:00
Eric Kohl 4e31cd6e0c [USETUP]
Add the create logical partition page.

svn path=/trunk/; revision=63574
2014-06-09 01:49:24 +00:00
Eric Kohl 5d627ea750 [USETUP]
- Add status text for logical partition entries in the partition list.
- Add logical partition creation page dummy.

svn path=/trunk/; revision=63570
2014-06-08 19:05:03 +00:00
Eric Kohl 39465487a9 [USETUP]
Implement scolling through the list of logical partitions. Multiple disks are not supported yet.

svn path=/trunk/; revision=63547
2014-06-07 20:02:26 +00:00
Eric Kohl 15accf6c00 [USETUP]
- ScanForUnpartitionedDiskSpace: Scan the list of logical partitions for unpartitioned space too.
- Fix a little typo.

svn path=/trunk/; revision=63421
2014-05-22 23:31:39 +00:00
Eric Kohl f537d6e8e4 [USETUP]
- Fix a failed partition type assignment, when unpartitioned disk space is converted to an extended partition.
- Rename the extended partition list to logical partition list. 
- Add a pointer to an extended partition to the disk entries. And keep it up-to-date when the primary partition list is built or modified.
- Add the 'Unpartitioned space' partiton entry to the logical partition list when an extended partition has been created.
- Remove all logical partition entries when the coresponding extended partition will be deleted.

svn path=/trunk/; revision=63411
2014-05-22 14:55:04 +00:00
Eric Kohl a5b59586d3 [USETUP]
Display logical partitions. They cannot be selected or modified yet.

svn path=/trunk/; revision=63403
2014-05-21 20:20:18 +00:00
Eric Kohl 8cbded8053 [USETUP]
- Implement creation of extended partitions.
- Add creation checks for primary and extended partitions.

svn path=/trunk/; revision=63392
2014-05-20 23:48:36 +00:00
Eric Kohl 005d881ce1 [USETUP]
First part of the partition management code rewrite. This part fixes the handling of primary partitions. Extended partitions and logical drives are not handled yet. Safety checks and warnings are still missing! Partitions created by the new code are accepted by gparted and Windows.


svn path=/trunk/; revision=63355
2014-05-18 15:14:24 +00:00
Eric Kohl 921ed79298 [FORMATTING]
No code changes!

svn path=/trunk/; revision=63168
2014-05-04 22:03:00 +00:00
Amine Khaldi fa4ca7002c [USETUP]
* Remove one time inclusions from the main header and put them back where they belong.
* Improve the GUIDs situation.
* Improve the main header.
CORE-7716

svn path=/trunk/; revision=61609
2014-01-13 13:01:38 +00:00
Cameron Gutman 022f4b2ce5 [USB]
- We proudly merge the first charge of the usb-bringup branch. We do want to stress hardware support is still under heavy development and testing in real hardware is experimental
- Merge the Human Interface Device Stack(HID) which is used for mice / keyboards and other devices which use the USB interface, consisting of hidusb, hidparse, hidclass, mouhid, kbdhid
- Merge the composite driver, supports USB composite devices, laid out in usbccgp
- Merge the generic hub driver, which supports the USB root hub and in future USB hubs. Driver is usbhub
- Merge the Open Host Controller Interface driver (ohci)
- Merge the Enhanced Host Controller Interface driver (ehci)
- Merge the many fixes in other areas of ReactOS needed for USB to work (ntoskrnl, pci, inf, umpnpmgr, usetup)
- Special thanks goes the Haiku team, whose excellent code has provided a great base for the development of the new ReactOS USB / HID stack
- The development of the USB stack has shown the great potential when ReactOS developers team up together to achieve a common goal. The involved developers are here, listed alphabetically:

Alex Ionescu
Amine Khaldi
Cameron Gutman
Johannes Anderwald
Michel Martin
Thomas Faber
Thomas Lotz(Haiku)

Let's start the ReactOS revolution

svn path=/trunk/; revision=55555
2012-02-12 04:59:51 +00:00