Mount broken? Or strange Slackware Discs?

Mount broken? Or strange Slackware Discs?

Post by Christoph Lamet » Sat, 08 Apr 1995 04:00:00



Yesterday I got my newest Slackware CD-Roms. When mounting these
something strange showns up (mounting disc 1):

drwxr-xr-x  17 5101     51           4096 Mar 23 22:20 syscd/
               ^^^^^^^^^^^^ Where does this come from? I have no
such group or user on my system?

And even more troublesome mounting disc 2:

drwx------   4 root     bin          2048 Mar 23 22:20 cd/
    ^^^^^^ No rights for any users!

This is dependant on the disc! I have two IDE drives in my system and I can
switch the CDs in the drives and the problems move over to the other drive!

Disc2 cannot be used by my BBS users since they do not have any access!!!
The directory rights are OK when the CDs are not mounted. I.E.
the regular drwxr-xr-x with owner root.bin.

Some Data for you to get a complete picture:

Kernel 1.2.3 Slackware 2.1.0
syscd = Mitsumi 4x IDE
cd    = Acer 2x IDE

fstab--------------------------------------------------------
/dev/hda2       /        ext2        defaults
/dev/hda3       /usr     ext2        defaults
/dev/hda4       /Library ext2        defaults
/dev/hdb3       swap     swap        swap
none            /proc    proc        defaults
/dev/hdb4       /new     ext2        defaults
/dev/hdc        /cd      iso9660     ro,user
/dev/hdd        /syscd   iso9660     ro,user
/dev/hdb2       /var     ext2        defaults,exec
/dev/hdb1       /home    ext2        defaults
/dev/hda1       /dos     msdos       gid=100,uid=999
/dev/fd0        /floppy  msdos       noauto,defaults,user
----------------------------------------------------------------

More strange things when I installed Slackware 2.2.0 to get its programs
from the CD. It does not allow me to mount Disc1 for exec and suid from
fstab. If I give the manual mount command everything is fine!

--
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Christoph Lameter                       Dipl.Inform, Master of Divinity

Posting from the Water Fountain (818)564-8548. Come all ye are thirsty....
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 
 
 

Mount broken? Or strange Slackware Discs?

Post by Christoph Lamet » Sat, 08 Apr 1995 04:00:00


I tried to mount it with the option -onorock and I can access these discs
just fine. Something must be broke in the Rockridge extensions.

I had a look at the sourcecode. Seems that all the information that is
destroyed is kept in one field of the SuperBlock-Structure  called s_flags.

--
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Christoph Lameter                       Dipl.Inform, Master of Divinity

Posting from the Water Fountain (818)564-8548. Come all ye are thirsty....
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 
 
 

Mount broken? Or strange Slackware Discs?

Post by Michael K. Johns » Mon, 10 Apr 1995 04:00:00


   drwxr-xr-x  17 5101     51           4096 Mar 23 22:20 syscd/
                  ^^^^^^^^^^^^ Where does this come from? I have no
   such group or user on my system?

That's evident; otherwise it would show than names instead of the
numbers.  That's the owner of that directory on the disk.  That
is *completely* normal and correct.  Don't worry about it in the
least.

   And even more troublesome mounting disc 2:

   drwx------   4 root     bin          2048 Mar 23 22:20 cd/
       ^^^^^^ No rights for any users!

   This is dependant on the disc! I have two IDE drives in my system and I can
   switch the CDs in the drives and the problems move over to the other drive!

That's because the permissions on the root directory of the disk
are 700.  Whenever you mount any filesystem at all, the permission of
the root directory of the filesystem being mounted overrides the
permission of the directory you are mounting it on.

   Disc2 cannot be used by my BBS users since they do not have any access!!!
   The directory rights are OK when the CDs are not mounted. I.E.
   the regular drwxr-xr-x with owner root.bin.

Correct.  See above...

In answer to your second post, this is not a bug in the rock ridge
extensions, it is how the CD was burned.

I have the same problem.  I'm intending to take a look at the isofs
code to see if there's an easy way around this, but I've been too
busy...

michaelkjohnson

 
 
 

Mount broken? Or strange Slackware Discs?

Post by Christoph Lamet » Tue, 11 Apr 1995 04:00:00




:    drwxr-xr-x  17 5101     51           4096 Mar 23 22:20 syscd/
:                 ^^^^^^^^^^^^ Where does this come from? I have no
:    such group or user on my system?

: That's evident; otherwise it would show than names instead of the
: numbers.  That's the owner of that directory on the disk.  That
: is *completely* normal and correct.  Don't worry about it in the
: least.

:    And even more troublesome mounting disc 2:

:    drwx------   4 root     bin          2048 Mar 23 22:20 cd/
:        ^^^^^^ No rights for any users!

:    This is dependant on the disc! I have two IDE drives in my system and I can
:    switch the CDs in the drives and the problems move over to the other drive!

: That's because the permissions on the root directory of the disk
: are 700.  Whenever you mount any filesystem at all, the permission of
: the root directory of the filesystem being mounted overrides the
: permission of the directory you are mounting it on.

:    Disc2 cannot be used by my BBS users since they do not have any access!!!
:    The directory rights are OK when the CDs are not mounted. I.E.
:    the regular drwxr-xr-x with owner root.bin.

: Correct.  See above...

: In answer to your second post, this is not a bug in the rock ridge
: extensions, it is how the CD was burned.

: I have the same problem.  I'm intending to take a look at the isofs
: code to see if there's an easy way around this, but I've been too
: busy...

: michaelkjohnson

Thanks for the Info. I will return the CDs and demand a replacement from
INFOMAGIC.

--
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Christoph Lameter                       Dipl.Inform, Master of Divinity

Posting from the Water Fountain (818)564-8548. Come all ye are thirsty....
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 
 
 

Mount broken? Or strange Slackware Discs?

Post by Frank Raci » Wed, 12 Apr 1995 04:00:00



says:



>writes:

>:    And even more troublesome mounting disc 2:

>:    drwx------   4 root     bin          2048 Mar 23 22:20 cd/
>:        ^^^^^^ No rights for any users!

>: That's because the permissions on the root directory of the disk
>: are 700.  Whenever you mount any filesystem at all, the permission of
>: the root directory of the filesystem being mounted overrides the
>: permission of the directory you are mounting it on.

>:    Disc2 cannot be used by my BBS users since they do not have any access!!!
>:    The directory rights are OK when the CDs are not mounted. I.E.
>:    the regular drwxr-xr-x with owner root.bin.

>: Correct.  See above...

>: In answer to your second post, this is not a bug in the rock ridge
>: extensions, it is how the CD was burned.

>: I have the same problem.  I'm intending to take a look at the isofs
>: code to see if there's an easy way around this, but I've been too
>: busy...

I made a quick patch to the rock rodge extensions.  It checks
if the inode is a directory.  If so, read and execute priveleges
are granted to everybody.   This is NOT specific for the root
directory - it will do this for any directory on the CD.  If
you need directory permissions to work correctly for your CD,
do NOT install this patch.  Anyway, here's the patch against
1.2.x:

*** rock.c      Mon Mar  6 04:26:57 1995
--- /usr/src/linux/fs/isofs/rock.c      Thu Apr  6 21:10:43 1995
***************
*** 297,302 ****
--- 297,305 ----
        break;
        case SIG('P','X'):
        inode->i_mode  = isonum_733(rr->u.PX.mode);
+       /* Fix Infomagic Bug... make all dir's accessable */
+       if (inode->i_mode & S_IFDIR)
+           inode->i_mode|=(S_IRUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH);
        inode->i_nlink = isonum_733(rr->u.PX.n_links);
        inode->i_uid   = isonum_733(rr->u.PX.uid);
        inode->i_gid   = isonum_733(rr->u.PX.gid);

-FwR

 
 
 

Mount broken? Or strange Slackware Discs?

Post by Holger Schem » Thu, 13 Apr 1995 04:00:00



>>:    drwx------   4 root     bin          2048 Mar 23 22:20 cd/
>I made a quick patch to the rock rodge extensions.  It checks

If you want to read the file "ls-ltR", too (as a normal user), try
this patch instead:

--- cut here ---

*** linux/fs/isofs/inode.c.orig Wed Feb 22 07:15:14 1995
--- linux/fs/isofs/inode.c      Wed Apr 12 01:58:35 1995
***************
*** 574,582 ****
--- 589,605 ----
                printk("Multi volume CD somehow got mounted.\n");
        } else {
          if (S_ISREG(inode->i_mode))
+         {
            inode->i_op = &isofs_file_inode_operations;
+           inode->i_mode |= S_IRUGO;
+
+         }
          else if (S_ISDIR(inode->i_mode))
+         {
            inode->i_op = &isofs_dir_inode_operations;
+           inode->i_mode |= S_IRUGO;
+           inode->i_mode |= S_IXUGO;
+         }
          else if (S_ISLNK(inode->i_mode))
            inode->i_op = &isofs_symlink_inode_operations;
          else if (S_ISCHR(inode->i_mode))

--- cut here ---

It just takes care that all directories are readable and executable
and that all regular files are readable.

Greetings,
                Holger
--
  // Holger Schemel         |

 
 
 

1. slackware : strange error on mount cdrom

Hi,
I had to reinstall my system from scratch and used slackware 2.1.0.
All went fine so far, but my cdrom (toshiba xm3301), which worked
fine since 99.<low> can't be mounted anymore.

wok1!root:/# mount -t iso9660 -o ro /dev/sr0 /CD
mount: mount point /CD does not exist
wok1!root:/# ls -ld CD
dr--r--r--   2 root     root         1024 Nov 25 10:55 CD/

I tried an old mount, but no change.

strace says:

open("/etc/mtab", RDWR|APPEND|CREAT, 0666) = 5
fstat(5, {dev 8 2 ino 6372 mode 0100644 nlink 1 uid 0 gid 0 size 182 ...}) = 0
brk(0xb000) = 0xb000
fstat(5, {dev 8 2 ino 6372 mode 0100644 nlink 1 uid 0 gid 0 size 182 ...}) = 0
lseek(5, 0, SEEK_SET) = 0
read(5, "/dev/sda2 / ext2 rw 1 1\n/dev/sda".., 1024) = 182
SYS_126(0, 0xbffffcd4, 0, 0xbffffe19, 0x67e) = 0
mount(0xbffffe26, 0xbffffe2f, 0xbffffe18, 0xc0ed0001, 0x9ff0) = -1 (No such fileSYS_126(0x1, 0xbffffcd4, 0, 0x2, 0x67e) = 0
write(2, "mount: mount point /CD does not ".., 37) = 37

kernel is 1.1.59 (from slackware) or 1.1.64 (mine, which worked fine before)

please help
wolfgang
--


D-13355 Berlin       | I nformation Systems | Tel: +49-30-4673-2951 Fax: 2915
-----------------------------------------------------------------------------

--


D-13355 Berlin       | I nformation Systems | Tel: +49-30-4673-2951 Fax: 2915
-----------------------------------------------------------------------------

2. Bios calls for Solaris intel platform ?

3. Slackware root disk broken links

4. H8/300 support update (4/4)

5. Can't mount cdrom with idecd Slackware 2.2 installation boot disk

6. initrd as root fs - please reply to all

7. 2.5.70-bk[56] breaks disk partitioning with multiple IDE disks

8. Retstoring a non bootable mksysb.

9. Which boot disk goes with the Slackware 3.0 pcmcia.gz root disk?

10. How do you make your own ``Slackware Boot Disk and Root Disk''??

11. Make broken, top broken, flock errors, kernel modules broken

12. Help: How many automount/mount process need to mount same disk.?

13. 2.5: ieee1394 still broken, vesafb still broken, ipv6 still broken