Mounting Linux Partition....

Say, I wish to mount:
/dev/sdb2              14       30272   243055417+  8e  Linux LVM
Please see info below.


[root@192 ~]#
[root@192 ~]# fdisk -l

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14       30401   244091610   8e  Linux LVM

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1          13      104391   83  Linux
/dev/sdb2              14       30272   243055417+  8e  Linux LVM
[root@192 ~]# fdisk -l parted -l
[root@192 ~]# parted -l

Model: ATA VB0250EAVER (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End    Size   Type     File system  Flags
 1      32.3kB  107MB  107MB  primary  ext3         boot
 2      107MB   250GB  250GB  primary               lvm



Model: ATA VB0250EAVER (scsi)
Disk /dev/sdb: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End    Size   Type     File system  Flags
 1      32.3kB  107MB  107MB  primary  ext3         boot
 2      107MB   249GB  249GB  primary               lvm


Error: Unable to open /dev/md0 - unrecognised disk label.

[root@192 ~]# lvmdiskscan
  /dev/ramdisk                 [       16.00 MB]
  /dev/root                    [      229.06 GB]
  /dev/ram                     [       16.00 MB]
  /dev/sda1                    [      101.94 MB]
  /dev/VolGroup00/LogVol01     [        3.72 GB]
  /dev/ram2                    [       16.00 MB]
  /dev/sda2                    [      232.78 GB] LVM physical volume
  /dev/mapper/pdc_ecgdbbhfgj   [      231.90 GB]
  /dev/ram3                    [       16.00 MB]
  /dev/mapper/pdc_ecgdbbhfgjp1 [      101.94 MB]
  /dev/ram4                    [       16.00 MB]
  /dev/mapper/pdc_ecgdbbhfgjp2 [      231.80 GB] LVM physical volume
  /dev/ram5                    [       16.00 MB]
  /dev/ram6                    [       16.00 MB]
  /dev/ram7                    [       16.00 MB]
  /dev/ram8                    [       16.00 MB]
  /dev/ram9                    [       16.00 MB]
  /dev/ram10                   [       16.00 MB]
  /dev/ram11                   [       16.00 MB]
  /dev/ram12                   [       16.00 MB]
  /dev/ram13                   [       16.00 MB]
  /dev/ram14                   [       16.00 MB]
  /dev/ram15                   [       16.00 MB]
  /dev/sdb1                    [      101.94 MB]
  /dev/sdb2                    [      231.80 GB]
  4 disks
  19 partitions
  0 LVM physical volume whole disks
  2 LVM physical volumes
[root@192 ~]#
[root@192 ~]# pvdisplay
  --- Physical volume ---
  PV Name               /dev/mapper/pdc_ecgdbbhfgjp2
  VG Name               VolGroup00
  PV Size               231.80 GB / not usable 14.81 MB
  Allocatable           yes (but full)
  PE Size (KByte)       32768
  Total PE              7417
  Free PE               0
  Allocated PE          7417
  PV UUID               j3jNjX-SbV2-AcW7-w6Tm-JMVi-rBfc-V1iXPb

  --- Physical volume ---
  PV Name               /dev/sda2
  VG Name               VolGroup00
  PV Size               232.78 GB / not usable 2.71 MB
  Allocatable           yes (but full)
  PE Size (KByte)       32768
  Total PE              7449
  Free PE               0
  Allocated PE          7449
  PV UUID               eaJRgM-Vdad-HWd2-79LJ-cp0q-TP84-DbgJR5

[root@192 ~]# vgdisplay
  --- 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               231.78 GB
  PE Size               32.00 MB
  Total PE              7417
  Alloc PE / Size       7417 / 231.78 GB
  Free  PE / Size       0 / 0
  VG UUID               AFzr9J-YbQ0-pD1u-JKfj-hasE-LuNx-vnOxIO

  --- 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               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               232.78 GB
  PE Size               32.00 MB
  Total PE              7449
  Alloc PE / Size       7449 / 232.78 GB
  Free  PE / Size       0 / 0
  VG UUID               Cr9FBh-D68g-VWl8-QU5W-iX1i-npEu-EnWv9c

[root@192 ~]# lvdisplay
  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol00
  VG Name                VolGroup00
  LV UUID                OfNYTY-T0RM-d8Bx-9GM3-y3E2-z2lh-6bWGau
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                228.06 GB
  Current LE             7298
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto

  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol01
  VG Name                VolGroup00
  LV UUID                e9c2oV-oGVm-EpYZ-VDNM-babQ-PTr1-D232Pe
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                3.72 GB
  Current LE             119
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto

[root@192 ~]#

Open in new window

shaunwinginAsked:
Who is Participating?
 
Joseph GanSystem AdminCommented:
"I've brocken the Raid drives and booting in Knoppix Live CD, I've inserted a single disk."

You have destroied the HP RAID by inserted a single disk, and you have LVM configured on top the HP RAID, any Linux Live CD will not help you to recover the data.
0
 
Duncan RoeSoftware DeveloperCommented:
The command cat /proc/partitions will show you what partitions you can mount. Post the output from it if still in doubt
0
 
shaunwinginAuthor Commented:
[root@192 ~]# cat /proc/partitions
major minor  #blocks  name

   8     0  244198584 sda
   8     1     104391 sda1
   8     2  244091610 sda2
   8    16  244198584 sdb
   8    17     104391 sdb1
   8    18  243055417 sdb2
 253     0  240189440 dm-0
 253     1    3899392 dm-1
 253     2  243164032 dm-2
 253     3     104391 dm-3
 253     4  243055417 dm-4

Please give me steps to mount
8    18  243055417 sdb2
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
Duncan RoeSoftware DeveloperCommented:
mkdir /sdb2
mount /dev/sdb2 /sdb2
0
 
shaunwinginAuthor Commented:
[root@192 ~]# mkdir /sdb2
[root@192 ~]# mount /dev/sdb2 /sdb2
mount: /dev/sdb2 already mounted or /sdb2 busy
[root@192 ~]#
0
 
shaunwinginAuthor Commented:
[root@192 sdb2]# cd /dev
[root@192 dev]# ls
bus              hdb      loop6               parport0  ram11  ram9     sg0       tty11  tty22  tty33  tty44  tty55  tty9            usbdev4.1_ep81  vcsa
cdrom            hpet     loop7               parport1  ram12  ramdisk  sg1       tty12  tty23  tty34  tty45  tty56  ttyS0           usbdev5.1_ep00  vcsa2
cdrom-hdb        initctl  MAKEDEV             parport2  ram13  random   shm       tty13  tty24  tty35  tty46  tty57  ttyS1           usbdev5.1_ep81  vcsa3
console          input    mapper              parport3  ram14  rawctl   snapshot  tty14  tty25  tty36  tty47  tty58  ttyS2           usbdev6.1_ep00  vcsa4
core             kmsg     md0                 port      ram15  root     stderr    tty15  tty26  tty37  tty48  tty59  ttyS3           usbdev6.1_ep81  vcsa5
cpu_dma_latency  log      mem                 ppp       ram2   rtc      stdin     tty16  tty27  tty38  tty49  tty6   urandom         vcs             vcsa6
dahdi            loop0    net                 ptmx      ram3   sda      stdout    tty17  tty28  tty39  tty5   tty60  usbdev1.1_ep81  vcs2            vcsa9
disk             loop1    network_latency     pts       ram4   sda1     systty    tty18  tty29  tty4   tty50  tty61  usbdev2.1_ep00  vcs3            VolGroup00
dvd              loop2    network_throughput  ram       ram5   sda2     tty       tty19  tty3   tty40  tty51  tty62  usbdev2.1_ep81  vcs4            X0R
dvd-hdb          loop3    null                ram0      ram6   sdb      tty0      tty2   tty30  tty41  tty52  tty63  usbdev3.1_ep00  vcs5            zero
fd               loop4    nvram               ram1      ram7   sdb1     tty1      tty20  tty31  tty42  tty53  tty7   usbdev3.1_ep81  vcs6
full             loop5    oldmem              ram10     ram8   sdb2     tty10     tty21  tty32  tty43  tty54  tty8   usbdev4.1_ep00  vcs9
[root@192 dev]#

Open in new window

0
 
shaunwinginAuthor Commented:
[root@192 sdb2]# cd /dev
[root@192 dev]# ls
bus              hdb      loop6               parport0  ram11  ram9     sg0       tty11  tty22  tty33  tty44  tty55  tty9            usbdev4.1_ep81  vcsa
cdrom            hpet     loop7               parport1  ram12  ramdisk  sg1       tty12  tty23  tty34  tty45  tty56  ttyS0           usbdev5.1_ep00  vcsa2
cdrom-hdb        initctl  MAKEDEV             parport2  ram13  random   shm       tty13  tty24  tty35  tty46  tty57  ttyS1           usbdev5.1_ep81  vcsa3
console          input    mapper              parport3  ram14  rawctl   snapshot  tty14  tty25  tty36  tty47  tty58  ttyS2           usbdev6.1_ep00  vcsa4
core             kmsg     md0                 port      ram15  root     stderr    tty15  tty26  tty37  tty48  tty59  ttyS3           usbdev6.1_ep81  vcsa5
cpu_dma_latency  log      mem                 ppp       ram2   rtc      stdin     tty16  tty27  tty38  tty49  tty6   urandom         vcs             vcsa6
dahdi            loop0    net                 ptmx      ram3   sda      stdout    tty17  tty28  tty39  tty5   tty60  usbdev1.1_ep81  vcs2            vcsa9
disk             loop1    network_latency     pts       ram4   sda1     systty    tty18  tty29  tty4   tty50  tty61  usbdev2.1_ep00  vcs3            VolGroup00
dvd              loop2    network_throughput  ram       ram5   sda2     tty       tty19  tty3   tty40  tty51  tty62  usbdev2.1_ep81  vcs4            X0R
dvd-hdb          loop3    null                ram0      ram6   sdb      tty0      tty2   tty30  tty41  tty52  tty63  usbdev3.1_ep00  vcs5            zero
fd               loop4    nvram               ram1      ram7   sdb1     tty1      tty20  tty31  tty42  tty53  tty7   usbdev3.1_ep81  vcs6
full             loop5    oldmem              ram10     ram8   sdb2     tty10     tty21  tty32  tty43  tty54  tty8   usbdev4.1_ep00  vcs9
[root@192 dev]#

Open in new window

0
 
shaunwinginAuthor Commented:
See sdb2 already there .....
0
 
Seth SimmonsSr. Systems AdministratorCommented:
mount: /dev/sdb2 already mounted or /sdb2 busy

mount | grep sdb

what does it show?
0
 
shaunwinginAuthor Commented:
[root@192 ~]# mount | grep sdb
/dev/mapper/pdc_ecgdbbhfgjp1 on /sdb2 type ext3 (rw)
[root@192 ~]#
0
 
Joseph GanSystem AdminCommented:
You need to format the logical volume "LogVol00" before mount it, ie
# mkfs -t ext3 -m 1 -v /dev/VolGroup00/LogVol00

# mount -t ext3 /dev/VolGroup00/LogVol00 /mount_point
0
 
Duncan RoeSoftware DeveloperCommented:
You managed to mount something on the newly-created /sdb2. What does ls /sdb2 show you?
0
 
shaunwinginAuthor Commented:
Hi, If I format the partition will loose the data!

I managed to mount a boot partition but not the LVM

Issue I believe is duplicate volume names in sda2 and sdb2
VolGroup00/LogVol01

I've tried to mount sdb2 using Webmin but get errors such as these:
Failed to save mount : '/dev/VolGroup00/LogVol01' is already mounted
Failed to save mount : 'UUID=7c7428da-b79e-410f-801e-f3a31e6b6fc9' is already assigned to be mounted

Pls also refer to all the output I posted in my question.
0
 
Duncan RoeSoftware DeveloperCommented:
What are the contents of /sdb2?
0
 
shaunwinginAuthor Commented:
Its boot files. Not the data in the volume I'm after

Pls see above response - issue I believe is described there.
0
 
shaunwinginAuthor Commented:
Failed to save mount : '/dev/VolGroup00/LogVol01' is already assigned to be mounted

See Webmin cuurent mounts
Capture.JPG
0
 
Joseph GanSystem AdminCommented:
If this mount point is not in fstab, you could reboot the box to unmount it, and mount it again after reboot.
0
 
shaunwinginAuthor Commented:
I've brocken the Raid drives and booting in Knoppix Live CD, I've inserted a single disk.
If I run LVM commands - tells me no Volumes found.

fdisk -l shows me
sda1- this is the boot partition and mounted
sda2 Linux Extended (The data I want to browse)

When attempting to mount get error:
mount: unknown filesystem type 'promise_fasttrack_raid_member'

Please help.... !
0
 
Joseph GanSystem AdminCommented:
I don't think Live CD support LVM.
0
 
Joseph GanSystem AdminCommented:
I meant your LVM configurations are on the disk, not on Live CD.
0
 
shaunwinginAuthor Commented:
Agreed- fdisk also shows the CD - but point is this disk wont mount!
0
 
Joseph GanSystem AdminCommented:
Because this disk has not been formated. But if format it, you will lost the data and LVM configuration on it.
0
 
shaunwinginAuthor Commented:
It was part of RAid set - simple mirror and data must be on - must be a way to get the data!
0
 
Joseph GanSystem AdminCommented:
What kind of RAID set it was? If it was LVM, you need those meta data for recovery.
0
 
shaunwinginAuthor Commented:
Was LVM
0
 
shaunwinginAuthor Commented:
HP Microserver Bios Software Raid
0
 
shaunwinginAuthor Commented:
so what can be done?
0
 
Joseph GanSystem AdminCommented:
not much.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.