Re: [newbie] Opening Windows Files

1999-08-31 Thread Steve Philp

Alan Schussman wrote:
 
 Ken and John-
 
 Thanks for the feedback. You may be right, John; regardless of how I try
 to set the mount, it won't let anybody but root write to it. I certainly
 understand the logic of not corrupting the DOS file system, but such a
 hard-and-fast prevention seems to short-circuit any benefit of being able
 to access the partition at all. It's pretty inconvenient to have to su in
 order to copy shared files to my windows partition, but if that's what I
 have to do, well I guess that's what I have to do.



What you want to use is the 'umask=' option on the /etc/fstab line. 
Check the manpage for information on what it does.  I'd include the full
line for you, but I don't have any fat/vfat partitions to try it out
on.  Hopefully someone on the list can take a look at the option and let
you know what the value should be.



 On Mon, 30 Aug 1999, John Aldrich wrote:
 
  On Mon, 30 Aug 1999, you wrote:
mount -t vfat /dev/hdax /mnt/dos (replace hdax with the
device where your DOS partition is.)
  
   It works fine for me, with one exception: the directory to which I mount
   my windows partition is only writeable by root, even if I chmod it after I
   mount the partition. Has anybody experienced that?
  
  Umm...yeah that's for a good reason. :-) If you aren't
  careful you can corrupt your DOS file system, at least
  that's what I suspect is the reason for disallowing anyone
  but "root" to write to the dos partition.
 

-- 
Steve Philp
Network Administrator
Advance Packaging Corporation
[EMAIL PROTECTED]



Re: [newbie] Opening Windows Files

1999-08-31 Thread Ken

On Mon, 30 Aug 1999, you wrote:

  # mount -t umsdos /dev/[whatever-drive-and-partition-for-dos]
  /mnt/[whatever-directory-you-want-the-dos-partition-mounted-at]
   
  (all on one line).
  
  Negative, umsdos requires utilitys and preperation beyond just a mount
 command.
 
 groupadd vfat
 edit the fstab everyline that has vfat in it replace "defaults" with
 "defaults,g=vfat,umask=002"
 
 --
 MandrakeSoft  http://www.mandrakesoft.com/
 --Axalon
OK - I tried the responses that I received to my question about mounting the
fat partition.
In the console, as root, I typed groupadd vfat. Then I went to my /etc/fstab
file to edit the vfat lines in it except there was no mention of vfat anywhere
in the file. I believe that my fat partition is hda1, but I'm not sure. That's
the way it's setup in the partition tables anyway. So now my question is
1. How do I determine what the partition table looks like in Linux, I assume
that my fat partition is hda1, but I'm not entirely certain.
I should be able to make it work with this information. I tried several
different variations on the mount command and not one of them worked, so I must
be specifying the wrong partition. Thanks, Ken



Re: [newbie] Opening Windows Files

1999-08-31 Thread John Aldrich

On Tue, 31 Aug 1999, you wrote:
[clip]
 I should be able to make it work with this information. I tried several
 different variations on the mount command and not one of them worked, so I must
 be specifying the wrong partition. Thanks, Ken

Try the following:
First, go to /mnt and create a directory "vfat" or "dos" or "windows"
or some such identifier for that partition.
Second, type the following EXACTLY:
mount -t vfat /dev/hda1 /mnt/directory you just made

This SHOULD work, assuming you're correct in your belief that your
Dos/Windows partition is /dev/hda1.
If this fails, try /dev/hda2 then /dev/hda3 and so on until it
successfully mounts. The only REAL way to be sure that it's mounted
is to change to the /mnt/directory and browse around after issuing
the mount command. Oh, yeah...you'll need to be "root" to try this
out. Once you've determined which /dev/hdxx it is, you can plug that
info into fstab. :-)
John



RE: [newbie] Opening Windows Files

1999-08-31 Thread Ken Wilson

Run the linux fdisk command on each of your harddrives, i.e. 'fdisk
/dev/hda', 'fdisk /dev/hdb', etc.  Don't use a partition number with the
command.  You will get a menu asking what you want to do next.  Use the
'l' menu item to get a list of each partition and it's type on each of
the disks.

