From: Conor Daly (conor.daly at domain met.ie)
Date: Tue 18 Jul 2000 - 23:24:16 IST
From: Jerry Boyko <jboyko at domain sympatico.ca>
>hi all, quick question from a newbie to linux
>can I copy files or directories directly from win98 to my home directory in
>if so how do you do it?
On the same machine I presume...
We'll make some assumptions here...
1. You want to mount Windows drive C:
2. Drive C: is the first partition on the first HDD (That means that Linux
see's it as /dev/hda1 First partition on the second HDD would be /dev/hdb1
3. You know the root password for the machine.
4. If you want to mount something other than C: it gets a bit more
complicated since the layout of partitions on the disk affects the device
names you'll need to use. You can get the necessary info by doing
fdisk -l /dev/hda (That's -<Lowercase L>)
You'll get output of the form
hda1 <blah> <blah> <blah> FAT32 (Windows C: drive)
hda2 <blah> <blah> <blah> extended (Extended partition containing
hda3 <blah> <blah> <blah> Linux ext2 (Linux /boot partition)
hda5 <blah> <blah> <blah> FAT32 (Windows D: drive)
hda6 <blah> <blah> <blah> Linux ext2 (Linux / partition)
hda7 <blah> <blah> <blah> Linux swap (Linux swap partition)
On this system there are 2 Windows drives (on a single Hard Disk), C: at
/dev/hda1 and D: at /dev/hda5. There is a Linux swap partition at /dev/hda7
and 2 Linux filesystems at /dev/hda3 and /dev/hda6. If you want to copy
files from your D: drive, the mount command below would look like;
mount -t vfat /dev/hda5 /mnt
If you have more than one Hard disk in your machine, do the fdisk -l for
each of (/dev/hda, /dev/hdb, /dev/hdc, /dev/hdd) to get the details of *all*
For a one off, do
mount -t vfat /dev/hda1 /mnt
cp -dpR "/mnt/<Win98>/<Directory>/<You want to copy>" .
<<Wait a long time while you copy the contents of your Win98 "My Documents"
For a regular thing, you need to edit your /etc/fstab to include a line of
/dev/hda1 /mnt vfat rw,user,auto,noexec
This will automatically mount your Windows partition at boot time. I used
to be able to mount my own FAT partitions read-write for any user but I seem
to have forgotten how to do so under RH6.2 (Anyone tell me how?).
--- Conor Daly ------------------------------------- General Forecast Division Met Eireann Glasnevin Hill Dublin 9. ph +353 1 8064255 fax +353 1 8064275 conor.daly at domain met.ie -------------------------------------
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:06:54 GMT