Matthew Winther wrote:

> I am trying to mount another hd in RH 7.1 And i am logged in as root. In Konsole 
>typing /etc/fstab gives me the message permission denied. What am i doing wrong?
> 

/etc/fstab is a text file that describes what file systems you want to
have mounted.  Here's what mine says.

        # cat /etc/fstab
        /dev/hda3   /            ext2    defaults 1 1
        /dev/hda1   /boot        ext2    defaults 1 2
        /dev/hda4   /disk        ext2    defaults 1 2
        /dev/hda2   swap         swap    defaults 0 0
        /dev/hdb2   swap         swap    defaults 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        proc    defaults 0 0
        none        /dev/pts     devpts  mode=0622 0 0

You can't run /etc/fstab directly.  You edit it so it shows the right
disk partitions (e.g., /dev/hda4) at the right directories (e.g.,
/disk) and then you mount the filesystems by typing "mount -a"

        # mount -a

If you want to mount a filesystem temporarily, you don't have to edit
/etc/fstab.  You can specify all the information in the mount command.
When you're done, dismount it using the umount command.

        # ls /mnt/disk
        (no files)
        # mount -o ro /dev/hdb4 /mnt/disk
        # ls /mnt/disk
        cvs.tar.gz  etc.tar.gz  home/  lost+found/
        # umount /mnt/disk
        # ls /mnt/disk
        (no files)

Also note that typing "mount" with no arguments shows what's currently
mounted.

Hope this helps.

-- 
Bob Miller                              K<bob>
kbobsoft software consulting
http://kbobsoft.com                     [EMAIL PROTECTED]

Reply via email to