General :: Copy Most Of A Filesystem Onto A New Drive?

Apr 6, 2011

I am getting a SSD and I'd like it to become my new Linux boot drive. However, it is smaller than my current hard drive's root Linux partition, so I'd like to copy over the filesystem and exclude some directories (which I'll leave on another hard drive). So I can't just clone the partition with parted or similar because it is too big.

I want to make sure all the data, metadata, links and such are preserved. That seems to exclude "cp" because it doesn't preserve all the metadata and link information.

The two basic techniques I've been able to identify seem to be something like:

find / -xdev -print0 | cpio -pa0V /mnt/dst

and:

rsync -avP -H -S --numeric-ids / /mnt/dst

Can anyone chime in with what they've used in the past, whether one of these or a different method, or if they see any flaws in these approaches.

View 2 Replies


ADVERTISEMENT

General :: Transfer A Copy Of Filesystem To Pen Drive?

Jul 21, 2010

I have a copy of Linux file system in /home/user/desktop/fs/how tp copy it to a usb drive preserving the links

View 2 Replies View Related

General :: External Drive Read Only - WARNING! Running E2fsck On A Mounted Filesystem May Cause SEVERE Filesystem Damage

Mar 24, 2010

I've had a look at some similar threads but as I'm very new to linux they're already a bit technical for me. Sorry, this calls for someone with patience. I gather from other threads that disconnecting an external drive without unmounting is a no-no, and this seems to be the likely cause. Now the disk is read only and I'm unable to change any settings through the usual control panel on ubuntu. I'm just not familiar with the terminal instructions. I tried to cut and past a few command lines from other threads but I got some warnings that proceding could damage data. Like this one: WARNING! Running e2fsck on a mounted filesystem may cause SEVERE filesystem damage.

View 5 Replies View Related

General :: Copy Root Filesystem From RAM To Flash?

Jun 7, 2011

I boot up a Linux appliance entirely in RAM, ie. the image has a Linux kernel and an attached ext2 root filesystem.

Now that it's working, I would like to copy the root filesystem from RAM to a NAND flash memory.

Can I just mount the NAND, run "cp -a /* /mnt/nand", reboot with the kernel command line "root=/dev/mtdblock2 rw", and expect Linux to be happy... or is it more involved than this?

View 9 Replies View Related

General :: Feedback Requested On Planned Multiple Filesystem Copy

Jan 14, 2010

I am going to be involved with a massive filesystem copy from a local to a remote server in the next couple of weeks. There are ten filesystems in involved in this process. All, except one, are one hundred gigabytes in size, with the remaining one at twenty gigabytes.The cp command with the -pr options will be used to copy the directories to their new location. A speed test, involving ten directories, was done to determine the average amount of time it would take to complete the process. The ten directories used in this test ranged in size from 2.3 gigabytes to 4.3 gigabytes. The results indicated the average amount time to complete the copy was around one minute and thirty seconds.

The question I have is the following: Is it better to interactively go to each filesystem and run the cp -pr command there, or should I write a script that will automatically go to each filesystem and run the copy?

View 1 Replies View Related

General :: Filesystem To Use For External Hard Drive To Be Used With Mac And Windows Machines

Jan 20, 2011

I have a rather large USB drive that I'd like to be able to use across the different machines I own. I'm having a hard time figuring out what would be the best file system to use on it to be able to read/write things from the 3 OSs I'm in contact with: Windows, Linux and Mac.

View 5 Replies View Related

General :: External Hard Drive Can Not Mount On, It Is Of Ntfs Filesystem?

Apr 10, 2011

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

View 2 Replies View Related

General :: Cfdisk Filesystem Type For Storing Videos On A Hard Drive

Nov 29, 2010

I have a spare harddrive that I want to store my videos on. They are in mp4 format. I'm using cfdisk to create a new clean partition on the drive. What filesystem type should i make it (linux,HPFS/NTFS,FAT16...)

View 2 Replies View Related

General :: Copy Whole Drive Sdb To Sda3?

