PDA

View Full Version : Answered



Drezliok
07-12-2004, 10:59 PM
As the topic says, they aren't working and I don't know why.

This is all that I have done before I noticed this.

apt-get update and upgrade, did a distro upgrade.
removed ypbind with help from the forum
adjusted lilo to boot windows first
adjusted the apt-get sources.ist so I only get stable and java.


I am a newbie for sure, I am just starting out and got the hang of apt-get.

During the auto config knoppix says it sees my cd-roms.


Thankyou for any help, with out knoppix I would never try learning Linux.
Drezliok

jtsai256
07-13-2004, 01:55 AM
I have the same problem. I'm not sure why this happens, but sometimes if I put in a data CD into the drives before I reboot, I am able to mount the drives. The problem is, sometimes it works, sometimes it doesn't.

Jez
07-13-2004, 02:21 AM
What errors are you getting when you try to mount?

It could be something in your fstab I guess.

Drezliok
07-13-2004, 06:30 AM
What errors are you getting when you try to mount?

It could be something in your fstab I guess.

it says "Unable to run the command specified. The file or folder file:/mnt/cdrom does not exist."

um, I didn't know what fstab was so I Manned it[ if thats a term for "man fstab"]

Here is the file.



# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hdb1 / ext3 defaults,errors=remount-ro 0 1

proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
usbdevfs /proc/bus/usb usbdevfs defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/cdrom /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/cdrom1 /cdrom1 iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/dvd /dvd iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/cdaudio /cdaudio iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/cdrom1 /mnt/auto/cdrom1 auto users,noauto,exec,ro 0 0
# Added by KNOPPIX
/dev/hda1 /mnt/hda1 ntfs noauto,users,exec,ro,umask=000 0 0
# Added by KNOPPIX
/dev/hdb2 none swap defaults 0 0


Oh, can anyone also help me make it so it will auto mount my windows drive, hda1 when the system boots?

Thankyou all for the help.

jtsai256
07-13-2004, 07:05 AM
One way to get the Win XP partition to auto mount after boot up is to first mount it, then through the K menu go to Knoppix, Configure, and Save Knoppix Configuration. Click on what you want to save in the menu. To have the configurations restored when you reboot, you have to edit LILO. There are instructions after you create your configuration. Hope this helps.

Drezliok
07-13-2004, 07:17 AM
One way to get the Win XP partition to auto mount after boot up is to first mount it, then through the K menu go to Knoppix, Configure, and Save Knoppix Configuration. Click on what you want to save in the menu. To have the configurations restored when you reboot, you have to edit LILO. There are instructions after you create your configuration. Hope this helps.

I think there might be another way that is directly related to the fstab and the fixing there of. I'll try your way later.

CrashedAgain
07-13-2004, 03:41 PM
I have found that sometimes Knoppix doesnt' make the /mnt/cdrom directory when it should and sometimes fails to properly include everything in /etc/fstab.
If you have done your HD install 'Debian style', you should only have to mkdir the missing directory and/or edit fstab to your liking (perhaps to auto mount drive at boot) & it should stay that way.
If you have done you HD install "Knoppix style", it will try to autodetect & write a new fstab each boot. The way around this is boot code 'nofstab'. Add it to the list of appends in /etc/lilo.conf then re-run lilo.

Drezliok
07-13-2004, 03:59 PM
Addition information on my computer can be found here.
http://www.gaiaonline.com/forum/viewtopic.php?t=3033939

I got some tech help there but I'm not sure what it means yet, more research on my part.

Markus
07-13-2004, 04:01 PM
The cdroms are in debian under / and not /mnt. Looks like the desktop icons are still faulty, so you might as well delete them or change them later. Then do:

dmesg|grep cd
dmesg|grep sr
dmesg|grep scd
.. to find out the device name. For me they are:
/dev/sr0 /cdrom iso9660 defaults,ro,users,noexec,noauto,uid=markus,gid=mar kus 0 0
/dev/sr1 /cdrom1 iso9660 defaults,ro,users,noexec,noauto,uid=markus,gid=mar kus 0 0
You don't have to have uid and gid.
After you have the right devices in fstab create new desktop icons, or change the old ones to the new devices.

EDIT: Just remembered that you only have stable in sources.list which might make it a bit difficult to install any software since knoppix is a mix of testing and unstable.

Drezliok
07-13-2004, 04:01 PM
I have found that sometimes Knoppix doesnt' make the /mnt/cdrom directory when it should and sometimes fails to properly include everything in /etc/fstab.
If you have done your HD install 'Debian style', you should only have to mkdir the missing directory and/or edit fstab to your liking (perhaps to auto mount drive at boot) & it should stay that way.
If you have done you HD install "Knoppix style", it will try to autodetect & write a new fstab each boot. The way around this is boot code 'nofstab'. Add it to the list of appends in /etc/lilo.conf then re-run lilo.

I think it was Debian style. any way to check?

Drezliok
07-13-2004, 04:02 PM
The cdroms are in debian under / and not /mnt. Looks like the desktop icons are still faulty, so you might as well delete them or change them later. Then do:

dmesg|grep cd
dmesg|grep sr
dmesg|grep scd
.. to find out the device name. For me they are:
/dev/sr0 /cdrom iso9660 defaults,ro,users,noexec,noauto,uid=markus,gid=mar kus 0 0
/dev/sr1 /cdrom1 iso9660 defaults,ro,users,noexec,noauto,uid=markus,gid=mar kus 0 0
You don't have to have uid and gid.
After you have the right devices in fstab create new desktop icons, or change the old ones to the new devices.

oki I know what the CD would be but whats SR and SCD?

Markus
07-13-2004, 04:05 PM
They're the actual devicenames under which your cd-drives are connected, just have to find out which ones so you'll have to run the commands to see.

Drezliok
07-13-2004, 04:11 PM
drezliok@tuxeater:~$ dmesg|grep cd
sr0: scsi3-mmc drive: 48x/48x cd/rw xa/form2 cdda tray
sr1: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
drezliok@tuxeater:~$ dmesg|grep sr
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Attached scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0
sr0: scsi3-mmc drive: 48x/48x cd/rw xa/form2 cdda tray
sr1: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
drezliok@tuxeater:~$ dmesg|grep scd
drezliok@tuxeater:~$

My system is "tuxeater" because it's windows portion is called Orca.

The dmesg|grep scd did nothing as you see by the info.

Markus
07-13-2004, 04:21 PM
Try changing this:
/dev/cdrom /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/cdrom1 /cdrom1 iso9660 defaults,ro,user,noexec,noauto 0 0
to this:
/dev/sr0 /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/sr1 /cdrom1 iso9660 defaults,ro,user,noexec,noauto 0 0

BTW, the line for your floppy is ok, so you'll just have to recreate/change the desktop icon.
Also type groups as user to see if you're in the cdrom group.
Then do:

cd /dev
ll cdrom cdrom1 sr0 sr1
To see if the group is cdrom, owner can be root

Drezliok
07-13-2004, 04:44 PM
I noticed in the fstab that there are to remarks for cd-rom1, is that normal?

Drezliok
07-13-2004, 04:54 PM
root@tuxeater:~# cd /dev
root@tuxeater:/dev# ll cdrom cdrom1 sr0 sr1
ls: cdrom: No such file or directory
ls: cdrom1: No such file or directory
lrwxrwxrwx 1 root root 4 Jul 8 22:39 sr0 -> scd0
lrwxrwxrwx 1 root root 4 Jul 8 22:39 sr1 -> scd1
root@tuxeater:/dev#


tested sr0 and sr1cd-roms works but pops a error,

mount: block device /dev/sr0 is write-protected, mounting read-only
being that CD-roms are read only is there a way I can be rid of that error?

Anyways to have it unmount automaticly when the media is removed? This includes Floppy.

Markus
07-13-2004, 05:05 PM
I noticed in the fstab that there are to remarks for cd-rom1, is that normal?
No it's not normal, but unless you edited them away, I don't see them. This is what I think you should have:

# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hdb1 / ext3 defaults,errors=remount-ro 0 1
proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
usbdevfs /proc/bus/usb usbdevfs defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/sr0 /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/sr1 /cdrom1 iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/dvd /dvd iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/cdaudio /cdaudio iso9660 defaults,ro,user,noexec,noauto 0 0
# /dev/cdrom1 /mnt/auto/cdrom1 auto users,noauto,exec,ro 0 0
# Added by KNOPPIX
/dev/hda1 /mnt/hda1 ntfs noauto,users,exec,ro,umask=000 0 0
# Added by KNOPPIX
/dev/hdb2 none swap defaults 0 0

Then do:

ln -s /dev/sr1 /dev/dvd
ln -s /dev/sr0 /dev/cdaudio
chgrp cdrom /dev/dvd /dev/cdaudio /dev/sr0 /dev/sr1 /dev/scd0 /dev/scd1
I'm assuming here that you have a dvd-cdburner combo drive.

Markus
07-13-2004, 05:09 PM
tested sr0 and sr1cd-roms works but pops a error,

mount: block device /dev/sr0 is write-protected, mounting read-only
being that CD-roms are read only is there a way I can be rid of that error?
I don't get it, there's a ro in fstab. How did you try to mount it?

Anyways to have it unmount automaticly when the media is removed? This includes Floppy.
Haven't tried as I kind of like doing things manually. You only have to right click the desktop icon and choose unmount or do: umount /cdrom or umount /floppy. Without automating things you know that you don't pop your floppy out before writing/reading is done.

Drezliok
07-13-2004, 05:11 PM
no DVD-burner and the so called Cd-burner doesn't burn in linux anyways, I've tried in Fedora core 1 and 2, mandrake9.1, 9.2, 10.0CE, 10.0OE. no worries though, I still have XP.
edit: Knoppix 3.3 and 3.4 too.

Drezliok
07-13-2004, 05:13 PM
tested sr0 and sr1cd-roms works but pops a error,

mount: block device /dev/sr0 is write-protected, mounting read-only
being that CD-roms are read only is there a way I can be rid of that error?
I don't get it, there's a ro in fstab. How did you try to mount it?

Anyways to have it unmount automaticly when the media is removed? This includes Floppy.
Haven't tried as I kind of like doing things manually. You only have to right click the desktop icon and choose unmount or do: umount /cdrom or umount /floppy. Without automating things you know that you don't pop your floppy out before writing/reading is done.

New icons on the desktop in KDE, should I do it in the konsole instead?

Markus
07-13-2004, 05:21 PM
It's really just a matter of taste where you mount and unmount. If you're working on the desktop do it there and vice versa. Just notice that the console command for unmounting is umount.

Drezliok
07-13-2004, 05:25 PM
Ok, I wanna go over tnhis before I say thanks for helping me and running away, I will say thanks now.

Thankyou

Ok, this is my new fstab

# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hdb1 / ext3 defaults,errors=remount-ro 0 1

proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
usbdevfs /proc/bus/usb usbdevfs defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/sr0 /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/sr1 /cdrom1 iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/dvd /dvd iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/cdaudio /cdaudio iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/cdrom1 /mnt/auto/cdrom1 auto users,noauto,exec,ro 0 0
# Added by KNOPPIX
/dev/hda1 /mnt/hda1 ntfs noauto,users,exec,ro,umask=000 0 0
# Added by KNOPPIX
/dev/hdb2 none swap defaults 0 0

1.I have no DVD can I remove the line for it?
2.how can I have hda1 auto mount when the o/s boots or atleast when I get into KDE, like hdb2 does.
3. Thanks so much, I've learned alot while doing this.

Markus
07-13-2004, 05:33 PM
Ok, I wanna go over tnhis before I say thanks for helping me and running away, I will say thanks now.

Thankyou

Ok, this is my new fstab

# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hdb1 / ext3 defaults,errors=remount-ro 0 1

proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
usbdevfs /proc/bus/usb usbdevfs defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/sr0 /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/sr1 /cdrom1 iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/dvd /dvd iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/cdaudio /cdaudio iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/cdrom1 /mnt/auto/cdrom1 auto users,noauto,exec,ro 0 0
# Added by KNOPPIX
/dev/hda1 /mnt/hda1 ntfs noauto,users,exec,ro,umask=000 0 0
# Added by KNOPPIX
/dev/hdb2 none swap defaults 0 0

1.I have no DVD can I remove the line for it?
2.how can I have hda1 auto mount when the o/s boots or atleast when I get into KDE, like hdb2 does.
3. Thanks so much, I've learned alot while doing this.
1. Go ahead and remove it
2. Change it to: /dev/hda1 /mnt/hda1 ntfs auto,users,exec,ro,umask=000 0 0
3. You're welcome
I commented earlier out this line which you can remove as well:
/dev/cdrom1 /mnt/auto/cdrom1 auto users,noauto,exec,ro 0 0
If you do want automount change it to: (and comment out the other sr1 with an # )
/dev/sr1 /mnt/auto/cdrom1 auto users,noauto,exec,ro 0 0
But as said, I don't like automounting for removable devices so I don't really know what makes it work.

Drezliok
07-13-2004, 05:36 PM
thankyou.