Author Topic: Add another hard drive ?  (Read 788 times)

Offline bluegroper

  • Full Member
  • ***
  • Posts: 205
Add another hard drive ?
« on: December 22, 2011, 10:29:36 PM »
Hi Forum
I have a HDD with valuable data that I need to copy.
How do I add this HDD to an existing PCLOS so that I can do some copying.
Firstly, I've attached the HDD, and PCLOS has detected it correctly.
Code: [Select]
# fdisk -l /dev/sdc

Disk /dev/sdc: 250.1 GB, 250058268160 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488395055 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000300e9

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *          63      208844      104391   83  Linux
/dev/sdc2          208845   488392064   244091610   8e  Linux LVM
But thats all I've done, since wary of using fdisk and ruining all chances of data recovery !
And I have no experience with LVM.

TIA's for any tips and clues.  And yes, also googling as hard as I can.
« Last Edit: December 22, 2011, 11:10:08 PM by bluegroper »

Offline bluegroper

  • Full Member
  • ***
  • Posts: 205
Re: Add another hard drive ?
« Reply #1 on: December 22, 2011, 11:29:42 PM »
Installed package lvm2.
Is there an easy way to mount /dev/VolGroup00/LogVol00 and /dev/VolGroup00/LogVol01 ?

Code: [Select]
# vgdisplay -v VolGroup00
    Using volume group(s) on command line
    Finding volume group "VolGroup00"
  --- Volume group ---
  VG Name               VolGroup00
  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               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               232.78 GiB
  PE Size               32.00 MiB
  Total PE              7449
  Alloc PE / Size       7449 / 232.78 GiB
  Free  PE / Size       0 / 0
  VG UUID               5myixt-k5pR-9DFq-L7y8-N1y3-Ygub-ZXIMmJ

  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol00
  VG Name                VolGroup00
  LV UUID                ZNSzW8-jSRr-p0A0-TgK9-3osE-8eyz-JjSxoa
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                227.03 GiB
  Current LE             7265
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto

  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol01
  VG Name                VolGroup00
  LV UUID                MRkWCA-GU1W-EenK-1r17-e36Z-3dsB-I1jdZw
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                5.75 GiB
  Current LE             184
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto

  --- Physical volumes ---
  PV Name               /dev/sdc2
  PV UUID               oVwans-bpo4-ecFE-FZ9o-yBCd-iMGE-DFAWwE
  PV Status             allocatable
  Total PE / Free PE    7449 / 0
« Last Edit: December 22, 2011, 11:31:44 PM by bluegroper »

Offline Vorteggs

  • Hero Member
  • *****
  • Posts: 2408
Re: Add another hard drive ?
« Reply #2 on: December 23, 2011, 06:16:10 AM »
I have a HDD with valuable data that I need to copy.

Firstly, I've attached the HDD, and PCLOS has detected it correctly.
I don't catch the problem.
If you can see this disk in a file manager you can copy from it.
 :-\

Offline Ramchu

  • Hero Member
  • *****
  • Posts: 1589
Re: Add another hard drive ?
« Reply #3 on: December 23, 2011, 06:36:23 AM »
Open your file manager and click on the drive .
From there you should be able to find the files that you want to copy,
and then right click and select copy to or left click and drag and drop
the file where you want it.

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Add another hard drive ?
« Reply #4 on: December 23, 2011, 06:42:32 AM »
Installed package lvm2.
Is there an easy way to mount /dev/VolGroup00/LogVol00 and /dev/VolGroup00/LogVol01 ?

Code: [Select]
# vgdisplay -v VolGroup00
    Using volume group(s) on command line
    Finding volume group "VolGroup00"
  --- Volume group ---
  VG Name               VolGroup00
  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               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               232.78 GiB
  PE Size               32.00 MiB
  Total PE              7449
  Alloc PE / Size       7449 / 232.78 GiB
  Free  PE / Size       0 / 0
  VG UUID               5myixt-k5pR-9DFq-L7y8-N1y3-Ygub-ZXIMmJ

  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol00
  VG Name                VolGroup00
  LV UUID                ZNSzW8-jSRr-p0A0-TgK9-3osE-8eyz-JjSxoa
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                227.03 GiB
  Current LE             7265
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto

  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol01
  VG Name                VolGroup00
  LV UUID                MRkWCA-GU1W-EenK-1r17-e36Z-3dsB-I1jdZw
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                5.75 GiB
  Current LE             184
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto

  --- Physical volumes ---
  PV Name               /dev/sdc2
  PV UUID               oVwans-bpo4-ecFE-FZ9o-yBCd-iMGE-DFAWwE
  PV Status             allocatable
  Total PE / Free PE    7449 / 0

not tested, but as far as I remember PCLinuxOS Control Center -> Local disks should provide full support to LVM partitions, (provided that lvm2 package is installed), I would try to start it and to setup the mount points for Vol00 and Vol01.

AS

Offline bluegroper

  • Full Member
  • ***
  • Posts: 205
Re: Add another hard drive ?
« Reply #5 on: December 23, 2011, 11:56:21 AM »
Unfortunately, it seems this hdd has died.
rip.

Offline Nish

  • Sr. Member
  • ****
  • Posts: 384
    • SMQ's Adventures in Linux
Re: Add another hard drive ?
« Reply #6 on: December 23, 2011, 12:24:40 PM »
Unfortunately, it seems this hdd has died.
rip.

there is always the freezer trick - maybe you can get have Christmas miracle?
Never borrow time.  The interest will kill you - signed Mastercard & Visa

Embrace the Bird.  http://www.smqlinux.com - an old lady's adventures in linuxdom