-
Senior Member
registered user
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
-
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
-
Senior Member
registered user
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
-
Originally Posted by
rrfish72
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.
-
Senior Member
registered user
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
-
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
-
Senior Member
registered user
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
-
Originally Posted by
rrfish72
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.
-
Senior Member
registered user
Does not show up after reboot.
-
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.
Similar Threads
-
By mjman in forum Hardware & Booting
Replies: 9
Last Post: 10-25-2004, 09:46 PM
-
By Bothersome in forum MS Windows & New to Linux
Replies: 5
Last Post: 10-07-2004, 10:53 PM
-
By kidsatacrux in forum MS Windows & New to Linux
Replies: 19
Last Post: 08-03-2004, 07:41 AM
-
By ktheking in forum Customising & Remastering
Replies: 6
Last Post: 01-02-2004, 09:35 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
IBM Power S822 12-Bay Server System Power8 Core 3.42Ghz DVD-Rom Drive 64GB No HD
$399.99
IBM Power 720 POWER7 00E6516 3.6GHz CPU 64GB RAM Server
$209.98
IBM SYSTEM x3200 M2 Server - HDD wiped, No OS
$75.00
ibm server z series
$16000.00
IBM 7944AC1 System x3550 M3 Server 1*Intel Xeon X5650 2.67GHz 4GB SEE NOTES
$27.25
IBM Lenovo X3650 M5 2U 8x 2.5” CTO Rack Server – 2x HS, 2x 750W
$199.00
IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6-Core 64GB RAM No Bezel/HDD Server
$319.99
IBM System X3650 Server M2 2 x Xeon X5570 2.93 Ghz w/128 GB/DVDRW
$169.99
IBM 8203 E4A p520 Server 8203-E4A 4.2GHz 2-Core POWER6 32GB RAM / NO HDD USED
$99.99
IBM Intel EXPI9404PTL Pro/1000 PT Quad Port Server Adapter PCI-E 39Y6138 Free SH
$16.99