How can I get partition mounted ? "mount: /Volumes/mytest failed with 71" - macos

The exfat partition of my external drive is not mounted automatically on my mac.
I created a /mytest directory in the /Volumes directory and tried to mount it, but I get the following error and cannot mount it.
This works for everything else, but I cannot mount this partition.
How can I get it mounted?
sh-3.2# diskutil list rdisk7
/dev/disk7 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *8.0 TB disk7
1: Microsoft Reserved 16.8 MB disk7s1
2: Microsoft Basic Data myexfhdtosi 4.4 TB disk7s2
3: Microsoft Basic Data 1.6 TB disk7s3
4: Apple_HFS myhfshddtosi 1000.0 GB disk7s4
sh-3.2# mount -v -t exfat /dev/rdisk7s2 /Volumes/mytest
mount_exfat: /dev/rdisk7s2 on /Volumes/mytest: Block device required
mount: /Volumes/mytest failed with 71

Try killing the fsck service and mount again.
sudo pkill -f fsck
See this thread for detail discussion.

Related

How to get mount point from a given path

As title mentioned, I want to get mount point from a given path. For example, execute the command df /etc, the result is:
(my system is MacOS Catalina 10.15.1, go version go1.13.3 darwin/amd64)
➜ / df /etc
Filesystem 512-blocks Used Available Capacity iused ifree %iused Mounted on
/dev/disk1s1 976490576 628632776 308713384 68% 2457719 4879995161 0% /System/Volumes/Data
then "/System/Volumes/Data" is what I need.
So how can I get the mount point from a given path in Go? (I tried syscall.Stat_t{}, but failed)

VMware Fusion fails to create Catalina VM with large HD > 42GB?

Before Catalina I never had issues with resizing macOS HD using VMware Fusion.
I am using:
VMware Fusion Professional Version 11.5.0 (14634996)
Host: macOS Mojave 10.14.6
Steps to Reproduce
Create new VM, File > New > Create a custom virtual machine or install from disk or image
Select Apple OS X > macOS 10.15
[x] Create a new virtual disk
Select button Customize Settings
In the VM Settings > Hard Disk (SATA), set Disk size to 400 GB.
Note: VMware does not actually consume physical disk space on your host until needed.
Continue with Catalina install
When install is completed, the Catalina partition is only 42 GB.
I expected 400 GB.
Solution:
In case it may help others:
Open terminal in Catalina VM
Use diskutil list to identify the Apple_APFS Container disk
Use diskutil apfs resizeContainer to resize Apple_APFS Container disk1 to use all free space
Before
jenkins#Jenkinss-Mac ~ % diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *425.2 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk1 42.6 GB disk0s2
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +42.6 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD - Data 3.6 GB disk1s1
2: APFS Volume Preboot 83.9 MB disk1s2
3: APFS Volume Recovery 529.0 MB disk1s3
4: APFS Volume VM 1.1 MB disk1s4
5: APFS Volume Macintosh HD 10.6 GB disk1s5
Fix: Resize Apple_APFS Container disk1 to use all free space
***** Warning ***** Make sure the disk number and partition (the row number), in my case "s2", matches the diskutil list on your system
diskutil apfs resizeContainer /dev/disk0s2 0
After
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *425.2 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk1 425.0 GB disk0s2

How do I access EC2 Instance Storage from Amazon Linux?

I'm launching a fresh Amazon EC2 image running Amazon Linux (Amazon Linux AMI 2014.03.2 (HVM)). I'm using a larger type (e.g. m3.large) which comes with 1 x 32 (SSD) Instance Storage according to the launch page.
However, I'm not able to find that storage anywhere. In documentation that I found it mentioned that it should be listed with lsblk and mounted in /media, but /media is empty and lsblk only gives me the 8GB root disk:
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda 202:0 0 8G 0 disk
└─xvda1 202:1 0 8G 0 part /
Anyone an idea how to access my 'default' instance storage that I get with my instance?
I have since received a solution via the AWS Forums. See here: https://forums.aws.amazon.com/thread.jspa?messageID=565737

Why does this VirtualBox disk not dynamically expand?

I have a vagrant configured VirtualBox VM running Ubuntu 14.04. Whenever doing a major mysql import within the box, I notice that the import was incomplete. If I try to restart mysql, this error occurs:
[FAIL] /etc/init.d/mysql: ERROR: The partition with /var/lib/mysql is too full! ... failed!
I resized the VMDK image by cloning to VDI, resizing, and cloning back to VMDK as I had read this might fix the problem.
$ df -h
rootfs 9.1G 8.7G 8.0K 100% /
I'm aware that the /tmp filesystem is mounted separately in Ubuntu, so I even tried changing the tmp directory on mysql.ini and that didn't work either.
$ VBoxManage showhdinfo <guid>
Parent UUID: base
State: created
Type: normal (base)
Storage format: VMDK
Format variant: dynamic default
Capacity: 24000 MBytes
Size on disk: 6894 MBytes

webhdfs open file NullPointerException

I am trying open a file from HDFS throught the webhdfs API. I can create files and upload them, but once I try to open I get this error
{"RemoteException":{"exception":"NullPointerException","javaClassName":"java.lang.NullPointerException","message":null}}
using the following command
curl -i -X GET "http://ec2-xx-xx-xx-xx.eu-west-1.compute.amazonaws.com:50070/webhdfs/v1/tmp/tmp.txt?op=OPEN"
I tried this from multiple machines (from the master node, or remotely) I get the same error. It's running on CHD4.6.
thanks,
apparently this is a bug in CDH running on Ubuntu 12.04, due to /run mounted with noexec
can be resolved as follows:
sudo mount -o remount,exec /run

Resources