mount.nfs: access denied by server while mounting herman:/home

I recently installed kubuntu 16.04.6, 32-bit on a machine that I plan to use as a backup server. All went well until I tried to mount my other computers as a client. For example, when I try to mount the client at IP address 192.168.0.237 with:

mount -v -t nfs herman:/home /mnt/backup 

I get the following error message:

mount.nfs: timeout set for Mon Oct 14 12:14:15 2019 mount.nfs: trying text-based options 'vers=4,addr=192.168.0.249,clientaddr=192.168.0.237' mount.nfs: mount(2): Permission denied mount.nfs: access denied by server while mounting herman:/home 

On herman, my host.allows file includes:

portmap: 192.168.0.237 lockd: 192.168.0.237 mountd: 192.168.0.237 rquotad: 192.168.0.237 statd: 192.168.0.237 

The host.deny file is:

ALL: PARANOID 

The /etc/exports file includes the following line:

/home       192.168.0.237(rw,no_subtree_check) 

On the host, 192.168.0.237,

rpcinfo -p 

gives:

program vers proto   port  service 100000    4   tcp    111  portmapper 100000    3   tcp    111  portmapper 100000    2   tcp    111  portmapper 100000    4   udp    111  portmapper 100000    3   udp    111  portmapper 100000    2   udp    111  portmapper 100024    1   udp  47440  status 100024    1   tcp  41305  status 100021    1   udp  43041  nlockmgr 100021    3   udp  43041  nlockmgr 100021    4   udp  43041  nlockmgr 100021    1   tcp  58816  nlockmgr 100021    3   tcp  58816  nlockmgr 100021    4   tcp  58816  nlockmgr 

and on the server, herman

rpcinfo -p 

gives:

program vers proto   port  service 100000    4   tcp    111  portmapper 100000    3   tcp    111  portmapper 100000    2   tcp    111  portmapper 100000    4   udp    111  portmapper 100000    3   udp    111  portmapper 100000    2   udp    111  portmapper 100005    1   udp  57499  mountd 100005    1   tcp  37583  mountd 100005    2   udp  59970  mountd 100005    2   tcp  32963  mountd 100005    3   udp  37256  mountd 100005    3   tcp  60257  mountd 100003    2   tcp   2049  nfs  100003    3   tcp   2049  nfs  100003    4   tcp   2049  nfs  100227    2   tcp   2049 100227    3   tcp   2049 100003    2   udp   2049  nfs  100003    3   udp   2049  nfs  100227    2   udp   2049 100227    3   udp   2049 100021    1   udp  57580  nlockmgr 100021    3   udp  57580  nlockmgr 100021    4   udp  57580  nlockmgr 100021    1   tcp  33809  nlockmgr 100021    3   tcp  33809  nlockmgr 100021    4   tcp  33809  nlockmgr 100024    1   udp  42137  status 100024    1   tcp  43815  status 

I found another post where the user had the same problem and in his case the solution had something to do with, ‘apparmor’ and a “DENIED” included in the output of dmesg. I ran dmesg and had the following 2 lines in the output. I don’t think this in meaningful, because as far as I know, I have no dependency on ‘apparmor’, but I thought I should include following excerpt from my dmesg output:

dmesg | fgrep -i denied [   57.915343] audit: type=1400 audit(1570997933.469:24): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld-akonadi///usr/sbin/mysqld" name="/proc/1577/status" pid=1577 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000 [   57.915416] audit: type=1400 audit(1570997933.469:25): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld-akonadi///usr/sbin/mysqld" name="/proc/1577/status" pid=1577 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000 

I have been looking at other posts with the same problem, but I have not found a solution yet.

Can anyone help with suggestions on why the client is being denied nfs access?

Thanks in advance.

Jim A

Ubuntu 18.04 problem mounting old ipod

I found my old ipod from years ago. Connecting it by USB cable results in this output from dmesg. Is there another way to mount it. The ipod model is A1099.

[ 50.482808] usb 3-4: new high-speed USB device number 3 using xhci_hcd [ 50.610692] usb 3-4: device descriptor read/64, error -71 [ 50.846689] usb 3-4: device descriptor read/64, error -71 [ 51.082601] usb 3-4: new high-speed USB device number 4 using xhci_hcd [ 51.210607] usb 3-4: device descriptor read/64, error -71 [ 51.446536] usb 3-4: device descriptor read/64, error -71 [ 51.554553] usb usb3-port4: attempt power cycle [ 52.206269] usb 3-4: new high-speed USB device number 5 using xhci_hcd [ 52.334264] usb 3-4: device descriptor read/64, error -71 [ 52.570170] usb 3-4: device descriptor read/64, error -71 [ 52.806117] usb 3-4: new high-speed USB device number 6 using xhci_hcd [ 52.934035] usb 3-4: device descriptor read/64, error -71 [ 53.170046] usb 3-4: device descriptor read/64, error -71 [ 53.278061] usb usb3-port4: unable to enumerate USB device

Mounting /cow on root failed: Invalid argument overlay mount failed

I am using an xps 13 9365, which was data wiped from bios by a friend who then gave it to me thinking it was dead. I tried booting with a USB (current LTS distro (18.04 or similar)) boot disk and got into the language selection / setup menu. By using the F6 option I selected noapic. In bios sata is set to raid and legacy the secure boot option is off.

But when I try to install I get kicked into a tiny font window with the following message

(initramfs) mount: Mounting /cow on root failed: Invalid argument overlay mount failed

Any ideas?

Change the mounting point for a HFS+ formated drive

I followed the instructions in this post: How to read and write HFS+ journaled external HDD in Ubuntu without access to OS X?

I used the command: sudo mount -t hfsplus -o force,rw /dev/sdXY /media/mntpoint

The drive mounts in the directory I pointed it to. It works perfectly, but I would like to change the name of the directory. I failed in all conventional ways. I thought the path was stored in the fstab file but there i only have my NAS device. I am a Linux newbie. Hopefully someone has a solution.

Mounting an additional hard drive, guide question

I am adding an additional hard drive following this guide which uses gparted. https://help.ubuntu.com/community/InstallingANewHardDrive

However there is a line of code which I dont understand (sorry I am very much a beginner):

  /dev/sdb1    /media/mynewdrive   ext3    defaults     0        2 

Specifically I want to know if using /dev/sdb1 is generic and not particular to the person who made the guide and what are the 0 2 for? I want to make sure that this does not alter anything that I currently have.

mounting an old raid external hard drive

New to the group. I have an old MyBook external, networked hard drive that windows could not connect to. I removed the hard drive and threw everything else away (should not have done) thinking I would just connect it as an external hard drive. I then figured out that is was a raid drive with a linux file system and it would not boot to the windows machine. I have a an Ubuntu machine that will not auto detect the drive. I can see it using the gnome drive tool or through the terminal. All of our digital pictures are on this drive so I do want to lose it.

Can this be mounted manually without damaging the drive?

Device     Boot   Start        End    Sectors   Size Id Type /dev/sda1         64320    3984191    3919872   1.9G fd Linux raid autodetect /dev/sda2       3984192    4498175     513984   251M fd Linux raid autodetect /dev/sda3       4498176    6474175    1976000 964.9M fd Linux raid autodetect /dev/sda4       6474176 1953520064 1947045889 928.4G fd Linux raid autodetect 

Thanks for the help

Jeff Thomass

mounting cifs reports “No such file of directory” after last update

I’m running Ubuntu 18.04.3 LTS I use a network share hosted by our IT department on a windows server for some backups. I mount this share via fstab

//server.ourdomian.com/md$  /dir1/dir2/dir3 /mnt/mymountpoint cifs credentials=/etc/.serviceuser.credentials,uid=1001,gid=1001,file_mode=0644,dir_mode=0755,vers=2.0 0 0 

Since I last updated the system via apt upgrade etc., this does not longer work. The console command corresponding to the above results in the message

mount error(2): No such file or directory

sudo mount -t cifs //server.ourdomain.com/md$  /dir1/dir2/dir3 /mnt/mymountpoint -o domain=ourdomain,username=myuser,password=mypassord,uid=1001,gid=1001,file_mode=0644,dir_mode=0755,vers=2.0 mount error(2): No such file or directory Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) 

On another server running the same ubuntu release which I have not yet updated, the same command and the same fstab entry still work perfectly.

How do I get help with this issue?

Mac Harddrive not mounting

I have already read and followed the directions at How to read and write HFS+ journaled external HDD in Ubuntu without access to OS X?

I’m at the point of thinking that something has happened to destroy this harddrive in the three weeks since it was pulled out of the Mac it belonged to, but I feel like I need to check to see if there’s anything else that I might be doing wrong before giving up entirely.

Here’s the output of dmesg:

