General :: How To Mount Remote Filesystem For / Home Directory
Oct 17, 2010
have a Debian server which I use to hold my home directory for my user account. I used to use Windows 7 and connect to my /home/username directory via Samba which worked great. I could access all of my files as if they were sitting on my local PC, but they were actually sitting on my Debian server.
Now I have decided to give Ubuntu 10.10 a try (looks promising so far!).One thing I'm not sure how to do is to mount my home directory from my server! I am able to open an sftp connection to my server, but not able to access them natively as they were /home/username on my local machine.I'm assuming I need to mount my home directory somewhere in my fstab before it starts up, but which protocol should I use? I'm used to using windows networking, but am trying to get more into linux.Should I use NFS?
I have Ubuntu Karmic. I chose to install with an encrypted home directory. Recently I got a warning that I only had 2GB of drive space left. This is mostly because of my videos. So I went and bought a new hard drive and partitioned it and made 1 ext4 partition and copied my videos all to the new hard drive. I added a line in my fstab to mount the new hard drive to ~/videos, but when I reboot the computer, there is a screen saying something like "error mounting /home/me/videos, press S to skip or something else to reboot". If I press S to skip, then when my system comes up there is a video directory but it's empty because my other hard drive didn't get mounted. I can run sudo mount /dev/sdb video/ and it will mount fine and I can see all my videos, so why can't fstab mount it? Does this have something to do with my encrypted home directory?
I have an interdependent collection of scripts in my ~/bin directory as well as a developed ~/.vim directory and some other libraries and such in other subdirectories. I've been versioning all of this using git, and have realized that it would be potentially very easy and useful to do development and testing of new and existing scripts, vim plugins, etc. using a cloned repo, and then pull the working code into my actual home directory with a merge.
The easiest way to do this would seem to be to just change & export $HOME, eg
cd ~/testing; git clone ~ home export HOME=~/testing/home cd ~ screen -S testing-home # start vim, write/revise plugins, edit scripts, etc. # test revisions
However since I've never tried this before I'm concerned that some programs, environment variables, etc., may end up using my actual home directory instead of the exported one. Is this a viable strategy? Are there just a few outliers that I should be careful about?
If you use Nautilus then you can just use the "Connect to server" from the file menu. However if you file manager does not support connecting to servers (like Thunar ) then you can use sshfs.
Code: sudo apt-get install sshfs You should create a directory as your mount point, say Code: mkdir /media/Server
We recently had a serious loss of data because of SSHFS mounting. A user in our group mounted the entire home directory of our server (/home). This was so they could easily move between user folders to read/write data from other people involved in the same project. They then deleted several folders that were not in there home directory.
Now I know this is a bad idea and that there should be a dedicated "projects" folder where everyone collaborates and does their stuff. Such a folder/system exits but I can't make them use it. My question: Is there anyway to configure SSHFS such that the only thing the user's can mount is their home directory? Obviously this won't fix the problem since they can sym-link to other folders but I've got to start somewhere. Perhaps there's a better solution (one that doesn't involve me nagging users about proper form).
I can not use nfs from F10 client to F12 server. nfs mount on F10 to F12 times out anf nfs4 mount gives "mount.nfs4: mounting localhost:/home failed, reason given by server: No such file or directory" I have tried to close firewall and set selinux to permissive mode on both client and server with same result. Samba works fine. On server [root@flokipal ~]# mount -t nfs4 localhost:/home /media/tonlist mount.nfs4: mounting localhost:/home failed, reason given by server: No such file or directory
but
[root@flokipal ~]# mount -t nfs localhost:/home /media/tonlist [root@flokipal ~]#
I have a secondary disk which holds a /home directory structure from a previous install of Linux. I installed a new version on a new primary drive and mounted this secondary drive as the new /home. Problem is, even though the users are the same names and I can access the home directories for the users, I cannot login directly to their home directories, as I get the following error: -
Code:
login as: [me] [me]@[machine]'s password: Last login: Wed Jan 6 18:34:33 2010 from [machine] Could not chdir to home directory /home/[me]: Permission denied [[me]@[machine] /]$
Now, since the usernames are correct and the users are in the passwd file with the correct home directory paths, could it be user ID's that are different or something else? It's not as though I cannot access the home directories for the users, simply that I cannot log directly into them from a login prompt.
Is there anything special about a home directory before users' home directories are stored there, or is just as typical as any other "empty" folder?Let me just cut to the chase, but please no ear ringing about the folly of messing around as root, particularly with directories at root level. I know it's considered stupidity, but I deleted my home directory.
Is there an easy way to restore a working home directory? I tried copying /etc/skel under root, but I'm not sure what a home directory should look like once it has been restored. Besides . & .., there were .screenrc & .xsession in my home directory when I copied /etc/skel. Are these files suppose to be in "/home" or "/home/~" or both?
When I try to boot to OpenSUSE I get the following error during boot-up: unknown filesystem type 'reiserfs' could not mount root filesystem - exiting to /bin/sh$
This only started happening quite recently - before this I could boot to Linux quite happily.
I'm looking for a way to store an encrypted filesystem on rsync.net which can be mounted and used by multiple clients concurrently - I've considered and experimented with many different ideas, including code...
but all of them are leading me to what looks like a fundamental theoretical problem: a filesystem with concurrent access needs someone to manage it, and who's going to manage it if I can't trust the server? Or refuse on principle to trust the server? There would need to be some trusted entity communicating with every client and making decisions to keep the filesystem and/or block device consistent, right?
Is my understanding correct, or is there any way of achieving what I'm trying to do?
I'm using Mac OS X's Terminal.app shell to compile and run Fortran programs. One such program resides outside of my home directory (it is in the Applications folder, which resides on my hard drive but seems to be outside of my home folder). How can I navigate into this directory using Terminal.app to run the programs that reside there?
I'd like to mount the directory /var/www/mysite to the directory /home/daniel/mysite, but also have the user of the mounted files mapped from the original user (www-data) to my own user (daniel). So that the file /var/www/mysite/index.php who's user is www-data will appear in the mounted directory as /home/daniel/mysite/index.php and be owned by daniel - and alternatively, if I create a file /home/daniel/mysite/test.php with my own user, it will be created in the original directory under the user www-data Is it possible? If not, what alternatives do I have so I can use an IDE and still make sure all the files belong to the HTTP server's user?
I am using GRUB bootloader. I can boot into windows fine. But booting into linux gives me the error "kernel panic: unable to mount root fs on unknown block(0,0)I got LILO to load linux fine but GRUB always gives me this error regardless of the linux OS for this particular computer.
I'm trying to run a persistent Debian distro on a USB thumbdrive, with the persistency data written in a mounted live-rw loopback file. However, the drive has to be formatted FAT32, and that poses a 2GB maximum limit on files, so I can't use the full 3GB space that is left on the drive after the Linux install. Can I make two loopback files and format/mount them as a single filesystem? If I can't I guess I'll have to repartition the drive, which I'd rather avoid.
I have an old Intel webcam that doubles as a standalone digital camera. When I plug it in, Fedora automatically mounts the memory for the camera as a filesystem.However, because it is old and clunky, if I try to use its webcam functionality after this happens, it crashes internally and nothing ever happens.Even if I unmount the memory, still remains "crashed".I know that if the memory was never accessed, the webcam would work, as this is how it is on Windows, and also how it was in a previous release of Fedora, which didn't automount
I'm trying to mount a filesystem when the system boots, so i won't need to mount it everytime..
So what I did was copying the line of the filesystem I wanted to mount on startup from /etc/mtab:
Code:
And pasted it as it is, in the /etc/fstab file. when the system booted, it didn't work. not only that, I wasn't able to mount the filesystem at all, (it gave me some kind of an error) so I removed the line from fstab file and it all back to normal. how can I mount this filesystem on boot? (i'm using Fedora 12)
It is needed because of my portable audio player does not order entries and just leaves it as in FAT directory.
Current way of handling this is only moving files around and re-creating directories and placing files there in correct order (keeping in mind where are "holes" in directory list that will be filled by new file in placed to that directory).
What is the more proper way of doing it? (Apart from re-creating all directories each time or using hex editor on disk).
I am developing a device that will run Linux as its operating system.The device is a small form factor X86 device with a flash drive exposed as a SATA-device. So it is not very dissimilar from any other PC running Linux.For several good reasons I am building my own "distribution", instead of using an existing one.What confuses me is how mount/umount of the root file system is handled.I boot my kernel with the commandline "root=/dev/sda1 rw" which works fine. But everytime I do poweroff or reboot Busybox complained about no /etc/fstab, so I decided to build one.Should I have an entry for my root file system? It seems like this is shadowed by the rootfs anyway. I.e. if I have the fstab entry "/dev/sda1 / ext2 1 1" mount still reports rootfs on / type rootfs (rw)/dev/root on / type ext2 (rw,relatime,errors=continue)My questions are:Do I need to worry? Will the drive be correctly unmounted by the kernel on poweroff/reboot?If I want to perform file system checking on boot, can I do that without resorting to an initrd?
I have just tried to update my kernel from 2.6.24.5 to 2.6.39-rc3 on a Slackware 12.1 distribution. I have successfully updated the kernel before, but it was from a newer distribution and newer kernel(Slackware 13.1 and 2.6.33.4). After I updated and rebooted, I got the following error:
Code: List of all partitions: 0300 4194302 hda driver: ide-cdrom 0800 312571224 sda driver: sd 0801 244197560 sda1 00000000-0000-0000-0000-000000000sda1 0802 68372640 sda2 00000000-0000-0000-0000-000000000sda2 No filesystem could mount root, tried: romfs Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (8,1) Pid: 1, comm: swapper Not tainted 2.6.39-rc3-smp #1 .....
I dont know anything about linux and just been assigned to amount a drive to it. here's what i did so far: Version of Linux using Red Hat Enterprise Linux Server release 5.3 (Tikanga) [root]# mount -t auto /dev/sdb1 /tmp/archive mount: unknown filesystem type 'ntfs'
when checking the /proc/filesystems, i noticed that 'ntfs' is not listed there, several forum suggested i try running 'modprobe ntfs'. If that is not found, you'll need a kernel with ntfs support. i'm so lost, where to i get the modprobe ntfs
How can i auto mount more than directory in the same directory ? i want to automount 2 home directories in the /home and still be able to enter the other home directories !
The problem that i've another account on the system with home directory joe when the user1 home directory auto mounted i become unable to enter joe home directory !
I have download file from this site and have done these steps [URL]. tar -xvf ntfsprogs-2.0.0.tar.gz chown root.root -R ntfsprogs-2.0.0 cd ntfsprogs-2.0.0 ./configure make && make install
Still I have failed to mount ntfs partition with this command.. mount -t ntfs /dev/hda1 /mnt or ntfs-3g /dev/hda1 /mnt
The error is ................. mount: unknown filesystem type 'ntfs' I am using RHEL5.4 and kernel is 2.6.18-164.el5
my external HDD of 750GB bring me an error during mounting!it asks me to get to windows and reboot twice or cmd chkdsk/f of which when i do it only option comes is to format it, i do not wanna format it coz it's with a lot of ma useful data!am using debian just asking if its possible to retrieve ma data from it using commands persay and what are those
I'm trying to boot Emdebian Grip 1.0 built on Compact Flash on a mini PC with grub2 as bootloader. Unfortunately , the booting is unsuccessful and I got stuck into an error message :Code:No filesystem could mount root , tried : minix msdos iso9660kernel panic - not syncing : VFS : Unable to mount root fs on unknown-block (22,1)It seems grub2 hasn't tried to mount ext2 as the filesystem and my Compact flash is formatted as ext2. Here is the menuentry of the grub.cfg :
Code: menuentry "Debian GNU/Linux, linux 2.66.2.9-custom" { insmod ext2
I installed Ubuntu Server 9.10 in a virtual machine, and I'm trying to install the VMware Tools but I can't mount the installer CD: $ sudo mount /dev/scd0 /media/cdrom mount: unknown filesystem type 'iso9660'