Click to See Complete Forum and Search --> : accessing windows drives


humphrey
10-29-2001, 07:13 AM
I'm only new to linux and have very limmited knowledge of unix or linux.
I'm wondering about accessing a newly installed hard drive.
originally when I installed linux I put linux on one partition and had two partitions for windows. From linux I could access these drives just fine. I could go into the mnt dir and there were my two windows drives. I could access my mp3s etc just fine.
Since then I've added another hard drive to my computer and moved all my mp3s onto it.
Now when I go into the mnt dir my original two drives are there (with the same names, which are now wrong) but no 3rd drive and no mp3s.
do I need to install this drive in linux some how??

z0mbix
10-29-2001, 07:30 AM
Do you know the partition you are trying to access i.e. /dev/hda2? If so, create a directory in /mnt for your new mount point i.e. win98 and then mount this:

mount -t /dev/hda2 /mnt/win98

If you want to mount this at boot time edit you /etc/fstab file and add the line:

/dev/hda2 /mnt/win98 vfat defaults 00

at the bottom.

What distro r u using?

Lorithar
10-29-2001, 02:41 PM
quick point Humphrey.


/mnt is a directory.
/mnt/xxx is also a directory

attached to these directories with the command 'mount' is a drive (in your case) ...
Since you put in a new drive, you've likely altered the drive 'device names'
ls /dev/hd*
will show you all known combinations of ide drive device names.

hda= primary master ide drive
hdb= primary slave ide drive
hdc= secondary master ide drive
hdd= secondary slave ide drive

hdx(1-8) are partitions on a drive
if the new drive has only one partition on it,
create new dir in /mnt (name it what you want)
cd /mnt
mkdir [name of new dir]
mount /dev/[partition label from above] /mnt/[name of new directory] -t auto

if the -t auto doesn't work try -t vfat and -t msdos

you will want to add this to /etc/fstab which tells your system what to connect to where when it starts.
Read the file carefully first, you will see your other winders drives inthere somewhere. make appropriate entry based on the data in those lines, but change the device name and directory name.