PDA

View Full Version : Trouble with fstab after hdinstall



FelixDzerzhinsky
01-05-2004, 08:26 PM
After hdinstall my floppy and dvd and cdburner devices no longer work. I am going to post some info here. I will also try to find my own solution using http://www.knoppix.net/forum/viewtopic.php?t=6945

root@reno:/# dmesg | grep scsi
Kernel command line: auto BOOT_IMAGE=Linux ro root=305 hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi apm=power-off nomce
ide_setup: hda=scsi
ide_setup: hdb=scsi
ide_setup: hdc=scsi
ide_setup: hdd=scsi
ide_setup: hde=scsi
ide_setup: hdf=scsi
ide_setup: hdg=scsi
ide_setup: hdh=scsi
ide-cd: passing drive hdc to ide-scsi emulation.
ide-cd: passing drive hdd to ide-scsi emulation.
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
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: 14x/40x cd/rw xa/form2 cdda tray
sr1: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray


root@reno:/# dmesg | grep ls-l /dev/cdrom
grep: /dev/cdrom: No medium found

root@reno:/# dmesg | grep fdisk -l
root@reno:/#

# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hda5 / ext3 defaults,errors=remount-ro 0 1
/dev/hda6 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
/dev/cdrom /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0
# partitions found by Knoppix
#/dev/hda1 /mnt/hda1 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppi x 0 0
#/dev/hda5 /mnt/hda5 ext3 noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hda1 /mnt/hda1 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppi x 0 0


This is all greek to me!

FelixDzerzhinsky
01-05-2004, 08:35 PM
root@reno:/# cp /etc/fstab /etc/fstab.original
You have new mail in /var/mail/root
root@reno:/# mkdir /dvd
root@reno:/# ls -l /dev/dvd
lrwxrwxrwx 1 root root 10 Jan 4 19:28 /dev/dvd -> /dev/cdrom
root@reno:/#
root@reno:/# dmesg | grep scsi
Kernel command line: auto BOOT_IMAGE=Linux ro root=305 hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi apm=power-off nomce
ide_setup: hda=scsi
ide_setup: hdb=scsi
ide_setup: hdc=scsi
ide_setup: hdd=scsi
ide_setup: hde=scsi
ide_setup: hdf=scsi
ide_setup: hdg=scsi
ide_setup: hdh=scsi
ide-cd: passing drive hdc to ide-scsi emulation.
ide-cd: passing drive hdd to ide-scsi emulation.
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
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: 14x/40x cd/rw xa/form2 cdda tray
sr1: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray

Stephen
01-05-2004, 09:39 PM
For the fstab:



# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hda5 / ext3 defaults,errors=remount-ro 0 1
/dev/hda6 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
/dev/scd0 /dvd iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/scd1 /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0
# partitions found by Knoppix
#/dev/hda1 /mnt/hda1 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppi x 0 0
#/dev/hda5 /mnt/hda5 ext3 noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hda1 /mnt/hda1 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppi x 0 0


Then rm /dev/dvd, rm /dev/cdrom to remove the bad symbolic links next ln -s /dev/scd0 /dev/dvd and ln -s /dev/scd1 /dev/cdrom the correct links to the devices. Haven't a clue about the floppy unless you are talking the shortcut on the desktop if this is the case then the device is wrong in the device tab it is using /mnt/floppy and it should be just /floppy you should delete the old icon and create a new one by right clicking on the desktop.


You may want this in the /etc/fstab as well for usb devices.


none /proc/bus/usb usbdevfs defaults 0 0

FelixDzerzhinsky
01-05-2004, 10:18 PM
Below is my /etc/fstab. I seem to have done something wrong!:



# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hda5 / ext3 defaults,errors=remount-ro 0 1
/dev/hda6 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
/dev/scd0 /dvd iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/scd1 /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0
# partitions found by Knoppix
#/dev/hda1 /mnt/hda1 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppi x 0 0
#/dev/hda5 /mnt/hda5 ext3 noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hda1 /mnt/hda1 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppi x 0 0

none /proc/bus/usb usbdevfs defaults 0 0


When I try to mount devices I get:

pjharper@reno:~$ mount /dev/cdrom
[mntent]: warning: no final newline at the end of /etc/fstab
mount: can't find /dev/cdrom in /etc/fstab or /etc/mtab
pjharper@reno:~$ mount /dvd
[mntent]: warning: no final newline at the end of /etc/fstab
mount: wrong fs type, bad option, bad superblock on /dev/scd0,
or too many mounted file systems
pjharper@reno:~$ mount /floppy
[mntent]: warning: no final newline at the end of /etc/fstab
mount: /dev/fd0 is not a valid block device
pjharper@reno:~$

Finally (Separate Issue) when I right click in KDE I lose my mouse.

Thanks Stephen for your reply. You are really patient with Newbies!

Stephen
01-05-2004, 11:39 PM
Below is my /etc/fstab. I seem to have done something wrong!:



# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hda5 / ext3 defaults,errors=remount-ro 0 1
/dev/hda6 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
/dev/scd0 /dvd iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/scd1 /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0
# partitions found by Knoppix
#/dev/hda1 /mnt/hda1 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppi x 0 0
#/dev/hda5 /mnt/hda5 ext3 noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hda1 /mnt/hda1 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppi x 0 0

none /proc/bus/usb usbdevfs defaults 0 0


When I try to mount devices I get:

pjharper@reno:~$ mount /dev/cdrom
[mntent]: warning: no final newline at the end of /etc/fstab
mount: can't find /dev/cdrom in /etc/fstab or /etc/mtab
pjharper@reno:~$ mount /dvd
[mntent]: warning: no final newline at the end of /etc/fstab
mount: wrong fs type, bad option, bad superblock on /dev/scd0,
or too many mounted file systems
pjharper@reno:~$ mount /floppy
[mntent]: warning: no final newline at the end of /etc/fstab
mount: /dev/fd0 is not a valid block device
pjharper@reno:~$

Finally (Separate Issue) when I right click in KDE I lose my mouse.

Thanks Stephen for your reply. You are really patient with Newbies!

You should be root when trying to mount the devices and you should use something like this mount /dev/cdrom /cdrom when you mount you issue the command (mount) to mount the device (/dev/cdrom) at a mount point (/cdrom) and should usually be the mount point you specified in the /etc/fstab for the device, then you use the mount point if you want to see the contents (ls -l /cdrom). You should not be getting the "no final newline" warning how did you edit the /etc/fstab file? And did you create the proper links for the devices? That mouse thing looks real strange what kind is it and can you post the Section(s) "InputDevices" for the mouse in the /etc/X11/XF86Config-4?

FelixDzerzhinsky
01-08-2004, 12:07 AM
My freind gave me knoppix 3.3 which solved the mouse problem mentioned earlier. I used knoppix installer. This still made it so my floppy and cdroms do not work. this is the current fstab as done by knoppix during installl:

# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hda5 / 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
/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
# Added by KNOPPIX
/dev/hda1 /mnt/hda1 vfat noauto,users,exec,umask=000 0 0
# Added by KNOPPIX
/dev/hda6 none swap defaults 0 0

FelixDzerzhinsky
01-08-2004, 11:29 AM
# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hda5 / ext3 defaults,errors=remount-ro 0 1
/dev/hda6 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
/dev/scd0 /dvd iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/scd1 /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0
# partitions found by Knoppix
#/dev/hda1 /mnt/hda1 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppi x 0 0
#/dev/hda5 /mnt/hda5 ext3 noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hda1 /mnt/hda1 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppi x 0 0

Stephen
01-08-2004, 11:47 AM
# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hda5 / ext3 defaults,errors=remount-ro 0 1
/dev/hda6 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
/dev/scd0 /dvd iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/scd1 /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0
# partitions found by Knoppix
#/dev/hda1 /mnt/hda1 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppi x 0 0
#/dev/hda5 /mnt/hda5 ext3 noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hda1 /mnt/hda1 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppi x 0 0

You may want to go back to the old fstab and use some of Kano's (http://www.kano.mipooh.net/) scripts I was looking at last night I used a few on my test machine they worked well, it has one there to fix the CD and floppy problem other ones you may want to run are in the remove the services, startup-services, wine and games in the fix you want the cdrom, fonts, include-glibc, include-linux, motd, time and usb. Download the scripts to their own directory then when you change to the directory and use chmod +x * and run them with ./name_of_scrip.sh. You should probably login to the console and run the scripts from there as root and then /etc/init.d/kdm restart to restart the xserver and get a new kde login.

FelixDzerzhinsky
01-10-2004, 02:10 AM
Hello again. Did a reinstall because I was screwing too many things up! Found out from some nice person on irc #knoppix about KDiskFree. I can mount my devices using KDiskFree.

Tried burning a CD. Got this output.

System
-----------------------
K3b Version: 0.9
KDE Version: 3.1.4
QT Version: 3.2.1

cdrdao
-----------------------
ERROR: Expecting only one toc-file.
Cdrdao version 1.1.7 - (C) Andreas Mueller <andreas@daneb.de>
SCSI interface library - (C) Joerg Schilling
Paranoia DAE library - (C) Monty
Check http://cdrdao.sourceforge.net/drives.html#dt for current driver tables.
Usage: /usr/bin/cdrdao read-cd [options] toc-file
options:
--device <x,y,z> - sets SCSI device of CD-ROM reader
--driver <id> - force usage of specified driver for source device
--datafile <filename> - name of data file placed in toc-file
--session # - select session
--fast-toc - do not extract pre-gaps and index marks
--read-raw - read raw data sectors (including L-EC data)
--read-subchan <mode> - defines sub-channel reading mode
<mode> = rw | rw_raw
--tao-source - indicate that source CD was written in TAO mode
--tao-source-adjust # - # of link blocks for TAO source CDs (def. 2)
--paranoia-mode # - DAE paranoia mode (0..3)
--with-cddb - retrieve CDDB CD-TEXT data while copying
--cddb-servers <list> - sets space separated list of CDDB servers
--cddb-timeout # - timeout in seconds for CDDB server communication
--cddb-directory <path> - path to local CDDB directory where fetched
CDDB records will be stored
--force - force execution of operation
-v # - sets verbose level

cdrdao comand:
-----------------------
/usr/bin/cdrdao read-cd --device 0,0,0 --driver generic-mmc --paranoia-mode 3 auto -n -v 2 --eject --remote 21 --datafile /tmp/kde-caro/k3b_0.img /tmp/kde-caro/k3b_0.toc

FelixDzerzhinsky
01-10-2004, 02:27 AM
scsibus0:
0,0,0 0) 'HITACHI ' 'DVD-ROM GD-5000 ' '0213' Removable CD-ROM
0,1,0 1) 'MITSUMI ' 'CR-48XATE ' '1.0E' Removable CD-ROM
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
caro@reno:~$ dmesg | grep '^hd.:'
hda: MAXTOR 6L040J2, ATA DISK drive
hdc: HITACHI DVD-ROM GD-5000, ATAPI CD/DVD-ROM drive
hdd: CR-48XATE, ATAPI CD/DVD-ROM drive
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 78177792 sectors (40027 MB) w/1819KiB Cache, CHS=4866/255/63
hdc: attached ide-scsi driver.
hdd: attached ide-scsi driver.
caro@reno:~$

FelixDzerzhinsky
01-10-2004, 02:58 AM
Ran discover after apt-get and rebooted. Tried k3b and:

System
-----------------------
K3b Version: 0.9
KDE Version: 3.1.4
QT Version: 3.2.1

cdrdao
-----------------------
ERROR: Expecting only one toc-file.
Cdrdao version 1.1.7 - (C) Andreas Mueller <andreas@daneb.de>
SCSI interface library - (C) Joerg Schilling
Paranoia DAE library - (C) Monty
Check http://cdrdao.sourceforge.net/drives.html#dt for current driver tables.
Usage: /usr/bin/cdrdao read-cd [options] toc-file
options:
--device <x,y,z> - sets SCSI device of CD-ROM reader
--driver <id> - force usage of specified driver for source device
--datafile <filename> - name of data file placed in toc-file
--session # - select session
--fast-toc - do not extract pre-gaps and index marks
--read-raw - read raw data sectors (including L-EC data)
--read-subchan <mode> - defines sub-channel reading mode
<mode> = rw | rw_raw
--tao-source - indicate that source CD was written in TAO mode
--tao-source-adjust # - # of link blocks for TAO source CDs (def. 2)
--paranoia-mode # - DAE paranoia mode (0..3)
--with-cddb - retrieve CDDB CD-TEXT data while copying
--cddb-servers <list> - sets space separated list of CDDB servers
--cddb-timeout # - timeout in seconds for CDDB server communication
--cddb-directory <path> - path to local CDDB directory where fetched
CDDB records will be stored
--force - force execution of operation
-v # - sets verbose level

cdrdao comand:
-----------------------
/usr/bin/cdrdao read-cd --device 0,0,0 --driver generic-mmc --paranoia-mode 3 auto -n -v 2 --eject --remote 23 --datafile /tmp/kde-caro/k3b_0.img /tmp/kde-caro/k3b_0.toc

FelixDzerzhinsky
01-10-2004, 03:43 AM
Good news is I can copy cd's at the command line. I will tackle k3b in the morning. Thanks to Stephen and tech2k and others on irc #knoppix

ivansv
01-10-2004, 06:16 PM
had the same problems, see my post on the general side. the answer came in the most unusual way- while trying to check on xine. do a xine-check at the cmd line the answers will show the linkage of the cdrom, though not the floppy but it might give u a clue. good luck.