Tag Info

Hot answers tagged

29

In a closed network (where you know every device), NFS is a fine choice. With a good network, throughput it disgustingly fast and at the same time less CPU intensive on the server. It's very simple to set up and you can toggle readonly on shares you don't need to be writeable. I disagree with Anders. v4 can be just as simple as v3. It only gets complicated ...


24

Stefan led me down the right track. This will work on any system 12.04 and newer. Your filesystem will also need extended attribute support. If you're using EXT4 you're fine, if you're using EXT3 you'll need to ensure your filesystem is mounted with the user_xattr attribute. Here's how I set it up on the client machine, you don't need to do anything on ...


8

I'm not sure if there is any way to do this currently with Ubuntu 10.04 LTS. However, the newer versions of the Linux kernel include a feature called FS-Cache & CacheFS, which sounds exactly like what you (and I) want. Also see Local Caching For Network Filesystems.


8

Whenever fsck goes through the system and tries to recover damaged files, it will put them into the lost+found folder. I guess this is basically a problem with fsck creating that folder even if there's nothing to put in. As Ubuntu periodically runs those checks on your partitions, those folders will always be re-created, so deleting it won't work. If you ...


8

There is pyNeighborhood which is a gui for mounting samba shares and available in the software centre for download. There is a good article located here on how to set it up and use it. Alternatively the basic terminal command is mount -t cifs -o username=USERNAME,password=PASSWD //192.168.1.88/shares /mnt/share Have a read through the Samba documentation ...


7

Lets say that «boris» is my logon such as /home/boris is my home folder. 1. set the «server» computer: install nfs-kernel-server and nfs-common $ sudo apt-get install nfs-kernel-server $ sudo apt-get install nfs-common in /etc/exports, define the folder to be shared by adding this: /home/boris ...


7

I think you might be able to accomplish what you want using network block devices (NBD). Looking at the wikipedia page on the subject there is mention of a tool called nbd. It's comprised of a client and server component. Example In this scenario I'm setting up a CDROM on my Fedora 19 laptop (server) and I'm sharing it out to an Ubuntu 12.10 system ...


6

Per this discussion on the Ubuntu Forums, install dconf-tools and then run the dconf editor (a launcher installed to "System Tools" on my machine). Navigate to org > gnome > desktop > media-handling and then check the "autorun-never" box. Then simply close the dconf editor.


6

I did some more research into this. Ubuntu is using the UFW, which is extremely easy to configure, yet very potent, at least for soho needs. So, the rpc.mountd listens on multiple ports by default thus you have to bind rpc.mountd to one port, then you can add an additional UFW rule to accept incoming connection on that particular port. To do so, open ...


5

You can use umount -f -l /mnt/myfolder, and that will fix the problem. -f Force unmount (in case of an unreachable NFS system). (Requires kernel 2.1.116 or later.) -l Lazy unmount. Detach the filesystem from the filesystem hierarchy now, and cleanup all references to the filesystem as soon as it is not busy anymore. (Requires kernel 2.4.11 or later.) ...


5

You can try eBox for the server, it has a very straightforward web interface, you can install it from the repositories, and has all the functionality you need. The whole process is documented in the Ubuntu Server Guide, check https://help.ubuntu.com/10.04/serverguide/C/ebox.html. However you still would have to take care of the configuration in the client ...


5

I finally manged to solve it. Here are the steps: Add mount.nfs from Ubuntu 10.04 to the initramfs image (copy it into the /usr/lib/klibc/bin folder.) Change the nfsmount line in /usr/share/initramfs-tools/scripts/nfs to: mount.nfs ${NFSROOT} ${rootmnt} -o nolock ${roflag} ${NFSOPTS} Update the initramfs image with either mkinitramfs or update-initramfs. ...


5

The value 0 has a special meaning when use with NFSv4. NFSv4 has a concept of a root of the overall exported filesystem. The export point exported with fsid=0 will be used as this root. Therefore include fsid=0 into /etc/exports and then do the following: mount -t nfs4 <serverip>:/ /localmount/point and not mount -t nfs4 <serverip>:/exports ...


4

http://unfs3.sourceforge.net/ UNFS3 is a user-space implementation of the NFSv3 server specification. It provides a daemon for the MOUNT and NFS protocols, which are used by NFS clients for accessing files on the server UNFS3 being user space based, and not widely deployed, I wouldn't really trust it. nfs-kernel-server is linux's standard nfs server


4

Is your NFS server still up when you shut down your machine? If so, that seems to be a bug in the shutdown ordering in 10.10; the network interface must still be up in order to unmount NFS. I don't use 10.10 yet, so I can't confirm whether that's the case. But as a stopgap, you might try doing a soft mount instead of a hard one. Soft mounts allow the NFS ...