Dec 2, 2010

I installed Debian squeeze to 40Gig pata hdd on my AMD 1090T desktop, with1Tb sata hdd.
Now that I'm quite comfortable with dual-booting, I'd like to transfer 40Gig Hd(sdb) to sda3. I viewed this thread, which is similar to my situation, but not quite the formula.

[URL]

I intend on reading more on this 1 to see if what I'm looking for is include.

[URL]

I've never done the dd command, so it's not like I'm going to do it today, but would like a little bit more documentation to get a further understanding of the dd command.

View 14 Replies View Related

General :: Ubuntu 9.10 Will Not Copy To Usb Drive Anything More Then 4GB

Mar 19, 2010

Trying to copy ISO images over to a external hard drive, when copying it reaches 4GB then stops.I have tried the same with a external usb thumb drive as well and the same thing happens so it is not the external drives running out of space. The error reads.Error Writing to file is to large.

View 9 Replies View Related

General :: Can't Just Copy A Bootable CD To USB Drive And Boot From It

Aug 15, 2011

I would like to understand the following:

I have a Debian installation CD that I can boot from. Now I copied that to an USB-stick using dd

dd if=/dev/sr0 of=/dev/sdc bs=1M

The CD-image should contain a boot-sector and everything else that is needed for booting, yet the USB stick does not boot.

What am I missing - why does the stick not boot?

PS: I am not interested in tips on how to create a bootable stick, I only want to understand why the above method does not work.

View 2 Replies View Related

General :: Can Copy Entire Partition / Put It On New Drive

Jul 11, 2011

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.

View 6 Replies View Related

Red Hat :: PBM Repairing Filesystem - Copy Backup Folder In Pendrive?

May 5, 2011

Using redhat linux el5, when I had booted I had pbm repairing filesystem. So I run following commands
1. fsck -l
2. fsck
But I cannot solve the pbm. My pbm is I had important folder "backup" in root folder just I want to copy it in pendrive how to do it.

View 2 Replies View Related

General :: Copy Files Off Server To My Hard Drive?

Nov 20, 2008

I'm connected remotely with Putty to a linux server and I need to get the files from a directory on the server onto my hard drive on my laptop. I don't know what the secure shell command is to download it or what exactly I need to do so I can get these .root files from the server copied onto my local hard drive.

View 2 Replies View Related

General :: Rsync To Copy Directory Tree From NAS Drive ?

Apr 10, 2010

I have a WD world book edition 1TB NAS drive, and just purchased an acomdata 1tb drive and connected it to the NAS via USB. If I recall I think the WD NAS has a ext_ or some type of linux filesystem on it, and the acomdata has a ntfs filesystem on it.

What I want to do is copy over certain directory trees of the NAS to the USB attached drive. I usually use MS synctoy to sync folders from my windows pc to the NAS drive, and MS richcopy to make the initial transfer from PC to NAS. For this operation though, since it is taking place entirely on the NAS and its connected drive, I thought that rsync would be the best option, and it is available on my NAS drive.

