Ubuntu :: How To Link Home Subfolders To External Drive
Aug 7, 2010
I want to have ~/Documents ~/Music ~/Pictures ~/Videos point to directories with the same names, but at a different (external hard drive) location.I've been playing around with different commands, but not getting the desired result.
CentOS 5.2 64bit 2.6.18-92.el5xen. Use rsync with --link-dest for nightly backups, works well. Was recently asked to start weekly backups to an external drive for off-site storage. The regular syncing works but hard linking seems to be ignored. So the backup is long with no space saving advantage. Here is an example of the command being run:
As I regularly move between Mac and PC, I thought it would be a good idea to put all my data on an external drive. As Windows 7 and OS X have similar home folder layouts, I just simply put all the folders I need for both on the root of the external drive and changed a few settings so that the Home folder for my user is on the external drive on both Windows and OS X.
Whilst Ubuntu also has a similar structure, I cannot work out how to have it so that my users home folder is on the external drive. I have done a little research and all I can find is how to have the /home directory on another partition. a) this is not what I'm trying to do, just the folder for my user and b) this would mean formatting the external drive to extX format, which just wouldn't work for me.
I am using 9.10 (or will be once the upgrade is complete)
im thinking of copying my /home directory by just click & dragging it to my external usb hard drive. then do a fresh reinstall. then just replace the new /home directory with the one on my hard drive(old home directory) will it have my original programs i used to have and all my settings & stuff?
Ubuntu and am using the 64bit version of Ubuntu 10.04.Now I can access the folders in my home folder through the places GUI, but I can't access them in the terminal. When I begin typing in the terminal and press tab it does not autocomplete, and typing the directory manually says that there is no such file or directory, even though when I type dir or ls they are clearly there.
share an external USB NTFS drive on my home network. The drive is attached to my desktop box running Debian Lenny. It's accessible on the desktop. I have a directory on the drive that I would like to make accessible to a Windows XP laptop. Read-only would be fine. The laptop has wireless access to the network.
I have just had to reinstall my OS (Sabayon) onto a new and larger hard drive (dying old disk). I quickly saved all my old docs in /home on an external USB drive (formatted and then created an ext4 file system) before the swap and installation.
After getting the new disk running I connected the USB external disk. First I could not access the drive at all, but that seems to be fixed. Now I want to bring all my files back to my new /home folder but apparently they (especially the former MS Office .doc, .xls, etc files, not so much the OpenOffice files) are �read only� and I don't have permissions anymore. I am able to create directories on the external, and can move files back and forth, but don't seem to own many of them.Sabayon automatically mounted my external disk in /media/disk, rather than /mnt, so I've left that alone for now. After searching here and elsewhere for info, I tried a few things (below): For access I added a line to /etc/fstab:
/dev/sdb1 /media/disk ext4 noauto,rw 0 0
Here's what I've done to try and fix ownership already:
in /media I:
# chmod 775 disk
which gives output of:
media # ls -l total 4 drwxrwxr-x 2 root root 4096 Nov 1 21:30 disk
I'm not sure what the �total 4� refers to since there is only the one directory �disk� inside /media but I assume that's not part of this issue... Does adding umask=0 have anything to do with this, and if so where does that go?
I have an 500GB Iomega external drive connected to my iMac and used for the Mac Time Machine back-ups. I want to put a small partition on there that I can use to back-up my Ubuntu files which are on my laptop. I thought that I would be able to just copy the entire Home file on Ubuntu to this drive be drag and drop but this does not work. I get a notice to inform me that I do not have permission to create file there. I can however move files in the other direction (from the external drive to Ubuntu on the laptop. I assume this is because the external drive was formatted for Mac and I hope the problem will be solved if I could format a part of the drive in ext4 to accommodate the linux files.
Evince in non-gnome systems is unable to open external link. The error msg it shows is
Unable to open external link The specified location is not supported. I have already googled it, however it only says it is a bug, without any solution available. Evince in gnome systems however work just fine. Is there any way evince can use sensible-browser to open external links?
Compiz settings, my entire GUI would freeze up after the startup splash. It did the little ubuntu jingle and so on but wouldn't actually load up the desktop. I would've booted into recovery mode and deleted the settings that were messing it all up for me, but pressing ESC during grub did nothing! So as a last effort I reinstalled Ubuntu (Karmic) from the live CD on the first partition only, but I don't know how to make the second partition (with my old /home directory) the normal /home directory. The instructions linked above seem to require having done the whole process of moving the partition (so as to create "old" and "new" dirs, etc.).
So there are really two problems here: 1) How does one restore things to normal when a few too many cheeky moves with the desktop effects turns everything to pot? And 2) How does one reinstall Ubuntu with a separate /home partitions
I seem to be seeing some weird behavior in kubuntu with KDE 4.3.2 and KDE 4.3.5 for Kubuntu 9.10 32-bit.I have a few programs in my home folder. For instance Eclipse and Mendeley. it seems that when i create a Link to Application does not launch them. Here is how I create the links.
-> I right click and create a new "Link to Application" -> I click on the Application tab and browse to where the shell script, or executable is.
and when I try to launch them it does not work. The link is using the absolute path. I tried setting the working directory and using a relative path but nothing. If I run the link in a terminal it says "Warning: Could not find" and the application I set. Now this seems to not be a problem for system applications like Kate. If i change the link to launch Kate it works perfectly.
I installed firefox 3.6 from the firefox-stable ppa repository and I noticed that the location bar autocomplete stops working after opening an external link (e.g. clicking a link in evolution or empathy). The problem still occurs when starting firefox in safemode, so it doesn't appear to be related to a misbehaving extension. The problem is only fixed with a browser restart or when I open and then close 'show all history'.
I'm looking for some advice about how to implement the following functionality in my pet project.
There are two users on my system, user1 and user2. When user1 logs in he can do what he wants etc.. when user2 logs in I want to somehow link the entire file system to another place. In more detail when user2 logs in and does something like ls ~, he should see contents of /home/user1/extra/home/user2/ instead of /home/user2/ and when user2 does ls /usr/bin he should see contents of /home/user1/extra/usr/bin/
Is there a simple way to do this kind of operation. I have looked up the ln command, but I am a little unsure about how to show a completely different file structure to a particular user.
I did play around with ln and found that you can make "soft links" to directories. The problem being how can I link the user2 home directory /home/user2 to something like /home/user1/buffer/home/user2 . can I use something like ln -s /home/user1/buffer/home/user2 /home/user2 .. I guess not. I didn't want to try it as I wasn't sure so as to not hose my system.
I just realized that the "Documents" folder in my home directory has changed to a file which is a link to the /home/user/Documents and it is unaccessible. It does not (no longer) show in the "file browser" when I try to click it from "places" it says:
Error: Could not open location 'file:///home/user/Documents' No application is registered as handling this file When I list from the terminal (i.e. %ls -ltr ) it list the file (which was suppose to be the directory) as
lrwxrwxrwx 1 user user 24 2010-11-01 18:20 Documents -> /home/user/Documents
NB. user in this case is my user name on the system, I am just using user for this forum. how to retrieve the information from the folder and remove the linked file to remain with the original folder
I have an external hard drive mounted at /media/exthdd/ On that hard drive I have folders: Music, Pictures, Videos, etc. Can I make symbolic links to /media/exthdd/Music/ to say the root directory /_ ? the directory /_ is empty I just want a quick method of typing to get me there much like [cd ~] gets me to my home/username folder. I have my music organized by Artist/Year-Album/Track.Title.mp3 I want to be able to "cd /_" then "ls" and see all Artist folders.
I would like to install Linux Ubuntu 11.04 on an external hard drive - its partitioned and ready for Linux.I've downloaded and burnt the .iso file to a DVD so its all good so far...First of all... is this possible without messing up my macbook? I don't particularly want to break into my macbook to disconnect the hard drive (I read on a tutorial for a previous version of Ubuntu that I'd have to do that... - does it still apply to 11.04?) - as it voids the warranty (I checked ).The reason I ask this is because I had a friend who partitioned their internal hard drive and installed Ubuntu on it. But after installation was complete they couldn't boot up Windows 7 or Ubuntu... and it resulted in them having to clean install Windows 7... - I don't want to end up in that situation
Second... If it is possible to install it without messing up my macbook... - Do I just follow the install instructions but just make sure that where possible I make sure that everything is installed on my external hard drive?...I really need someone to put my mind at rest that everything will run smoothly and that I'll be able to run Mac OS X as usual but also that I'll be able to boot from my external hard drive to run Ubuntu.
I have 350GB external Western Digital USB hard Drive.When I try to remove it from the system by executing Safely Remove Drive menu the fedora 15 system gets stuck.The processor starts giving a hum sound and it goes on even if it is left for half an hour in the stuck state.The Mouse is not working and everything is halted.
i have installed fedora 14 with so many libraries ,development tools installed on my pc but i usually have to present some projects which can run on my system .........and can't be executed or compiled due to absence of libraries and tools there so, i there some way to so that i can use this current installation on my hard drive of my pc to some external media like external hard disk and plug and use that installation anywhere on any system..
You can see the link commands I'm using, and the lib and include path are both valid. I tried replacing -lmysqld with -lmysqlclient but this did not help. I'm using Debian and MySQL, libmysqld-dev and libmysqlclient-dev are all installed.
I've been trying to create a wine prefix that is able to be used by multiple users (i.e outside $HOME/* or /home/$USERNAME/*) so that i don't need to re-install programs for every user and use the extra disk space, however when i try to use winetricks in said prefix it complains that my user does not own the directory (even when i set it so that the user is the sole owner)
I'm not sure what to do, but I just rescued photos and documents using ubuntu live cd, gddrescue and photorec. The data carving went fine and I was able to move all of my recovered jpg's into a recovery/jpg folder, as well as my word doc's into a recover/doc folder. I also have recovery/video and recovery/audio. Now here's my problem...
I used the right-click "safely remove drive" from the ubuntu interface and then unplugged my external drive. I then tried to view the recovered photos, etc on my windows 7 desktop, but when I plug in the external drive I get an error and a prompt to "format the drive" so that windows can use it.
I plugged the external drive back into my failed laptop and with the ubuntu live cd can see the drive, but none of the folders display. I can cd "change directories" to all of the folders using a terminal, but still can't see them outside of the terminal. That is, with the ubuntu interface. I'm just trying to finish up recoverying these photos, which I thought I had done.
I've set up Apache on my Fedora 12 machine and have got it working on my internal IP (localhost/192.168.0.15) however, when I try to access it through my external IP I am taken to my router login page.
What do I need to do to route my external IP to my internal static IP of 192.168.0.15?