LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 12-10-2004, 08:29 AM   #1
turbokid
LQ Newbie
 
Registered: Dec 2004
Posts: 11

Rep: Reputation: 0
how to copy partition table from 1 hdd to another?


i want to copy the partition table from 1 harddisk to another.

is it possible?

how is it done?
 
Old 12-10-2004, 08:54 AM   #2
jojotx0
Member
 
Registered: Mar 2004
Distribution: Debian Lenny
Posts: 181

Rep: Reputation: 30
depending on your hard drive, your hdd creators may have made a disk wizard to help you setup your hard drive, go to there website and see if they have downloads for a disk wizard, when that's done you should be able to burn the download, and boot off of it, and be able to copy partitions, I'm not sure if you can copy an entire partition tree however, also might try looking at "fdisk" or "sfdisk" type those on a terminal like so:

"fdisk /dev/hda"
"sfdisk /dev/hda"

if this says that "fdisk" or "sfdisk" isn't a command type in:

"/sbin/fdisk /dev/hda"
"/sbin/sfdisk /dev/hda"

to issue these commands you need to be super user, otherwise it will just say that it can't open the partition table on /dev/hda.
 
Old 12-10-2004, 09:10 AM   #3
turbokid
LQ Newbie
 
Registered: Dec 2004
Posts: 11

Original Poster
Rep: Reputation: 0
jojotx0, do u have MSN? care to add me? i got some questions abt software raid to ask u.

vincent@acepod.com

i follow the guide at http://www.opennet.ru/docs/HOWTO/Sof...D-HOWTO-4.html (Chapter 4.14)

i am not sure how to edit my fstab and change the GRUB. step 9 and step 10? can help me?

/etc/raidtab
----------------------------------------------------------------------------------------------------
raiddev /dev/md0
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
chunk-size 4
persistent-superblock 1
device /dev/hda1
raid-disk 0
device /dev/hdc1
raid-disk 1

raiddev /dev/md1
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
chunk-size 4
persistent-superblock 1
device /dev/hda2
raid-disk 0
device /dev/hdc2
raid-disk 1
----------------------------------------------------------------------------------------------------



/etc/fstab
----------------------------------------------------------------------------------------------------
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/VolGroup00/LogVol00 / ext3 defaults,usrquota 1 2
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/hdd /media/cdrom auto pamconsole,ro,exec,noauto,managed 0 0
----------------------------------------------------------------------------------------------------


patition table
----------------------------------------------------------------------------------------------------
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 2491 19904535 8e Linux LVM




Device Boot Start End Blocks Id System
/dev/hdc1 1 208 104391 83 Linux
Partition 1 does not end on cylinder boundary
/dev/hdc2 208 39814 19961829 8e Linux LVM
----------------------------------------------------------------------------------------------------


please help... Thanks..
 
Old 12-10-2004, 12:53 PM   #4
jojotx0
Member
 
Registered: Mar 2004
Distribution: Debian Lenny
Posts: 181

Rep: Reputation: 30
I am absolutely no good with RAID setups, I have never set RAID partition table up, so I have no idea what any of it means.
 
Old 12-10-2004, 03:04 PM   #5
acefreely
LQ Newbie
 
Registered: Dec 2004
Posts: 8

Rep: Reputation: 0
dd is what you would want to use...

ex... two hard drives copy hda to hdb, run this command

dd if=/dev/hda of=/dev/hdb

[if] is input file, [of] is output file...

I would boot from a fedora cd type linux rescue at the prompt, do not chroot to /mnt/sysimage

try that, the syntax may be a little off be it should be something like that...

-Ace
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"No partition table or unknown signature on partition table" 10.1 install madcow007 Slackware 4 02-09-2009 11:04 AM
HDD Partition Table Recovery nikhil Linux - Hardware 10 03-04-2005 10:08 AM
Fedora Core 2 HDD Geometry Partition Table problem. morrolan Fedora 1 10-01-2004 09:27 AM
Slack 10: S-ATA = "No partition table or unknown signature on partition table"? dissolved soul Slackware - Installation 11 08-05-2004 02:12 PM
strange partition table - boot partition empty etanter Linux - General 0 12-23-2003 09:46 AM


All times are GMT -5. The time now is 09:27 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration