PDA

View Full Version : Zip Drive - Where is it?



rrfish72
08-27-2004, 05:32 AM
I don't know where my zip drive is? Please help me find. It works in windows.

Markus
08-27-2004, 09:04 AM
Would you post the output of the following commands after putting a disk in the drive:
cat /proc/scsi/scsi
cdrecord -scanbus
sudo fdisk -l

rrfish72
08-27-2004, 04:49 PM
cat /proc/scsi/scsi:

Attached devices:
Host :scsi0 channel: 00 vendor: HP Model: CD-Writer cd16f Rev: 1.1D
Type: CD-ROM ANSI SCSI revision 02
Host: scsi1 Channel: 00 Vendor: HL-DT-ST Model: DVD-ROM Rev: 0011
Type: CD-ROM ANSI SCSI revision 02

cdreocord -scanbus:

Linux sg driver version: 3.5.30
Using libscg version 'schily-0.8'
scsibus0:
0,0,0 0) 'HP ' 'CD Writer cd16f ' '1.1D' Removable

scsibus1:
1,0,0 100)'HL-DT-ST' 'DVD-ROM GDR816B' '0011' 'Removable'

sudo fdisk -l

device Boot start end blocks id system
/dev/hda1 * 597 10586 75524400 7 HPFS/NTFS
/dev/hda2 10587 10587 7560 f Win95 Ext'd (LBA)
/dev/hda3 1 596 4505728 83 Linux
/dev/hda5 10587 10587 7528+ 82 Linux swap

Partition entries are not in disk order

I don't see the zip drive or my floppy drive, both of which I can't get to work.

Markus
08-27-2004, 09:19 PM
Hmm, didn't help much. Can you see anything about it getting detected in dmesg? How about trying to bootup with a disk in the drive. Is the disk you used formatted?

rrfish72
08-28-2004, 12:51 AM
Cannot see anything from dmesg. I've tried to boot with a disk in and nothing. It is IBM formatted.

Markus
08-28-2004, 08:12 AM
Well, as I don't have one of these I'm just grasping at straws here but how is it connected to your computer? I think different types use different modules.
You could try this:
mkdir /mnt/zip
modprobe ppa
modprobe imm
mount /dev/??? /mnt/zip (you have to find out the device from /var/log/messages or syslog after modprobing)

rrfish72
08-28-2004, 10:43 PM
I did all the above. When I did modprobe imm the drive ran and clicked but nothing else. How do I find out the device from /var/log.....? I don't exactly know. I did create device from right clicking and had it point to /dev/zip. When I click on the icon it says can't find /dev/zip in fstab or mtab. Is that a step that is needed for this to work, creating an entry in fstab?

Markus
08-29-2004, 07:31 PM
I did create device from right clicking and had it point to /dev/zip I take it that you created a desktop icon? The device isn't "zip", it's what you created as mountpoint with mkdir /mnt/zip.
After modprobing you can see if it's attached to sda? device, one of the following should find it:
grep sda /var/log/messages
dmesg|grep sda
You could also try sdb, sdc, hdb or hdc.....
You can test it as root with, say: mount /dev/sda4 /mnt/zip
When you find the device you can add a line to fstab, otherwise only root can mount it. Example if the device is sda4:
/dev/sda4 /mnt/zip vfat defaults,noauto,users,noatime,umask=000 0 0
Best to try mounting it as root first so you'll see if it works, then worry about permissions.

rrfish72
08-29-2004, 10:36 PM
When I grep sda /var/log/messages:

date knoppix kernel: sda: Write Protect is off
knoppix kernel: sda: cache data unavailable
knoppix kernel: sda: sda4
knoppix kernel: Attached scsi removable disk sda at scsi2, chan0, id6,lun 0


Is that saying it is scsi2 or or what is that telling me?

Do I add /dev/sda4 /mnt/zip vfat defaults,noauto,users,noatime,unmask=000 0 0 to my fstab?


When i mount /dev/sda4 /mnt/zip

mount: /dev/sda4 is not a valid block device

Is this because no entry in fstab?

Markus
08-29-2004, 10:58 PM
When I grep sda /var/log/messages:

date knoppix kernel: sda: Write Protect is off
knoppix kernel: sda: cache data unavailable
knoppix kernel: sda: sda4
knoppix kernel: Attached scsi removable disk sda at scsi2, chan0, id6,lun 0


Is that saying it is scsi2 or or what is that telling me? It's telling you the device is /dev/sda4


Do I add /dev/sda4 /mnt/zip vfat defaults,noauto,users,noatime,unmask=000 0 0 to my fstab? Entries in fstab are mainly for giving permissions and parameters to mount devices, add the line to give users the right to use it.


When i mount /dev/sda4 /mnt/zip
mount: /dev/sda4 is not a valid block device
Is this because no entry in fstab? Try first to mount it as root and specifying the filesystem if it's not detected: mount -t vfat /dev/sda4 /mnt/zip
You can also check the filesystem used on the ZIP drive with: fdisk -l

rrfish72
09-03-2004, 01:15 PM
Here is the oputput of sudo mount -t vfat /dev/sda4 /mnt/zip:

mount: /dev/sda4 is not a valid block device

This is done with a data disc in. Do I have to anything special to try to open it or read the disc like open with or just click on the icon?

Part of my fstab:

/dev/sda4 /mnt/zip vfat defaults,noatuo,users,noatime,umask=000 0 0
/dev/cdrom /cdrom iso9660 defaults,ro,users,noexec,noauto 0 0
/dev/cdrom1 /cdrom1 iso9660 defaults,ro,users,noexec,noauto 0 0
/dev/dvd /dvd iso9660 defaults,ro,users,noexec,noauto 0 0
/dev/cdaudio /cdaudio iso9660 defaults,ro,users,noexec,noauto 0 0
#/dev/cdrom1 /mnt/auto/cdrom1 auto users,noauto,exec,ro 0 0
# Added by KNOPPIX - took out noauto after ntfs and added auto after exec and ro after exec
/dev/hda1 /mnt/hda1 ntfs users,exec,auto,umask=000,uid=knoppix,gid=knoppix 0 0
# Added by KNOPPIX
/dev/hda5 none swap defaults 0 0

Markus
09-03-2004, 07:35 PM
Here is the oputput of sudo mount -t vfat /dev/sda4 /mnt/zip:

mount: /dev/sda4 is not a valid block device Try checking the filesystem with fdisk -l if it's not vfat. Try also fdisk /dev/sda to see if it can be opened.
You can also check /dev/sda4 with la /dev/sda4 so it's not symlinked somewhere. It should look something like this:
root@fujibox:~# la /dev/sda4
brw-rw---- 1 root disk 8, 4 Nov 14 2003 /dev/sda4


This is done with a data disc in. Do I have to anything special to try to open it or read the disc like open with or just click on the icon? Best try to mount it from root console first, then worry about creating an icon for user.


Part of my fstab:

/dev/sda4 /mnt/zip vfat defaults,noatuo,users,noatime,umask=000 0 0 Slight typo there, should be noauto.

Did you create /mnt/zip with mkdir /mnt/zip?
Also if you rebooted after modprobing you have to modprobe again. I don't know what alias a ZIP drive needs so you could just add modprobe imm or insmod imm at the end of /etc/init.d/bootmisc.sh to avoid having to do it manually after rebooting.

rrfish72
09-03-2004, 11:34 PM
fdisk -l

Disk /dev/hda: 81.9 GB, 81964302336 bytes
240 heads, 63 sectors/track, 10587 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 597 10586 75524400 7 HPFS/NTFS
/dev/hda2 10587 10587 7560 f W95 Ext'd (LBA)
/dev/hda3 1 596 4505728+ 83 Linux
/dev/hda5 10587 10587 7528+ 82 Linux swap

Partition table entries are not in disk order

I don't see a sda anywhere. Can find info in the info center about sda4 and it says it's vfat.

root@1[knoppix]# fdisk /dev/sda

Unable to open /dev/sda
root@1[knoppix]# sudo fdisk /dev/sda

Unable to open /dev/sda
root@1[knoppix]#

What does it mean when it says it not a valid block device?

Markus
09-05-2004, 10:46 AM
I'm getting out of ideas. You did modprobe before running fdisk, didn't you?
Not a valid block device means that it can't open it. Could you post the output of lsmod to check that needed modules are loaded.

rrfish72
09-05-2004, 01:12 PM
root@0[/]# lsmod
Module Size Used by
via_agp 9856 0
sworks_agp 11424 0
sis_agp 9472 0
nvidia_agp 10012 0
efficeon_agp 10496 0
ati_agp 10636 0
amd64_agp 12872 0
amd_k7_agp 10124 0
ali_agp 9600 0
rfcomm 36760 0
l2cap 25472 5 rfcomm
bluetooth 46436 4 rfcomm,l2cap
md5 8064 1
ipv6 248736 8
lp 13768 0
eepro100 30732 0
snd_intel8x0 33512 0
snd_ac97_codec 59268 1 snd_intel8x0
snd_pcm 86144 1 snd_intel8x0
snd_timer 25344 1 snd_pcm
snd_page_alloc 13060 2 snd_intel8x0,snd_pcm
gameport 8192 1 snd_intel8x0
snd_mpu401_uart 10496 1 snd_intel8x0
snd_rawmidi 23552 1 snd_mpu401_uart
snd_seq_device 10756 1 snd_rawmidi
snd 49540 7 snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer,snd_ mpu401_uart,snd_rawmidi,snd_seq_device
pci_hotplug 33724 0
intel_mch_agp 12044 0
intel_agp 18968 1
tsdev 9984 0
evdev 11520 0
nls_iso8859_1 8320 1
ntfs 104852 1
md 44072 0
dm_mod 40608 0
autofs 19456 1
af_packet 21124 0
agpgart 31564 11 via_agp,sworks_agp,sis_agp,nvidia_agp,efficeon_agp ,ati_agp,amd64_agp,amd_k7_agp,ali_agp,intel_mch_ag p,intel_agp
i810_audio 34320 0
ac97_codec 19840 1 i810_audio
soundcore 12000 2 snd,i810_audio
e100 32896 0
mii 8448 2 eepro100,e100
jedec_probe 16896 0
gen_probe 7424 1 jedec_probe
mtdcore 10180 0
chipreg 7168 1 jedec_probe
parport_pc 38176 1
parport 38848 2 lp,parport_pc
8250 34448 0
serial_core 22912 1 8250
eth1394 22788 0
usblp 14976 0
ohci1394 33792 0
ieee1394 305296 2 eth1394,ohci1394
ohci_hcd 20864 0
uhci_hcd 31112 0
usbcore 94420 5 usblp,ohci_hcd,uhci_hcd
ds 17920 0
yenta_socket 20736 0
pcmcia_core 58240 2 ds,yenta_socket
apm 20716 2
ide_cd 40576 0
ide_scsi 17540 2
rtc 15432 0
ext3 108648 1
jbd 67488 1 ext3
root@0[/]#

There you go.

Markus
09-05-2004, 01:44 PM
Well I can't see imm anywhere so do a modprobe imm and try again.

rrfish72
09-05-2004, 03:50 PM
root@2[knoppix]# modprobe imm
root@2[knoppix]# lsmod
Module Size Used by
imm 15360 1
snd_pcm_oss 51716 0
snd_mixer_oss 19072 1 snd_pcm_oss
via_agp 9856 0
sworks_agp 11424 0
sis_agp 9472 0
nvidia_agp 10012 0
efficeon_agp 10496 0
ati_agp 10636 0
amd64_agp 12872 0
amd_k7_agp 10124 0
ali_agp 9600 0
rfcomm 36760 0
l2cap 25472 5 rfcomm
bluetooth 46436 4 rfcomm,l2cap
md5 8064 1
ipv6 248736 8
lp 13768 0
eepro100 30732 0
snd_intel8x0 33512 0
snd_ac97_codec 59268 1 snd_intel8x0
snd_pcm 86144 2 snd_pcm_oss,snd_intel8x0
snd_timer 25344 1 snd_pcm
snd_page_alloc 13060 2 snd_intel8x0,snd_pcm
gameport 8192 1 snd_intel8x0
snd_mpu401_uart 10496 1 snd_intel8x0
snd_rawmidi 23552 1 snd_mpu401_uart
snd_seq_device 10756 1 snd_rawmidi
snd 49540 9 snd_pcm_oss,snd_mixer_oss,snd_intel8x0,snd_ac97_co dec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi, snd_seq_device
pci_hotplug 33724 0
intel_mch_agp 12044 0
intel_agp 18968 1
tsdev 9984 0
evdev 11520 0
nls_iso8859_1 8320 1
ntfs 104852 1
md 44072 0
dm_mod 40608 0
autofs 19456 1
af_packet 21124 0
agpgart 31564 11 via_agp,sworks_agp,sis_agp,nvidia_agp,efficeon_agp ,ati_agp,amd64_agp,amd_k7_agp,ali_agp,intel_mch_ag p,intel_agp
i810_audio 34320 0
ac97_codec 19840 1 i810_audio
soundcore 12000 2 snd,i810_audio
e100 32896 0
mii 8448 2 eepro100,e100
jedec_probe 16896 0
gen_probe 7424 1 jedec_probe
mtdcore 10180 0
chipreg 7168 1 jedec_probe
parport_pc 38176 2
parport 38848 3 imm,lp,parport_pc
8250 34448 0
serial_core 22912 1 8250
eth1394 22788 0
usblp 14976 0
ohci1394 33792 0
ieee1394 305296 2 eth1394,ohci1394
ohci_hcd 20864 0
uhci_hcd 31112 0
usbcore 94420 5 usblp,ohci_hcd,uhci_hcd
ds 17920 0
yenta_socket 20736 0
pcmcia_core 58240 2 ds,yenta_socket
apm 20716 2
ide_cd 40576 0
ide_scsi 17540 2
rtc 15432 0
ext3 108648 1
jbd 67488 1 ext3
root@2[knoppix]#

After doing the modprobe the zip drive light came on like the disc was being read.

Markus
09-05-2004, 05:57 PM
imm is loaded so try now with:
sudo fdisk -l
mount -t vfat /dev/sda4 /mnt/zip
mount -t msdos /dev/sda4 /mnt/zip

If you reboot, modprobe imm again, or add it to the end of /etc/init.d/bootmisc.sh

rrfish72
09-05-2004, 06:14 PM
root@0[knoppix]# sudo fdisk -l

Disk /dev/hda: 240 heads, 63 sectors, 10587 cylinders
Units = cylinders of 15120 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 597 10586 75524400 7 HPFS/NTFS
/dev/hda2 10587 10587 7560 f Win95 Ext'd (LBA)
/dev/hda3 1 596 4505728+ 83 Linux
/dev/hda5 10587 10587 7528+ 82 Linux swap

Partition table entries are not in disk order
root@0[knoppix]# mount -t vfat /dev/sda4 /mnt/zip
mount: /dev/sda4 is not a valid block device
root@0[knoppix]# mount -t msdos /dev/sda4 /mnt/zip
mount: /dev/sda4 is not a valid block device

root@0[knoppix]# fdisk /dev/sda

Unable to open /dev/sda

This is the output of someone who was having the same trouble in this thread:
http://www.knoppix.net/forum/viewtopic.php?t=12589

knoppix@ttyp0[knoppix]$ cdrecord -scanbus
Cdrecord-Clone 2.01a27 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
NOTE: this version of cdrecord is an inofficial (modified) release of cdrecord
and thus may have bugs that are not present in the original version.
Please send bug reports and support requests to <cdrtools@packages.debian.org>.
The original author should not be bothered with problems of this version.

Linux sg driver version: 3.5.30
Using libscg version 'schily-0.8'.
scsibus0:
0,0,0 0) 'YAMAHA ' 'CRW-F1E ' '1.0c' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
scsibus1:
1,0,0 100) 'IOMEGA ' 'ZIP 100 ' '03.H' Removable Disk
1,1,0 101) *
1,2,0 102) *
1,3,0 103) *
1,4,0 104) *
1,5,0 105) *
1,6,0 106) *
1,7,0 107) *
scsibus2:
2,0,0 200) 'HL-DT-ST' 'DVDRAM GSA-4040B' 'A300' Removable CD-ROM
2,1,0 201) *
2,2,0 202) *
2,3,0 203) *
2,4,0 204) *
2,5,0 205) *
2,6,0 206) *
2,7,0 207) *
scsibus3:
3,0,0 300) 'LEXAR ' 'JUMPDRIVE ' '1.20' Removable Disk
3,1,0 301) *
3,2,0 302) *
3,3,0 303) *
3,4,0 304) *
3,5,0 305) *
3,6,0 306) *
3,7,0 307) *

My output does not include any sign of an Iomega zip drive like that one does. This is all I get:

root@0[knoppix]# cdrecord -scanbus
Cdrecord-Clone 2.01a34 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
NOTE: this version of cdrecord is an inofficial (modified) release of cdrecord
and thus may have bugs that are not present in the original version.
Please send bug reports and support requests to <cdrtools@packages.debian.org>.
The original author should not be bothered with problems of this version.

Linux sg driver version: 3.5.30
Using libscg version 'schily-0.8'.
scsibus0:
0,0,0 0) 'HP ' 'CD-Writer cd16f ' '1.1D' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
scsibus1:
1,0,0 100) 'HL-DT-ST' 'DVD-ROM GDR8160B' '0011' Removable CD-ROM
1,1,0 101) *
1,2,0 102) *
1,3,0 103) *
1,4,0 104) *
1,5,0 105) *
1,6,0 106) *
1,7,0 107) *

Markus
09-05-2004, 06:30 PM
Hmm, try modprobe usb-storage as well as having imm loaded. Then try mounting again.

EDIT: BTW, there's a typo there if you added the line to fstab:

Do I add /dev/sda4 /mnt/zip vfat defaults,noauto,users,noatime,unmask=000 0 0 to my fstab? It's supposed to be umask, not unmask

rrfish72
09-05-2004, 07:11 PM
root@1[knoppix]# modprobe usb-storage
root@1[knoppix]# sudo fdisk -l

Disk /dev/hda: 240 heads, 63 sectors, 10587 cylinders
Units = cylinders of 15120 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 597 10586 75524400 7 HPFS/NTFS
/dev/hda2 10587 10587 7560 f Win95 Ext'd (LBA)
/dev/hda3 1 596 4505728+ 83 Linux
/dev/hda5 10587 10587 7528+ 82 Linux swap

Partition table entries are not in disk order
root@1[knoppix]# mount -t vfat /dev/sda4 /mnt/zip
mount: /dev/sda4 is not a valid block device
root@1[knoppix]# mount -t msdos /dev/sda4 /mnt/zip
mount: /dev/sda4 is not a valid block device

I have to do this with every one of my drives. dvd,cd,floppy,zip, and get my scanner to work. So far I have dvd,cd working. Your help is appreciated with this zip issue.

root@1[knoppix]# modprobe imm
root@1[knoppix]# mount -t vfat /dev/sda4 /mnt/zip
root@1[knoppix]# mount -t msdos /dev/sda4 /mnt/zip
mount: /dev/sda4 already mounted or /mnt/zip busy
mount: according to mtab, /dev/sda4 is already mounted on /mnt/zip

I guess that is good. Now here is what I get when I try to read the disc:

Access denied to /mnt/zip

Markus
09-05-2004, 07:26 PM
root@1[knoppix]# mount -t vfat /dev/sda4 /mnt/zip
root@1[knoppix]# mount -t msdos /dev/sda4 /mnt/zip
mount: /dev/sda4 already mounted or /mnt/zip busy
mount: according to mtab, /dev/sda4 is already mounted on /mnt/zip This looks promising. I'd say vfat worked there since it errored out when you tried the second command.

Type mount to see whats mounted and how.
How are you trying to access it, cd /mnt/zip should work
Do also:
chmod 770 /mnt/zip
chgrp disk /mnt/zip
And check that your user is in the group disk by typing groups as user, if not, do:
adduser rrfish72 disk

rrfish72
09-05-2004, 07:53 PM
root@2[knoppix]# mount
/dev/hda3 on / type ext3 (rw,errors=remount-ro)
/proc on /proc type proc (rw,nodiratime)
/dev/pts on /dev/pts type devpts (rw)
/sys on /sys type sysfs (rw)
/proc/bus/usb on /proc/bus/usb type usbdevfs (rw,devmode=0666)
automount(pid1041) on /mnt/auto type autofs (rw,fd=4,pgrp=1041,minproto=2,maxproto=4)
/dev/hda1 on /mnt/hda1 type ntfs (rw,nosuid,nodev,umask=000,uid=1000,gid=1000)
/dev/sda4 on /mnt/zip type vfat (rw)

root@2[knoppix]# chmod 770 /mnt/zip
root@2[knoppix]# chgrp disk /mnt/zip
chgrp: changing group of `/mnt/zip': Operation not permitted
root@2[knoppix]# su chgrp disk /mnt/zip
Unknown id: chgrp
root@2[knoppix]# groups
root knoppix

Markus
09-05-2004, 08:13 PM
root@2[knoppix]# mount
/dev/sda4 on /mnt/zip type vfat (rw) It's mounted ok so try cd /mnt/zip


root@2[knoppix]# chgrp disk /mnt/zip
chgrp: changing group of `/mnt/zip': Operation not permitted Try unmounting first with umount /mnt/zip , might as well change the group to floppy instead of disk, my bad. So: chgrp floppy /mnt/zip


root@2[knoppix]# su chgrp disk /mnt/zip
Unknown id: chgrp Doesn't work that way, you're already root, besides as user you can do sudo command, not su command


root@2[knoppix]# groups
root knoppix Do groups as user, not root.

rrfish72
09-05-2004, 08:25 PM
knoppix@4[knoppix]$ groups
knoppix root disk mail dialout fax voice cdrom floppy tape sudo audio dip www-data backup video games users usb scanner captive

knoppix@4[knoppix]$ chgrp floppy /mnt/zip
chgrp: changing group of `/mnt/zip': Operation not permitted

root@2[zip]# adduser knoppix floppy
The user `knoppix' is already a member of `floppy'.

root@2[root]# umount /mnt/zip

Markus
09-05-2004, 08:36 PM
Your user shouldn't be part of the root group, if you feel more comfortable with using a GUI you can use kuser to set groups for your user.
Or do: deluser knoppix root (be a bit careful with the deluser command as it can delete a user and his homedirectory when used wrongly)

After umounting you can again check with mount that the zip is no longer mounted, then try with chgrp floppy /mnt/zip (this you have to do as root)

When done, try mounting again: mount -t vfat /dev/sda4 /mnt/zip
And try to access it or list it: cd /mnt/zip or ll /mnt/zip

rrfish72
09-05-2004, 11:05 PM
After doing modprobe imm and mount -t vfat /dev/sda4 /mnt/zip then does it show up as being mounted. Here is what was done again to get it mounted:

root@0[knoppix]# mount
/dev/hda3 on / type ext3 (rw,errors=remount-ro)
/proc on /proc type proc (rw,nodiratime)
/dev/pts on /dev/pts type devpts (rw)
/sys on /sys type sysfs (rw)
/proc/bus/usb on /proc/bus/usb type usbdevfs (rw,devmode=0666)
automount(pid1044) on /mnt/auto type autofs (rw,fd=4,pgrp=1044,minproto=2,maxproto=4)
/dev/hda1 on /mnt/hda1 type ntfs (rw,nosuid,nodev,umask=000,uid=1000,gid=1000)
root@0[knoppix]# chgrp floppy /mnt/zip
root@0[knoppix]# mount -t vfat /dev/sda4 /mnt/zip
mount: /dev/sda4 is not a valid block device
root@0[knoppix]# cd /mnt/zip
root@0[zip]# mount -t vfat /dev/sda4 /mnt/zip
mount: /dev/sda4 is not a valid block device
root@0[zip]# ll /mnt/zip
total 0
root@0[zip]# modprobe imm
root@0[zip]# mount -t vfat /dev/sda4 /mnt/zip
root@0[zip]# mount
/dev/hda3 on / type ext3 (rw,errors=remount-ro)
/proc on /proc type proc (rw,nodiratime)
/dev/pts on /dev/pts type devpts (rw)
/sys on /sys type sysfs (rw)
/proc/bus/usb on /proc/bus/usb type usbdevfs (rw,devmode=0666)
automount(pid1044) on /mnt/auto type autofs (rw,fd=4,pgrp=1044,minproto=2,maxproto=4)
/dev/hda1 on /mnt/hda1 type ntfs (rw,nosuid,nodev,umask=000,uid=1000,gid=1000)
/dev/sda4 on /mnt/zip type vfat (rw)

Not sure about the deluser thing yet. Do I deluser knoppix root when I'm in root? Don't quite understand the group and user thing. What is that setting? Permissions.

After it is mounted:

root@0[zip]# ll /mnt/zip
total 4
-rwxr--r-- 1 root root 4079 Feb 15 1995 readme.txt

Can you walk me through the deluser? I added ithe modprobe imm to that boot.sh file here:

# Save kernel messages in /var/log/dmesg
#
dmesg > /var/log/dmesg
# This was added by Ryan
modprob imm
Is this correct

Markus
09-06-2004, 06:38 AM
Not sure about the deluser thing yet. Do I deluser knoppix root when I'm in root? Don't quite understand the group and user thing. What is that setting? Permissions. You do it as root, but if you're unsure of it, use kuser for it as it's a risky thing to use. Different groups have different access rights and permissions, also a users access rights depends on which groups he belongs to, root always has access to everything. Therefore a user shouldn't be part of the root group.


After it is mounted:

root@0[zip]# ll /mnt/zip
total 4
-rwxr--r-- 1 root root 4079 Feb 15 1995 readme.txt If that's all there is on it, you just managed to access it. Now you can start adding the line to fstab.


I added ithe modprobe imm to that boot.sh file here:

# Save kernel messages in /var/log/dmesg
#
dmesg > /var/log/dmesg
# This was added by Ryan
modprob imm
Is this correct AFAICT thats correct once you've changed the modprob to modprobe ("e" missing), you could also try doing insmod usb-storage while it seems to be needed, and hopefully it's loaded after a reboot, check with lsmod.

rrfish72
09-10-2004, 02:46 AM
Does not show up after reboot.

Markus
09-11-2004, 03:14 PM
Well, it's the knoppix style install again recreating your files, don't know much about that type of install, so let's try to get your CD drives working first and go from there.

rrfish72
09-11-2004, 11:45 PM
Still need to get this to work. I did everything in the fstab and all the stuff the beginning of this post. Get same results. Access denied to /mnt/zip after it gets mounted.

root@rrfish72:/# ll mnt/zip
total 4
-rwxr--r-- 1 root root 4079 Feb 15 1995 readme.txt

How do I get at the readme.txt file to actually read it?

Actually I got to read it somehow. I just clicked on the icon and it was there. Now I can't get to it again.

Markus
09-12-2004, 10:36 AM
Still need to get this to work. I did everything in the fstab and all the stuff the beginning of this post. Get same results. Access denied to /mnt/zip after it gets mounted.

root@rrfish72:/# ll mnt/zip
total 4
-rwxr--r-- 1 root root 4079 Feb 15 1995 readme.txt Access denied or not? Clearly you can list the files on the disk. Perhaps it's just that you mounted as root and tried to access as user. This is now when the line in fstab comes handy. Unmount first if it's mounted and then try mounting as user with mount /mnt/zip


How do I get at the readme.txt file to actually read it? You mean like:
cat /mnt/zip/readme.txt
mcedit /mnt/zip/readme.txt
kwrite /mnt/zip/readme.txt


Actually I got to read it somehow. I just clicked on the icon and it was there. Now I can't get to it again. If it's mounted by root, you probably can't access, but if it's unmouted, clicking the icon should mount as user and permit access.

cariboo
09-14-2004, 12:03 AM
Use modconf to insert the ppa module into the kernel. Do this as root

root@willy:~# modconf and hit enter

navigate to kernel/drivers/scsi hit enter
navigate down to ppa hit enter

You will now get a dialog box asking if you want to install this module
hit enter.

You will now get a dialog asking if you want to add any parameters, just hit enter.

After a few seconds you should get a messages saying installation successful hit enter when you are ready.

now type dmesg, your outputshould look something like this:

ppa: Version 2.07 (for Linux 2.4.x)
ppa: Found device at ID 6, Attempting to use EPP 16 bit
ppa: Found device at ID 6, Attempting to use PS/2
ppa: Communication established with ID 6 using PS/2
scsi5 : Iomega VPI0 (ppa) interface
Vendor: IOMEGA Model: ZIP 100 Rev: D.09
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sda: 196608 512-byte hdwr sectors (101 MB)
sda: Write Protect is off
sda: Mode Sense: 25 00 00 08
sda: cache data unavailable
sda: assuming drive cache: write through
sda: sda4
Attached scsi removable disk sda at scsi5, channel 0, id 6, lun 0
Attached scsi generic sg2 at scsi5, channel 0, id 6, lun 0, type 0

Next edit /etc/fstab, it should look something like this:


/dev/sda4 /mnt/zip vfat defaults,rw,user,noauto 0 0

