LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-05-2013, 02:36 AM   #1
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,150

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Cool 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
 
Old 09-05-2013, 02:39 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by JJJCR View Post
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.
 
Old 09-05-2013, 03:04 AM   #3
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,150

Original Poster
Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Cool

Quote:
Originally Posted by druuna View Post
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.
 
Old 09-05-2013, 03:13 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by JJJCR View Post
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.
 
Old 09-05-2013, 03:26 AM   #5
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,150

Original Poster
Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
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.
 
Old 09-05-2013, 03:35 AM   #6
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
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.
 
Old 09-05-2013, 04:10 AM   #7
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,150

Original Poster
Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
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.
 
Old 09-09-2013, 10:52 PM   #8
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,150

Original Poster
Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
i add another drive and all was restored. so it has to be the same hardware config with the clone one to restore everything.
 
Old 09-10-2013, 01:21 AM   #9
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
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.
 
Old 09-11-2013, 08:29 PM   #10
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,150

Original Poster
Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sftp ls command, short listing vs long listing slufoot80 Linux - General 3 02-05-2013 10:40 AM
OpenBSD fdisk - Linux fdisk compatibility ? Vilius *BSD 2 01-17-2013 08:02 AM
confusion on listing disk by fdisk -l command ouput. bharatlalgupta Red Hat 2 04-11-2012 04:07 AM
understadning /dev/dm-02 mapping and fdisk -l or fdisk -l | less mixxmaster27 Linux - Newbie 2 06-03-2010 12:17 PM
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 09:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration