Changes

How to forge a local file system server with IGEPv2 Board

1,145 bytes added, 11:22, 3 November 2011
no edit summary
For more information go to [https://help.ubuntu.com/10.10/serverguide/C/automatic-updates.html here.]
= Set up a External HD =
Under constructionExternal HD is useful to get more space for our project. In this part we are going to set up automatically during startup.  Make a folder to mount External HD, create the following script: /etc/udev/rules.d/50-mount-external.rules: <pre>KERNEL!= "sd[a-z][0-9]", GOTO="media_by_label_auto_mount_end" # Import FS infosIMPORT{program}="/sbin/blkid -o udev -p&nbsp;%N" # Get a label if present, otherwise specify oneENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}"ENV{ID_FS_LABEL}=="", ENV{dir_name}="usbhd-%k" # Global mount optionsACTION=="add", ENV{mount_options}="relatime"# Filesystem-specific mount optionsACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},utf8,gid=100,umask=002" # Mount the deviceACTION=="add", RUN+="/bin/mkdir -p /media/%E{dir_name}", RUN+="/bin/mount -o $env{mount_options} /dev/%k /media/%E{dir_name}" # Clean up after removalACTION=="remove", ENV{dir_name}!="", RUN+="/bin/umount -l /media/%E{dir_name}", RUN+="/bin/rmdir /media/%E{dir_name}" # ExitLABEL="media_by_label_auto_mount_end"</pre> Stop/start the udev deamon: <pre>/etc/init.d/udev stop/etc/init.d/udev start</pre>
= Set up Owncloud.org Software =
4,199
edits