4

Neither NFS nor LDAP support disconnected operation: i.e., when the laptop cannot reach the servers, it will not be able to access any NFS-mounted directories, nor will it be able to perform user lookups. Basically, it will be stuck. A couple of workarounds could be the following. Instead of mouting home directories via NFS, you could keep local ...


4

NFS (version 3) will give higher performance and is quite easy to set up. The main problem is the complete lack of decent security. NFS (version 4) gives security but is almost impossible to set up. Samba will probably be a bit slower but is easy to use, and will work with windows clients as well..


4

[Having a] lost+found directory with a large enough size to contain a large number of unlinked files puts less of a burden on e2fsck to create the directory and grow it to the appropriate size. [fsck will attempt to create lost+found if it doesn't exist], but in the face of a corrupt filesystem, it can be more risky. Very old fsck's for other ...


4

How to netboot using ELILO How to get EFI to netboot? You do not need any additional software to get EFI to start a netboot session. Any EFI machine can be configured to start a PXE/DHCP session IF it has a network adapter that has support for the UNDI/PXE protocol. Most modern cards do have such support. To enable netbooting, you need to go into the ...


4

Most Ubuntu users will be sharing there network with at least one Windows or Apple machine and samba is the only fully featured sharing service which is capable of being accessed by the majority of computers what ever operating system they happen to be using. Also the GUI method of setting up shares is the easiest to do for someone new to Ubuntu which means ...


4

This question is a bit old but I thought I might share what solved this problem for me. I had this same issue after following the 12.04 server guide. Everything has worked well since I changed my /etc/fstab entry options to include nfsvers=3 per comment #6 in this bug report. My current fstab entry (working on three clients) is as below. ...


3

I was experiencing a similar problem after upgrading to 12.04 and solved it by adding the nfsvers=3 option to the fstab entry for the NFS mount. The NFS filesystem was being exported using version 3 and there appears to be a problem in Ubuntu 12.04 and 11.10 with detecting that since version 4 is tried first. See the following bug report: ...


3

http://www.howtoforge.com/setting-up-unison-file-synchronization-between-two-servers-on-ubuntu-11.10 This tutorial shows how to set up file synchronization between two Ubuntu 11.10 servers with Unison. Unison is a file-synchronization tool similar to rsync, but the big difference is that it tracks/synchronizes changes in both directions, i.e., files changed ...


3

heh. self-promotion disclaimer, but i actually recently wrote a bash script i think can help you with this scenario. the bash script goes in /etc/NetworkManager/dispatcher.d/ and solves a couple of quirks i found with NFS, particularly around the boot-up/shut-down issues. http://www.badgerbait.net/offtopic/network-specific-event-triggered-bash-script the ...


3

I recently setup a local NFS server on Ubuntu 10.04 server, but my MacBook Pro (OS X 10.6.X) couldnt connect. For the Mac to be able to connect i had to add insecure to the /etc/exports. My /etc/exports: /mnt/sdcard *(rw,sync,no_subtree_check,insecure,all_squash)


3

Sharing UIDs Assuming that the NAS is running a variant of Linux, and you have root access (if not I guess you need to ask QNAP), you have three options: Manually sync /etc/passwd between the two boxes (passwd is the file that contains the username/userid mapping). LDAP NIS If there are just a few users that don't change very often, the manual sync is ...


3

I don't think you can give the ~/uslonsweb003 as a directory it would have to be full eg /home/sadmicrowave/uslonsweb003 in fstab (because there may be more than one user) this is your original //128.251.xxx.xxx/var/ ~/uslonsweb003 nfs #username=[username],password=[password], 0 0 you don't need the // at the beginning or ...


3

See setting up NFS how to You should have an entry in /etc/exports related to the folder you are exporting on NFS, something like: /exports/ramdisk *(fsid=25,rw,sync) Run sudo service nfs-kernel-server restart After updating /etc/exports. On the computer which you are mounting this share in /etc/fstab ip-of-nfs-server:/exports/ramdisk ...


2

On the receiver end: nc -l 5678 | sudo dd if=/dev/stdin of=/dev/sda Then on the sender end: sudo dd if=/dev/sda of=/dev/stdout | nc 1.2.3.4 5678 This copies sda from one PC to another over the network to IP 1.2.3.4 and port 5678. Be sure to install one of the nc packages (just run nc in the terminal and you will get the suggestion if not installed ...


2

.nfs* files are related to NFS. They appear on an NFS server when a file is deleted, but is still open by a client. The server must not delete the file because it still needs to provide the data to the clients that have it open. On the other hand, the server must delete the file because the process that deleted it expects it to no longer exist. So the NFS ...



Only top voted, non community-wiki answers of a minimum length are eligible