Ken Wilson
First Law of Optimization: The speed of a nonworking program is
irrelevant
(Steve Heller, 'Efficient C/C++ Programming')

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Ken
 Sent: Tuesday, August 31, 1999 2:50 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [newbie] Opening Windows Files


 On Mon, 30 Aug 1999, you wrote:

   # mount -t umsdos /dev/[whatever-drive-and-partition-for-dos]
   /mnt/[whatever-directory-you-want-the-dos-partition-mounted-at]
  
   (all on one line).
 
   Negative, umsdos requires utilitys and preperation beyond
 just a mount
  command.
 
  groupadd vfat
  edit the fstab everyline that has vfat in it replace "defaults" with
  "defaults,g=vfat,umask=002"
 
  --
  MandrakeSoft  http://www.mandrakesoft.com/
  --Axalon
 OK - I tried the responses that I received to my question
 about mounting the
 fat partition.
 In the console, as root, I typed groupadd vfat. Then I went
 to my /etc/fstab
 file to edit the vfat lines in it except there was no mention
 of vfat anywhere
 in the file. I believe that my fat partition is hda1, but I'm
 not sure. That's
 the way it's setup in the partition tables anyway. So now my
 question is
 1. How do I determine what the partition table looks like in
 Linux, I assume
 that my fat partition is hda1, but I'm not entirely certain.
 I should be able to make it work with this information. I
 tried several
 different variations on the mount command and not one of them
 worked, so I must
 be specifying the wrong partition. Thanks, Ken




Re: [newbie] Opening Windows Files

1999-08-31 Thread Rick Murphy

On Mon, 30 Aug 1999, John Aldrich wrote:
 On Mon, 30 Aug 1999, you wrote:
  Can someone please explain how to mount the fat partition from Linux so that I
  can access all of those office files while running Linux. Or do I just need to
  copy them to disk and open them in SO? Thanks
 
 mount -t vfat /dev/hdax /mnt/dos (replace hdax with the
 device where your DOS partition is.)
 That SHOULD work.
   John

Mandrake just announced that the new version will have a windows icon on the
desktop.  Does anyone have any idea how this will work or what it will  do?

Rick "mulerider" Murphy

 --
"I don't want to swim in a roped off sea," JB



Re: [newbie] Opening Windows Files

1999-08-31 Thread Carl J. Bauman

Ken Wilson wrote:

 Run the linux fdisk command on each of your harddrives, i.e. 'fdisk
 /dev/hda', 'fdisk /dev/hdb', etc.  Don't use a partition number with the
 command.  You will get a menu asking what you want to do next.  Use the
 'l' menu item to get a list of each partition and it's type on each of
 the disks.


Uhh, I think you mean 'p' rather than 'l'.  'l' gives a list of partition
types.

Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the dos compatibility flag
   d   delete a partition
   l   list known partition types
   m   print this menu
   n   add a new partition
   o   create a new empty DOS partition table
   p   print the partition table
   q   quit without saving changes
   s   create a new empty Sun disklabel
   t   change a partition's system id
   u   change display/entry units
   v   verify the partition table
   w   write table to disk and exit
   x   extra functionality (experts only)





Re: [newbie] Opening Windows Files

1999-08-30 Thread John Aldrich

On Mon, 30 Aug 1999, you wrote:
 Can someone please explain how to mount the fat partition from Linux so that I
 can access all of those office files while running Linux. Or do I just need to
 copy them to disk and open them in SO? Thanks

mount -t vfat /dev/hdax /mnt/dos (replace hdax with the
device where your DOS partition is.)
That SHOULD work.
John



RE: [newbie] Opening Windows Files

1999-08-30 Thread Ken Wilson

If you know what partitions they're on just add the following to your
/etc/fstab file.  This will mount those partitions every time you boot
up Linux.

/dev/hda2 /mydocs vfat rw,user,conv=auto 0 0

Substitute you proper partition number for the /hda2 as shown above.
Use a mount name of your choice in place of /mydocs.  The options shown
here, in order, are readable/writeable, user mountable (don' need to be
root to mount) and automatic conversion of the DOS cr/lf to unix eol
when moving text files back and forth between the two file systems.

I don't know if there's a man page on fstab, I haven't looked.  Check if
there is.  If so, it will give you a lot more information about the
different filesystem types and the various options.  You may want to
check into the options that prevent people from trying to run
executables on these partitions.

