General :: Copy Entire File System Hierarchy From One Drive To Another?
Jul 7, 2011
I would like to copy the entire file system hierarchy from one drive to another..i.e contents of each directory as well as regular files in Linux platform. Would be gratefull to know the best way to do that with possibly Linuxes in-built functions. The file system is a ext family.
What are the directories and files in Unix file-system that has default user permission set. For eg. home directory of a user can't be seen by the other users on the system without his permission. In the same way what are the other directories that by default has user permission set at the time user account has opened. Eg. /etc,/bin or what
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.
i am putting a larger drive in my laptop, i have linux mint 10 KDE setup with all the software i need and running just the way i like it. is it possible to actually copy the entire partition to a external drive then place the partition back into my laptop with the new drive in it, and still have it all setup the way i had it?
basically so i dont have to reinstall everything and set it up again.if this is possible could you please explain how i can do it in the simpliest terms at all please.
I have a 16GB Ubuntu Webserver running on a Transcend SMART CF chip (Yes I know all the reasons not to). I want to move that entire system (OS, Files and structure) to an external bootable HD that will probably be closer to 100GB. What's the easiest way to do this and have it be plug and play. By which I mean I can then plug the drive into a new system and boot it up just as it was running on the old system.
I have an old Dell Dimension 2400 with XP that has a WD 40GB model# WD-XL80SD-2 that has run out of space now matter how hard I try and keep it clean. I called Tigerdirect this morning and ordered a Hitachi 500GB hard drive model# OF10381, here's my dilemma. I really want to just do away the old hard drive and use the new one but it seems as if there's not a real good way to copy the entire hard drive including the OS. I have been told that you can use a program such as norton ghost to do it. I do though have a Windows 7 disc, I am going to use a SATA host PCI card to connect the new HD. if I should back everything up from the old HD except for the OS. And then unplug the old HD and just do a fresh install with the Windows 7 disc.
Does the dump command back up entire file-systems or is it capable of backing up subsets of a file-system? And is tar capable of taking device names (for file systems) as input to be archived?
Is there a way to recreate all the folders from one directory to another without copying over the contents of the folder? I've been trying to do something like this,
Code:for i in `ls $X`; do mkdir $PATH/$i; doneUnfortunately $i is deliminated by whitespaces in the filenames and not the actual folders.
$X contains only other folders so I dont have to worry about regular files but any kind of more "advanced" solution would work.
I have a folder hierarchy with many sub-folder levels under a set of parent folders. Based on the application design and business use, files are written to different locations on a daily basis. I want to find out the last updated file in the folder structure and its location at any given time. How can I do that?
My home server runs Debian Lenny, and I'm about to upgrade the system drive to a larger drive.In the process, I want to take the opportunity to reorganize the partitions and resize them. For learning purposes, I'm planning to migrate from an MBR partition table to GPT.Because of those two changes, I can't just run "dd if=/old/drive of=/new/drive" (well, not without lots more work afterwards). I could use the debootstrap process to get a fresh installation on the new system drive, but I used that technique during the last system upgrade and it's probably overkill for this.Can I just copy the partitions from the old drive to the new?Will "dd if=/dev/hda1 of=/dev/hdb2" work, assuming /dev/hdb2 is larger than /dev/hda1? (If so, the filesystem can be resized to take advantage of the new larger partition, right?)Would parted (or gparted) be a better tool for copying the contents of the partitions?
I recently installed Fedora 11 64bit and I am curious about encrypting my entire file system for security purposes. I've been on Google for a while now and I keep finding info on how to encrypt a specific folder or home directories but nothing on the entire file system (or I'm missing something big here). It's hard for me to imagine that it isn't. If so, do I need to encrypt the partition my file system is on before installing it? What software should I use? There seems to be so many, it's difficult to keep them all straight.
Is there any function I can use to set the timezone of the entire system in linux using C? (Other than creating a symbolic link between /etc/localtime and /usr/share/zoneinfo/). Could I specify the timezone offset in seconds by any chance?
There is this bug in the latest version of Ubuntu, which is also Jessie, which is:
Can't copy a file from SMB share to the local file system: Software caused connection abort
The problem, apparently, is that newer versions of Samba hit servers with multiple requests at the same time, and for some reason the Zyxel and Iomega boxes can't handle this. The best solution they've come up with is to modify the smb.conf file on your server to include this setting: "max mux = 1".
Here is the reference material on this bug: [URL] ....
People who develop samba have fixed it in the latest version but neither the ubuntu nor Debian have released the fixed version of nautilus, as of yet. Here, is the reference: [URL] ....
I am running Fedora 10 and would like to move from my 40gb hard disk to a larger (320gb drive). I would like to take an exact image of the smaller drive and put this on the bigger drive.
I'm going to be getting myself a TB drive for general purpose storage later on this month/beginning of April and I'm looking for opinions on what file system to use on the drive. Currently I have a couple of large drives, from ~250 - ~500 gig, formatted as ext3 but once in a while I have to wait for ages for a fsck to run. I know I can disable it if I want, or use another file system but just don't...
I've read that ext4 is hugely improved over ext3 in a number of ways, the time taken to do these scans included. But saying that I've also read, can't remember the source, that the one "huge" problem with Linux is the way it deals with large partitions, i.e the time taken to scan the drive for errors.So in a round-about way, what options do I have for a reliable, fast file system for large drives? I know there's plenty of documentation on the net about this, and I'm reading those, but I want some "real-life" opinions.Is ext4 stable enough to use now? What about JFS/XFS/ReiserFS etc?
How to copy a Read-Only file in Linux and make the copy writable with a single cp command in Linux (Ubuntu 10.04)? The --no-preserve and --preserve seemed to be good candidates, except that they should "and" the mode flags, while what I am looking for is something that will "or" them (add +w mode).
More details: I have to import a repository from GIT to Perforce. I want that all Perforce depot files are Read-Only (that is how Perforce was designed), while all other files that were derived/copied from depot files are writable. Currently if a Makefile tries to copy a Read-Only file then the derived file will also be Read-only. This leads to build-errors when cp tries to overwrite Read-Only file second time. Of course the --force is a workaround here but then the derived file is also Read-Only. Also I do not want to mess with "chmod" after each "cp" command - I will do that only as the last resort.
I would like to copy an entire unmounted partition from one machine to another on my LAN. This is basically to perform a very direct backup of the partition.
Wondering if any know of a program that I can use to make an exact image of my fedora 13 operating system and transfer it to my new hard drive. I want to upgrade the hard drive and reinstall the exact system from the original drive to my new one, without starting from scratch. Just wondering if there's a program for Fedora 13 like Norton Ghost.
I installed ubuntu off of my laptop and put the Ubunto file system on a 1TB hard drive off of a drive enclosure. Now the only way I can access Windows is if the drive is still connected to the laptop. NO EXTERNAL HD No BOOT MENU when I boot up.
I have win7 and ubuntu on a 250gb hard drive. I would like to move this to a 1tb drive. Is it possible to clone the entire hard drive, including the MBR? Thought about doing a disk image but unsure if this is the answer. I am using win7 64 pro and ubuntu 10.10.
I installed a new 11.04 on my Thinkpad in place of the old 10.10 system, so it replaced the old /home with a new empty one. But I had previously done a partition copy of the original 10.10, complete with /home to a spare HDD so now I can copy that /home in place of the new empty /home. What's the best way to do that? Should I use 'dd'? Should I use Nautilus? Or should I partition-copy that copy of the 10.10 onto available space on the thinkpad 11.04, then manipulate the partitions to consolidate? Maybe create a separate /home partition?