Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: how to combine two hard without loss of contents?

  1. #1
    Join Date
    Mar 2012
    Beans
    34

    how to combine two hard without loss of contents?

    hi

    I have a 500 GB Hard has installed Squid and i want to install a new hard with an old one without loss of contents

    an old one is 500 gb
    a new one is 2000 gb
    and i would get 2500 gb

    thanks

  2. #2
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    6,581
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: how to combine two hard without loss of contents??

    mohammad alsharqi


    The tutorial that I use (command line):
    https://help.ubuntu.com/community/In...gANewHardDrive

    The tutorial works for me, hope you find it as useful.

    just try'n to help

  3. #3
    Join Date
    Mar 2012
    Beans
    34

    Re: how to combine two hard without loss of contents??

    is this combine between an old and new hard??

  4. #4
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    6,581
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: how to combine two hard without loss of contents??

    mohammad alsharqi;

    The instructions are to add the capacity to your system, how you use that added capacity is at your discretion.

    Specific questions get specific answers.
    hope this helps

  5. #5
    Join Date
    Mar 2012
    Beans
    34

    Re: how to combine two hard without loss of contents??

    this is not useful for me
    i think there is lvm method uses to merge two hard disk ??

  6. #6
    Join Date
    Mar 2012
    Beans
    34

    Re: how to combine two hard without loss of contents??

    any helllllp please????

  7. #7
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: how to combine two hard without loss of contents??

    If you partitioned the first disk using LVM when you installed the system then its easy to combine the drives.

    If you aren't using LVM then there is no easy way to simply pool the drives together, your best bet would be to migrate the contents of the squid cache directory to your new drive before mounting it under the original directory location. This method would give you 2TB for just your cache, the rest of your OS and its data would still be on the original 500GB drive.

    If you must have both drives pooled together to give you 2500GB of continuous storage space then it would be easiest to reinstall using LVM, and then restore your current data from your last backup.
    Last edited by Cheesemill; April 4th, 2013 at 03:32 PM.
    Cheesemill

  8. #8
    Join Date
    Mar 2012
    Beans
    34

    Re: how to combine two hard without loss of contents?

    yeah i partitioned it with lvm
    what is the steps to combine it

  9. #9
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: how to combine two hard without loss of contents?

    Without knowing your exact setup I can't give you the commands you need.

    If you can post back with the output of the following commands I'll get back to you (can you post your output in between [CODE] [/CODE] tags to make it easier to read please).

    Code:
    sudo parted -l
    sudo pvdisplay
    sudo vgdisplay
    sudo lvdisplay
    Cheesemill

  10. #10
    Join Date
    Mar 2012
    Beans
    34

    Re: how to combine two hard without loss of contents?

    sudo parted -l
    Code:
    Model: ATA ST2000DM001-1CH1 (scsi)Disk /dev/sda: 2000GB
    Sector size (logical/physical): 512B/4096B
    Partition Table: loop
    
    
    Number  Start  End     Size    File system  Flags
     1      0.00B  2000GB  2000GB  ext4
    
    
    
    
    Model: ATA WDC WD5000AAKX-0 (scsi)
    Disk /dev/sdb: 500GB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos
    
    
    Number  Start   End    Size   Type      File system  Flags
     1      1049kB  256MB  255MB  primary   ext2         boot, raid
     2      257MB   500GB  500GB  extended
     5      257MB   500GB  500GB  logical                lvm
    
    
    
    
    Model: Linux device-mapper (linear) (dm)
    Disk /dev/mapper/ALSHARQI-swap_1: 9181MB
    Sector size (logical/physical): 512B/512B
    Partition Table: loop
    
    
    Number  Start  End     Size    File system     Flags
     1      0.00B  9181MB  9181MB  linux-swap(v1)
    
    
    
    
    Model: Linux device-mapper (linear) (dm)
    Disk /dev/mapper/ALSHARQI-root: 477GB
    Sector size (logical/physical): 512B/512B
    Partition Table: loop
    
    
    Number  Start  End    Size   File system  Flags
     1      0.00B  477GB  477GB  ext4
    
    
    
    
    Warning: Unable to open /dev/sr0 read-write (Read-only file system).  /dev/sr0
    has been opened read-only.
    Error: /dev/sr0: unrecognised disk label
    sudo pvdisplay
    Code:
     --- Physical volume ---  PV Name               /dev/sdb5
      VG Name               ALSHARQI
      PV Size               465.52 GiB / not usable 2.00 MiB
      Allocatable           yes 
      PE Size               4.00 MiB
      Total PE              119173
      Free PE               3350
      Allocated PE          115823
      PV UUID               w6sHZN-zD3V-7HAz-wJIO-vnkW-Nk0F-e6309E
    sudo vgdisplay
    Code:
     --- Volume group ---  VG Name               ALSHARQI
      System ID             
      Format                lvm2
      Metadata Areas        1
      Metadata Sequence No  3
      VG Access             read/write
      VG Status             resizable
      MAX LV                0
      Cur LV                2
      Open LV               2
      Max PV                0
      Cur PV                1
      Act PV                1
      VG Size               465.52 GiB
      PE Size               4.00 MiB
      Total PE              119173
      Alloc PE / Size       115823 / 452.43 GiB
      Free  PE / Size       3350 / 13.09 GiB
      VG UUID               1AtRfd-GY9j-VLcd-Ny2W-375X-6t0u-YkYSZZ
    sudo lvdisplay
    Code:
     --- Logical volume ---  LV Name                /dev/ALSHARQI/root
      VG Name                ALSHARQI
      LV UUID                lZI6r3-8D7x-KFo5-JYpj-2f4I-rtrb-AaEmca
      LV Write Access        read/write
      LV Status              available
      # open                 1
      LV Size                443.88 GiB
      Current LE             113634
      Segments               1
      Allocation             inherit
      Read ahead sectors     auto
      - currently set to     256
      Block device           251:0
       
      --- Logical volume ---
      LV Name                /dev/ALSHARQI/swap_1
      VG Name                ALSHARQI
      LV UUID                hHYa1E-wGHH-NzKu-e165-3Bh1-ngSV-sqSrun
      LV Write Access        read/write
      LV Status              available
      # open                 1
      LV Size                8.55 GiB
      Current LE             2189
      Segments               1
      Allocation             inherit
      Read ahead sectors     auto
      - currently set to     256
      Block device           251:1

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •