Mrepo ISO file is not mounting

I have loaded my ISO files int /opt/iso   and configured mrepo.conf and /etc/mrepo.conf.d/centos6.3-64

but when I run mrepo -ugv  iso file is not getting mounted to /var/www/html

[root@localhost mrepo.conf.d]# cat  /etc/mrepo.conf
### Configuration file for mrepo

### The [main] section allows to override mrepo's default settings
### The mrepo-example.conf gives an overview of all the possible settings
[main]
srcdir = /opt/iso
wwwdir = /var/www/mrepo
confdir = /etc/mrepo.conf.d
arch = i386 x86_64

mailto = root@localhost
smtp-server = localhost

#rhnlogin = username:password

### Any other section is considered a definition for a distribution
### You can put distribution sections in /etc/mrepo.conf.d/
### Examples can be found in the documentation at:
### /usr/share/doc/mrepo-0.8.7/dists/.

[root@localhost mrepo.conf.d]# cat /etc/mrepo.conf.d/centos6.3-64
[Cents6.3-64]
name = CentOS $release ($arch)
release = 6
myrepo = file://var/www/mrepo
metadata = repomd repoview yum


[root@localhost mrepo.conf.d]# mrepo  -ugv
Setting option confdir in section [main] to: /etc/mrepo.conf.d
Setting option srcdir in section [main] to: /opt/iso
Setting option wwwdir in section [main] to: /var/www/mrepo
Setting option mailto in section [main] to: root@localhost
Setting option smtp-server in section [main] to: localhost
Setting option arch in section [main] to: i386 x86_64
mokkanAsked:
Who is Participating?
 
Duncan RoeConnect With a Mentor Software DeveloperCommented:
It'll be a loop device. It will mount on some empty directory which I expect mrepo will create.
0
 
mokkanAuthor Commented:
Any help guys ?
0
 
Duncan RoeSoftware DeveloperCommented:
Your config has wwwdir = /var/www/mrepo but in your Q you ask about /var/www/html. Could this be the problem?
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
Duncan RoeSoftware DeveloperCommented:
There are no error messages. Perhaps mrepo can't find anything to do. mrepo -ugvv may tell you more (extra "v" on the end of the command).
0
 
mokkanAuthor Commented:
Sorry it was a typo. It should be /var/www/mrepo

Here is the output of -vvvv



[root@localhost www]# mrepo  -ugvvvv
Verbosity set to level 4
Using configfile /etc/mrepo.conf
Reading config file /etc/mrepo.conf
Setting option cachedir in section [main] to: /var/cache/mrepo (default)
Setting option lockdir in section [main] to: /var/cache/mrepo (default)
Setting option confdir in section [main] to: /etc/mrepo.conf.d
Setting option htmldir in section [main] to: /usr/share/mrepo/html (default)
Setting option pxelinux in section [main] to: /usr/lib/syslinux/pxelinux.0 (default)
Setting option srcdir in section [main] to: /var/www/iso
Setting option tftpdir in section [main] to: /tftpboot/mrepo (default)
Setting option wwwdir in section [main] to: /var/www/mrepo
Setting option logfile in section [main] to: /var/log/mrepo.log (default)
Setting option mailto in section [main] to: root@localhost
Setting option mailfrom in section [main] to: mrepo@localhost.localdomain (default)
Setting option smtp-server in section [main] to: localhost
Setting option arch in section [main] to: i386 x86_64
Setting option metadata in section [main] to: repomd repoview (default)
Setting option shareiso in section [main] to: yes (default)
Setting option quiet in section [main] to: no (default)
Setting option hardlink in section [main] to: no (default)
Setting option fuseiso in section [main] to: yes (default)
Setting option unionfs in section [main] to: yes (default)
Setting option no_proxy in section [main] to: None (default)
Setting option ftp_proxy in section [main] to: None (default)
Setting option http_proxy in section [main] to: None (default)
Setting option https_proxy in section [main] to: None (default)
Setting option createrepocmd in section [main] to: /usr/bin/createrepo (default)
Setting option fuseisocmd in section [main] to: /usr/bin/fuseiso (default)
Setting option genbasedircmd in section [main] to: /usr/bin/genbasedir (default)
Setting option hardlinkcmd in section [main] to: /usr/sbin/hardlink (default)
Setting option hardlinkcppcmd in section [main] to: /usr/bin/hardlink++ (default)
Setting option hardlinkpycmd in section [main] to: /usr/bin/hardlinkpy (default)
Setting option lftpcmd in section [main] to: /usr/bin/lftp (default)
Setting option mirrordircmd in section [main] to: /usr/bin/mirrordir (default)
Setting option mountcmd in section [main] to: /bin/mount (default)
Setting option repoviewcmd in section [main] to: /usr/bin/repoview (default)
Setting option rhngetcmd in section [main] to: /usr/bin/rhnget (default)
Setting option rsynccmd in section [main] to: /usr/bin/rsync (default)
Setting option unionfscmd in section [main] to: /usr/bin/unionfs (default)
Setting option umountcmd in section [main] to: /bin/umount (default)
Setting option yougetcmd in section [main] to: /usr/bin/youget (default)
Setting option yumarchcmd in section [main] to: /usr/bin/yum-arch (default)
Setting option createrepo-options in section [main] to: -p (default)
Setting option lftp-bandwidth-limit in section [main] to: None (default)
Setting option lftp-cleanup in section [main] to: yes (default)
Setting option lftp-exclude-debug in section [main] to: yes (default)
Setting option lftp-exclude-srpm in section [main] to: yes (default)
Setting option lftp-options in section [main] to:  (default)
Setting option lftp-commands in section [main] to:  (default)
Setting option lftp-mirror-options in section [main] to: -c -P (default)
Setting option lftp-timeout in section [main] to: None (default)
Setting option mirrordir-cleanup in section [main] to: yes (default)
Setting option mirrordir-exclude-debug in section [main] to: yes (default)
Setting option mirrordir-exclude-srpm in section [main] to: yes (default)
Setting option mirrordir-options in section [main] to:  (default)
Setting option rhnlogin in section [main] to: None (default)
Setting option rhnget-options in section [main] to:  (default)
Setting option rhnget-cleanup in section [main] to: yes (default)
Setting option rhnget-download-all in section [main] to: no (default)
Setting option rsync-bandwidth-limit in section [main] to: None (default)
Setting option rsync-cleanup in section [main] to: yes (default)
Setting option rsync-exclude-debug in section [main] to: yes (default)
Setting option rsync-exclude-srpm in section [main] to: yes (default)
Setting option rsync-options in section [main] to: -rtHL --partial (default)
Setting option rsync-timeout in section [main] to: None (default)
Setting option repoview-options in section [main] to:  (default)


0
 
Duncan RoeSoftware DeveloperCommented:
It does not appear to read /etc/mrepo.conf.d/centos6.3-64. You might have to resort to using strace to see whether it accesses that directory at all and if so what further action it takes. Could there be a permissions problem?
And what is myrepo in the Centos file anyway? A typo for mrepo?
0
 
mokkanAuthor Commented:
Thank you, I will look into it. I have a quick question. This mrepo program suppose to mount as loop device or we need to mount it?  I am confused about the mounting ...

Where is it mounting?
0
 
mokkanAuthor Commented:
Thank you, it worked
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.