Re: [newbie] Mount hd on boot
Ken Wilson wrote: Try playing with the permissions for your mount point, in particular the This wouldn't do it--in particular, it wouldn't let me set the permissions I wanted (namely 777) on the directory. What I found, courtesy of the archives (thanks Axalon!), was to add "uid=" or "gid=" (as appropriate) to the options for each drive I wanted accessible. For example, if I wanted it to be owned by uid 501, I'd add "uid=501" to the options. -- Dan Brown, KE6MKS, [EMAIL PROTECTED] Meddle not in the affairs of dragons, for you are crunchy and taste good with ketchup.
RE: [newbie] Mount hd on boot
This hasn't been trialed but is only a reasoned solution based on my limited knowledge. You may wish to wait until you hear further from other more learned parties. Try playing with the permissions for your mount point, in particular the group. If you want write access for certain select users set up a new group, i.e. dosusers, and add the people you want in that group. Then change the mount point group to dosusers, ie. chgrp dosusers /mnt/drive-h. When this is done change the permissions, i.e. chmod 770 /mnt/drive-h. This should allow root and any members of the dosusers group to have read/write access to the drive. You will notice that world access of any type has been eliminated so that only the select few will even get near the dos partitions. I believe the permissions on your dos mount points as they stand now are probably rwxr_xr_x root root. 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 Dan Brown Sent: Sunday, September 12, 1999 1:03 AM To: [EMAIL PROTECTED] Subject: Re: [newbie] Mount hd on boot Ken Wilson wrote: When you set the options for your vfat partitions don't use 'default' but add each one you need manually. Using 'rw' will allow you to both read and write to a vfat partition. That doesn't do it. It mounts the drive in read-write mode, which means the _system_ can write to it, but it still gives "access denied" when a non-root user tries to write to it. -- Dan Brown, KE6MKS, [EMAIL PROTECTED] Meddle not in the affairs of dragons, for you are crunchy and taste good with ketchup.
RE: [newbie] Mount hd on boot
Hi, I managed to work around the mounting/read-write/permission problem, and you may want to hear how I did. But first, thanks to John Aldrich, Fred PLE, Dan Brown and Ken Wilson, who helped me a lot, and to those who may have written back but I haven't got the message yet, since the list server is so slow. As root I changed my /etc/fstab as follows: /dev/hdc1 /mnt/disk vfat async,user,noauto,dev,exec,rw,nosuid 0 0 Then I went to KDE, dragged-and-dropped a device.kdelnk from templates to the desktop, linked it to /dev/hdc1 and /mnt/disk and changed the permission options so that anyone could use it (btw, there are two hdd icons in KDE, for mounted and unmounted, so that may just be the only solution KDE designers thought of). Then I copied the device.kdelnk to the user's desktop. I logged back in as user, started kde, mounted the hdd using the kdelnk icon (it worked fine! previously all I got was this message: only root can mount). Copied a few files into it just to be sure, and it even worked under console mode only. It is not the best solution, since it does not mount automatically after boot, plus I have to mount it thru KDE, but it worked anyway. /Gustavo.
Re: [newbie] Mount hd on boot
Certainly. Do a "man fstab" at a shell prompt to get full details, but the file /etc/fstab is read on boot time to configure who and how everything in the system is automatically booted. Some examples from my own below: /dev/hda5 / ext2defaults1 1 /dev/hda10 /burn ext2defaults1 2 /dev/hda8 /home ext2defaults1 2 /dev/hda7 /opt ext2defaults1 2 /dev/cdrom /mnt/cdrom auto user,noauto,nosuid,exec,nodev,ro 0 0 etcetera. Hope that helps! David Hello all, Every time I boot I have to tell Linux to mount my secondary master, a MS-Dos disk. I believe there is a way to do that automatically, either in one of the initialization files or in an item on the desktop (such as the ones for the CD-Rom and Floppy), but have not found a trace of that in the documentation. Can anyone help me out? Thanks, /Gustavo.
Re: [newbie] Mount hd on boot
On sáb, 11 set 1999, you wrote: On Sat, 11 Sep 1999, you wrote: Hello all, Every time I boot I have to tell Linux to mount my secondary master, a MS-Dos disk. I believe there is a way to do that automatically, either in one of the initialization files or in an item on the desktop (such as the ones for the CD-Rom and Floppy), but have not found a trace of that in the documentation. Can anyone help me out? As root, edit your fstab and tell it to auto-mount at boot. I don't have a copy of a dual-boot system fstab here, but IIRC, the command is something similar to the following: /dev/hda1 /mnt/dosvfat user, auto, etc 0 0 John I read the man mount and man fsat following Frederic PLE suggestion (thanks, Fred!) and modified my /etc/fstab which now reads: /dev/hda1 / ext2defaults1 1 /dev/hda6 /home ext2defaults1 2 /dev/hda5 swapswapdefaults0 0 /dev/hdc1 /mnt/disk vfat sync,user,auto,nosuid,nodev,unhide 0 0 /dev/fd0/mnt/floppy auto sync,user,noauto,nosuid,nodev,unhide 0 0 /dev/cdrom /mnt/cdrom auto user,noauto,nosuid,exec,nodev,ro 0 0 none/proc procdefaults0 0 none/dev/ptsdevpts mode=0622 0 0 My problem is the hdc1 which does not work. I chose the "vfat" for a filesystem type according to John Aldrich suggestion, since the "msdos" type mentioned in the man fstab would not work (the HDD in question was formatted as a FAT32); also, I chose "sync,user,auto,nosuid,nodev,unhide" mount options because "defaults" did not work (so I just copied the options for my fd0 and changed noauto to auto); lastly, the "0 0" options were deemed appropriate because: 1) I don't know what "dump" is, my man files tell me nothing about it 2) I felt Linux did not need to check this specific filesystem at boot -- plus those were the options suggested in John's message. However, whenever I try to copy anything into my /mnt/disk Linux says "Could not write file. Perhaps access denied." I've checked my permission tab under KDE for /mnt/disk and everything is fine, and I can read the drive as well. Any suggestions? Thanks in advance, /Gustavo.
Re: [newbie] Mount hd on boot
On Sat, 11 Sep 1999, you wrote: However, whenever I try to copy anything into my /mnt/disk Linux says "Could not write file. Perhaps access denied." I've checked my permission tab under KDE for /mnt/disk and everything is fine, and I can read the drive as well. YeahI think Linux is trying to protect you from yourselfit doesn't like to let anyone other than "root" write to a non-ext2 drive John
Re: [newbie] Mount hd on boot
John Aldrich wrote: YeahI think Linux is trying to protect you from yourselfit doesn't like to let anyone other than "root" write to a non-ext2 drive I don't think that's it exactly--it's more a matter that the FAT filesystem doesn't have any support for permissions, and it's got to default to _something_. It's safer, I guess, to disallow writes by default. There is a way to change this, but I forget how. -- Dan Brown, KE6MKS, [EMAIL PROTECTED] Meddle not in the affairs of dragons, for you are crunchy and taste good with ketchup.