Mounting MTD with qemu-system-mipsel

I’ve been trying to get a firmware to run with firmadyne. Which basically just call qemu-system:

    qemu-system-mipsel -M malta -m 256 -kernel <kernimg> \     -drive if=ide,format=raw,file=<rootimg> \     -append "root=/dev/sda1 console=ttyS0 nandsim.parts=64,64,64,64,64,64,64,64,64,64 rdinit=/firmadyne/preInit.sh rw debug ignore_loglevel print-fatal-signals=1 user_debug=31 firmadyne.syscall=0"\     -nographic \     -netdev socket,id=net0,listen=:2000 -device e1000,netdev=net0 \     -netdev socket,id=net1,listen=:2001 -device e1000,netdev=net1 \     -netdev socket,id=net2,listen=:2002 -device e1000,netdev=net2 \     -netdev socket,id=net3,listen=:2003 -device e1000,netdev=net3 

However this particular firmware I’am working on read nor flash data from /proc/mtd* and /dev/mtd*.

Adding -drive if=mtd,format=raw,file=<rawimg> or -mtdblock <rawimg>, with or without partition in bootargs returns machine type does not support if=mtd,bus=0,unit=0. I also tried suggestions here , same result.

How can I properly emulate flash with qemu?

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?