How to add second drive to Linux Fedora

Posted on 2006-05-31
Last Modified: 2013-12-15
I have two running Fedora machines.

I need to remove the harddrive from one machine and connect it to other one.
Actually I did this, and machine recognize the second drive, but I can't access the files!

I did not used and mount or other command, I just set it as slave and restart the machine.

I can see the second drive in Fedora's GUI, but I can't access the files.

Hiow can i mount this second drive without repartitioning or loosing its data?

What are the Commands to do this in command prompt?

Question by:Nav444
    LVL 14

    Expert Comment

    Of course, you'd have to mount your second drives Linux filesystem to the filesystem of your
    first drive.

    In order to find out which device name to use, as root type:

      fdisk -l

    This should give you a summary of drives and partitions found on your machine
    with their device names.

    Create a directory where you'd like to have your disk mounted to:

      mkdir /mnt/disk2
    Assuming your second harddisk is physically mounted to second IDE and resides on first partition, then
    it should be reckognized as /dev/hdc1. Also you need to know the filesystem type
    on second disk, assuming it's ext3, so this mount command should work:

      mount -t ext3 /dev/hdc1 /mnt/disk2

    Accordingly, if you use Reiser filesystem:

      mount -t reiserfs /dev/hdc1 /mnt/disk2

    If there is already an entry in /etc/fstab:

      mount -a /dev/hdc1 /mnt/disk2
    LVL 14

    Accepted Solution

    Of course info about use of commands you get with

      man [your command]  

    For instance:

      man mount

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Suggested Solutions

    Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
    Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now