Share Folders On Local Network Between Ubuntu And Windows

Getting Started

How to Move Home Directory to New Partition or Disk in Linux
I have a 80GiB hard disk. Alternatively, you could use 2 cp commands to copy. Enter your root password. When you select Allow access to everyone, the folder will be accessible to everyone on the network. Now take a deep breath. The documents and files are mostly there, but lots of dot files are empty,.

How it all works

Ubuntu Blog

This site uses cookies to deliver our services and to show you relevant ads and job listings. By using our site, you acknowledge that you have read and understand our Cookie Policy , Privacy Policy , and our Terms of Service. I was able to move one folder successfully following this guide.

However, it doesn't seem to work for multiple folders, and all my folders are dumped into the partition without proper folders. Use Gparted for this. Then you need to create the filesystems for those partitions can be done with Gparted too or use:.

If you want to use them all on the same partition you can either use LVM or three simple bind mounts. Move all folders you want to move. Using cp and mv dir dir. Although the bind-mount method is probably the best practice solution I kind of prefer this one because you don't end up with unnecessarily long df and mount partition lists. By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service , privacy policy and cookie policy , and that your continued use of the website is subject to these policies.

Home Questions Tags Users Unanswered. Did you make an extra partition for each of the directories or just one? There's no benefit to it. Just check the option of Share this folder:. If you are prompted about Sharing service not being installed, like in the screenshot below, just click on Install service and follow the instructions. You can also allow other users to edit the files in the shared folder.

Option for guest access can be checked as well. To stop sharing a folder, just uncheck the Share this folder option. Now this was the easy way out. This provides access to anyone on your local network to access these files. In normal condition, you should prefer this. I mean, devices on your home network should be generally know devices. But this could not be the case always.

What if you want only certain people to access it? This is where Samba server comes in picture. To do this, we need to configure Samba server. Actually, we did use Samba in the previous part of this tutorial. We just did not emphasize on it. Samba is the software package that allows you to share files, documents and printers across a network, irrespective of whether you are using Linux, Windows and Mac. It can also be part an Active Directory domain.

You can easily install Samba on you Ubuntu box. Before installing update your system so that you can install any available updates. Although the default settings are good and may be same you need. But you may need to make change to it in some cases. Keep as it is. It is all done! We are not far from sharing our first folder on network. You have created a system user. The user is not yet activated so we will activate it by setting up password for this account.

This is how I did it. I got most of this from this post. Awesome, this totally worked. Remember when you copy the cpio command to replace the long dashes with double dashes in the terminal.

Secondly, as mentioned by a previous person in this thread, I had to use sudo on it. Not just sudo at the front, but in front of the cpio command too. How do I modify it accordingly?

Can I simple do what you said: It took me 5 minutes following these directions. These icons link to social bookmarking sites where readers can share and […]. It works like a charm with Windows XP, had no problem whatsoever yet. I suppose you can delete it later after unmounting it: I suppose this blog replaces two hyphen by a long dash. Let me test; I type two hyphen here: In Xubuntu Feisty device names begin with s, so instead of hda5 you would use sda5.

So, I just went and deleted some […]. So far this is what I have done hdb1 is the partition I want to use for my directory, this partition is on a different hard disk.

Device or resource busy. I did get the same message from cpio because when I copy pasted the command it copied -null and -sparse instead of —null and —sparse that is two times the — character like specified by the cpio help command.

However, when I reach. This is a pretty good guide but got me into a bit scary moment. I finally figured it out by doing,.

Thanks for the walkthrough. I just followed it on Ubuntu 7. I think ubuntu should allow the user to move the location of the home directory as easy as it is in windows. There you can move the home-directory for the data as simply as by right-clicking the folder and assigning it a new location-address. Make sure that first name after the number matches the one on the end. The 2nd HD is ntfs. How can I fix this?

Can I boot into Ubuntu 7. Or will I need to reload Ubuntu? How can I write to this using a live CD to make the necessary change. If you are planning on reinstalling Ubuntu multiple times, keep your home partition on a separate partition. Hey i have some questions i made it but my root partition is only 4gb. Will i face any problems in the future??? I have to make a biiger root partition?? The documents and files are mostly there, but lots of dot files are empty,. I followed the tutorial, except I used an existing partition to copy the home folder to.

Now all the data I had on that partition is lost. Apparently cpio copies over existing data. Is there a way to retrieve this data? It is very important for me, thank you in advance. I managed to do it after two or three false starts.

In the end I went to the psychocats version, which was very straight forward afte I remembered to put in my own hda numbers and a bit of a panic over inputting the final script.

Up and running, but should have made the partition bigger. My Desktop was a dual boot with XP and fedora 8. After installation i am trying to mount this partition, but this is giving me the error:. Continue Filesystem OS type: Mon Sep 4 Thu Feb 28 Two other posters have noted this issue, but there is no reponse I can see.

Can anyone advise me how to resolve this please? Subsequent to my post of 28 Mar: This is not changable after the fact. Take the plunge and format the partition as Ext3 in the first place.

Your article is very interesting! I have found that doing this is Debian works but you need to change that command a little bit. If you want to preserve the file dates, you just need to include the option m in the cpio, like: There are a lot of cries for help up above from people who got in over their heads and screwed up their system.

The tip about using find with cpio is pretty cool! Can anybody help me install this linux. I want to install ubuntu to that drive. I simply choose that drive but it needs root or something which I have no idea at all. So can any one give me a go? Worry about partitioning when you have practiced and come to enjoy using Linux rather than Windows. In my Kubuntu Hardy Heron: I added a new hdd. Want to make this hdd my new home.

I formatted new hdd ext3 with gparted. But the owner of the disk is root so i can not write to disk with user level. Tried to copy files in my home to newhome with the command: Seems that many people are having problems with it too… rsync is so much simplier and I believe will accomplish the same thing. A few comments here.

Go into your new home, then cd. On 2nd thought, do NOT delete the firefox lock. Seemed to let it run, but breaks it badly. Need to rewind this to find how to fix this issue. You can probably avoid it by closing firefox before you start the copy hopefully.

On firefox, rewinding the above changes to the original state, closing firefox then doing the copy, and all is now good. Thanks for this advice!

You might also consider blocking this blog since the owner cannot be bothered to fix all the errors, flag it for the proper version of Ubuntu, and cannot be bothered to update it.

Apologies if this has been addressed before, but I followed this tutorial and encountered a bunch of errors when copying the contents of my home folder. What the command above is trying to do is find everything in the home folder, and pass that list to the cpio command the very handy pipe symbol: I had permission errors at this point, so instead of piping directly to the cpio command, pipe to the cpio command with a sudo before it:.

I used this on Ubuntu EEE and had no probs except for that. I wonder if they even know who they are…. On January 4, All four machines upgraded without catastrophic failures. All I needed were these instructions and I was back in business: This totally worked for me, but I think WordPress is converting double dashes to a single em-dash, eg before the options in the following command:. It even does it in the comments I think! I actually used your guide to accomplish the reverse procedure: Follow the instruction from this Ubuntu blog.

This entry was written by sky, posted on November 30, at 1: Dear Sirs, Thank you very much for your advice. Both methods suggested by you to move the home directory, i. When I tried to login the server using Pietty, it gave the following error message: Then a couple of seconds later, the system dropped to the root directory.

By the way, this problem is encountered only when I login the server using ssh. Everything is fine if I access the machine directly. Hopefully this will give you one more clue to help me.

I welcomed this with great anticipation at 77 years old and when I was able to mount the newly created partition I thought I was home free. Then my 77 yr old comprehension challenges really kick in. I know, I know you can tell straight away from my odd socks, gormless expression and sweaty palms I am a complete noob but please help! I also apologise if these questions are out of turn or out of place here but this article seems to be the defacto authority on moving your home directory so…. I want to do this but with a RAID1 array as a destination.

My aim for moving it is primarily more to do with getting the home directory off of the CF card that runs the system and onto the raid array. I used the ubuntu server cd to install it so everything system related went on the CF card boot, swap, home etc. Once the system was setup I could then create the array. When you move home to a new partition am I missing what happens to the existing partition?

Currently now on the array I have a folder per user that I share via NFS, is it advisable to do away with this and share the home directories of those users instead? My googling skills have taken me only so far and now, obi-wans, I need you help. Great post, helped me a lot, however I would recommend using tar to archive home and untar on the new partition since the aforementioned resulted created a bit a of an issue.

Previousle I had Kubuntu Ibex 8. So wondering is there something modifications in Kubuntu or why it works there. Reading this has tipped me over in my decision of whether or not to get an EeePC I was worried about the small 4Gb primary partition. Or is that a terrible idea? Suggestions would be much appreciated. Restart Ubuntu, open a Terminal window and run blkid to obtain device id and uuid. Take note of those values. Followed this but ended up with a disk full of the subdirectories from the user directory, but no user directory!

So it was useless. Here are some instructions on how to move your home directory after an Ubuntu install. I think I follow the logic. Mount does not create directories for you.

I will like to know how to do this when installing Ubuntu from scratch? I have a computer with 2 HD one is 40Gb and 80Gb. Does this make since or is there a better way than purchasing additional hardware External usb drive etc.

I forgot to mention that I wanted to install Ubuntu Studio as well. Like I had mention before I am new and I want to be able to learn and practice without putting my data at risk.

I would rather and actually did leave my oldhome alone for a while, before deleting or formatting it, just for the case…. What I mean is, what level should we mount?

I think my problem is a permissions problem. Thank you so much for the tutorial. Initially I wanted to resize my filesystem partition taking some space from unallocated space but there seems to be no way so I decided just to make the home folder mounted with my original home folder which was nearly outspaced. Unless the original posts of ancient blogs like this are kept up to date, then the chances of novice users reading and understanding every subsequent post are low — and end up being an invitation to trouble.

Then, if you stuff it up, you can easily restore the original version by reversing the above command:. No such file or directory chown: No such file or directory patrick patrick-laptop: Thank you for this! I guess this is missing in it. I just started with ubuntu 9. It makes everything sooooo much easier. Might help doing it now even. I tried it and it seems to work. Wow, thanks for the help!

There were literally thousands of files that had not been copied correctly. I did a full backup of the disk, and reinstalled 9. But, I installed I had to root, and copy it all from backup. Do it this way instead. Deny that and you lose market share. This worked great for me. Thank you very much for your detailed instructions. In particular, I am glad you pointed out every instance where an entry would have to be replaced by the user to reflect their own system.

Apart from that, the commands worked verbatim! No missing su or sudo, as is also so often the case. The one comment I have regards the fstab step. I wonder if this would make a difference in end result. Regardless, I think that using tabs and pointing out their location in text would be clearer for readers.

Add Me To...

Leave a Reply