Caveats: - use vfat over msdos, vfat allows the use of long filenames
while msdos constrains you to the usual 8.3
 - separate the different sections with tabs rather than spaces.
I'm not sure it's necessarily critical with fstab but some Linux config
files/tables show a definite preference for tabs

Ken Wilson
First Law of Optimization: The speed of a nonworking program is
irrelevant
(Steve Heller, 'Efficient C/C++ Programming')

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Ken
 Sent: Monday, August 30, 1999 8:55 AM
 To: [EMAIL PROTECTED]
 Subject: [newbie] Opening Windows Files


 Can someone please explain how to mount the fat partition
 from Linux so that I
 can access all of those office files while running Linux. Or
 do I just need to
 copy them to disk and open them in SO? Thanks




Re: [newbie] Opening Windows Files

1999-08-30 Thread Alan Schussman

 mount -t vfat /dev/hdax /mnt/dos (replace hdax with the
 device where your DOS partition is.)

It works fine for me, with one exception: the directory to which I mount
my windows partition is only writeable by root, even if I chmod it after I
mount the partition. Has anybody experienced that? 

-Alan




RE: [newbie] Opening Windows Files

1999-08-30 Thread Ken Wilson

Try the command this way

mount -t vfat /dev/hdax /mnt/dos (rw,user)

The user option may make it available to a user.  I won't bet on it
though as I'd be suspcious about losing the setting if you logged out as
root and logged back in as user.  My own preference would be to put the
necessary instructions in /etc/fstab so that this is taken care of
automatically by mounting it for you on bootup or at least making it
user mountable if not pre-mounted.  You may also want to consider adding
the option 'conv=auto' in case you're dealing with plain text files.
The way DOS and Unix handle the end of a line are signifigantly
different to cause you a headache if you don't have the appropriate
changes made when moving the file from MSDOS to Linux or vice versa.

Ken Wilson
First Law of Optimization: The speed of a nonworking program is
irrelevant
(Steve Heller, 'Efficient C/C++ Programming')

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Alan Schussman
 Sent: Monday, August 30, 1999 11:46 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [newbie] Opening Windows Files


  mount -t vfat /dev/hdax /mnt/dos (replace hdax with the
  device where your DOS partition is.)

 It works fine for me, with one exception: the directory to
 which I mount
 my windows partition is only writeable by root, even if I
 chmod it after I
 mount the partition. Has anybody experienced that?

 -Alan





Re: [newbie] Opening Windows Files

1999-08-30 Thread John Connell

Ken wrote:

 Can someone please explain how to mount the fat partition from Linux so that I
 can access all of those office files while running Linux. Or do I just need to
 copy them to disk and open them in SO? Thanks

Ken,
Open a terminal and type--mkdir C (or whatever your win is on) then
open your /etc/fstab file and insert a line similar to this one.
/dev/hdxx   /mnt/C vfat defaults 0 0
John





Re: [newbie] Opening Windows Files

1999-08-30 Thread John Aldrich

On Mon, 30 Aug 1999, you wrote:
  mount -t vfat /dev/hdax /mnt/dos (replace hdax with the
  device where your DOS partition is.)
 
 It works fine for me, with one exception: the directory to which I mount
 my windows partition is only writeable by root, even if I chmod it after I
 mount the partition. Has anybody experienced that? 
 
Umm...yeah that's for a good reason. :-) If you aren't
careful you can corrupt your DOS file system, at least
that's what I suspect is the reason for disallowing anyone
but "root" to write to the dos partition.



Re: [newbie] Opening Windows Files

1999-08-30 Thread Axalon Bloodstone

On Mon, 30 Aug 1999, Mike Fieschko wrote:

  "Ken" == Ken  [EMAIL PROTECTED] writes:
 
 Ken Can someone please explain how to mount the fat partition
 Ken from Linux so that I can access all of those office files
 Ken while running Linux. Or do I just need to copy them to disk
 Ken and open them in SO? Thanks
 
 # mount -t umsdos /dev/[whatever-drive-and-partition-for-dos]
 /mnt/[whatever-directory-you-want-the-dos-partition-mounted-at]
  
 (all on one line).
 
 Negative, umsdos requires utilitys and preperation beyond just a mount
command.

groupadd vfat
edit the fstab everyline that has vfat in it replace "defaults" with
"defaults,g=vfat,umask=002"

