[newbie] To all with Zip drive problems

2000-03-31 Thread Idris S Hamid

I have no idea if the following will help us but I list it here
for info. If anyone can make improvements on the old advice (4/98),
please do so!

Idris
===
http://www.linuxgazette.com/issue28/lg_tips28.html#atapi

I just bought an IDE ATAPI iomega Zip drive, and I couldn't find any help
at all on how to
use it. So, I slogged through, got a great hint from Jeff Tranter
(maintainer of the 'eject'
utility), and managed to get it working. In the spirit of giving back to
the community, here's
my (maybe even) five cent tip. 

Here's how to use an IDE ATAPI zip drive on Linux. 

First, the kernel: Do _not_ use the "IDE FLOPPY" option (officially the
name is
CONFIG_BLK_DEV_IDEFLOPPY ). This will work perfectly for reading and
writing,
but it will not work for ejecting. What you need to do is say yes to the
option
CONFIG_BLK_DEV_IDESCSI. When this is set, you will treat the IDE ATAPI
drive
just like a SCSI drive, except without the SCSI card and all that other
garbage. 

After making your kernel, you should get these messages in your startup
messages (type
dmesg at the prompt if they go by too fast to read): 

 
hda: WDC AC34000L, 3815MB w/256kB Cache, CHS=969/128/63
hdb: WDC AC34000L, 3815MB w/256kB Cache, CHS=969/128/63
hdc: TOSHIBA CD-ROM XM-6102B, ATAPI CDROM drive
hdd: IOMEGA ZIP 100 ATAPI, ATAPI FLOPPY drive - enabling SCSI emulation
ide2: ports already in use, skipping probe
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
scsi : 1 host.
  Vendor: IOMEGAModel: ZIP 100   Rev: 24.D
  Type:   Direct-Access  ANSI SCSI revision: 00
Detected scsi removable disk sda at scsi0, channel 0, id 0, lun 0
scsi : detected 1 SCSI disk total.
SCSI device sda: hdwr sector= 512 bytes. Sectors= 196608 [96 MB] [0.1
GB]
sda: Write Protect is off
.
.
.
Partition check:
 sda: sda4
 hda: hda1 hda2 hda3 hda4
 hdb: hdb1 hdb2 hdb3

The key is that SCSI simulation will be used only if the native ATAPI
driver for that device
isn't found. So, since the ATAPI CD driver was compiled into the kernel,
it used it. Since
the ATAPI removable disk driver wasn't, SCSI emulation was used. 

Second, the device: If you want to have non-root users be able to mount,
unmount, and
eject the Zip disks, you've got to make a couple of changes to the default
configuration.
First thing to do is to change the permissions on the device. As root,
type the following: 

 
chmod a+rw /dev/sda4

The next thing to do is set a shortcut (eject is easier). Again, as root,
type the following: 

 
ln -s /dev/sda4 /dev/zip

Third, the mount point: Create a mount point for your drive. I like
/mnt/zip, so I just do a
mkdir /mnt/zip. For ease, you now want to put this into your /etc/fstab.
Put a line in that file
that looks like 

 
/dev/sda4 /mnt/zip  auto   user,noauto 0
0

The first column is the device, followed by the mount point. The first
'auto' means that it will
check to see the file system type when it is mounted. (Hence, you can read
not only ext2fs,
but also FAT, VFAT, etc.) The 'user' keyword allows average users to mount
the disk,
and the 'noauto' means that it will not be mounted at startup. I don't
know what the two
zero's mean, but it works for me. 

Now, at this point, any user should be able to mount the Zip disk by
typing 

 
mount /mnt/zip

Unmounting would just be umount /mnt/zip. 

Fourth, formatting the disks: The Zip disks you buy at your corner
computer store are
formatted for MSDOS. Personally, I prefer to have ext2fs formatted disks,
so I don't have
to worry about file name conflicts. Hence, I have to reformat them. There
are two other
oddities. First, the writable partition will be number 4. This is a
Macintosh-ism, which you
might as well leave. You can run fdisk and change the partition, but it
will be much easier to
just leave all your disks the same, and that way you won't have to change
the line in
/etc/fstab for each disk. Second, the initial permissions are not set to
be writeable by the
user. 

To handle all this, I do the following, as root (new disk, initially
unmounted): (WARNING:
This will erase all data on the disk!) 

 
/sbin/mke2fs -m 0 /dev/sda4
mount /mnt/zip
chmod a+w /mnt/zip
umount /mnt/zip

