Mount 2nd Hard disk
Forgive the simplicity of this, but is it possible to mount a 2nd hard disk without erasing the data that is already on it? If so, what command must I enter. The system recognizes that thedisk is there, I just can't access the data because it hasn't been mountred.
Thank you |
Hello,
Mounting a disk doesn't do anything other then make a file system accessible. So you can easily mount it and then access the data on it. The most simplest way is to create a directory and then mount your disk: Code:
mkdir /mnt/mydisk Code:
man mount Eric |
Why would mounting a disk possibly erase the data on it?
Just use the command (as root): Code:
mount /dev/??? /path/to/mount/point Code:
umount /path/to/mount/point |
Yes this is possible. You can do it in a command terminal very easily. To do it you must have root privileges so you want to either su to become root or use sudo to mount the drive.
First you need a mount point. I like to just create folder in /media. Code:
sudo mkdir /media/drive2 Code:
sudo fdisk -l Assuming your 2nd disk is /dev/sdb you can mount it to your mount point by using the mount command. The mount command works like so Code:
sudo mount -t [filesystem type] [device partition to be mounted] [location of mount point] Code:
sudo mount -t ntfs-3g /dev/sdb1 /media/drive2 |
I didn't know about fdisk -l, it seems very helpful!
|
I like fdisk -l. It is good for listing the partition tables of a drive so you can see what is going on.
|
All times are GMT -5. The time now is 10:15 PM. |