-
instalation of new hard drive
I would like to move my entire source drive to a new drive on the same computer. The destination drive is twice as large as the source drive. I do not run windows on either drive. What would be the cleanest way do this. I would remover the source drive after the migration. (noisy) I am using Scott Grannerman's “KOPPNIX” The destination drive has not been partitioned.
thanks
dennis
-
Senior Member
registered user
I would take a look a clonezilla or parted magic live cd's. Alternately if the distro you are usiong has partimage, you could try that.
http://clonezilla.org/
http://partedmagic.com/
http://www.partimage.org/Main_Page
Basically the idea is to clone the existing drive to the new one, then resize the partitions to fit using gparted or whatever.
-
Senior Member
registered user
if you use Linux or Unix on both drives simply run the modified command below in a console, it is explained how you modifie it below
Code:
cp -dprx /media/file-system-to-be-copied/ /media/file-system-to-copy-to
here is what the different letters mean
cp is copy
-d same as --no-dereference --preserve=links
-p same as --preserve=mode,ownership,timestamps
-r, --recursive copy directories recursively /everything under that directory only a few . files may get lost
-x, --one-file-system stay on this file system
replace the paths to suit your needs
./media/file-system-to-be-copied/ and /media/file-system-to-copy-to are what I call the "paths" to the filesystems you want to copy, for you likely something like /media/sda1 and /media/sdb1
the drive is called (if scsi or sata) sda, sdb, sdc, sdd... or (If ATA IDE) hda, hdb, hdc...
the number is simply the partition number on that drive
you can see a list of the different drives and partitions by typing
in a console, that letter after fdisk - is lowercase, "L" by the way, not a capital "i".
when you know what they are called you can mount those drives (so you can copy or just list the files) by typing
Code:
sudo mount /media/sdXY
where X and Y is what you need to mount.
as it is two disks it should work flawlessly BUT! knoppix unionfs may make things complicated, I have had the command break things on two occasions when using knoppix, so I use a Debian install disk for this now.
the CP command will copy everything but some .files/directories (hidden files like configurations) if they are directly in the first directory, but those you can copy separately if needed by typing
Code:
cp -dprx /first/file-system/.* /second/file-system
hope I was of help, if not keep asking
Similar Threads
-
By r0x in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 04-15-2009, 10:22 PM
-
By edugualti in forum Hardware & Booting
Replies: 1
Last Post: 02-06-2006, 11:41 PM
-
By husalah5150 in forum General Support
Replies: 3
Last Post: 11-22-2005, 05:06 PM
-
By Lintu in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 10-20-2005, 06:13 PM
-
By kidsatacrux in forum MS Windows & New to Linux
Replies: 19
Last Post: 08-03-2004, 07:41 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Toshiba Magnia SG20 VPN Linux server Web server (No HDD, *Read*) -
$41.53
2 x HP ProLiant BL460c (447707-B21) Blade Servers No RAM No HDD
$30.00
IBM CS821 20-Core 2.827GHz 128Gb 1.92Tb SSD 1U Linux Server - 8005-12N Power 8
$449.96
1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports
$149.00
IBM E850 Power8 2x 12C 3.02GHz 512Gb 1.8Tb SAS 10GbE 16Gb Linux Server 8408-E8E
$674.96
PFSENSE 15" Depth Server Router Firewall Supermicro X11SSH-F E3-1240 V5 32GB RAM
$382.00
IBM Power8 S822L 20-Core 3.42GHz 256Gb 1.2Tb 40G Elastic Storage Server 5148-22L
$599.95
IBM Power 9 S922 8-Core 3.4-3.9Ghz 128Gb DDR4 2U Linux Server - 9009-22a
$2999.96
Ubuntu 22.04.3 Desktop, Server, and Studio DVD Set SAME DAY SHIPPING
$7.49
POGO Linux WEBWARE 1150 Rack-Mount Server Pentium 4 2.8GHz 512MB - No Drives
$179.99