Now, whenever the user mounts that disk, she will be able to write to it. 

Fifth, ejecting: The entire reason for using SCSI emulation is to make it
easy to eject the
disk. It's easy now: 

 
eject zip

You can also say 'eject /dev/sda4', but since you created the symbolic
link '/dev/zip', eject
knows what you mean when you just say 'zip'. 

One thing about eject is that the average user does not have permission to
use it. So,
change the permission via setuid: 

 
chmod a+s /usr/bin/eject

That should allow any user to eject any disk. 

Sixth, zip tools: Jarrod A. Smith ([EMAIL PROTECTED]) has written a
really nifty little
program to make 

RE: [newbie] Sounblaster AWE64 PNP

2000-03-30 Thread Idris S Hamid

 In the bios, I enabled plug n play before the upgrade, i.e., 
all pnp devices are initialized by the bios. I checked, and the bios 
now says that it has initialized my sound card.

Idris




RE: [newbie] Sounblaster AWE64 PNP

2000-03-30 Thread Idris S Hamid

I thought you meant disable OS initialization of plug 'n play and enable
bios initialization (this is in the install guide). Anyway, I got things 
working. I reinstalled with a fresh install instead of an upgrade, then
ran sndconfig from an xterm instead of from Konsole (bios initialization
of pnp is still on). Everything now works
fine. Thanks to all for your help.

Now onto the next problem...

Idris

On Thu, 30 Mar 2000, Robert Revet wrote:

 hello !!!
 I said disable your plug 'n play !
 because it conflicts with the linux detectionn.. but don't believe me read
 more about it on mandrake page !
 but anyway you must disable you plug 'n play (which is a windows thingy
 anyway)
 I have a awe64 as well .. and disabling plug and play did it for me 
 
 




[newbie] zip drive problem

2000-03-30 Thread Idris S Hamid

I am having trouble getting the zip drive recognized in 
Mandrake 7.0. Here is what I get:

# modprobe ppa
/lib/modules/2.2.14-15mdksecure/scsi/ppa.o: init_module: Device or
resource busyparport: Device or resource busy

modprobe imm gives the same message (though I have a 100M drive so
modpobe ppa should be correct). 

I added the following line to /etc/fstab:
/dev/hdd   /mnt/zipdiskvfatuser,noauto,rw   0 0

Please advise, thanks a lot!

Best wishes
Idris




Re: CD drive [was [newbie] PPP, sound, CD drive, and modem}

1998-12-30 Thread Idris S Hamid

Once again, thanks for everyone's help.

Fabio Coatti wrote:

 1) under KDE, when you are unable to open the try, do a mount to check

 wich drives are mounted

[root@localhost /root]# mount
/dev/hdb5 on / type ext2 (rw)
none on /proc type proc (rw)
/dev/hdb7 on /home type ext2 (rw)
/dev/hdb10 on /tmp type ext2 (rw)
/dev/hdb6 on /usr type ext2 (rw)
/dev/hdb9 on /usr/local type ext2 (rw)
/dev/hdb8 on /usr/src type ext2 (rw)
/dev/hda1 on /mnt/windows type msdos (rw)

 2) check the /dev/cdrom link, it should point at /dev/hdd

Here is what happened:

[root@localhost /]# ls -l /dev/hdd
brw-rw-rw-   2 root disk  22,  64 May  5  1998 /dev/hdd
[root@localhost /]# ls -l /dev/cdrom
brw-rw-rw-   2 root disk  22,  64 May  5  1998 /dev/cdrom
[root@localhost /]#

