Results 1 to 3 of 3

Thread: instalation of new hard drive

Hybrid View

  1. #1
    Junior Member
    Join Date
    Dec 2009
    Location
    Southern California
    Posts
    1

    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

  2. #2
    Senior Member registered user
    Join Date
    Oct 2003
    Location
    N42.41 W73 and change
    Posts
    401
    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.

  3. #3
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    1,516
    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
    Code:
    fdisk -l
    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

  1. Hard drive instalation
    By r0x in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 04-15-2009, 10:22 PM
  2. After HDD instalation, I need to remove de CDROM drive...
    By edugualti in forum Hardware & Booting
    Replies: 1
    Last Post: 02-06-2006, 11:41 PM
  3. Copying hard drive to hard drive new to linux
    By husalah5150 in forum General Support
    Replies: 3
    Last Post: 11-22-2005, 05:06 PM
  4. Hard drive / data recovery / force show drive
    By Lintu in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 10-20-2005, 06:13 PM
  5. Hard Drive Salvage from corrupted Windows XP NTFS drive
    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
  •  


ASUS H170M-PLUS Motherboard M-ATX Intel H170 LGA1151 DDR4 SATA3 HDMI DVI-D VGA picture

ASUS H170M-PLUS Motherboard M-ATX Intel H170 LGA1151 DDR4 SATA3 HDMI DVI-D VGA

$47.99



ASRock B550M Pro SE AM4 DDR4 SATA 6Gb/s 1 PCIe 4.0 x16 Micro ATX Motherboard picture

ASRock B550M Pro SE AM4 DDR4 SATA 6Gb/s 1 PCIe 4.0 x16 Micro ATX Motherboard

$84.99



ASUS P8B75-M/CSM Desktop Motherboard Intel Socket LGA1155 DDR3 w/ IO picture

ASUS P8B75-M/CSM Desktop Motherboard Intel Socket LGA1155 DDR3 w/ IO

$29.99



ASUS Q87M-E/CSM Intel Q87 Chipset DDR3 mATX LGA1150 Motherboard w/ I/O Shield picture

ASUS Q87M-E/CSM Intel Q87 Chipset DDR3 mATX LGA1150 Motherboard w/ I/O Shield

$29.95



Asrock Z390 Phantom Gaming 4S/AC Wifi 8th/9th Gen Intel 1151 Motherboard Bulk picture

Asrock Z390 Phantom Gaming 4S/AC Wifi 8th/9th Gen Intel 1151 Motherboard Bulk

$41.07



Asus H110M-C LGA 1151 DDR4 SDRAM Desktop Motherboard w/ I/O shield picture

Asus H110M-C LGA 1151 DDR4 SDRAM Desktop Motherboard w/ I/O shield

$39.95



Gigabyte Ultra Durable B550 GAMING X V2 Desktop Motherboard picture

Gigabyte Ultra Durable B550 GAMING X V2 Desktop Motherboard

$84.99



MSI PRO B650-P WiFi AMD AM5 DDR5 WiFi 6E ProSeries Motherboard picture

MSI PRO B650-P WiFi AMD AM5 DDR5 WiFi 6E ProSeries Motherboard

$96.01



MSI PRO B650-P WiFi AMD AM5 DDR5 WiFi 6E ProSeries Motherboard picture

MSI PRO B650-P WiFi AMD AM5 DDR5 WiFi 6E ProSeries Motherboard

$84.96



Asus Prime X299- A Intel LGA 2066 ATX Motherboard & Intel Core I7-7800X picture

Asus Prime X299- A Intel LGA 2066 ATX Motherboard & Intel Core I7-7800X

$168.99