Post not yet marked as solved
Hello everyone,
I'm having a little issue with mounting my external hard drive lately. I've tried quite a few methods in hope of getting it to work again, but so far, no luck. I hope someone can help me solve this issue, or those who have the same problem may also share your insights.
My external hard drive was working fine about a week ago. But one day, I ejected the hard drive and the icon disappeared, so I thought it was safe to unplug it. When I did, it said the hard drive was not properly removed. It still works fine when I use it the next day, but the same thing happened. It said the drive was not properly removed after I ejected the drive, waited for the icon to disappear, and then unplugged the drive. After that, it never works again, and the attached images are the info I got when I tried to mount or run first aid on this drive.
Please help & thank you in advance!
Computer: 27" iMac - MacOS Monterey
External Hard Drive: WD_Black 4TB. APFS encrypted
Post not yet marked as solved
How do I programmatically mount an APFS encrypted device?
If it is a normal device, Can be mounted using DADiskMount of Disk Arbitration Framework.
However, in the case of APFS encryption, it will not be mounted even if DADiskMount is used in the same way.
I think it requires a password to mount.
Please tell me if there is a way to programmatically mount the APFS encrypted device.
The language I'm currently using is Objective-C.
Post not yet marked as solved
Hi Team,
Looking for a solution, to identify If MAC have Multiple Apple OS's installed or not.
Tried searching with StartupDisk, BootableManager etc, No luck
#OSX #APPLEDEVELOPPERFORUM
Post not yet marked as solved
Hello everyone, here I open a post about a serious bug of the APFS Encrypted filesystem which apparently is affecting many users. Suddenly, my external drive (WD 5TB portable) stopped mounting correctly. It asks me for the password, I enter it correctly, it tells me that it is incorrect (while it is), I re-enter it and after a couple of seconds the screen disappears but the disk is not mounted on the desktop. I use Monterey 12.1 on a 16 ”i9 MBP. With disk utility I see the partition (occupied for 1.46 TB) but I cannot use it, since it gives me (com.apple.DiskManagement.disenter error 49218). Has anyone solved the problem? Is there any tool that allows me to mount the disk to copy the data? Is it possible that there is such a big bug and Apple does nothing? Thanks everyone for the answers.
Post not yet marked as solved
Hey guys, i have recently tried to restore my 15" 2015 macbook pro after i upgraded to Monterey. Turns out half my apps dont work on it so i thought id just restore it from time machine.
I booted the macbook up in recoverey mode and started the recoverey process however it has not moved from "preparing to restore" for the last 24hours. I checked the log and the last entry is:
Macbook-pro OSInstaller[488] : [RESTORE] Erasing disk 'Mac' to filesystem type 'KSKDiskFileSystemAFPS', Case sensitive: No
I am currently using a seagate one touch 5TB to restore from and i was just wondering is it usual to have to wait so long or has it frozen? And what am i doing wrong?
TL;DR C function can't open MP3 file in app's documents directory, am I missing any sort of permissions?
I am trying to create an app to play music through the BASS Audio Library for C/C++ and while I have it playing music, I cannot seem to have it open local files.
To create a stream from a file to play in this library, you use BASS_StreamCreateFile(); function, which you pass a URL to the file to use, but even thought I can verify the URL I passing is correct and the file is in the files app, it throws error code 2 "Cannot open file"
However, when I use BASS_StreamCreateURL(); and pass in a URL from the internet, it works perfectly, so I have to assume the problem has something to do with file permissions.
Here is the C function in which I am creating these streams
int createStream(const char* url) {
//HSTREAM stream = BASS_StreamCreateURL("https://vgmsite.com/soundtracks/legend-of-zelda-ocarina-of-time-original-sound-track/fticxozs/68%20-%20Gerudo%20Valley.mp3", 0, 0, NULL, 0);
HSTREAM stream = BASS_StreamCreateFile(false, url, 0, 0, 0);
if (stream == 0) {
printf("Error at createStream, error code: %i\n", BASS_ErrorGetCode());
return 0;
} else {
return stream;
}
}
In the commented out line is the working Stream created from a URL
And here is the URL I am passing in
guard let documentsURL = fileManager.urls(for: .documentDirectory, in: .userDomainMask).first else { return }
gerudoValleyURL = documentsURL.appendingPathComponent("GerudoValley.mp3")
stream = createStream(gerudoValleyURL.absoluteString)
I can confirm that the MP3 "GerudoValley.mp3" is in the app's documents directory in the files app.
Is there anything I could do to allow this C file to open to open MP3's form the App's documents directory? The exact MP3 from that link is already there.
Post not yet marked as solved
I am an end user, not a developer. I have a 2019 MacBook Pro 16" 1 TB SSD running Monterey 12.3 Beta. I got it from a reseller and it's my first Mac so I don't know much about anything. Just trying to learn about Macs after 40 years with Windows.
Time Machine is set up with an external 4 TB Seagate drive. Set up for encryption and automatic backups. It has completed a few back ups for about 288 GB but says a full back up would be 980 GB. Periodically I get an error message that says a back up can't be completed because a snapshot of the disk couldn't be created. Or it will say there's not enough space on the Time Machine drive, which makes no sense since it's so much larger. l've reformatted the Ext HD and started over but it's still not working right.
Ideas?
Post not yet marked as solved
I have an external SSD I've used for a while with no issue. I've recently been using it on my iPad on the go, also with no issue.
When I wanted to use it on a Mac today (after using it on my iPad for a while), the disk wouldn't mount anymore. Still does on the iPad for some reason. Tested on MacOS 12.2 & 12.2.1
Any ideas as to how this can happen ?
Here's what Disk Utility's First Aid tells me:
Running First Aid on “ExtSSD” (disk8s1)
Checking file system and repairing if necessary and if possible.
Volume is already unmounted.
Performing fsck_apfs -y -x /dev/rdisk8s1
Checking the container superblock.
error: (oid 0x14e776) om: invalid o_oid (0x71ff)
error: (oid 0x14e776) om: invalid o_type (0x3, expected 0x4000000b)
error: (oid 0x14e776) om: invalid o_type (0x3, expected 0x4000000b)
error: verification/reading of the omap object failed: Illegal byte sequence
warning: checkpoint 192 (xid 26927) failed consistency check
Checking the space manager.
error: spaceman cib out of order: 0, expected 2
Space manager is invalid.
The volume /dev/rdisk8s1 could not be verified completely.
File system check exit code is 8.
Restoring the original state found as unmounted.
File system verify or repair failed. : (-69845)
Operation failed…
Or directly Via CLI:
❯ sudo fsck_apfs /dev/rdisk8s1
** Checking the container superblock.
error: (oid 0x14e776) om: invalid o_oid (0x71ff)
error: (oid 0x14e776) om: invalid o_type (0x3, expected 0x4000000b)
error: (oid 0x14e776) om: invalid o_type (0x3, expected 0x4000000b)
error: verification/reading of the omap object failed: Illegal byte sequence
warning: checkpoint 192 (xid 26927) failed consistency check
Checking the checkpoint with transaction ID 26926.
** Checking the space manager.
error: spaceman cib out of order: 0, expected 2
Space manager is invalid.
** The volume /dev/rdisk8s1 could not be verified completely.
Post not yet marked as solved
Hello dear kindly I need your support about this problem since I update my iOS 15.3.1 every time I have a call and get waiting I can’t close this sound beep beep beep beep beep only solution to end this sound press on lock bottom so both of call will end or I can reject and answer second call or I can reject only or I can answer and hold
So please I need solution for this problem
The ZIP file (sample.zip) contains the Cocoa application file (sample.app). If you copy the ZIP file (sample-new.zip) and extract it using the following code, the contents of the extracted folder (sample.app) are the same when compared by diff. However it is not recognized as an Cocoa application.
sample.app is converted to AppleDouble format in advance using ditto -c-k.
using System.IO.Compression;
var zipFileName = "sample.zip";
var newZipFileName = "sample-new.zip";
var zipPath = $@"./data/{zipFileName}";
var newZipPath = $@"./data/{newZipFileName}";
// open ZIP file.
using (var archive = ZipFile.Open(zipPath, ZipArchiveMode.Read))
using (var memoryStream = new MemoryStream())
using (var newArchive = new ZipArchive(memoryStream, ZipArchiveMode.Create, true))
{
foreach (var entry in archive.Entries)
{
var newEntry = newArchive.CreateEntry(entry.FullName);
using var archiveEntry = entry.Open();
using var newArchiveEntry = newEntry.Open();
archiveEntry.CopyTo(newArchiveEntry);
}
newArchive.Dispose();
using var fileStream = new FileStream(newZipPath, FileMode.Create);
memoryStream.Seek(0, SeekOrigin.Begin);
// create new zip file
memoryStream.CopyTo(fileStream);
}
I would like to know why it is not recognized as an application even though the files in the folder are the same.
This sample.app will of course work if copied in Finder app, but I don't know if it's because the Application file is missing some specification or why copying in code doesn't work.
Thanks.
Post not yet marked as solved
Recently I tried to use mac asr command to backup my mac. However, I got different error on different mac devices.
While I tried to asr backup my "Intel Mac 10.15.7", following is the command i used:
asr restore --source {system role volume} --target {another container's volume} --toSnapshot "{snapshot I take on both system role and data role}" --erase.
After running asr, it shows "Volume replication failed - error 49157" while backing up data volume.
I tried another asr backup on my "M1 Mac 12", following is the command i used:
asr restore --source {system role volume} --target {another container's volume} --toSnapshot "com.apple... (the snapshot that system snapshot mount)" --erase.
After running asr, it shows "Couldn't embed the APFS EFI driver - error 49174" at the end of asr. (while it's 100% done)
Does anyone know any detail info / document / solution about the asr error code?
Currently I cannot find anything about 49157 / 49197 error code.
Post not yet marked as solved
If someone modifies a Big Sur or Monterrey boot disk and attaches it to my standard Big Sur or Monterrey machine booted from the internal will reads of the modified files succeed?
Post not yet marked as solved
I checked my Disk Utility and it shows "Macintosh SSD - Data (APFS Volume APFS" and there's 3 of these.
Sometime ago I had it repaired through an Apple Service Center because the logic board was damaged. Now, I got a new board, I tried to reformat the drive but the only option is APFS format and nothing else.
Any thoughts?
Post not yet marked as solved
Hi there, I have a 13” 2017 MacBook Air, and I had boot camp, and ended up deleting my MacOS partition.
After a while I had attempted to switch back with Internet Recovery working fine but when I go to install the latest OS, there isn’t a drive to select.
My windows partition (wiped and changed to MacOS Journaled) is the internal disk and is almost all of my storage, with my MacOS base being a disk image, so even if the disk were to appear I would not have enough space to install MacOS anyway. I’m not incredibly tech savvy with Apple computers, so anything that could point me in the right direction would be awesome thank you.
Post not yet marked as solved
Using older hardware and older versions of Safari, it is a big problem to have this setting. Can anyone give me a simple, if there is such a thing, instruction on how to lock this setting to only use Safari in the version used, as the only permitted user agent?
I clearly know next to nothing about computers, but I love my old Macbooks!
Post not yet marked as solved
I bought a MacBook Air M1 2020 with Mac OS Monterrey and tried to transfer data from my Old Mac SSD with High Sierra over usb, at first it mounted fine then I plug it back again after 5 days and it didn't mount it ever since. can someone help me how to fix this bug on OS Monterrey.
Post not yet marked as solved
Recently we've been working on file-based backups on macOS 10.15.7. When I finish the system volume group backup, including
The system role volume, default volume name 'Untitled' usually
The data role volume, default volume name 'Untitled - Data' usually
Next step, I launch Migration Assistant and choose "From a Mac, Time Machine backup or startup disk" to restore volume data.
But when I select the backed-up system role volume, a warning message poped up and tell me "Volume contains a macOS or OS X installation which may be damaged".
I try to rebuild folder firmlink from /usr/share/firmlinks before backing up data role volume, like the following steps:
Add SF_FIRMLINK by chflags to folders on system role volume
Add extened attribute com.apple.fs.firmlink which value is target file name
Make sure other attributes(creation time, permission, owner, group, etc) are the same between source and destination
But it still doesn't work (I check inode number on backed-up system role volume by "is -ailO").
I search some informations and find this blog:
https://bombich.com/blog/2020/05/27/bug-in-macos-10.15.5-impacts-bootable-backups-weve-got-you-covered.
So my question is "How do I recover firmlink between backed-up system role volume and data role volume?"
Thanks a lot
Post not yet marked as solved
This is a question I have concerning features on IOS that don’t exist as far as I am aware but I think should. What were the software developers thinking when they said yes let's not have separate volume controls. When I am on the phone for example and I want to watch a video or listen to a voice message I can't hear it because the call overrides the media, I know this is not just me everyone has to deal with the missing feature of separate volumes it would be so nice to access the control centre click volume and have 4 options 1 for media another for notifications a third for calls and a 4th for alarms every other phone manufacture has this feature including android. Another annoying feature that apple lacks is the fact the torch cannot be used if the camera is in action on FaceTime or camera - again this can be included by a simple software update I’m sure it is a case of a few l more lines of code? And a simple feature all other phones have. Not many people seem to care about this but I know many would think wow that's so much better if it was bought out or maybe it’s because they don’t know any different. Small things make a big difference to user experience.
I wonder if there is already a plan to bring these features IOS. it would be very useful don’tyou agree
Tanks for reading
-George
Post not yet marked as solved
Not sure if this is the right place. But I bought a used Mac air 2017. I did a erase and reinstall. When I did the erase it looked like nothing erased. I did it twice and thought it worked. It did to a point. It looks like a new reinstall but when I try to upgrade to Monterey after it downloaded said it don’t have enough space. I have 128 and only 9 gb left . It has nothing on it but a new install. Should it not be like 56gb used and he rest free? It’s like nothing erased. I’m lost. Need help thanks.
Post not yet marked as solved
Hi All,
I have created .app on my MacBook Pro 11 big sur.
that .app has shell script wrapped.it is working on my local machine but when I zipped and uploaded to the Microsoft drive and downloaded back and unzip the file then I can see the extend attribute permissions added to that folder @ sign added . How to solve this whiteout terminal