Adding second hard drive problem

Soldato
Joined
19 Oct 2002
Posts
2,520
Location
South London
Hello all i'm having a problem adding a second hard drive to my pc which i've just installed linux

Linux mandriva is installed on 60GB drive plus i need to add the second drive which has all my music on but it won't mount it shows up in hardware ok but not sure what to do :(
 
You will need to partition it, format it and add it to /etc/fstab

run 'fdisk -l' as root, and get the name of the new disk, eg. /dev/sdb

then run 'cfdisk /dev/sdb' and make a Linux partition on it.

Now format it with your file system of choice, eg for ext3: 'mkfs -t ext3 /dev/sdb1'

Then just edit /etc/fstab and add in a new line for the new partition, something like: /dev/sdb1 /mnt/mynewdisk ext3 defaults 0 0

Make sure the mount point /mnt/mynewdisk exists as well, reboot and it should work :)
 
Don't like the sound of formatting as it has all my music on it

ooo Sorry I assumed it was a new drive.

In that case find out the partition on the music disk with fdisk -l eg /dev/sdb1 then add a line for that to /etc/fstab to ensure it gets mounted correctly.

If its NTFS you will need the ntfs-3g package installing.
 
just do dmesg | grep dev to find the device name.

then:
mkdir /mnt/music
mount /dev/hdb1 /mnt/music ( or whatever the device was)

If it's ntfs and you have the ntfs-3g package installed it should 'just work'
 
Back
Top Bottom