Create a directory in /mnt called zip.

You are now ready to mount your zip disk as any user.

Hope this hellps

Jim

rrfish72
09-15-2004, 05:05 PM
Thank you Markus and cariboo for your input. Now it works and can get to my files with just a click in root only. It was the modconf step that was missing. If I can't get into it with what I've been told in this post, I'll be posting back for more help. This is what I get when I try to open my zip as rrfish: Access denied to /mnt/zip.

OErjan
09-16-2004, 04:12 PM
in that case you might need to add users,gid=users,umask0002, in fstab, like below
/dev/sda4 /mnt/zip vfat users,gid=users,umask0002,rw,noauto 0 0 .
that umask will alow the group users acess, and you are most likely in that group.
the reason you canot change permisions on that folder is vfat, it is not able to handle *IX style permisions, using umask as above "sidesteps" that somewhat, not verry secure but...

morbidpalooza
10-09-2005, 02:57 AM
Would you post the output of the following commands after putting a disk in the drive:
cat /proc/scsi/scsi
cdrecord -scanbus
sudo fdisk -l

done after modprobe

cat /proc/scsi/scsi =


Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: LITE-ON Model: LTR-48247S Rev: PPB1
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: ATAPI Model: DVD DD 2X16X4X16 Rev: G7C9
Type: CD-ROM ANSI SCSI revision: 02


cdrecord -scanbus =


Cdrecord-Clone 2.01a34 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
NOTE: this version of cdrecord is an inofficial (modified) release of cdrecord
and thus may have bugs that are not present in the original version.
Please send bug reports and support requests to <cdrtools@packages.debian.org>.
The original author should not be bothered with problems of this version.

Linux sg driver version: 3.1.25
Using libscg version 'schily-0.8'.
scsibus0:
0,0,0 0) 'LITE-ON ' 'LTR-48247S ' 'PPB1' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
scsibus1:
1,0,0 100) 'ATAPI ' 'DVD DD 2X16X4X16' 'G7C9' Removable CD-ROM
1,1,0 101) *
1,2,0 102) *
1,3,0 103) *
1,4,0 104) *
1,5,0 105) *
1,6,0 106) *
1,7,0 107) *

fdisk -l

fdisk -l

Disk /dev/sda: 100 MB, 100663296 bytes
64 heads, 32 sectors/track, 96 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Device Boot Start End Blocks Id System
/dev/sda1 ? 379950 937327 570754815+ 72 Unknown
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(357, 116, 40) logical=(379949, 11, 5)
Partition 1 has different physical/logical endings:
phys=(357, 32, 45) logical=(937326, 59, 3)
Partition 1 does not end on cylinder boundary.
/dev/sda2 ? 82368 1027695 968014120 65 Novell Netware 386
Partition 2 has different physical/logical beginnings (non-Linux?):
phys=(288, 115, 43) logical=(82367, 59, 19)
Partition 2 has different physical/logical endings:
phys=(367, 114, 50) logical=(1027694, 14, 2)
Partition 2 does not end on cylinder boundary.
/dev/sda3 ? 913029 1858355 968014096 79 Unknown
Partition 3 has different physical/logical beginnings (non-Linux?):
phys=(366, 32, 33) logical=(913028, 3, 26)
Partition 3 has different physical/logical endings:
phys=(357, 32, 43) logical=(1858354, 20, 25)
Partition 3 does not end on cylinder boundary.
/dev/sda4 ? 1409025 1409052 27749+ d Unknown
Partition 4 has different physical/logical beginnings (non-Linux?):
phys=(372, 97, 50) logical=(1409024, 0, 1)
Partition 4 has different physical/logical endings:
phys=(0, 10, 0) logical=(1409051, 6, 11)
Partition 4 does not end on cylinder boundary.

Partition table entries are not in disk order

Disk /dev/hda: 40.0 GB, 40020664320 bytes
240 heads, 63 sectors/track, 5169 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 277 2094088+ 16 Hidden FAT16
/dev/hda2 278 693 3144960 82 Linux swap
/dev/hda3 694 4854 31457160 83 Linux
/dev/hda4 4855 5169 2381400 c W95 FAT32 (LBA)

morbidpalooza
10-20-2005, 01:24 AM
I am still haveing no luck with this darn thing!