Find the answer to your Linux question:
Results 1 to 6 of 6
I am not sure it this is the right forum to post this if not please move I recently had an issue with a segmentation fault so the primary drive ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2009
    Posts
    5

    [SOLVED] mounting drive


    I am not sure it this is the right forum to post this if not please move
    I recently had an issue with a segmentation fault so the primary drive was useless to me so I swapped the primary and secondary and re installed in hope that I could mount the secondary drive and recover some much needed files, I being a extreme newbie to this did some reading and found what I thought where some simple instructions on mounting this drive, mostly it worked, I could mount the first partition but not the second, the first did not contain anything useful for me and no matter how hard I tried I weas unable to mount the second, it would either say it was already mounted or busy or alternatly if I tried umounting it would say not mounted, here is part of my putty session.
    Code:
    [root@server /]# fdisk -l /dev/hdb
     
    Disk /dev/hdb: 40.9 GB, 40982151168 bytes
    255 heads, 63 sectors/track, 4982 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
     
       Device Boot      Start         End      Blocks   Id  System
    /dev/hdb1   *           1          13      104391   83  Linux
    /dev/hdb2              14        4982    39913492+  8e  Linux LVM
    [root@server /]# mount /dev/hdb2 /mnt/hdb2
    mount: /dev/hdb2 already mounted or /mnt/hdb2 busy
    [root@server /]# mount /dev/hdb1 /mnt/hdb1
    [root@server /]# cd mnt
    [root@server mnt]# dir
    hdb1  hdb2
    [root@server mnt]# cd hdb1
    [root@server hdb1]# dir
    config-2.6.18-53.el5  grub  initrd-2.6.18-53.el5.img  lost+found  message  symvers-2.6.18-53.el5.gz  System.map-2.6.18-53.el5  vmlinuz-2.6.18-53.el5
    [root@server hdb1]# cd ..
    [root@server mnt]# cd hdb2
    [root@server hdb2]# dir
    [root@server hdb2]# cd ..
    [root@server mnt]# cd ..
    [root@server /]# umount /dev/hdb2
    umount: /dev/hdb2: not mounted
    [root@server /]# mount /dev/hdb2 /mnt/hdb2
    mount: /dev/hdb2 already mounted or /mnt/hdb2 busy
    [root@server /]#
    Am I doing something wrong? or is there another way around this? it would be great if I could get on that partition and retrieve these files, any help would be appreciated, thank you

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Second partition is LVM. Execute this
    Code:
    lvdisplay
    vgscan --mknodes 
    vgchange -ay 
    lvscan
    Create mount point ( folder ) for each volume and use mount command to mount those.

    In case you have any problem/error, post output of above commands here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Jan 2009
    Posts
    5
    got it mounted, but now cant seem to find what I was looking for, does any one know what directoy phpmyadmin stores database files in?

  4. #4
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,190
    phpMyAdmin is used to manage mysql databases which are usually under directory /var/lib/mysql.

  5. #5
    Just Joined!
    Join Date
    Jan 2009
    Posts
    5
    Perfect, found it and all intact thank you all for your help and bearing with my newbie questions

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Glad to help you !
    Do start a new thread if you have any other question.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

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