Find the answer to your Linux question:
Results 1 to 8 of 8
Hello, I have server in which I have 2 HDD. One is primary and in it is Linux CentOS. Last week my server stop to work and I reboot it. ...
  1. #1
    Just Joined!
    Join Date
    Apr 2008
    Posts
    14

    How to access to mounted HDD?

    Hello,

    I have server in which I have 2 HDD. One is primary and in it is Linux CentOS. Last week my server stop to work and I reboot it. But after that reboot second mounted HDD in which I backup my files aren't visible at old path. Old path is - I login via SSH and there is folder named SECOND, but now that isn't case.

    I want to know, how I to see in which folder to enter, which one is for second HDD?


    I see both, but how to enter in it?
    And to see what is in it (my old data)?

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

    Disk /dev/sdb: 250.0 GB, 250058268160 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 30401 244196001 83 Linux


    Thank you very much.

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,098
    I *guess* your backup drive is sdb.
    If so, you should add a entry to /etc/fstab, that starts like this:
    /dev/sdb1 /SECOND

    filesysytem, filesystem options, dump parameter, pass parameter need to be added,
    but depend on your decisions.
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Apr 2008
    Posts
    14
    Manually to add it?

    What to do after add, do I need to execute some command?

  4. #4
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,098
    After /etct/fstab is setup correctly, "mount /SECOND" will do.

    Can you please show your /etc/fstab?
    And what filesystem do you use on for your backup partition?

    Also, this directory SECOND is in / right?
    You must always face the curtain with a bow.

  5. #5
    Just Joined!
    Join Date
    Apr 2008
    Posts
    14
    This is file /etc/fstab

    /dev/VolGroup00/LogVol00 / ext3 1 1
    LABEL=/boot /boot ext3 1 2
    tmpfs /dev/shm tmpfs 0 0
    devpts /dev/pts devpts 0 0
    sysfs /sys sysfs 0 0
    proc /proc proc 0 0
    /dev/VolGroup00/LogVol01 swap swap 0 0



    No, this /SECOND isn't in this file

  6. #6
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,098
    ok, try this:
    Code:
    mkdir -p /SECOND
    Then add this line to /etc/fstab
    Code:
    /dev/sdb1  /SECOND ext3 noatime 0 0
    Code:
    mount /SECOND
    ls -la /SECOND
    You must always face the curtain with a bow.

  7. #7
    Just Joined!
    Join Date
    Apr 2008
    Posts
    14
    Thank you very much. I solve problem with this command:

    mount /dev/sdb1 /second

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    If you won't add an entry of Second Hard disk in /etc/fstab file, you will have to execute mount command on every reboot.
    I would suggest you to edit /etc/fstab file as suggested by Irithori.
    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
  •  
...