Don't really know what I'm doing (fstab/mtab settings)

Don't really know what I'm doing (fstab/mtab settings)

Post by s. keeli » Wed, 09 Dec 1998 04:00:00




> I have created two directories /ext2floppy and dosfloppy

> I want to be able to read these directories and automatically look at
> /dev/fd0 either as dos or ext2 depending on which I go to.

> In my fstab lines I have entered (amongst other tries)

> /dev/fd0        /ext2floppy    ext2    user,noauto,rw     0 0

The "noauto" means to NOT automatically mount at boot time.

Quote:> /dev/fd0        /dosfloppy    msdos    user,noauto,rw   0 0

> in mtab I have got put in some other corresponding bits and

> rebooted several times with lots of permutations

> but it's not working....

Sure it is.

Quote:> is it possible to do this without umounting / mounting in a text console
> each time to swich between ext2 and dos floppies ?

You can use mtools instead, but I beleive that only works for dos/fat
formats?  "mcopy file.txt a:"

--
    keelingATspotsDAWTabDAWTca  TopQuark Software & Serv. Enquire within.
                    Contract programmer, server bum.
    Any technology distinguishable from magic is insufficiently advanced.
  SPAM filtering in effect; sorry.  You may have to edit my return address.

 
 
 

Don't really know what I'm doing (fstab/mtab settings)

Post by Ross » Thu, 10 Dec 1998 04:00:00


I have created two directories /ext2floppy and dosfloppy

I want to be able to read these directories and automatically look at
/dev/fd0 either as dos or ext2 depending on which I go to.

In my fstab lines I have entered (amongst other tries)

/dev/fd0        /ext2floppy    ext2    user,noauto,rw     0 0

/dev/fd0        /dosfloppy    msdos    user,noauto,rw   0 0

in mtab I have got put in some other corresponding bits and

rebooted several times with lots of permutations

but it's not working....

is it possible to do this without umounting / mounting in a text console
each time to swich between ext2 and dos floppies ?

lost cause (me or this) I don't know ?

any help appreciated

Ross

 
 
 

Don't really know what I'm doing (fstab/mtab settings)

Post by Peter Polma » Thu, 10 Dec 1998 04:00:00



> I have created two directories /ext2floppy and /dosfloppy

> I want to be able to read these directories and automatically look at
> /dev/fd0 either as dos or ext2 depending on which I go to.

> In my fstab lines I have entered (amongst other tries)

> /dev/fd0        /ext2floppy    ext2    user,noauto,rw     0 0

> /dev/fd0        /dosfloppy    msdos    user,noauto,rw   0 0

> in mtab I have got put in some other corresponding bits and

You don't/shouldn't play with mtab. It just shows you mounted filesystems
(mounted filesystem table)

Quote:> rebooted several times with lots of permutations

> but it's not working....

If you've got it set up right in fstab (filesytem table), and it looks like
you do, just mount and unmount each of the devices as needed. Since you set
up as noauto you will need to:

            mount /ext2floppy
            umount /ext2floppy

            mount /dosfloppy
            umount /dosfloppy

Quote:

> is it possible to do this without umounting / mounting in a text console
> each time to switch between ext2 and dos floppies ?

It's possible to use a graphical method in RedHat, the program name eludes
me (cabaret??). It's not that difficult to keep a terminal window open to
mount and unmount filesystems though. You can always set up shortcut
commands using alias to simplify the procedure. Look for info on "alias" if
you consider this route.
Quote:> lost cause (me or this) I don't know ?

> any help appreciated

> Ross

 
 
 

Don't really know what I'm doing (fstab/mtab settings)

Post by Andy Adam » Fri, 11 Dec 1998 04:00:00



> I have created two directories /ext2floppy and dosfloppy

> I want to be able to read these directories and automatically look at
> /dev/fd0 either as dos or ext2 depending on which I go to.

> In my fstab lines I have entered (amongst other tries)

> /dev/fd0        /ext2floppy    ext2    user,noauto,rw     0 0

> /dev/fd0        /dosfloppy    msdos    user,noauto,rw   0 0

> in mtab I have got put in some other corresponding bits and

> rebooted several times with lots of permutations

> but it's not working....

> is it possible to do this without umounting / mounting in a text console
> each time to swich between ext2 and dos floppies ?

> lost cause (me or this) I don't know ?

> any help appreciated

> Ross

  You shouldn't modify /etc/mtab.  It will be updated by mount (I think???)

In my /etc/fstab I have a line,
/dev/fd0    /floppy    auto    noauto,user,nosuid 0 0
The auto followed by noauto my be a little confusing :)  The first auto is
for the filesystem type.  In this case the fs type is automatically
determined.
This works fine for me using dos and ext2 floppies.  I use nosuid for
security
reasons.  You shouldn't need the rw parameter I think this is the default.
I usually do my mounting/unmounting from the terminal, but I also
have a little tool for Xwindows.  It came with the Redhat5.1 distribution.
On my machine it's located in /usr/X11R6/bin/asfsm
asfsm = Afterstep File System Manager
It shows a nice little bar graph telling how full each mounted device is.
You
can do a right click on it and it shows your entries in /etc/fstab.  You
can
mount/unmount with a mouse click.  It shows all entries in /etc/fstab,
but you can only mount/unmount those with a "user" parameter.
Hope this info helps.  Let me know if you can't find the asfsm program.

-Andy

 
 
 

1. I really don't know what UNIX is!!!!!

I am a Computer Science major (2nd year) at UVA.  My only
programming experience is with BASIC, Pascal, and DOS.  I feel
I am SOOOOOOOO behind with the new technology!  Please help an
information-hungry, ready-to-learn, EXTREMELY novice hacker
understand just what UNIX is.

                                        Robert K. Wright III

2. You still there Mr. socket?

3. Can't find /etc/mtab or etc/fstab

4. BCV restore in the same Symmetrix 8830

5. Got free Linux CD's -- don't know how to use 'em

6. Help Required in Configuring Lm-sensors

7. Don't know how to set terminal 'dumb' to 8-bit...

8. Weird HDD geometry & RH5.0

9. Manually setting irq when you don't know it

10. I don't need to know Apache, but I do need to know this...

11. It's a viral, anti-american Pacman, don't you know?

12. HELP, I don't know what's wrong -- So simple

13. difference 'LABEL=/' and '/dev/hda1' in fstab??