Last night I entered in rsync -avr /movies/* /usb1-1share1/ to copy the entire "movies" dir to the drive, which shows up as usb1-1share1 on the NAS drive. It copied most of the directory tree ok, but a lot of the folders were empty, so this morning I tried rsync -Carv --ignore-existing /movies/* /usb1-1share1/ to try and get all the files missed, without recopying the 24GB that did make it across. This also managed to copy a few more GB over, but not everything.

I am running the command from an ssh session on the NAS using putty on my PC, in as user "admin" which should have all rights over these folders. There is a bunch of errors in the command window like this: rsync: failed to set times on "/shares/usb1-1share1/movies/classics/fulldvd/First Blood DVD/.VTS_01_2.VOB.RxdjWZ": Operation not permitted (1)

I want to restart another session and get the files it missed, but I want to find out what I am doing wrong first. Should I be doing this as root user? am I missing some switches or just plain doing it all wrong?

View 3 Replies View Related

General :: Copy Everything In The Home Directory To An External Drive ?

Jun 11, 2011

How do you copy everything in the home directory to an external drive while running in rescue mode?

View 3 Replies View Related

General :: Open 3-1/2 Floppy Drive To Copy Files?

Nov 6, 2010

My system has a 3-1/2 floppy drive. I do not know how to open it to copy files to a CD. My system knows itis there since booting with a data floppy gives a non system disk error. nce in Ubuntu, the floppy drive does not appear in "places computer".ince I am completely new to this system, I do not know how to proceed

View 1 Replies View Related

Ubuntu :: Changing Filesystem - Using Partimage To Make Copy Of Data

Feb 22, 2010

I have my / partition on an SSD that I formatted in ext3 but I now realise that, in order to use TRIM, I need to be ext4. Can I use Partimage to make and image of the partition, format it (using GParted) and then restore the image? Basically, do Partimage files survive a filesystem change?

View 1 Replies View Related

Security :: Module - Copy ELF Or BIN Files From The Filesystem - Get Permission Denied

Mar 17, 2010

Whenever i copy ELF or BIN files from the filesystem of linux i must get permission denied. For this case i have gone through the linux security module but didn't get much help regarding the permission denied only in case of copy of ELF and BIN files from filesystem. how can i proceed in this. WORK DONE:

1. Downloaded linux-2.6.25.14

WORK NEEDS TO BE DONE:

1. compile the kernel with some modifications in linux security module to get the desired results but this time i am unaware of that.

View 5 Replies View Related

General :: Cp -ru -> Using The Recursive Copy And Update From Internal Drive To A Mounted Nas

May 4, 2011

I've mounted my NAS drive under the /media/ directory. I've copied a bunch of files from my current /var/www directory, using cp -Rpv (preserve). Now I want to do a cp -Rup /var/www/ /media/magneto/testing.cdw/ Based on the fact that these are two different file systems, i.e. one is a networked NAS connected through Samba, and the other is my computers internal drive. Will I run into problems with the date and time? how can I check before I run the copy?

View 4 Replies View Related

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.

View 3 Replies View Related

General :: CP Read Permission Denied - Cannot Copy Files From Pen Drive

Sep 23, 2009

I can't copy a few files from my pen drive. Got the files from a public computer, with windows. I use fedora 10.

cp gives the following error--->
cp const1.java /home/user1/Documents/scjp
cp: cannot open `const1.java' for reading: Permission denied
lsattr shows this--->
lsattr const1.java
lsattr: Permission denied While reading flags on const1.java
mount shows this--->
/dev/sdc1 on /media/disk type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)

View 3 Replies View Related

General :: Debian System Drive Upgrade: Copy Filesystems From MBR Partitions To GPT?

Jan 23, 2010

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?

View 3 Replies View Related

Fedora :: Copy Files In Ftfs Drive To Ext3 Drive?

Dec 4, 2009

i want copy files in ftfs drive to ext3 drive. how am I do this?

View 2 Replies View Related

Fedora :: Clone Drive - Tools Do Full Drive Copy?

Mar 22, 2010

I have a 120 gig drive that I'd like to clone before it fails completely. I was thinking I'd pull the drive from the server and build a separate machine that has it's own os installed and the source and destination drive. Does anyone know of any linux tools will will do a full drive copy? Additionally, If possible, I'd like to move to a larger drive. how I'd migrate the 120 drive to a 400 or so? 1 idea I have is to install os on 2 new drives to where it they will boot, Then boot with one and copy source to the newly created destination drive.

View 6 Replies View Related

General :: Detect Filesystem Type (can't Mount Filesystem Image .img)

Mar 11, 2011

I am trying to mount a file image, like this

mount -o loop /tmp/apps.img /media/apps

But I get the following:

mount: you must specify the filesystem type

I try ext3:

mount -o loop /tmp/apps.img /media/apps -t ext3

dmesg says:

error: can't find ext3 filesystem on dev loop6.

I've also tried ext2, vfat etc. How can I detect the filesystem type of apps.img?

View 2 Replies View Related

General :: Dd Copy - Hard Drive Clone Fails When Mounting Root Androotblock - /newroot Failed

Oct 27, 2010

I am trying to replace an old, smaller, and dying laptop hard drive with a newer one, using a USB external drive. I first tried cloning disk to disk with Clonezilla, but it failed after cloning my root, swap, and /home directories it froze when it tried to reinstall grub. After 2x trying, I switched to dd, which I have never really used (I am fairly new to Linux in general). The actual command I used was:

Quote:

dd if=/dev/sda of=/dev/sdb bs=4096 conv=notrunc,noerror

All seemed ok and after approximately 2 hours my 80GB drive had been cloned onto my new 250GB, with dd giving what appeared to be a satisfactory closure summary. I tried to mount and access the drive from my external USB enclosure but could not view it, though the data is there, I believe, as the size and bytes show... The error that Dolphin is giving me is:

Quote:

error - wrong fstype, bad option, bad superblock on /dev/sdb1 Missing codepage or helper program or other error. When I installed the new drive directly into my laptop, it begins to boot (Sabayon 5.4, 2.6.35 kernel) but almost immediately I get (handwritten down, but this is close):

Quote:

detected real_root
mounting /dev/sda1 on /newroot failed: input/output error
!! Could not mount specified ROOT, try again
!! Could not find the root block device in .

[code]....

I am assuming that my issue has something to do with grub, and maybe specific UUIDs that don't match (?) but I'm not really certain. I have both Grub Legacy 0.9x and the newer Grub 2 installed (Sabayon is already moving over) but I still boot with Legacy, not with the new 2, as I don't know how to switch, and am not sure if I should yet. I thought that dd copied bit for bit, and I added the noerrorï just to try to get it all transferred, so I don't know what went wrong exactly, though something seems wrong with grub and the bootloader, I guess...

View 6 Replies View Related

Ubuntu :: Copy The Contents Of One Drive To Another New Drive?

Jan 17, 2010

I need to copy the contents of one drive to another new drive.I mean EVERYTHING on it including the OS itself. I am thinking Clonezilla at the moment.

View 9 Replies View Related

Ubuntu :: Copy A File From My D-drive To E-drive?

Feb 27, 2010

I want to copy a file from my D-drive to E-drive through terminal.How can I do it?Do I've to mount the drives first?

View 1 Replies View Related

Red Hat / Fedora :: Filesystem Check After Power Outage - WARNING: "Running E2fsck On A Mounted Filesystem May Cause SEVERE Filesystem Damage"

May 18, 2011

I am very new to linux, and I have a question regarding the filesystem check (fsck). The power recently went out and when I tried to restart linux the following error appears:

*/dev/sda1 contains file system w/errors, check forced it then goes on to say..

*An error occured during the file system check. Dropping you to a shell; the system will reboot when you leave the shell. Give root password for maintenance (or type Control-D to continue) I wasn't sure what to do, but checked some other online forums and they suggested running fsck manually - so I typed in the root password - and used the command, "fsck -A -V ; echo == $? ==" it then gave the following message

*WARNING!!! Running e2fsck on a mounted filesystem may cause SEVERE filesystem damage
*Would you like to continue (y/n)

Again, I wasn't sure what to do so i just checked no. I then manually turned off the computer and was prompted at the beginning to press Alt-3. I was brought to another screen and it informed me one of the drives was degraded and suggested rebuilding the array. I tried doing this, but it still brings me back to the original error of, "/dev/sda1 contains file system w/errors, check forced," and the process continues.

Also, when I tried to rebuild the array, I didn't backup any of the data on our home directory before doing this (which was probably a big mistake). After being prompted to type the root password, I was able to give the ls command and look at all the directories...the home directory where our data was stored was empty and I am afraid I may have lost some information. Is there a possibility that data was lost when I was trying to rebuild using the old drives?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved