Activity for David Anderson

  • David Anderson David Anderson posted a comment on discussion Open Discussion

    The gdisk command shows my GPT has three partitions. I wish to delete the last partiton shown and add the partiton back in with different values. However, the d command will not allow this. See the output below. sudo gdisk /dev/disk0 GPT fdisk (gdisk) version 1.0.8 Warning: Devices opened with shared lock will not have their partition table automatically reloaded! Partition table scan: MBR: protective BSD: not present APM: not present GPT: present Found valid GPT with protective MBR; using GPT. Command...

  • David Anderson David Anderson posted a comment on discussion General Discussion

    I encounter a problem where if I ran the command sudo ./refind-install --usedefault /dev/disk0s4 again after removing install from showtools. Here a message is displayed stating refind.conf will not be changed, but is in fact changed. In othe words, install is again added to refind.conf. The part of the script where the problem exist is given below. if [[ -f "$InstallDir/$TargetDir/refind.conf" ]] ; then echo "Existing refind.conf file found; copying sample file as refind.conf-sample" echo "to avoid...

  • David Anderson David Anderson posted a comment on discussion General Discussion

    Joevt: I looked an your script to mount a partition. I would not make the mount point in the /Volumes folder. Instead, I would keep using the /tmp/refind_install mount point, when a volumn needs to be mounted. I am not sure why you felt the need to loop until a directory does not exist. Perhaps this is because your script uses the /Volumes folder? When using the --usedefault option, I found refind-install allows installations to mounted volumes after making the following changes. First, I replaced...

  • David Anderson David Anderson posted a comment on discussion General Discussion

    Your script has many flaws. Below I outline one main flaw. The following line determines if the mount point exists as a directory. while [ -d "$mountpoint" ]; do Later, the following line creates the directory. sudo mkdir "$mountpoint" 2> /dev/null Finally, the next line mounts the volume. sudo mount$mounttype "/dev/$slice" "$mountpoint" The problem is the script uses the /Volumes directory. There is no guarantee some other processes will not also be accessing the /Volumes directory. In other words,...

  • David Anderson David Anderson modified a comment on discussion General Discussion

    After some thought, I now realize the mount command in the refind-install script prevents the two different users from executing this script simultaneously. We both have been discussing how to install to a volume that is already mounted. Doing so would be a bad idea. So, having to unmount before running the refind-install script is the correct proceedure.

  • David Anderson David Anderson modified a comment on discussion General Discussion

    After some thought, I now realize the mount command in the refind-install script prevents the two different users from installing rEFInd simultaneously. We both have been discussing how to install to a volume that is already mounted. Doing so would be a bad idea. So, having to unmount before running the refind-install script is the correct proceedure.

  • David Anderson David Anderson posted a comment on discussion General Discussion

    After some thought, I now realize the mount command in the refind-install script prevents the two different users from installing rEFInd simultaneously. We both have been pursuing how to install to a volume that is already mounted. Doing so would be a bad idea. So, having to unmount before running the refind-install script is the correct proceedure.

  • David Anderson David Anderson modified a comment on discussion General Discussion

    joevt: Your script has many flaws. Below I outline one main flaw with the mountpartition funciton. The following line determines if the mount point exists as a directory. while [ -d "$mountpoint" ]; do Later, the following line creates the directory. sudo mkdir "$mountpoint" 2> /dev/null Finally, the next line mounts the volume. sudo mount$mounttype "/dev/$slice" "$mountpoint" The problem is the script uses the /Volumes directory. There is no guarantee some other process will not also be accessing...

  • David Anderson David Anderson modified a comment on discussion General Discussion

    joevt: Your script has many flaws. Below I outline one main flaw with the mountpartition funciton. The following line determines if the mount point exists as a directory. while [ -d "$mountpoint" ]; do Later, the following line creates the directory. sudo mkdir "$mountpoint" 2> /dev/null Finally, the next line mounts the volume. sudo mount$mounttype "/dev/$slice" "$mountpoint" The problem is the script uses the /Volumes directory. There is no guarantee some other process will not also be accessing...

  • David Anderson David Anderson modified a comment on discussion General Discussion

    joevt: Your script has many flaws. Below I outline one main flaw with the mountpartition funciton. The following line determines if the mount point exists as a directory. while [ -d "$mountpoint" ]; do Later, the following line creates the directory. sudo mkdir "$mountpoint" 2> /dev/null Finally, the next line mounts the volume. sudo mount$mounttype "/dev/$slice" "$mountpoint" The problem is the script uses the /Volumes directory. There is no guarantee some other process will not also be accessing...

  • David Anderson David Anderson modified a comment on discussion General Discussion

    Your script has many flaws. Below I outline one main flaw with the mountpartition funciton. The following line determines if the mount point exists as a directory. while [ -d "$mountpoint" ]; do Later, the following line creates the directory. sudo mkdir "$mountpoint" 2> /dev/null Finally, the next line mounts the volume. sudo mount$mounttype "/dev/$slice" "$mountpoint" The problem is the script uses the /Volumes directory. There is no guarantee some other process will not also be accessing the /Volumes...

  • David Anderson David Anderson modified a comment on discussion General Discussion

    Your script has many flaws. Below I outline one main flaw with the mountpartition funciton. The following line determines if the mount point exists as a directory. while [ -d "$mountpoint" ]; do Later, the following line creates the directory. sudo mkdir "$mountpoint" 2> /dev/null Finally, the next line mounts the volume. sudo mount$mounttype "/dev/$slice" "$mountpoint" The problem is the script uses the /Volumes directory. There is no guarantee some other process will not also be accessing the /Volumes...

  • David Anderson David Anderson modified a comment on discussion General Discussion

    Your script has many flaws. Below I outline one main flaw. The following line determines if the mount point exists as a directory. while [ -d "$mountpoint" ]; do Later, the following line creates the directory. sudo mkdir "$mountpoint" 2> /dev/null Finally, the next line mounts the volume. sudo mount$mounttype "/dev/$slice" "$mountpoint" The problem is the script uses the /Volumes directory. There is no guarantee some other process will not also be accessing the /Volumes directory. In other words,...

  • David Anderson David Anderson modified a comment on discussion General Discussion

    Your script has many flaws. Below I outline one main flaw. The following line determines if the mount point exists as a directory. while [ -d "$mountpoint" ]; do Later, the following line creates the directory. sudo mkdir "$mountpoint" 2> /dev/null Finally, the next line mounts the volume. sudo mount$mounttype "/dev/$slice" "$mountpoint" The problem is the script uses the /Volumes directory. There is no guarantee some other process will not also be accessing the /Volumes directory. In other words,...

  • David Anderson David Anderson posted a comment on discussion General Discussion

    Your script has many flaws. Below I outline one main flaw. The following line determines if the mount point exists as a directory. while [ -d "$mountpoint" ]; do Later, the following line creates the directory. sudo mkdir "$mountpoint" 2> /dev/null Finally, the next line mounts the volume. sudo mount$mounttype "/dev/$slice" "$mountpoint" The problem is the script uses the /Volumes directory. There is no guarantee some other processes will not also be accessing the /Volumes directory. In other words,...

  • David Anderson David Anderson modified a comment on discussion General Discussion

    Joevt: I looked an your script to mount a partition. I would not make the mount point in the /Volumes folder. Instead, I would keep using the /tmp/refind_install mount point, when a volumn needs to be mounted. I am not sure why you felt the need to loop until a directory does not exist. Perhaps this is because your script uses the /Volumes folder? When using the --usedefault option, I found refind-install allows installations to mounted volumes after making the following changes. First, I made the...

  • David Anderson David Anderson modified a comment on discussion General Discussion

    Joevt: I looked an your script to mount a partition. I would not make the mount point in the /Volumes folder. Instead, I would keep using the /tmp/refind_install mount point, when a volumn needs to be mounted. I am not sure why you felt the need to loop until a directory does not exist. Perhaps this is because your script uses the /Volumes folder? When using the --usedefault option, I found refind-install allows installations to mounted volumes after making the following changes. First, I made the...

  • David Anderson David Anderson posted a comment on discussion General Discussion

    Joevt: I looked an your script to mount a partition. I would not make the mount point in the /Volumes folder. Instead, I would keep using the /tmp/refind_install mount point, when a volumn needs to be mounted. I am not sure why you felt the need to loop until a directory does not exist. Perhaps this is because your script uses the /Volumes folder? When using the --usedefault option, I found refind-install allows installations to mounted volumes after making the following changes. First, I replaced...

  • David Anderson David Anderson modified a comment on discussion General Discussion

    I encountered a problem where if I ran the command sudo ./refind-install --usedefault /dev/disk0s4 again after removing install from showtools. Here a message is displayed stating refind.conf will not be changed, but is in fact changed. In othe words, install is again added to refind.conf. The part of the script where the problem exists is given below. if [[ -f "$InstallDir/$TargetDir/refind.conf" ]] ; then echo "Existing refind.conf file found; copying sample file as refind.conf-sample" echo "to...

  • David Anderson David Anderson modified a comment on discussion General Discussion

    I encountered a problem where if I ran the command sudo ./refind-install --usedefault /dev/disk0s4 again after removing install from showtools. Here a message is displayed stating refind.conf will not be changed, but is in fact changed. In othe words, install is again added to refind.conf. The part of the script where the problem exists is given below. if [[ -f "$InstallDir/$TargetDir/refind.conf" ]] ; then echo "Existing refind.conf file found; copying sample file as refind.conf-sample" echo "to...

  • David Anderson David Anderson modified a comment on discussion General Discussion

    I encountered a problem where if I ran the command sudo ./refind-install --usedefault /dev/disk0s4 again after removing install from showtools. Here a message is displayed stating refind.conf will not be changed, but is in fact changed. In othe words, install is again added to refind.conf. The part of the script where the problem exist is given below. if [[ -f "$InstallDir/$TargetDir/refind.conf" ]] ; then echo "Existing refind.conf file found; copying sample file as refind.conf-sample" echo "to...

  • David Anderson David Anderson posted a comment on discussion General Discussion

    I encounter a problem where if I ran the command sudo ./refind-install --usedefault /dev/disk0s4 again after removing install from showtools. Here a message is displayed stating refind.conf will not be changed, but is in fact changed. In othe words, install is again added to refind.conf. The part of the script where the problem exist is given below. if [[ -f "$InstallDir/$TargetDir/refind.conf" ]] ; then echo "Existing refind.conf file found; copying sample file as refind.conf-sample" echo "to avoid...

  • David Anderson David Anderson modified a comment on discussion General Discussion

    I am trying to install rEFInd to a FAT formatted partition on a 2018 mac mini. The version of rEFInd is 0.12.0. The output from the command diskutil list disk0 is given below. /dev/disk0 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *251.0 GB disk0 1: EFI EFI 314.6 MB disk0s1 2: Apple_APFS Container disk1 200.0 GB disk0s2 3: Microsoft Basic Data BOOTCAMP 40.6 GB disk0s3 4: Microsoft Basic Data REFIND 103.8 MB disk0s4 The command I entered was sudo ./refind-install --usedefault...

  • David Anderson David Anderson posted a comment on discussion General Discussion

    I am trying to install rEFInd to a FAT formatted partition on a 2018 mac mini. The output from the command diskutil list disk0 is given below. /dev/disk0 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *251.0 GB disk0 1: EFI EFI 314.6 MB disk0s1 2: Apple_APFS Container disk1 200.0 GB disk0s2 3: Microsoft Basic Data BOOTCAMP 40.6 GB disk0s3 4: Microsoft Basic Data REFIND 103.8 MB disk0s4 The command I entered was sudo ./refind-install --usedefault /dev/disk0s4. The error...

  • David Anderson David Anderson modified a comment on discussion General Discussion

    The command sudo ./driveinfo -zcp works, if you first download from the SourceForge driveinfo files page. You incorrectly used the files from the driveinfo source git repository . As explain on the web page The macOS driveinfo Command: Both the math and help files are merged into the driveinfo file to create the released single driveinfo file. When developing driveinfo, I decided to break the source into 3 files. Merging to create a release driveinfo file is jut one extra step in long chain of steps...

  • David Anderson David Anderson modified a comment on discussion General Discussion

    The command sudo ./driveinfo -zcp works, if you first download from the SourceForge driveinfo files page. You incorrectly used the files from the driveinfo source git repository . As explain on the web page The macOS driveinfo Command: Both the math and help files are merged into the driveinfo file to create the released single driveinfo file. When developing driveinfo, I decided to break the source into 3 files. Merging to create a release driveinfo file is jut one extra step in long chain of steps...

  • David Anderson David Anderson posted a comment on discussion General Discussion

    The identifiers disk4 and disk5 are not assigned drives with a GUID Partition Table (GPT). As you already posted, these are APFS containers and therefore do not have any partitions. I do agree the error message is wrong and version 1.0.4 has corrected this. The command driveinfo will now produce a header, but no partition table which is correct becase none exists.

  • David Anderson David Anderson posted a comment on discussion General Discussion

    The command "sudo ./driveinfo -zcp" works, if you first download from the SourceForge driveinfo files page. You incorrectly used the files from the driveinfo source git repository . As explain on the web page The macOS driveinfo Command: Both the math and help files are merged into the driveinfo file to create the released single driveinfo file. When developing driveinfo, I decided to break the source into 3 files. Merging to create a release driveinfo file is jut one extra step in long chain of...

  • David Anderson David Anderson posted a comment on discussion General Discussion

    Threre a website https://driveinfo.sourceforge.io which contains instructions. If this is not sufficient, then please post what you feel should be added.

  • David Anderson David Anderson modified a comment on discussion General Discussion

    The driveinfo script parses plists returned by the diskutil command. When an error in parsing occurs, the message "This script is incompatible with the current version of macOS." is sent to stderr and the script terminates. Unfortunately, I can not correct the error because I would need the plist that could not be parsed. You would have to include the plist for the drive and each slice. For example, if this error occurred for disk0 and there were two slices (disk0s1 and disk0s2), then you would have...

  • David Anderson David Anderson posted a comment on discussion General Discussion

    The driveinfo script parses plists returned by the diskutil command. When an error in parsing occurs, the message "This script is incompatible with the current version of macOS." is sent to stderr and the script terminates. Unfortunately, I can not correct the error because I would need the plist that could not be parsed. You would have to include the plist for the drive and each slice. For example, if this error occurred for disk0 and there were two slices (disk0s1 and disk0s2), then you would have...

  • David Anderson David Anderson committed [63937b]

    Fixed description in the man page for the x option.

  • David Anderson David Anderson committed [0ef7f4]

    Added web documents and added to whatis database.

  • David Anderson David Anderson committed [3b083a]

    Added option to install.

  • David Anderson David Anderson committed [ab684c]

    Updated man page.

  • David Anderson David Anderson committed [455a71]

    Changed exit status for failure to 2. Updated man page.

  • David Anderson David Anderson committed [75571f]

    Added files so web site could be created.

  • David Anderson David Anderson committed [b1aa49]

    Corrected grammar and changed version to 1.0.1 beta.

  • David Anderson David Anderson committed [72c9e9]

    Fixed help text. Added news.txt file.

  • David Anderson David Anderson committed [6715c3]

    Adding files driveinfo, help and math.

  • David Anderson David Anderson modified a comment on discussion Open Discussion

    I was wondering when gdisk would be updated to handle Apple's new APFS partition type. I would suggest adding a af04 to represent this type.

  • David Anderson David Anderson posted a comment on discussion Open Discussion

    I was wonder when gdisk would be update to handle Apple's new APFS partition type. I would suggest adding a af04 to represent this type.

  • David Anderson David Anderson committed [386f89]

    Added emplace function.

  • David Anderson David Anderson committed [a4df14]

    Rewrote validation.

  • David Anderson David Anderson committed [6e5174]

    Another update to validateRecords. Suggest values for type 5 count.

  • David Anderson David Anderson committed [decbbc]

    Updated validateRecords and added Item to bsBase.

  • David Anderson David Anderson committed [7cc63a]

    Another update to validateRecords.

  • David Anderson David Anderson committed [7bb8e3]

    Added option to generate a random mbr id.

  • David Anderson David Anderson committed [cc3063]

    Added MBR/EBR validation to readgpt and writegpt.

  • David Anderson David Anderson committed [7d8096]

    Added CRC checking to binary and hex input/output.

  • David Anderson David Anderson committed [efc382]

    Changed default CHS computation.

  • David Anderson David Anderson committed [10edef]

    Redirected error output through the console.

  • David Anderson David Anderson committed [75e7cd]

    Update GPT verification.

  • David Anderson David Anderson committed [e39b33]

    Added class costream.

  • David Anderson David Anderson committed [8d8a01]

    Entered way to compute CHS for small drives.

  • David Anderson David Anderson committed [faf540]

    Moved program name function to common namespace.

  • David Anderson David Anderson committed [3150f1]

    Updated reading of MBR/EBR text data.

  • David Anderson David Anderson committed [28969f]

    Added class unsigned_set.

  • David Anderson David Anderson committed [156a2a]

    Remove parameter specifying a GPT from writembr.

  • David Anderson David Anderson committed [a279c4]

    Addd code to convert to/from LBA and CHS.

  • David Anderson David Anderson committed [43fd3b]

    Cleaned up and removed uneeded code.

  • David Anderson David Anderson committed [a2d8f7]

    Change format for reading GPT from a text file.

  • David Anderson David Anderson committed [064be5]

    Changes do to port to VS.

  • David Anderson David Anderson committed [7387da]

    Made cyl, head, sector info optional for text input.

  • David Anderson David Anderson committed [b5116e]

    Added option to readgpt.

  • David Anderson David Anderson committed [740087]

    Removed classes gptSpace, gptTable, gptTables and gptBaseItem

  • David Anderson David Anderson committed [a52dfa]

    Update text writing of tables.

  • David Anderson David Anderson committed [5a6c66]

    Moved storeDigit to common.

  • David Anderson David Anderson committed [9d16b6]

    Fixed error when constructing Pri/Sec GPT from Sec/Pri.

  • David Anderson David Anderson committed [815f11]

    Updated Type() function.

  • David Anderson David Anderson committed [4b0ec4]

    Edited linux debug and release project files. Only tested on Ubuntu.

  • David Anderson David Anderson committed [c29a11]

    Added Linux projects.

  • David Anderson David Anderson committed [3b4aff]

    Upgraded to VS2017.

  • David Anderson David Anderson committed [fd1bbf]

    Changes needed do to port to Ubuntu.

  • David Anderson David Anderson committed [b082d7]

    Updated readStream.

  • David Anderson David Anderson committed [137c33]

    Removed Allocator class.

  • David Anderson David Anderson committed [1fd84b]

    Replace New5 with New

  • David Anderson David Anderson committed [8818ff]

    Converted MBR to use new (5) dynamic allocation.

  • David Anderson David Anderson committed [ea5eff]

    Removed Wrapper class.

  • David Anderson David Anderson committed [462444]

    Changed so gpt header is not longer inherited.

  • David Anderson David Anderson committed [4dcc46]

    Changed how dynamic objects are created.

  • David Anderson David Anderson committed [648e52]

    Rearranged class in mbr.h

  • David Anderson David Anderson committed [11653d]

    Made MBRs/EBRs separate objects.

  • David Anderson David Anderson committed [7c7187]

    Removed class MBR. Renamed MBR_ to MBR.

  • David Anderson David Anderson committed [cd86dc]

    Added template<bool B> class mbrXItem.

  • David Anderson David Anderson committed [513df9]

    Fixed problems porting to Xcode.

  • David Anderson David Anderson committed [bf6511]

    Put conditionals on debug write statements.

  • David Anderson David Anderson committed [5e784c]

    Added code to empty GPT stored as binary. Added...

  • David Anderson David Anderson committed [d55ea1]

    Added set and reset to environment variable.

  • David Anderson David Anderson committed [c282ce]

    Added reading of environment variable to contro...

  • David Anderson David Anderson committed [e57f8b]

    Added function to determine if the MBR should b...

  • David Anderson David Anderson committed [3abf03]

    Fixed linker errors wrt rpcrt4.lib.

  • David Anderson David Anderson committed [41ee8d]

    Removed commented out code that has depreciated.

  • David Anderson David Anderson committed [7de923]

    Added code to allow writembr to read GPT data.

  • David Anderson David Anderson committed [7b1f85]

    Allowed writegpt to read the MBR/EBRs as text.

  • David Anderson David Anderson committed [e62567]

    Updated conditional output of info and headers.

  • David Anderson David Anderson committed [8fc71d]

    Corrected errors in messages.

  • David Anderson David Anderson committed [86bc39]

    Updated VS release compile options for readhex ...

  • David Anderson David Anderson committed [ea97e0]

    Added reading of GPT to writembr.

1 >