General :: Mounting Lvm2 - Copy Some Files From Another Harddisk
Mar 8, 2010
I have just reinstalled Centos 5.3 on a new harddisk. I would like to copy some files from another harddisk which is also install with Centos 5.3. I have followed some guide in the internet but failed to mount the old harddisk. I got "unknown filesystem type 'lvm2pv'" error when trying to mount /dev/sdb2.
Details:
View 5 Replies
ADVERTISEMENT
Oct 7, 2009
I am using virtualbox to run windows xp.is there a way to access the harddisk occupied by linux and copy the information to the virtual memory in windows xp
View 3 Replies
View Related
Feb 2, 2010
I've right now installed Fedora 12 in my laptop, and when I try to acces my external USB Woxter HardDisk I get this error:
Error mounting: mount exited with exit code 12: Failed to read last sector (1953525103): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
or it was not setup correctly (e.g. by not using mdadm --build ...),
[code]....
View 1 Replies
View Related
Jul 16, 2011
I've got three disks together on a *home* server that constitute four LVs.The two are the root and swap LVs installed by the Ubuntu 10.04.2 LTS installer on the OS drive (250 GB VG: Beta). The third & fourth LVs I made of two physical volumes (640 GB and 200 GB VG: Data) and mounted each inside /torrent. All are ext4.
I'm migrating lots of large files from /home to inside of /torrent, but I'm seeing EXTREMELY slow speeds (700KB/s).I'll admit this is my first time using LVM, and I tried it only because of the numerous smaller drives I have sitting around that weren't getting used. I didn't expect such a large drop in speed.
Here's a more technical review of the setup:
Code:
me@Beta:~$ sudo pvdisplay
[sudo] password for me:
--- Physical volume ---
PV Name /dev/sdb
VG Name Data
[code]....
View 5 Replies
View Related
Jul 9, 2011
I am using ubuntu but I am reading a windows harddisk via USB.Apparently some files does not appear and it cannot read zip files.
View 4 Replies
View Related
Jan 20, 2011
I'm going to replace the primary hdd of my box with another one of a different manufacturer, but of the same size (long story, never mind)
My current plan so I won't have to reinstall my system is booting from a Ubuntu CD (or USB stick, whatever) and doing
Code:
dd if=/dev/sda of=/dev/sdb
(If sdb happens to be a few megabytes smaller it doesn't matter, the last partition is not important)
Now my questions:
1. Is this going to work? Is it a bad idea?
2. Should I use any parameters for dd, for performance? Like setting bs (or something) to a bit smaller than the both HDD's (equal) cache size?
If that matters, the hdd contains both NTFS, ext3/4 and reiserfs partitions. I use grub to boot Ubuntu, WinXP and Win7.
View 5 Replies
View Related
Sep 16, 2011
I need to recreate in a local folder called /distro/fedora/ the full directory tree (including eventually hidden files, symlinks, etc.) contained in the .iso file just downloaded (Fedora-15-i686-Live-Desktop.iso).
I understand I can mount the ISO image using something like this:
mount -ro loop /path/to/image.iso /mnt
but then, which would be the best way to get a copy exact of what I see underneath /mnt in to /distro/fedora ?
cp, tar, clobber?
View 1 Replies
View Related
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
Aug 25, 2009
How can you create a script to move or copy files from a main directory into multiple directories below the main directory.
View 7 Replies
View Related
Feb 1, 2011
When i installed ubuntu. I made a seperate partition so that i could copy an ISO image onto it of an up-to-date version of ubuntu. I wanted to then boot the ISO up so i could install the version that way.I've already tried doing it through the update manager but it'll download, almost be done with installing and it freezes on me. so i figured this would be easier. However i do not know how to gain access to the other partition to copy the ISO image.
View 6 Replies
View Related
Jun 8, 2010
I have many files and folders in my source folder. I want to copy some files and folders from that source folder to destination folder. What should be require to given with the "cp" command?
View 1 Replies
View Related
Jan 28, 2010
Long story short I have windows 7 installed and in an attempt to install ubuntu the existing partition table was erased. What's the safest method to mount an ntfs partition and back up files? Or even write a table to get back into windows to back files up?
View 2 Replies
View Related
Mar 15, 2010
I had ubuntu 9.04 on a laptop, and it kept crashing, so I removed the harddisk, connected it via a Sandberg Harddisk to USB stick, and it works when I connect it to another ubuntu (running from livecd), but some of the files are locked, and I cannot open them copy them or anything else. What do I do?
View 2 Replies
View Related
May 9, 2010
Does anybody here know a program (Linux-based or even Windows-based) which permits looking at the files structure of a harddisk in such a way that you can find out what file lies where on the harddisk?To specify further what I mean, back in the DOS days the Norton Utilities would show the distribution of files on a harddisk. It would show the harddisk as row upon row of rectangles, marked as used or not used, and the top left rectangles were the beginning of the harddisk while the lower right were the end of it.Now if a program put some files at the end of the harddisk it was possible to mark the filled rectangles and find out exactly which files were there.
View 9 Replies
View Related
Apr 18, 2010
I am planning to install 10.4 when it arrives. And am not going to upgrade because i upgraded from 9.04 to 9.10 so now i need to refresh the system.But I have all my partitions except root using lvm2 logical volumes. My question is : What is the safest procedure to install 10.4 on an existing lvm2 without losing my files/partitions
View 2 Replies
View Related
Jun 18, 2011
how can I clone my installed ubuntu to a new harddisk? with 32bit ubuntu I have used:tar cvpzf -> create a tar file on my external nas system. after that I have done a restore tar xvpfz - worked with 32 bit.
Alternative I have mounted both disks and via another linux partition I have used:
cp -rvbdR /source/* /target
both methodes worked with ubuntu 32 bit. With 64 bit ubuntu I can NOT get it to work. error message after booting the clone: /var/lib/gdm/.ICEauthoriy ..
I can see that /source/var/lib/gdm has different rights as /target - will be part of the problem.
This did not happen with the 32 bit ubuntu - but why ?
View 3 Replies
View Related
Nov 7, 2009
I'm new to linux,so i'm confused with MOUNTING files. give differences and unique functions of the FSTAB, MTAB, /PROC/MTAB files.
View 2 Replies
View Related
Sep 1, 2010
I have a 160GB harddrive which I installed a F12, would like to upgrade to a bigger drive, but I hate to have to re-install everything.
Recommend a good disk copy utility? The utility should be able to not only copy files, but boot sector and everything. So I just need to make a copy, change my BIOS to boot from the new drive and run everything as before.
View 11 Replies
View Related
Jul 9, 2010
just installed ubuntu couple of days back on my netbook. I am still a beginner, enjoying my adventure exploring ubuntu. I have another desktop which runs on XP. I am able to access XP shared folders through my netbook(linux). However, i wanted to copy files from XP infact folders using TERMINAL in my netbook, not copy and paste using my mouse. Are there any commands for it?
View 1 Replies
View Related
May 24, 2010
I'm trying to copy some files to a dvd. and i was wondering is the tar command the correct command or is there a better way.
View 1 Replies
View Related
Aug 24, 2010
I'm trying to copy files to the /var/www folder on Ubuntu 10.04. But I think I don't hava the permission. How can I do this? Maybe I have to set the rights permissions.
View 3 Replies
View Related
Sep 2, 2010
Possible Duplicate: Linux equivalent to robocopy? I have two websites - one is basically a development version and the other is a production version of the same site. So I'd like to be able to merge the changes made to the development site based on the modified date of the files. Is this possible with the 'cp' command?
View 2 Replies
View Related
Jan 19, 2010
At the moment I'm using:"cp -ap . /destination-folder"to copy everything from the folder I'm in to another folder.That works.Is it possible to cp everything except:folder1/folder2/in the current folder I'm in?
View 2 Replies
View Related
May 6, 2011
I have searched for a way to copy file less than X days old and I found this:http://www.howtogeek.com/howto/ubunt...days-on-linux/ The syntax for deleting files less than 7 days old would be like this:find /path/to/files* -mtime -7 -exec rm {} ;I would like to copy the files to mntas, and I'm not sure what the syntax should be.ould this work?find /path/to/files* -mtime -7 -exec cp {} mnt
as ;
View 3 Replies
View Related
Dec 10, 2010
Now I have learned creating partition in linux (ubuntu), well that's an achievement for a newbie. The next thing that I want to know is, how can I copy the contents of a partition to another partition. Like if I want to backup its content to a new partition that Im going to create.
View 11 Replies
View Related
Dec 22, 2009
I have four directories and i want to copy only the files in the directory to a single directory, how can i do it with the cp command.
The directories names are dir1, dir2, dir3 and dir4 and i want only the files from these directories to a single directory called mainDir.
View 3 Replies
View Related
Jun 20, 2011
iam using vmware on windows xp how can i copy files from vmware to pc.
View 8 Replies
View Related
Jun 10, 2009
I'm trying to copy a list of files except the files which has ".log" in the filename to another folder.I can run it correctly when I am located in the Source folder, but not when I am in any other location.cd /home/me/Sourcels /home/me/Source -1|grep -v "^.*log$" |xargs -n 1 -iHERE cp -r HERE /home/me/DestinationHow can I indicate both Source and Destination Folder?
View 2 Replies
View Related
Mar 4, 2010
I have to transport a lot of files from one pc to another (both Linux). I would like to use scp for that, but scp only allows for transferring one file at a time. How can I do this?
I have No possibility to use rsync or any other protocol No possibility to use passphrase free certificates (but have a certificate with a passphrase) A list of files to transfer and a list with the destination path of the files on the other server The files are spread out over a lot of directories, and not all the files in the directories I want to copy If possible I would like to gzip and ungzip transparently to save bandwidth!
View 3 Replies
View Related
May 9, 2011
Suppose there is a directory named mydir containing ...
aaa.cpp
aaa.h
bbb.cpp
bbb.h
Makefile
a
b
Where a,b are executable files. What I want to is to only copy a and b to another location. Is it possible? (other than by manually issuing copy a,b another_dir).
View 2 Replies
View Related