LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Linux Fdisk Listing (https://www.linuxquestions.org/questions/linux-general-1/linux-fdisk-listing-4175475996/)

JJJCR 09-05-2013 02:36 AM

Linux Fdisk Listing
 
hi guys, if i have this output below when I type fdisk -l

basically it means that there are two hard drive on my system each around 80GB?

Thanks.

root@xoom:/home/xrxs# fdisk -l

Disk /dev/sda: 73.4 GB, 73406611456 bytes
128 heads, 32 sectors/track, 35003 cylinders
Units = cylinders of 4096 * 512 = 2097152 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 2049 4196336 82 Linux swap / Solaris
/dev/sda2 * 2050 2306 526336 83 Linux
/dev/sda3 2307 35003 66963456 83 Linux

Disk /dev/sdb: 73.4 GB, 73406611456 bytes
128 heads, 32 sectors/track, 35003 cylinders
Units = cylinders of 4096 * 512 = 2097152 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 2049 4196336 82 Linux swap / Solaris
/dev/sdb2 2050 35003 67489792 83 Linux

druuna 09-05-2013 02:39 AM

Quote:

Originally Posted by JJJCR (Post 5022117)
hi guys, if i have this output below when I type fdisk -l

basically it means that there are two hard drive on my system each around 80GB?

Yep, you have 2 identical sized disks (both +/- 73 Gb)

One disk (sda) has 3 partitions, the other (sdb) has 2 partitions.

JJJCR 09-05-2013 03:04 AM

Quote:

Originally Posted by druuna (Post 5022120)
Yep, you have 2 identical sized disks (both +/- 73 Gb)

One disk (sda) has 3 partitions, the other (sdb) has 2 partitions.

Thank you so much for your confirmation.

So basically, if I will clone this server and I will restore it to a hard disk with a single hard drive. It will not be restored properly right?

Or I will just put the question in this way, If I will clone this server with two hard drive and the machine in which I want to restore back it should also have two hard drive right? in order to work or make the restoration successful.

Thanks again for any input.

druuna 09-05-2013 03:13 AM

Quote:

Originally Posted by JJJCR (Post 5022129)
Thank you so much for your confirmation.

So basically, if I will clone this server and I will restore it to a hard disk with a single hard drive. It will not be restored properly right?

Or I will just put the question in this way, If I will clone this server with two hard drive and the machine in which I want to restore back it should also have two hard drive right? in order to work or make the restoration successful.

Thanks again for any input.

Yes, I said cautiously.

In general you need to have the same setup (or larger) as the machine that is cloned. But this might depend on the cloning technique that is used.

JJJCR 09-05-2013 03:26 AM

hi druuna, I used Clonezilla to clone the server (with 2 hard drives) but the PC I restore the image has enough space.

Server - has 160GB (approximately)

PC - has 500GB

So how would I configure the OS, because right now it has /dev/sda and /dev/sdb.

Since the PC has only one hard drive, what should I do to successfully restore the image?

Thank you.

descendant_command 09-05-2013 03:35 AM

A lot depends on how it is set up.
In theory you should be able to move to a different disk configuration and just adjust bootloader and the mounts in /etc/fstab to suit, and be good to go.

JJJCR 09-05-2013 04:10 AM

hi guys, just for update.

Only one drive on the PC, Clonezilla prompts to restore SDA only.

I added another drive on the PC, Clonezilla prompts another option which is SDB.

So I guess cross fingers, all will be restored properly.

Clonezilla Rocks!!

LinuxQuestions.org.. Rocks More!!!

Thank you guys for all the help.. Will share the update for others who might have same issue. ;)

JJJCR 09-09-2013 10:52 PM

i add another drive and all was restored. so it has to be the same hardware config with the clone one to restore everything.

descendant_command 09-10-2013 01:21 AM

Well only because you have cloned the whole disk as one image.
You could also loop mount the drive images and extract the partitions all onto one drive if you wanted.
Don't know if there is any interface options in clonezilla to do this though.

JJJCR 09-11-2013 08:29 PM

Well there could be an options in Clonezilla to select and extract which drive images to be restored but I just don't know how to use it. :)


All times are GMT -5. The time now is 08:33 PM.