[ 2848.201938] usb 2-1: Manufacturer: GenesysLogic [ 2848.207932] hub 2-1:1.0: USB hub found [ 2848.213972] hub 2-1:1.0: 4 ports detected [ 2848.245887] usb 4-1.1: new SuperSpeed Gen 1 USB device number 3 using xhci_hcd [ 2848.266817] usb 4-1.1: New USB device found, idVendor=4971, idProduct=8017, bcdDevice=81.05 [ 2848.266820] usb 4-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 2848.266823] usb 4-1.1: Product: USB to ATA/ATAPI Bridge [ 2848.266824] usb 4-1.1: Manufacturer: JMicron [ 2848.266826] usb 4-1.1: SerialNumber: 111122223333 [ 2848.271864] scsi host6: uas [ 2848.272400] scsi 6:0:0:0: Direct-Access     Crucial_ CT500MX200SSD1   8105 PQ: 0 ANSI: 6 [ 2848.273410] sd 6:0:0:0: Attached scsi generic sg1 type 0 [ 2848.273471] sd 6:0:0:0: [sdb] Spinning up disk... [ 2849.277808] ...........not responding... [ 2859.518657] sd 6:0:0:0: [sdb] Read Capacity(16) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE [ 2859.518664] sd 6:0:0:0: [sdb] Sense Key : Hardware Error [current]  [ 2859.518672] sd 6:0:0:0: [sdb] ASC=0x44 <<vendor>>ASCQ=0x81  [ 2859.519160] sd 6:0:0:0: [sdb] Read Capacity(10) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE [ 2859.519164] sd 6:0:0:0: [sdb] Sense Key : Hardware Error [current]  [ 2859.519170] sd 6:0:0:0: [sdb] ASC=0x44 <<vendor>>ASCQ=0x81  [ 2859.519628] sd 6:0:0:0: [sdb] 0 512-byte logical blocks: (0 B/0 B) [ 2859.519632] sd 6:0:0:0: [sdb] 0-byte physical blocks [ 2859.520097] sd 6:0:0:0: [sdb] Test WP failed, assume Write Enabled [ 2859.520265] sd 6:0:0:0: [sdb] Asking for cache data failed [ 2859.520274] sd 6:0:0:0: [sdb] Assuming drive cache: write through [ 2859.521294] sd 6:0:0:0: [sdb] Unit Not Ready [ 2859.521299] sd 6:0:0:0: [sdb] Sense Key : Hardware Error [current]  [ 2859.521306] sd 6:0:0:0: [sdb] ASC=0x44 <<vendor>>ASCQ=0x81  [ 2859.521817] sd 6:0:0:0: [sdb] Read Capacity(16) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE [ 2859.521821] sd 6:0:0:0: [sdb] Sense Key : Hardware Error [current]  [ 2859.521824] sd 6:0:0:0: [sdb] ASC=0x44 <<vendor>>ASCQ=0x81  [ 2859.522207] sd 6:0:0:0: [sdb] Read Capacity(10) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE [ 2859.522208] sd 6:0:0:0: [sdb] Sense Key : Hardware Error [current]  [ 2859.522211] sd 6:0:0:0: [sdb] ASC=0x44 <<vendor>>ASCQ=0x81  [ 2859.523217] sd 6:0:0:0: [sdb] Attached SCSI disk 

And here is what happens with fsck.hfsplus:

sudo fsck.hfsplus -f /dev/sdb ** /dev/sdb 

What I really need is an image of this disk that I can look at in a virtual machine, so I tried to just go ahead and image the drive even though I can’t see into it. The result was:

sudo dd if=/dev/sdb of=macdrive.iso 0+0 records in 0+0 records out 0 bytes copied, 0.000129238 s, 0.0 kB/s 

Here’s a picture of the hard drive sitting in the USB adapter All I can hope now is that you look at this and say, “Well, of course, dummy! That will NEVER work…” and then tell me how these mac harddrives are special snowflakes that need a different adapter. Is that what’s wrong? Or is there something else that might make this drive readable?

My head is getting sore from banging it against this problem. Thanks for your help!

Trouble mounting encrypted drive from command prompt

I use this to see what drives I see:

fdisk -l

fdisk: cannot open /dev/loop0: Permission denied fdisk: cannot open /dev/loop1: Permission denied fdisk: cannot open /dev/loop2: Permission denied fdisk: cannot open /dev/loop3: Permission denied fdisk: cannot open /dev/loop4: Permission denied fdisk: cannot open /dev/loop5: Permission denied fdisk: cannot open /dev/loop6: Permission denied fdisk: cannot open /dev/nvme0n1: Permission denied fdisk: cannot open /dev/sda: Permission denied

Then try to unlcok it:

cryptsetup luksOpen /dev/nvme0n1 my_enc_hard

And get this message

Device /dev/nvme0n1 doesn’t exist or access denied.

I don’t understand what is the issue; When I use sudo crypt setup luksOpen /dev/nvme0n1 my_enc_hard I am not prompted to enter my password.

I also don’t understand why I can open the drive with Disks utility from USB, but I am not prompted to enter the password when I try cryptsetup luksOpen through command prompt. Can anyone help me to mount the drive. I just want to get my data out and reinstall Ubuntu.