Modify path /images to /home ???



  • Hi, my question is this, how can I change the path where the images are saved Fog Debian ??? Currently are being saved to / and as I am working on a virtual machine, I have no more room there, and I have almost all the / home free …

    First of all, it’s my first experience with Debian and Fog.

    Thank you very much !!!



  • Well, what I need to do is the following:

    I need to add a new path for saving the images, it must be / home / Fog / image.

    I add in Storage Management, but does not allow me to modify “Management username” and “Management passwords”, I understand that here I put the user and pass the TFTP not?

    Ultimately I would need to explain how to create a new path for saving the images.

    Thank you very much !!!


  • Developer

    If you wonder about how to test mounting NFS from another computer, see here:
    http://fogproject.org/forum/threads/problem-with-permission-denied-after-fog-server-restart.12503/#post-42999


  • Senior Developer

    I tried helping, but I don’t know the exact issue. Is FOG able to mount the NFS or not? What’s in the /etc/exports file?

    Is the nfs service running? Is it exporting the filesystems properly? What have you done?



  • Any idea how to do this ??? Some guidance or help ??? I hope your answers !!! Thank you very much !!!



  • I tell them, turned to leave the path / images in the Storage Management and I believe smoothly image …

    To change the / images for / home / images try to mount the / home / images in / images and here is where I throw permission denied.

    As achieve that images are stored in / home / images ???

    Thank you very much !!!



  • [B]service rpcbind status[/B]
    [ ok ] rpcbind is running.



  • Please post your FOG install log. -->

    Script iniciado (lun 23 feb 2015 09:33:51 ART
    )+Debian

       ..#######:.    ..,#,..     .::##::.   
    

    .:###### .:;####:…;#;…
    …##… …##;,;##::::.##…
    ,# …##…##:::## …::
    ## .::###,##. . ##.::#.:######::.
    …##:::###::…#. … .#…#. #…#:::.
    …:####:… …##…##::## … #
    # . …##:,;##;:::#: … ##…
    .# . .:;####;::::.##:::;#:…
    # …:;###…

    ###########################################

    FOG

    Free Computer Imaging Solution

    http://www.fogproject.org/

    Developers:

    Chuck Syperski

    Jian Zhang

    Peter Gilchrist

    Tom Elliott

    GNU GPL Version 3

    ###########################################

    Version: 1.2.0 Installer/Updater

    What version of Linux would you like to run the installation for?

          1) Redhat Based Linux (Redhat, CentOS, Mageia)
          2) Debian Based Linux (Debian, Ubuntu, Kubuntu, Edubuntu)
    

    Choice: http://www.fogproject.org/wiki/index.php?title=InstallationModes

    What type of installation would you like to do? http://fogproject.org/?q=cryptocurrency

    Would you like to donate computer resources to the FOG Project? http://www.fogproject.org/wiki

    Here are the settings FOG will use:
    Base Linux: Debian
    Detected Linux Distribution: Debian
    Installation Type: Normal Server
    Server IP Address: 10.0.0.50
    DHCP router Address: 10.0.0.2
    DHCP DNS Address: 10.0.0.2
    Interface: eth0
    Using FOG DHCP: 1
    Internationalization: 0
    Donate: 0

    Are you sure you wish to continue (Y/N) y

    Installation Started…

    Installing required packages, if this fails
    make sure you have an active internet connection.

    • Preparing apt-get

    • Installing package: apache2

    • Installing package: php5

    • Installing package: php5-json

    • Installing package: php5-gd

    • Installing package: php5-cli

    • Installing package: php5-mysql

    • Installing package: php5-curl

    • Installing package: mysql-server

      We are about to install MySQL Server on
      this server, if MySQL isn’t installed already
      you will be prompted for a root password.

      Press enter to acknowledge this message.

    Leyendo lista de paquetes…
    Creando árbol de dependencias…
    Leyendo la información de estado…
    mysql-server ya está en su versión más reciente.
    0 actualizados, 0 se instalarán, 0 para eliminar y 18 no actualizados.

    • Installing package: mysql-client
    • Installing package: isc-dhcp-server
    • Installing package: tftpd-hpa
    • Installing package: tftp-hpa
    • Installing package: nfs-kernel-server
    • Installing package: vsftpd
    • Installing package: net-tools
    • Installing package: wget
    • Installing package: xinetd
    • Installing package: sysv-rc-conf
    • Installing package: tar
    • Installing package: gzip
    • Installing package: build-essential
    • Installing package: cpp
    • Installing package: gcc
    • Installing package: g++
    • Installing package: m4
    • Installing package: htmldoc
    • Installing package: lftp
    • Installing package: openssh-server
    • Installing package: php-gettext
    • Installing package: clamav-freshclam

    Confirming package installation.

    • Checking package: apache2…OK
    • Checking package: php5…OK
    • Checking package: php5-json…OK
    • Checking package: php5-gd…OK
    • Checking package: php5-cli…OK
    • Checking package: php5-mysql…OK
    • Checking package: php5-curl…OK
    • Checking package: mysql-server…OK
    • Checking package: mysql-client…OK
    • Checking package: isc-dhcp-server…OK
    • Checking package: tftpd-hpa…OK
    • Checking package: tftp-hpa…OK
    • Checking package: nfs-kernel-server…OK
    • Checking package: vsftpd…OK
    • Checking package: net-tools…OK
    • Checking package: wget…OK
    • Checking package: xinetd…OK
    • Checking package: sysv-rc-conf…OK
    • Checking package: tar…OK
    • Checking package: gzip…OK
    • Checking package: build-essential…OK
    • Checking package: cpp…OK
    • Checking package: gcc…OK
    • Checking package: g++…OK
    • Checking package: m4…OK
    • Checking package: htmldoc…OK
    • Checking package: lftp…OK
    • Checking package: openssh-server…OK
    • Checking package: php-gettext…OK
    • Checking package: clamav-freshclam…OK

    Configuring services.

    • Setting up fog user…OK

    • Setting up and starting MySql…OK

    • Backing up user reports…OK

    • Did you leave the mysql password blank during install? (Y/n)

    • Setting up and starting Apache Web Server…OK
      You still need to install/update your database schema.
      This can be done by opening a web browser and going to:

      http://10.0.0.50/fog/management

    Press http://10.0.0.50/fog/management

      Default User:
             Username: fog
             Password: password
    

    Script terminado (lun 23 feb 2015 09:37:37 ART


  • Senior Developer

    @Eze84d, post: 42843, member: 28734 said:

    DEBIAN: 7.8.0
    FOG: 1.2.0

    /data/images/.mntcheck and /data/images/dev/.mntcheck exist? --> No such file or directory.

    Run ```
    sudo touch /data/images/.mntcheck; sudo touch /data/images/dev/.mntcheck

    @Eze84d, post: 42843, member: 28734 said:
    > 
    Are the permissions as: chmod -R 777 /data/images? --> You can not access: /data/images? No such file or directory.  Either you can't access it because it doesn't exist, or you can't access it because you don't have permissions.
    

    sudo chmod -R 777 /data/images #to make accessible by anybody

     
    If it doesn't exist, then you either need to link, or change back to /images
    @Eze84d, post: 42843, member: 28734 said:
    > 
    selinux disabled? In any installation guide FOG 1.2.0 I was saying that I had to turn it off ... not know how to do
    In the guide, it should tell you how.  However this is not needed for debian
    @Eze84d, post: 42843, member: 28734 said:
    > 
    rpcbind running? --> As I check this ??```
    sudo service rpcbind status
    

    Please post your FOG install log. --> Where I find this file?[/quote]Read my signature.



  • http://<ipoffogserver>/fog/service/boot.php?mac=<macaddressofclientintask>

    Please post your FOG install log.

    Thanks,
    Wayne[/quote]

    DEBIAN: 7.8.0
    FOG: 1.2.0

    /data/images/.mntcheck and /data/images/dev/.mntcheck exist? --> No such file or directory.

    Are the permissions as: chmod -R 777 /data/images? --> You can not access: /data/images? No such file or directory.

    selinux disabled? In any installation guide FOG 1.2.0 I was saying that I had to turn it off … not know how to do

    rpcbind running? --> As I check this ??

    Please post your FOG install log. --> Where I find this file?


  • Moderator

    What is the version of Debian?
    What version of FOG?

    Copied from Tom’s Posts:

    does
    /data/images/.mntcheck and /data/images/dev/.mntcheck exist?
    Are the permissions as: chmod -R 777 /data/images?

    selinux disabled?

    rpcbind running?

    What’s the boot file look like? in a browser, Replace <ipoffogserver> & <macaddressofclientintask> with appropriate data. Mac addresses include colons.
    This is the address:
    http://<ipoffogserver>/fog/service/boot.php?mac=<macaddressofclientintask>

    Please post your FOG install log.

    Thanks,
    Wayne



  • Mounting File System…mount: mounting 10.0.0.50:/home/images/dev on /images failed: Permission denied

    FATAL ERROR: FAILED TO MOUNT NFS VOLUME



  • Thanks guys for your help.

    I tell them to Reproduce researching and already solved the problem momentarily.

    I tell them how I did it:

    I went to Storage Management Page, and modify the path where I kept the pictures / images to / home / images and longer stay.

    Now I have another little problem … when you are creating the image of the host, I get a sign saying:

    FATAL ERROR: FAILED TO MOUNT NFS VOLUME

    I could help with this ???

    Thank you very much to all !!!


  • Moderator

    This page may also be helpful. It talks about re-sizing directories without data loss.

    http://unix.stackexchange.com/questions/28122/can-i-resize-the-root-partition-without-uninstalling-and-reinstalling-linux-or


  • Moderator

    It might be possible to shrink the /home directory, and then expand the / directory.

    I’m not entirely sure about Debian, but I know that in Fedora 21, you can choose the sizes of the directories during installation. During my installation, I just went ahead and created the /images directory right then and there, and gave it a ton of space.


Log in to reply
 

336
Online

38729
Users

10555
Topics

99925
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.