?
Solved

How to add second drive to Linux Fedora

Posted on 2006-05-31
2
Medium Priority
?
228 Views
Last Modified: 2013-12-15
Hi
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?

Thanks
Nav
0
Comment
Question by:Nav444
  • 2
2 Comments
 
LVL 14

Expert Comment

by:xberry
ID: 16805295
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
0
 
LVL 14

Accepted Solution

by:
xberry earned 150 total points
ID: 16805299
Of course info about use of commands you get with

  man [your command]  

For instance:

  man mount
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Often times it's very very easy to extend a volume on a Linux instance in AWS, but impossible to shrink it. I wanted to contribute to the experts-exchange community a way of providing a procedure that works on an AWS instance. It can also be used on…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month16 days, 14 hours left to enroll

862 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