The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Backup Drive - How to pull information when it's not recognized

Discussion in 'General Discussion' started by Shrek, Jan 17, 2006.

  1. Shrek

    Shrek Active Member

    Joined:
    Sep 6, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Arkansas, USA
    Hello.
    I have a good friend that had a server crash. He co-locates it so there isn't much of a 'tech team' to offer any help for him at this time.
    The problem is that they did replace, format and setup the harddrive for him, however the backup drive wasn't added in... it's still there and has the backups on it... and we have the option to 'mount' it.. but all the data will be lost.
    I cannot reach it (or perhaps don't know how to), in shell.
    Can anyone give me an idea or the commands to try and reach this so I can download the backups to my PC, then format the drive and upload them there please.
    I am at odds and consider myself a intermediate with servers, but this is over my head.

    Any help is greatly appreciated.
     
  2. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    If you want to recover the data, you will have to mount the drive first using the mount command. Check the drive in /etc/fstab and create a dir and mount the drive on it using the mount command by :
    mount /dev/xxx /dir/path/to/mount-on

    There is a transfer option at the top through which you can download the data on your local machine.
     
  3. Shrek

    Shrek Active Member

    Joined:
    Sep 6, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Arkansas, USA
    Problem is I don't know where to location of it is.. I know it's plugged in... but the only time I can even see it is when I try to format/mount a new HD as shown via WHM and pasted below.


    Found Disk: hdb [Partition, format and mount disk] ALL DATA WILL BE LOST
     
  4. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    Can you please paste the output of below 2 commands :-
    cat /etc/fstab
    &
    fdisk -l
     
  5. Shrek

    Shrek Active Member

    Joined:
    Sep 6, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Arkansas, USA
    root@hosted [~]# cat /etc/fstab
    # This file is edited by fstab-sync - see 'man fstab-sync' for details
    LABEL=/1 / ext3 defaults,usrquota 1 1
    LABEL=/boot1 /boot ext3 defaults 1 2
    none /dev/pts devpts gid=5,mode=620 0 0
    none /dev/shm tmpfs defaults 0 0
    LABEL=/home1 /home ext3 defaults,usrquota 1 2
    none /proc proc defaults 0 0
    none /sys sysfs defaults 0 0
    LABEL=/tmp1 /tmp ext3 defaults 1 2
    LABEL=/usr1 /usr ext3 defaults,usrquota 1 2
    LABEL=/var1 /var ext3 defaults,usrquota 1 2
    LABEL=SWAP-hda5 swap swap defaults 0 0
    /dev/hde /media/cdrom auto pamconsole,fscontext=system_u:eek:bject_r:removable_t,exec,noauto,managed 0 0
    /dev/fd0 /media/floppy auto pamconsole,fscontext=system_u:eek:bject_r:removable_t,exec,noauto,managed 0 0


    root@hosted [~]# fdisk -l

    Disk /dev/hda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hda1 * 1 13 104391 83 Linux
    /dev/hda2 14 650 5116702+ 83 Linux
    /dev/hda3 651 841 1534207+ 83 Linux
    /dev/hda4 842 9729 71392860 5 Extended
    /dev/hda5 842 972 1052226 82 Linux swap
    /dev/hda6 973 1103 1052226 83 Linux
    /dev/hda7 1104 1234 1052226 83 Linux
    /dev/hda8 1235 9729 68236056 83 Linux

    Disk /dev/hdb: 40.0 GB, 40020664320 bytes
    255 heads, 63 sectors/track, 4865 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hdb1 * 1 4865 39078081 83 Linux


    Thanks for your assistance.
     
  6. Shrek

    Shrek Active Member

    Joined:
    Sep 6, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Arkansas, USA
    Oops.. this may be highly important... but I only want to try and get the .tar.gz's off the drive right now.. then I can mount it in WHM after that.

    Here is more info on the matter:
    The Drive is in a FAT 32 file system and
    supposedly doesn't work with Linux (but it did before with the other HD)
     
  7. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    First create a dir under /home, lets say "backup" and mount /dev/hdb1 on it. Please follow below commads :-
    mkdir /home/backup
    mount -t fat32/ntfs /dev/hdb1 /home/backup
    cd /home/backup
    ls -la

    Try the above command.
     
  8. Shrek

    Shrek Active Member

    Joined:
    Sep 6, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Arkansas, USA
    Thanks, It got the drive on there... but shows no backups or files.
    I'll paste the results. I appreciate your help and the time you took with me, it just looks like all is lost, and I know it was on there before the crash.

    root@hosted [~]# mkdir /home/backup
    root@hosted [~]# mount -t fat32/ntfs /dev/hdb1 /home/backup
    mount: fs type fat32/ntfs not supported by kernel
    root@hosted [~]# cd /home/backup
    root@hosted [/home/backup]# ls -la
    total 16
    drwxr-xr-x 2 root root 4096 Jan 17 11:20 ./
    drwx--x--x 21 root root 4096 Jan 17 11:20 ../
     
  9. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    The command :- mount -t fat32/ntfs /dev/hdb1 /home/backup
    means you either try fat32 or ntfs. Do not put both.

    Try the below commands :-
    mount -t fat32 /dev/hdb1 /home/backup
    OR
    mount -t ntfs /dev/hdb1 /home/backup
    OR finnally
    mount /dev/hdb1 /home/backup

    Check each time whether the drive been correctly mounted. Do not execute all the above 3 commands and check.
     
  10. Shrek

    Shrek Active Member

    Joined:
    Sep 6, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Arkansas, USA
    mount /dev/hdb1 /home/backup

    was the one that worked.... but alas the drive just isn't going to work with it... so I guess it's all a loss. I do want to thank you for all your input and ideas. It just wasn't meant to be I guess. Thank you for everything.
    Sincerely.
    Johnnie
     
  11. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    In 3 words I will sum up :- it goes on. :)

    BTW what was in there in /home/backup ?
    cd /home/backup
    ls -la
     
  12. Shrek

    Shrek Active Member

    Joined:
    Sep 6, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Arkansas, USA
    A bunch of oddball files.
    something like this.

    -------- ? ? ? ? ? 9795257.423
    ?--------- ? ? ? ? ? 9795261.440
    ?--------- ? ? ? ? ? 9796248.440
    ?--------- ? ? ? ? ? 9796724.338
    ?--------- ? ? ? ? ? 9796726.336
    ?--------- ? ? ? ? ? 9796733.338
    ?--------- ? ? ? ? ? 9796738.336
    ?--------- ? ? ? ? ? 9796742.339
    ?--------- ? ? ? ? ? 9796744.336
    ?--------- ? ? ? ? ? 9796747.341
    ?--------- ? ? ? ? ? 9796749.337
    ?--------- ? ? ? ? ? 9796750.337
    ?--------- ? ? ? ? ? 9796756.339
    ?--------- ? ? ? ? ? 9796757.339
    ?--------- ? ? ? ? ? 9796767.338
    ?--------- ? ? ? ? ? 9796769.339
    ?--------- ? ? ? ? ? 9796772.319
    ?--------- ? ? ? ? ? 9796775.319
    ?--------- ? ? ? ? ? 9796778.318
    ?--------- ? ? ? ? ? 9797419.320
    ?--------- ? ? ? ? ? 9798377.216
    ?--------- ? ? ? ? ? 9798386.215
    ?--------- ? ? ? ? ? 99\ .\n107.979
     
Loading...

Share This Page