I suppose that `b' stands for `block device'. In that event isn't it the
case
that /dev/cdrom is not a symbolic link after all (otherwise there should
be an `l' at the beginning of the line)?


Rémi LETOT wrote:

 try 'ls -l /dev/cdrom'.

See above.

 Also try umount /mnt/cdrom and then eject.
   ^^^
 Give us the result from these two tries.

[root@localhost /root]# mount -t iso9660 /dev/cdrom /mnt/cdrom
mount: block device /dev/cdrom is write-protected, mounting read-only
[root@localhost /root]# umount /mnt/cdrom
   ^^^
{I tried before using `umount /dev/cdrom'}

[root@localhost /root]# eject
eject: CDROMEJECT ioctl failed for `/dev/cdrom': Device or resource busy

[root@localhost /root]# eject -f
eject: CDROMEJECT ioctl failed for `/dev/cdrom': Device or resource busy

[root@localhost /root]#

Any ideas?





Re: [newbie] kpackage crashes

1998-12-30 Thread Idris S Hamid

Thanks to all for their patience.

 Maybe something went wrong and the rpm database is messed up. Try to
 run rpm to fix the problem (check with man rpm)

I think you are right because glint does not work either:

[root@localhost /]# glint 
[1] 3054
[root@localhost /]# Glint Graphical Package Manager -- version 2.6.2
Copyright (C) 1998 - Red Hat Software
This may be freely redistributed under the terms of the GNU Public License
Traceback (innermost last):
  File "./glint.py", line 49, in ?
installedPackageSet = InstalledPackageSet()
  File "./packageset.py", line 133, in __init__
self.db = RPMDatabase(prefix)
  File "./rpmdb.py", line 61, in __init__
self.OpenDatabase(Prefix)
  File "./rpmdb.py", line 26, in OpenDatabase
self.reopen()
  File "./rpmdb.py", line 51, in reopen
label = name + ":" + version + ":" + release
TypeError: bad operand type(s) for +

[1]+  Exit 1  glint
[root@localhost /]#


I had no luck rebuilding the rpm database. Can one of you please tell me what I am 
doing
wrong:

[root@localhost /root]#  rpm --rebuilddb
cannot allocate space for database
cannot add record originally at 24664
failed to rebuild database; original database remains in place
[root@localhost /root]#  rpm --rebuilddb --root /root
error creating directory /root//var/lib/rpm/rebuilddb.3115: No such file or directory
failed to open /root/var/lib/rpm/packages.rpm
[root@localhost /root]#  rpm --rebuilddb  --dbpath /root/var/lib/rpm/
error creating directory ///root/var/lib/rpm//rebuilddb.3116: No such file or directory
failed to open //root/var/lib/rpm/packages.rpm

I hope that there is a solution short of a complete reinstall...

Thanks to all for their help, and Happy New Year!
Idris






Re: Modem problems [was[newbie] PPP, sound, CD drive, and modem]

1998-12-30 Thread Idris S Hamid



Fabio Coatti wrote:

 On Tue, Dec 29, 1998 at 07:35:19PM -0500, Idris S Hamid wrote:

  DOS). From KPPP I did ``Query Modem''.
  In response I got the following message: ``Sorry, the modem is
  busy''. However, the modem was NOT busy at all (I could still use my
  phone).

 This is related to a process that "locks" the modem, not to the phone line.

  [root@localhost /root]# minicom
  Device /dev/modem is locked.
  [root@localhost /root]#
 
  The modem went from ``busy'' to ``locked''. I do not know how I did that nor how 
to undo it. KPPP gives me the same message.
 

 Maybe your pppd is running (check with ps ax) and is locking the
 modem. Yo use kppp you have to turn off the "lock" option of pppd, you
 should find this option with control-panel (I dont remember well, I do
 many configuratins by hand...)
 Check the kppp manual

Well, the modem was unlocked when I rebooted into Linux, but still ``busy'' when 
queried. Note, however, that I ran ps ax after
running pppd and ps ax did not list ppp, slhc, or nls_cp437.

[root@localhost /root]# lsmod
Module PagesUsed by
ppp50 (autoclean)
slhc   2[ppp]   0 (autoclean)
nls_cp437  11 (autoclean)
[root@localhost /root]#

  Here is my one and only serial ports message from dmesg (should there be
  another?):
 
  tty00 at 0x03f8 (irq = 4) is a 16550A
 

 You should see 2 serial ports...

Well, I only have one serial port being recognized during bootup:
tty00 at 0x03f8 (irq = 4) is a 16550A .

I believe that this corresponds to COM1. Could this be the source of my
problems? I ran `make xconfig' which, under `Character devices', listed
`Standard/generic serial support' for ALL standard serial ports as being loaded
as a single driver. So why does Linux only recognize one of my serial ports?

Maybe this section of file:/usr/src/linux-2.0.36/arch/i386/defconfig will be of some 
help:
:
:
# Character devices
#
CONFIG_SERIAL=y
# CONFIG_DIGI is not set
CONFIG_CYCLADES=m
CONFIG_ISI=m
CONFIG_STALDRV=y
CONFIG_STALLION=m
CONFIG_ISTALLION=m
CONFIG_RISCOM8=m
CONFIG_PRINTER=m
CONFIG_SPECIALIX=m
# CONFIG_SPECIALIX_RTSCTS is not set
CONFIG_MOUSE=y
CONFIG_ATIXL_BUSMOUSE=y
CONFIG_BUSMOUSE=y
CONFIG_MS_BUSMOUSE=y
CONFIG_PSMOUSE=y
CONFIG_82C710_MOUSE=y
# CONFIG_UMISC is not set
# CONFIG_QIC02_TAPE is not set
CONFIG_FTAPE=m

#
# Set IObase/IRQ/DMA for ftape in ./drivers/char/ftape/Makefile
#
# CONFIG_APM is not set
# CONFIG_WATCHDOG is not set
CONFIG_RTC=y
:

I really hope that there is an answer on the horizon...

Thanks again
Idris






Re: PPP problems [was Re: [newbie] PPP, sound, CD drive, and modem]

1998-12-30 Thread Idris S Hamid

I thank everyone for their help.

 So, to solve your problems, try the following (please do it from
 command line)
 pppd

 (this should, at least, load the module "ppp", check with lsmod)
 if the module is loaded, your kernel/module system is working fine.
 to kill the pppd process, "killall pppd"

This is exactly what happened:

[root@localhost /root]# lsmod
Module PagesUsed by
nls_cp437  11 (autoclean)
[root@localhost /root]# pppd
~ÿ}#À!}!}!} }.}%}¼ÜkÊ}'}"}(}"Ž}%~~ÿ}#À!}!}!}
[more garbage]
%~[root@localhost /root]#
[root@localhost /root]# depmod -a
[root@localhost /root]# lsmod
Module PagesUsed by
slhc   20 (autoclean)
nls_cp437  11 (autoclean)
[root@localhost /root]# pppd
~ÿ}#À!}!}!} }.}%}}ú[d}'}"}(}"Õr~~ÿ}#À!}!}!}
[more garbage]
Õr~[root@localhost /root]# lsmod
Module PagesUsed by
ppp50 (autoclean)
slhc   2[ppp]   0 (autoclean)
nls_cp437  11 (autoclean)
[root@localhost /root]#

What are slhc and nls_cp437?

Anyway, I guess PPP is OK (or isn't it?). Unless there is something else that I am
missing, I should be able to focus on the modem now and get that working. Then I can
come back to ppp if things still do not work. Does the above look OK to anyone?

Thanks again
Idris






Re: [newbie] PPP, sound, CD drive, and modem

1998-12-28 Thread Idris S Hamid

Thanks for the response. I just got Fabio's message (my ISP's mail
delivery service has been down) as I was sending this off and I will try
his ideas as well.

RXmi LETOT wrote:

   make xconfig;
   make config;
   make menuconfig;
   make mrproper.
 When I try to run these commands I get complaints about some target not
 being
 found;

 Can you tell us whitch targets? Always give the full error message.

/usr/src/linux] make xconfig
/usr/src/linux] make: No rule to make target `xconfig'. Stop.

Similarly for commands `make config' and `make menuconfig'. What is
wrong?

 2) How do I go about configuring sound? Do I have to compile that into
 the kernel
 too...? I have a soundblaster compatible card;
 I should mention the following:
 i) I have an ESS AudioDrive 1869 soundblaster 16 compatible card;
 ii) upon running sndconfig I get the message ``error accessing
 dev/audio''.

 I know that some SB16 compatible cards are not so compatible. Have you read
 the docs comming with the source tree? Anyway the sound support must be
 configured in the kernel or in a module. Do you have any message at bootup?

I used sndconfig, which supposedly does away with having to compile
sound
directly into the kernel. But you may be right that the problem may be
an
incompatible sound card. Sigh..

 3) The CD player (generic 32x IDE device) worked fine during install,
 but during a
 Linux session I cannot
  i) manually open and close the CD tray;

 What do you mean by *manually* ? Can you open or close it by another way?

I just mean opening it by pressing the button on the CD player itself.

  ii) mount the CD-ROM drive. Actually I sometimes can mount the CD-ROM
 drive; but I still cannot manually open and close the CD tray. But it
 works fine in that other operating system we have all grown to
 dislike...

 What do you mean by *sometimes* ? Give us more hints (under which account,

 under X ? ,...)

I am logged in as root.
More testing tells me that mounting is not the problem. The problem is
removing
the CD after the drive is umounted, even when the tray is empty. When I
press
the button, nothing happens under KDE.

 
 4) I tried minicom and echo but cannot get any response from my modem
 under Linux. I correctly configured the modem using the RedHat
 ``control-panel'' dialog, but I still cannot get a response.

 Can't help on that one, I have no modem :-)

I hope someone can, but thanks for at least responding :-)

 Hope I was of any help, and give us more info about your problems.
 Please forgive my English, I'm French speaking :-)

Your English is fine: Comme ton Anglais est beau!

Thank you and best wishes
Idris



[newbie] PPP, sound, CD drive, and modem

1998-12-27 Thread Idris S Hamid

Dear folks:
I originally sent this message on Christmas Day so I guess nobody had
the time to pay any attention to it. Another Mandrake user ("ndk
{Ralph}" [EMAIL PROTECTED]) indicated that he was having similar
problems to my own. I hope that someone can take a look at these
questions now (I have added a fourth). Thanks in advance and Happy
Holidays!

--
Dear folks:
I wish everyone the best of holidays.

I am new at Linux/KDE. I just installed Mandrake 5.2 and everything
works
fine except
for the following:
1) I can't even begin to configure PPP because pppd is not compiled in
the kernel
(I ran dmesg). I have no experience recompiling kernels (why on Earth
isn't PPP
compiled in the kernel anyway?!?), but tried to follow the directions in

the
official installation instructions for RedHat 5.0. All of the following
commands
fail:
  make xconfig;
  make config;
  make menuconfig;
  make mrproper.
When I try to run these commands I get complaints about some target not
being
found;

2) How do I go about configuring sound? Do I have to compile that into
the kernel
too...? I have a soundblaster compatible card;
I should mention the following:
i) I have an ESS AudioDrive 1869 soundblaster 16 compatible card;
ii) upon running sndconfig I get the message ``error accessing
dev/audio''.

3) The CD player (generic 32x IDE device) worked fine during install,
but during a
Linux session I cannot
 i) manually open and close the CD tray;
 ii) mount the CD-ROM drive. Actually I sometimes can mount the CD-ROM
drive; but I still cannot manually open and close the CD tray. But it
works fine in that other operating system we have all grown to
dislike...

4) I tried minicom and echo but cannot get any response from my modem
under Linux. I correctly configured the modem using the RedHat
``control-panel'' dialog, but I still cannot get a response.

I am sure the answers to these questions are stupidly simple, but I have

been
racking my brain all evening and cannot seem to get anywhere.

Thanks in advance for all of your help
Happy Holidays and best wishes
Idris









[newbie] PPP, sound, and CD drive

1998-12-25 Thread Idris S Hamid

Dear folks:
Based on what I saw in the archives, the following message appears to
not have made it through so I am sending it again. Happy Holidays!

--
Dear folks:
I wish everyone the best of holidays.

I am new at Linux/KDE. I just installed Mandrake and everything works
fine except
for the following:
1) I can't even begin to configure PPP because pppd is not compiled in
the kernel
(I ran dmesg). I have no experience recompiling kernels (why on Earth
isn't PPP
compiled in the kernel anyway?!?), but tried to follow the directions in
the
official installation instructions for RedHat 5.0. All of the following
commands
fail:
  make xconfig;
  make config;
  make menuconfig;
  make mrproper.
When I try to run these commands I get complaints about some target not
being
found;

2) How do I go about configuring sound? Do I have to compile that into
the kernel
too...? I have a soundblaster compatible card;
I should mention the following:
i) I have an ESS AudioDrive 1869 soundblaster 16 compatible card;
ii) upon running sndconfig I get the message ``error accessing
dev/audio''.

3) The CD player (generic 32x IDE device) worked fine during install,
but during a
Linux session I cannot
 i) manually open and close the CD tray;
 ii) mount the CD-ROM drive. Actually I sometimes can mount the CD-ROM
drive; but I still cannot manually open and close the CD tray. But it
works fine in that other operating system we have all grown to
dislike...

I am sure the answers to these questions are stupidly simple, but I have
been
racking my brain all evening and cannot seem to get anywhere.

Thanks in advance for all of your help
Happy Holidays and best wishes
Idris







Re: [newbie] PPP, sound, and CD drive

1998-12-24 Thread Idris S Hamid



I wrote:

 2) How do I go about configuring sound? Do I have to compile that into the kernel
 too...? I have a soundblaster compatible card;

I forgot to mention the following:
i) I have an ESS AudioDrive 1869 soundblaster 16 compatible card;
ii) upon running sndconfig I get the message ``error accessing dev/audio''.


 3) The CD player (generic 32x IDE device) worked fine during install, but during a
 Linux session I cannot
  i) manually open and close the CD tray;
  ii) mount the CD-ROM drive.

Actually I sometimes can mount the CD-ROM drive; but I still cannot manually open and
close the CD tray. It works fine in Windows...

Thanks again
Idris