LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-08-2012, 02:00 PM   #16
13_
LQ Newbie
 
Registered: Oct 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled

@riwi &@schneidz, thanks for the links. :-)
 
Old 10-08-2012, 09:14 PM   #17
smoooth103
Member
 
Registered: Aug 2009
Location: NC, USA
Distribution: Slackware (64 bit)
Posts: 238

Rep: Reputation: 60
I "clone" my linux drive to a new hard drive every so often just by:

1. fdisking the new drive and adding a filesystem
2. cp -a /old /new

Update fstab/lilo.conf as needed.

I don't think this performs a bit by bit copy but this works very well if
you're just looking to move your slackware/linux to a new drive.
 
1 members found this post helpful.
Old 10-09-2012, 07:28 AM   #18
commandlinegamer
Member
 
Registered: Dec 2007
Posts: 89

Rep: Reputation: 12
I use ddrescue to clone drives, as I'm often dealing with disks which have bad blocks, though I start with dd to clone the MBR, e.g.:

Code:
dd if=/dev/sda of=/dev/sdb bs=512 count=1
I verify the partitions are correct with fdisk, then cycle through the partitions with ddrescue, e.g.:

Code:
ddrescue -n /dev/sda1 /dev/sdb1 logfile1
ddrescue -n /dev/sda2 /dev/sdb2 logfile2
# and so on
"-n" option means it doesn't retry bad blocks, and with the logfile I can stop it at any point ("Ctrl-C") and resume from where it left off later on.

Last edited by commandlinegamer; 10-09-2012 at 07:34 AM.
 
Old 10-19-2012, 09:46 AM   #19
basil_brush
LQ Newbie
 
Registered: Oct 2012
Posts: 25

Rep: Reputation: Disabled
If you wanted clone a drive for another machine, is there some adapter you could use for say ide, sata or usb device. Which you could plug into a usb port and then to the drive itself to clone?
 
Old 10-19-2012, 12:16 PM   #20
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,094

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
^ i bought one of these:
http://www.microbarn.com/details.asp...FQadnAodMF5W7w

Last edited by schneidz; 10-19-2012 at 12:52 PM.
 
Old 10-19-2012, 06:49 PM   #21
basil_brush
LQ Newbie
 
Registered: Oct 2012
Posts: 25

Rep: Reputation: Disabled
@schneidz, and you would just mount it like any other device?
 
Old 10-20-2012, 08:03 AM   #22
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,094

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
^ yeah, the pc sees it like a usb disk (flash drive, mp3 player, fone, ...)
 
  


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
Cloning a drive with dd scandalist Linux - Newbie 19 06-25-2012 08:06 PM
Cloning dual-boot drive onto a smaller drive. Harju Linux - Newbie 4 05-29-2010 11:40 AM
cloning a drive with dd gdanko Linux - General 3 01-20-2010 01:11 PM
Need help in cloning drive raddad51x Fedora 1 05-16-2006 01:31 AM
Cloning a hard drive davcefai Debian 3 11-28-2005 05:36 PM


All times are GMT -5. The time now is 03:08 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