Partitions will not mount once target system is reimaged using dd
I am trying to dd an entire hard drive and copy it to another harddrive and experiencing problems for which I can't seem to find an answer.
Questions:
What do the error messages below indicate? Is there a solution?
Are the error messages due to the difference in drive sizes?
Is it possible to dd from a larger drive size to a smaller drive size? If not is there another, free, solution to reimage linux systems. I'm asking b/c I have secured the source system which took a considerable amount of time using DoD and NSA standards and don't want to lose this work.
The source system is an HP Proliant DL380 G5 using Red Hat Enterprise Linux 6 (2.6.32-71.24.1.el6.x86_64), RAID6, LVM (v2.02) on an ext4 filesystem.
Source system:
1) booted via RHEL live cd into rescue mode
2) unmounted all partitions
3) mounted external harddrive
4) dd source drive to external harddrive using the following: Target system:
1) booted via RHEL live cd in rescue mode
2) did not mount any partitions
3) mounted external drive
4) Used the following to dd image onto target drive:
fdisk on source system: fdisk on target system after reimage and reboot: After reimage and reboot of target system:
/dev/cciss/c0d0p2 is mounted as /
Error messages after rebooting the target system:
Not sure what info is needed to solicit help so I have included more detail then may be necessary.
The problem is this: you made a 1:1 copy of a harddisk, and wrote that to a much smaller disk. dd doesn't care about that, and didn't say anything since you specified the noerror option. Everything that's in the final part of the image that didn't fit on the target disk was silently discarded, apparently including a lot of LVM and Ext4 information.
To get a better copy that can handle different disk sizes, take a look at Clonezilla. They claim to be the Norton Ghost equivalent for Linux, but I haven't tested that claim yet.
Thx. I checked out Clonezilla's site and imaging from a larger to smaller disk is not supported. However, the site refers to Parted as a possibility. I'll check that out as well.
Parted is a partition editor that can expand and shrink a partition or logical volume, not an imaging tool. What you can do is use Parted to shrink all LVMs to the minimal necessary size, shrink the PVs behind the VG, clone the disk to the new system, and reverse the steps there.
Hello, fellow Unixers and Macers,
I'll run several OS X versions each on its own dedicated partition. Partitions won't be seeing each other (by editing fstab). Question: will I be able to copy files between those partitions? Partition #1: Mavericks. Partition #2: HighSierra (2 Replies)
Hi ,
We i try to mount aix filesystem i am getting the following error
mount: 0506-324 Cannot mount /dev/fslv11 on /testdir: A system call received a parameter that is not valid.
Please help me out (2 Replies)
I need to be able to move data around a disk that has mounted partitions. I am not touching the data on the mounted partition, the MBR or any other disk metadata, only the freespace and unmounted partitions. At the moment I am using libparted but it causes data corruption sometimes although there... (1 Reply)
Hi all
I wonder if its possible to mount on a hp-ux server a file system that was previously mounted on a solaris 10 server. The LUN is on NetApp stoarge.
The problem on hp-ux I cannot do pvcreate on the lun (disk) because contains data.
Any help will be appreciated
FR (2 Replies)
Hello, I am having an issue with a SUN FIRE V440. First of all, lots of mirrors and submirrors needed maintenance, so I applied #metasync to fix all of them, but I still couldn't mount all the partitions
of the server .
I tried to mount manually all the partitions that appear in the /etc/vfstab... (4 Replies)
I get "mount: I/O error" when trying to mount an existing FAT32 iSCSI target. I also tried formatting the iSCSI target with fdisk and got
fdisk: "Error in ioctl DKIOCSMBOOT"
Details --
According to the format command, the whole disk is allocated to slice 6 and /dev/rdsk shows this as:... (1 Reply)
I get "mount: I/O error" when trying to mount an existing FAT32 iSCSI target. I also tried formatting the iSCSI target with fdisk and got
fdisk: "Error in ioctl DKIOCSMBOOT"
Details --
According to the format command, the whole disk is allocated to slice 6 and /dev/rdsk shows this as:... (0 Replies)
Hi Experts...
Greetings for the day..!
I just want to FTP the files to mainframe system..
my code is not working..and also i need to put the files in a particular directory in a specific naming format...
ftp -i -n ${HOST_NAME} << END_FTP
user ${USER_NAME} ${PASSWORD}
put ${FILE_NAME}... (3 Replies)
Hi friends,
In my case, there are serveral PCs running Linux in a LAN.
I would like to to mount the directory /A_river of machine-A to the file system of another machine machine-B so that I can access files in that directory.
I do not know how to do this. The situation is complicated by... (2 Replies)