I am experiencing an identical problem to the one in:   However this thread in unanswered and unresolved  My internal drive can format to everything except APFS, I have tried troubleshooting via linux, and simple disk utility. Fsck and first aid both report no problems and this is driving me insane!! help desperately needed!
85764
I’ve recently ran a semi-routine clean install on my 2018 MacBook Pro. This involves the following steps (in the given order):   Creating a USB installer with the latest macOS Mojave 10.14.2. Booting into the USB (Pressing Option key on boot). Using the Disk Utility, erasing the Disk and formatting it as APFS with a GPT Partition scheme. Using the Terminal, unmounting the disk diskutil unmountDisk disk0, where disk0 is the internal NVME drive. Using the Terminal, running gpt destroy disk0 where disk0. Using the Terminal, running diskutil zeroDisk disk0. Once that process is complete, I use the Disk Utility application to reformat as APFS, and install macOS.   Nothing super crazy, maybe a little redundant in steps, maybe a little overkill, maybe a little unnecessary.  Recently, however, on the final step where I format it as a APFS drive, it fails in creating the APFS container and says Internal State Error. It appears to first format as Mac OS Extended (Journaled) then create an APFS container, then add a APFS Volume. It fails when adding a Volume with An internal error occurred.  I have tried many things, including:   Securely erasing the drive diskutil secureErase 0 disk0. Simply zeroing the disk again diskutil zeroDisk disk0 (I’m not sure what the actual difference between these two are). Reformatting the drive as other things, such as ExFAT / FAT / MacOS Journaled, then trying to format as APFS. Reformatting the drive through the command line instead: diskutil eraseDisk JHFS+ NAME disk0 → diskutil apfs createContainer /dev/disk0s2 → diskutil apfs addVolume disk0s2 APFS NAME (It fails here with Error starting APFS Container creation: The given disk is not an APFS Container Reference (-69630), even though I just made a container there. Also, trying to add a volume to where it actually made the container (i don't know what it does this) diskutil apfs addVolume disk24 APFS NAME also fails with Error: -69624: Unable to add a new APFS Volume to an APFS Container Reformatting the drive using this: diskutil eraseDisk APFS NAME disk0 Restarting and trying these again. Using a different installer than the USB (The one from Command + R, Command + Shift + R, and whatever the other combo is), and trying these again.   All end up at the same thing - the final step fails. I would expect especially after a secure wipe that the drive would be removed from whatever state it was put in, or that if it was a bug with the 10.14.2 installer, that it still wouldn’t happen again in the High Sierra installer. In Disk Utility, I’m left with the following structure:  - APPLE SSD AP(...) // “Container disk24” takes up all space      - Container disk24 // or some other number. “Used” is 207.2MB and “Free” is 1TB.   Please note even though I can format as JHFS+, it won’t let me install the OS to such a formatted volume. The installer tells me this computer forces me to only install on APFS formatted volumes.  Any direction is greatly appreciated. I have never had such a silly problem before. Also, note that I have no Time Machine backup.
76462
I have a 2 TB HFS+-formatted external hard drive that got dropped a couple of days ago while transferring files onto a Macbook Pro.  Now the drive's partitions won't mount.  Disk Utility can see the drive, but doesn't recognize that it has any partitions.  I've tried using  to recover files off of it, but it couldn't find anything.  In addition, our local computer repair shop said they couldn't find anything on there either.  I know that I could ship the drive off to someone like , but I was hoping for a cheaper option (since they start at about $500 for the attempt).  Is there something else I could try on my own?  Would  be able to help with something like this?
30817
Note: TL;DR, scroll to bottom for summary. I recently set up my computer for a dual boot between Ubuntu 9.10 and Windows 7. My current drive setup is as follows.  | A1 |     A2       | | B1    |  B2  | B3 |        A1: 100 mb, windows 7 "System   Reserved" boot partition      A2: 230 gb, data section, this one   needs to be shared between the   operating systems      B1: 125 gb, windows 7 OS      B2: 123 gb, ubuntu OS      B3: 2gb, linux swap space     Pretty much I want to have my documents, music, pictures, videos, etc accessible from both operating systems. My first attempt involved making the data (a2) partition NTFS, and moving my home folder from ubuntu to the data partition. However, as I read NTFS does not work nice with permission, and it messed up my home folder. My next idea is one of the following: 1) format the data partition to ext2/3/4 and move my home folder from linux there, and get a driver to read ext partitions in windows 7. The problem with that is that most of the ext drivers/software are not compatible with windows 7 or do not integrate with windows explorer (I really don't want to open a separate software window just to access my data, plus it's probably not compatible with other software.)  looks promising, but I'm not sure how it works with ext4 and windows 7 (not officially supported, when trying in Vista Compatibility Mode, it tells me I need to format the ext drive to use it). My next idea, 2) keep the home folder in ubuntu where it is, but create symlinks for the Documents, Music, etc folders to an NTFS formatted Data (A2) partition, and add those locations to the windows 7 libraries. I'm not totally sure how the permissions would work out, but it should be fine since it's only the documents, music, etc and not the important config files in the rest of /home/user/. Correct me if I'm wrong. Currently, symlinks is my best idea, although i'm not sure how it will work.  Any suggestions, additions to my ideas, links, pointers, whatever would be greatly appreciated. Even if it means I should reformat both my drives and repartition (2 250gb drives if you want to suggest a setup for that), I won't be too opposed if that's the best suggestion (I've gone through the format/install/format/reinstall process 5 times over the past 3 days, once more won't hurt me).    TL;DR, summary:  I have two hard drives. One is partitioned for Ubuntu and Windows 7, the second one I want accessible to both operating systems to store documents, music, pictures, videos, etc. Suggestions on how to set up the data drive.    P.S. bonus if I can get an apache server document root folder working between the two OS's as well (permissions could become very complicated, so don't worry too much about that)  P.P.S. Related question, but data viewing is one way:
8196
I plugged in my external harddrive (which was formatted on my Mac into HFS+ journaled) to my Ubuntu desktop 9.04 64bit.  I am not able to get the drive to mount with write capability, how do I do that?  Right now all I'm getting is read access, I tried  sudo mount -t hfsplus /dev/sdf2 /media/"Portable HD"   but that still gave me only read access...  ideas??
119852
I understand that you can  without formatting or backing up the data and later restoring - is the same thing possible in the other direction?  I want to convert my NTFS portable hard drive to FAT32 so that my PS3 will recognise it.  If it's not possible from within Windows, are there any free programs which will allow me to do it?
83178
I'm very new to this and I've been at trying to fix this problem for about two hours to no avail.  I just finished getting my new computer put together and installed a new 2TB Seagate hard drive as a secondary drive (my boot drive has no problems at all). I have it formatted into two petitions, one in ext4 through GParted. I want to use this partition to store extra files and programs (specifically games and CAD stuff). I went to make a steam library folder in it and found that it's read only. It is at /dev/sda1  I first attempted to reformat it to no avail. I looked around for some help (most of what I found related to external storage) and tried a few things through the terminal to change the owner.  mount /dev/sda3 /mnt/   Returned "only root can do that."  I'm stuck past here, I've tried a couple other things I can't hunt down now, but every attempt gives an access problem to me. How can I change this and regain access? Are there more effective ways to map/install this drive for this purpose to avoid this problem in the future? Thank you!
96244
Just wait a minute before flagging this as off-topic. I can't believe this is not Ubuntu-related since everything happened just after my Ubuntu installation.  With this said I'll go on explaining what is happening:  I downloaded and installed the latest version of Ubuntu. I wanted a BIOS mode since I prefer this way and completed the installation process. Then I installed GNOME and rebooted. I lost access to my bios after all of this.  This is not the first time that has happened. It happened in the past and I solved switching boot partition in boot-repair using my secondary HDD but now I can't do that any more because I do not have a Windows partition on that drive.  This is my drive:  Disk /dev/sdb: 119,2 GiB, 128035676160 bytes, 250069680 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xcaa3841c  Device     Boot Start       End   Sectors   Size Id Type /dev/sdb1  *     2048 250068991 250066944 119,2G 83 Linux   When I tried boot-repair, at the end of the process it said I had to make a 500mb partition at the beginning of the partition list so that grub could work properly but hey, here's another problem:  GParted stopped working. This is the error if I try to launch it:  Created symlink /run/systemd/system/-.mount → /dev/null. Created symlink /run/systemd/system/mnt-Archive.mount → /dev/null. Created symlink /run/systemd/system/mnt-Linux\x20Games.mount → /dev/null. Created symlink /run/systemd/system/run-user-1000.mount → /dev/null. Created symlink /run/systemd/system/tmp.mount → /dev/null. /usr/sbin/gpartedbin: error while loading shared libraries: libgtkmm-2.4.so.1: cannot open shared object file: No such file or directory Removed /run/systemd/system/-.mount. Removed /run/systemd/system/mnt-Archive.mount. Removed /run/systemd/system/mnt-Linux\x20Games.mount. Removed /run/systemd/system/run-user-1000.mount. Removed /run/systemd/system/tmp.mount.   I want to mention that:   yes I'm sure I'm using the right button to enter the bios no there is no bios splash screen no, nothing happens if I spam the DEL key to enter the bios yes the key works fine yes I tried to unplug every drive yes I tried to reset CMOS yes I installed the OS in BIOS mode, I checked via terminal.   This is the output from boot-repair     This is the message alert saying that I need to make a partition to properly boot:      The boot files of [The OS now in use - Ubuntu 17.04] are far from the start of the disk. Your BIOS may not detect them. You may want to retry after creating a /boot partition (EXT4, >200MB, start of the disk). This can be performed via tools such as gParted. Then select this partition via the [Separate /boot partition:] option of [Boot Repair]. ()
974
I am on a MacBook Pro 13 running latest Sierra. I have an external Seagate solid state hard drive that was working and out of the blue stopped working. The only thing on it was my Adobe Lightroom images/videos. Not the LR DB files. I'm sure you have all heard this woe before, so I won't dwell on that. And yes, I back up to the cloud. AWS S3 specifically. Though I am traveling South East Asia for the last year, and staying in cheap hostels. So good internet is hard to come by sometimes. I can't back it up after every export. While most of it is backed up, there is some that is not.  Moving on. The symptoms seems to change every time I plug it in. The first sign was it ejected on it's own. I plugged it in again, and it wouldn't mount. Disk Utility recognized it, so did the command line diskutil list but it wouldn't mount. I rebooted and it worked for a second. Then I could only get to it from the command line. Then trying to frantically back up to my local what was not backed up to the cloud, it all failed. Basically just a cp -R [directory] [local-directory] command.  After some more frantic unplugging and re-plugging plus some command line manual mounts, I finally got it to where the Disk Utility would be able to run first aid on it. It failed. I don't recall the error. So I put it in a freezer. After a few hours I tried again. It is not any better. It still will not mount. Now Disk Utility sees it, but with no partition. I can't even give me information about how much space is used on it.  I have also tried it from a Windows machine. It did not mount. I have tried other cables. No success. As well as tried my other USB port. I also have another working external hard drive exactly like the one giving me issues. It works on all cables and USB ports.  I do have Docker running with a Ubuntu container, I'm trying to think of a way to see if I can try to get to the USB from there. I also have a USB that I have thought about running a live Ubuntu on there to see if I can mount and retrieve the data or fix the HDD that way. But if it will not mount, I doubt these will work.  Can anyone else think of any other tricks I can try myself to see if I can repair this or at least retrieve the data without paying for a service or software? If not, those suggestions are also welcome.  Update   I made the mistake in original post that it was a Solid State Drive. This is my mistake, it is actually a spinning disk hard drive. I bought them long ago and have been traveling with them for so long I just forgot. Question is updated to reflect this. Now diskutil list does not show it at all. The Disk Utility app also does not see it. Based on suggestion from @Allen I seeked out the USB to SATA cable. I did not quite find it, as my options are extremely limited where I am at. Though a local expat on a facebook group was able to help me with a empty 2.5 casing that I was able to extract the drive from original casing and put it in his blank case. It now mounts. Though it has the "click of death" sound to it. And data is not really reachable. While I can ls the directories and Adobe Lightroom does not have the exclamation mark when it can not reach the actual external files. Right clicking on the images and clicking on "Show in Finder" or any other variation of trying to get to the files through Finder or terminal, I have no success. It usually hangs and I get the spinning wheel. Since Adobe Lightroom imports these images into directories named by date, I am going to send the drive off to a data recovery service and ask to recover just unbacked up directories i.e. dates. Next time I will make harder efforts to backup and probably get an actual SSD.   I think this can be closed, due to my low reputation points I can not close this myself.
25341
IIRC then the mount options shown in /proc/mounts have changed. Some time ago acl and user_xattr were shown, now it seems that only noacl and nouser_xattr are shown if these features are turned off.  Where is this configured? Does that depend on the compiled-in defaults of the filesystem code? How can I check whether a volume supports e.g. ACL? Is there a better solution than testing with setfacl, getfacl?
36468
I have a MicroSD card in a USB adapter (which plugs into a USB port on my machine, and acts like a USB flash drive). I was using Unetbootin to make this a bootable USB flash drive with Kubuntu. But I needed to cancel while it was working. So I killed the Unetbootin process from the console.  Since then, I can't format the MicroSD or delete the folder that Kubuntu made. I have also tried mkdosfs, with no success. I can't mount the drive anymore either? What can I do to make this drive usable again?  Trying to create a new partition table in GParted, as described in Eliah Kagan's answer, does not work. It fails with the error message "imposible crear tabla de particiones" ("unable to create a partition table").
79655
I have already had the same problem before. On that occasion, I found a program that could scan my entire hard drive for string pieces so I could recover it. Unfortunately I don't remember the name of the program. It had to access the hard drive data directly, normal searches won't get any data from the hard drive before formatting.
44023
I have a shiny new 5TB WD Black and was hoping to use it as the OS System disc and for a fair number of audio production programs, Workstations, samplers, synthesizers and such. Moving from a 2TB. The new drive loses nearly 3 TB as "unallocated space" if run direct from the Win7 program disc. I reset the drive, initialized it in GPT, got back all 5 TB but can't put the OS there. Do any newer versions allow this or do I go backwards to a 4 year old 2 TB that's in the habit of crashing to bluescreen at least daily and use the new one for all programs but windows? (I'm backing the old drive up using Acronis in total as I type, (tired of rebooting ). Win 10 upgrades are free right now...will this change allow me to increase the storage on my system while using a new drive for the system? Old format has 2TB OS + programs, 3TB full of samples, 2 x 3TB as RAID backup system, too many usb drives to list when I need to empty stuff out......Thank in advance!
35383
I had a problem (new to me) last week. I have a ext4 (Fedora 15) filesystem. The application that runs on the server suddenly stopped. I couldn't find the problem at first look.   df showed 50% available space. After searching for about an hour I saw a forum post where the guy used df -i. The option looks for inodes usage. The system was out of inodes, a simple problem that I didn't realize. The partition had only 3.2M inodes.  Now, my questions are: Can I make the system have more inodes? Should/can it be set when formatting the disk? With the 3.2M inodes, how many files could I have?
80352
Possible Duplicates:             I thought that all operating systems would merge folder content when being moved to the same location. Imagine my surprise when that didn't happen and I have hundreds, if not thousands of files that have gone missing and are nowhere to be found.  Because they were not "deleted" they are not in the trash bin.  I've tried to do some recovery using a program called stellarPheonix but after about a 24hour scan, it didn't recognize any of the raw files (.dng,.arw) as image files and so I couldn't see if they could be recovered. It also didn't show the directory structure, which would be handy.  I tried a quick scan, but all it showed was files that were still on the HD, not sure what the point of that is.  I've used recover 2000 on Win and it does a good job, does anyone know of anything that works quickly and reliably for this kind of file recovery. (I don't think I should have to do a sector-by=sector for this kind of file loss)
65883
I usually back up before formatting and doing a re-installation of Ubuntu, it was in the process and then obviously stopped prematurely but I was thinking all my data was transferred.  After installing formatting the drive and sticking a fresh Ubuntu on there I proceed to transfer the files from my memory stick to my hard drive, some files are there but most of my 6 years worth of pictures are gone. Is there any way I can get these back? I don't know what to do, I feel absolutely crap :/  Any help would be very appreciated.
119082
Hey i have dual boot windows and Ubuntu. When i installed ubuntu all Local Disks worked well but when some time past i can not access to local disk D. I have very important files there. I cant access to windows too it is broken. When i try to mount local disk D it shows me the error:     Error mounting system-managed device /dev/sda3: Command-line `mount   "/mnt/94EE82ACEE8285E8"' exited with non-zero exit status 13:   ntfs_attr_pread_i: ntfs_pread failed: Input/output error Failed to   calculate free MFT records: Input/output error NTFS is either   inconsistent, or there is a hardware fault, or it's a   SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows   then reboot into Windows twice. The usage of the /f parameter is very   important! If the device is a SoftRAID/FakeRAID then first activate it   and mount a different device under the /dev/mapper/ directory, (e.g.   /dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation   for more details.   Can i mount local disk somehow from Ubuntu?
56505
I tried a few utils and none of them worked. Either USB wasnt supported or the drive was 'recognized'. I am trying to figure out if i should dump the drive or not. Its only a year old but the warranty is only a year which is a pity.