LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   partition got strange after clonezilla work (https://www.linuxquestions.org/questions/linux-newbie-8/partition-got-strange-after-clonezilla-work-937215/)

windstory 03-30-2012 01:58 AM

partition got strange after clonezilla work
 
3 Attachment(s)
My box is scientific linux 6.2 x64.

I installed scientific linux 6.2 x64 on 30G hard disk, and migrated with clonezilla by disk-disk clone - I hoped the SL 6.2 moved to new 160G. At that procedure, I press enters only. After finishing cloning, removed source disk 30G, and succefully booted, but partitions are something different I hoped.

The disk state is this.

Quote:

[root@tesetbed etc]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_tesetbedr-lv_root
28G 6.2G 20G 24% /
tmpfs 499M 648K 498M 1% /dev/shm
/dev/sda1 485M 54M 406M 12% /boot
K_DRIVE 663G 536G 128G 81% /media/sf_K_DRIVE
[root@tesetbed etc]# fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0003efaa

Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 3917 30944256 8e Linux LVM

Disk /dev/mapper/vg_tesetbedr-lv_root: 29.6 GB, 29569843200 bytes
255 heads, 63 sectors/track, 3594 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/vg_tesetbedr-lv_root doesn't contain a valid partition table

Disk /dev/mapper/vg_tesetbedr-lv_swap: 2113 MB, 2113929216 bytes
255 heads, 63 sectors/track, 257 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/vg_tesetbedr-lv_swap doesn't contain a valid partition table
1. 30G Hard Disk is source disk for cloning by clonezilla.

2. the space 160G - 30G(LVM) = 130G < - I want to put into LVM.

3. 2.1G hard disk <- I don't know.


Please let me know how to fix this.

Thanks in advance.

barnac1e 03-31-2012 01:15 PM

Your new file system is set up incorrectly
 
The thing I can suggest is to run any live CD, go to a terminal as root an type:

#fdisk

Then type the letter 't' and hit ENTER. It should ask for the number of the partition you want so if the new one is /dev/sda3 for example then just hit 3 and then type the code for Linux LVM which I think is 8E00 the hit enter. Confirm yes at prompt. Then type 'w'. And exit.

Now you may have to recopy it again to the partition but it should be okay after that.

ukiuki 03-31-2012 01:21 PM

Clonezilla will copy the 30GB FS to another drive just as it is, leaving the extra space empty.
Do you have /home inside the 30GB? You could move /home to a bigger partition, so resize the 30GB 1st before move /home to a different partition, lets say 30 to 60 and the 100 left for /home.
http://www.tldp.org/HOWTO/LVM-HOWTO/extendlv.html
The 2.1GB hard disk is a swap partition.

Regards


All times are GMT -5. The time now is 04:16 PM.