--
MandrakeSoft  http://www.mandrakesoft.com/
--Axalon



Re: [newbie] Opening Windows Files

1999-08-30 Thread Alan Schussman

Ken and John-

Thanks for the feedback. You may be right, John; regardless of how I try
to set the mount, it won't let anybody but root write to it. I certainly
understand the logic of not corrupting the DOS file system, but such a
hard-and-fast prevention seems to short-circuit any benefit of being able
to access the partition at all. It's pretty inconvenient to have to su in
order to copy shared files to my windows partition, but if that's what I
have to do, well I guess that's what I have to do.

- alan

/ note my new email: [EMAIL PROTECTED] /


On Mon, 30 Aug 1999, John Aldrich wrote:

 On Mon, 30 Aug 1999, you wrote:
   mount -t vfat /dev/hdax /mnt/dos (replace hdax with the
   device where your DOS partition is.)
  
  It works fine for me, with one exception: the directory to which I mount
  my windows partition is only writeable by root, even if I chmod it after I
  mount the partition. Has anybody experienced that? 
  
 Umm...yeah that's for a good reason. :-) If you aren't
 careful you can corrupt your DOS file system, at least
 that's what I suspect is the reason for disallowing anyone
 but "root" to write to the dos partition.
 



RE: [newbie] Opening Windows Files

1999-08-30 Thread John Aldrich

On Mon, 30 Aug 1999, you wrote:
 Try the command this way
 
 mount -t vfat /dev/hdax /mnt/dos (rw,user)
 
 The user option may make it available to a user.  I won't bet on it
 though as I'd be suspcious about losing the setting if you logged out as
 root and logged back in as user.  My own preference would be to put the
 necessary instructions in /etc/fstab so that this is taken care of
 automatically by mounting it for you on bootup or at least making it
 user mountable if not pre-mounted.  You may also want to consider adding
 the option 'conv=auto' in case you're dealing with plain text files.
 The way DOS and Unix handle the end of a line are signifigantly
 different to cause you a headache if you don't have the appropriate
 changes made when moving the file from MSDOS to Linux or vice versa.
 
TrueI was merely giving him the command to mount it "at-will" :-)
Not everone is going to want to have it AS available as it would be
in fstab. :-)



Re: [newbie] Opening Windows files

1999-06-27 Thread Ben

I think you're asking how to access windows partitions?  If not then please
disregard.

To have your windows partition mounted at startup, edit  /etc/fstab with the
line

file systemmount pointtypeoptionsdumppass
/dev/hda1/Windows   vfat  defaults   0
0

This assumes that windows is located on the first partition of /dev/hda, and
you have created a directory /Windows.  Modify to taste.


Ben

- Original Message -
From: Hans Goetz [EMAIL PROTECTED]
To: Mandrake Mailingliste [EMAIL PROTECTED]
Sent: Sunday, June 27, 1999 2:44 AM
Subject: [newbie] Opening Windows files


 Hi out there!

 How can I get access to the windows partition - and files there from linux
 in mandrake 6.0.
 Formerly I have been using SUSE Linux and the tool yast offered that in an
 easy way. Something similar in Mandrake?

 regards

 Hans




Re: [newbie] Opening Windows files

1999-06-27 Thread Bernhard Rosenkraenzer

On Sun, 27 Jun 1999, Hans Goetz wrote:

 Formerly I have been using SUSE Linux and the tool yast offered that in an
 easy way. Something similar in Mandrake?

linuxconf

LLaP
bero





Re: [newbie] Opening Windows files

1999-06-27 Thread John Aldrich

Edit your FSTAB (as root) to show that partition similar to the following:
/dev/hda/mnt/windows/vfatauto, user, rw, (etc--whatever other
mods you want in here) 00

This is assuming that Windows is loaded onto your primary partition on an
IDE hard drive.
- Original Message -
From: Hans Goetz [EMAIL PROTECTED]
To: Mandrake Mailingliste [EMAIL PROTECTED]
Sent: Sunday, June 27, 1999 3:44 AM
Subject: [newbie] Opening Windows files


 Hi out there!

 How can I get access to the windows partition - and files there from linux
 in mandrake 6.0.
 Formerly I have been using SUSE Linux and the tool yast offered that in an
 easy way. Something similar in Mandrake?

 regards

 Hans