| ECS-L Home Automation and Security Archives |
| Subject: From: Date: | RE: [ECS] Copying btw Win/LINUX partitions Rob Hicks Tue, 22 Feb 2000 09:59:09 -0800 |
Hi Mark. 1. It looks okay. But, to check it out (I don't have as many parameters in my fstab file - it looks like you've read through the man pages more carefully than me) try it by typing "mount -a". It should mount everything in your fstab file. Note any errors and correct them by looking at the man page for mount. 2. Either mount it manually, by typing mount /dev/hda1 -t msdos /mnt/msdos, or type mount -a, as noted above. 3. To access the fat partition once it is mounted, just change directories to it, i.e., cd /mnt/msdos. You should be able to see all of the fat directories and files. You can also copy to or from it while running under Linux using the cp command. 4. Windows doesn't support the ext2 partition so you can't copy from an ext2 partition to a windows partition while windows is running. You can however, write all of your data to a fat partition. If you want to keep the unix structure such as /usr/bin/ecs and copy the contents to it automatically when you exit Linux, you can place that in your configuration files /etc/inittab, etc. or you can write a shell script that uses cron to automatically copy it given some period of time. You may also want to try a couple of other solutions. Linux-In-Dos allows you to copy Linux files from an ext2 partition from the dos command line. Also, some versions of Linux use a fat partition as its native partition. Take a look at Linux4Windows from Mandrake and Phat Linux. Both run on top of a fat partition. You can find Linux4Windows at http://www.mandrake.com/ and Phat Linux at http://www.download.com/. Hope this helps. Regards, Rob Mobile: 801-319-1766 Fax: 801-434-7497 Email: robhicks@utah-inter.net -----Original Message----- From: Mark Gilmore [mailto:omnip@usit.net] Sent: Tuesday, February 22, 2000 8:08 AM To: ecs-list@netbloc.com Subject: [ECS] Copying btw Win/LINUX partitions To all LINUX users: I REALLY REALLY need some help in learning how to copy files btw my Win & LINUX partitions (I am wasting way too much time copying files to/from floppies). /etc/fstab looks like this (that last line I added, which was a GUESS): /dev/hda3 / ext2 defaults 1 1 /dev/hda2 swap swap defaults 0 0 /proc /proc proc defaults 0 0 /dev/fd0 /mnt/floppy msdos defaults,user,noauto 0 0 /dev/hdc /mnt/cdrom iso9660 ro,user,noauto 0 0 /dev/hda1 /mnt/msdos vfat dev,exec,suid 0 0 (my addition) I need to know: 1) What I should place in /etc/fstab (if diff from above). 2) How to execute any required MOUNT command (if applicable). 3) How to access the partition (e.g. "dir /auto/msdos" or what ?). 4) How to copy from LINUX to WIN (when booted in Windows). tanx -- Mark Gilmore Omnipotence (ECS home automation software) http://www.usit.com/omnip 423-745-0026