automounting problem..((DVD n USB)

Status
Not open for further replies.
i m using opensuse 11 and from yesterday i m facing this problem...my DVD and usb are not mounted automatically...
when i insert DVD or pen drive they are not automatically mounted....
this is my fstab...(look like somethings wrong)

(in root)
linux-ziap:/mnt # /etc/fstab
bash: /etc/fstab: Permission denied


linux-ziap:/mnt # sh /etc/fstab
/etc/fstab: line 1: /dev/disk/by-id/scsi-SATA_Hitachi_HTS5416_SB2204SGKAHBHE-part6: Permission denied
/etc/fstab: line 2: /dev/disk/by-id/scsi-SATA_Hitachi_HTS5416_SB2204SGKAHBHE-part7: Permission denied
/etc/fstab: line 3: /dev/disk/by-id/scsi-SATA_Hitachi_HTS5416_SB2204SGKAHBHE-part1: Permission denied
/etc/fstab: line 4: /dev/disk/by-id/scsi-SATA_Hitachi_HTS5416_SB2204SGKAHBHE-part5: Permission denied
/etc/fstab: line 5: proc: command not found
/etc/fstab: line 6: sysfs: command not found
debugfs 1.40.8 (13-Mar-2008)
/sys/kernel/debug: Attempt to read block from filesystem resulted in short read while opening filesystem
debugfs:

linux-ziap:/mnt # hwinfo --cdrom
14: SCSI 100.0: 10602 CD-ROM (DVD)
[Created at block.238]
Unique ID: KD9E.LOUpQL0cx8A
Parent ID: w7Y8.1ythAAgXhH9
SysFS ID: /class/block/sr0
SysFS BusID: 1:0:0:0
SysFS Device Link: /devices/pci0000:00/0000:00:1f.2/host1/target1:0:0/1:0:0:0
Hardware Class: cdrom
Model: "Optiarc DVD RW AD-7530B"
Vendor: "Optiarc"
Device: "DVD RW AD-7530B"
Revision: "NH02"
Driver: "ata_piix", "sr"
Driver Modules: "ata_piix"
Device File: /dev/sr0 (/dev/sg1)
Device Files: /dev/sr0, /dev/scd0, /dev/disk/by-path/pci-0000:00:1f.2-scsi-1:0:0:0, /dev/cdrom, /dev/cdrw, /dev/dvd, /dev/dvdrw
Device Number: block 11:0 (char 21:1)
Features: DVD
Config Status: cfg=yes, avail=yes, need=no, active=unknown
Attached to: #3 (IDE interface)
Drive Speed: 62
Volume ID: "SU1100.001"
Application: "openSUSE-DVD-11.0#0"
Publisher: "Novell, Inc."
Preparer: "CD-Team, *bugs.opensuse.org/"
Creation date: "2008061017282100"
El Torito info: platform 0, bootable
Boot Catalog: at sector 0x0235
Id String: "Novell, Inc."
Media: none starting at sector 0x0236
Load: 2048 bytes

linux-ziap:/mnt #
hwinfo --usb
01: SCSI 600.0: 10600 Disk
[Created at block.234]
Unique ID: FKGF.UHL6adcf5V1
SysFS ID: /class/block/sdb
SysFS BusID: 6:0:0:0
SysFS Device Link: /devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host6/target6:0:0/6:0:0:0
Hardware Class: disk
Model: "Kingston DataTraveler 2.0"
Vendor: usb 0x0951 "Kingston"
Device: usb 0x1607 "DataTraveler 2.0"
Revision: "1.00"
Serial ID: "899801162008011514250FAD"
Driver: "usb-storage", "sd"
Driver Modules: "usb_storage"
Device File: /dev/sdb (/dev/sg2)
Device Files: /dev/sdb, /dev/disk/by-id/usb-Kingston_DataTraveler_2.0_899801162008011514250FAD-0:0, /dev/disk/by-path/pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:0
Device Number: block 8:16-8:31 (char 21:2)
Geometry (Logical): CHS 1017/125/62
Size: 7888896 sectors a 512 bytes
Speed: 480 Mbps
Module Alias: "usb:v0951p1607d0200dc00dsc00dp00ic08isc06ip50"
Driver Info #0:
Driver Status: usb_storage is active
Driver Activation Cmd: "modprobe usb_storage"
Config Status: cfg=new, avail=yes, need=no, active=u
 

Rahim

Married!
Well the /etc/fstab file is only accessed through "root" as it is a system file. Enter the following commands to read its content:
Open a Terminal/Konsole and enter su and then type the root password. Then enter cat /etc/fstab and this will display its contents,which you should post here.
 
OP
siddharthmakwana

siddharthmakwana

Broken In
linux-ziap:~/Desktop # cat /etc/fstab
/dev/disk/by-id/scsi-SATA_Hitachi_HTS5416_SB2204SGKAHBHE-part6 swap swap defaults 0 0
/dev/disk/by-id/scsi-SATA_Hitachi_HTS5416_SB2204SGKAHBHE-part7 / ext3 acl,user_xattr 1 1
/dev/disk/by-id/scsi-SATA_Hitachi_HTS5416_SB2204SGKAHBHE-part1 /Windows/C: ntfs-3g user,users,gid=users,umask=0002,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/scsi-SATA_Hitachi_HTS5416_SB2204SGKAHBHE-part5 /Windows/D: ntfs-3g user,users,gid=users,umask=0002,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
 

GigaHeartz

Off the beaten track
there is no entry for cdrom in your fstab.. is this the default fstab or you tinkered with it some time back..
 

Rahim

Married!
My openSUSE 11.1's fstab looks like this and it too doesnt have any entries for cdrom drive :shock: but the cd/dvd mounts alright.
/dev/sda10 swap swap defaults 0 0
/dev/sda7 / ext3 acl,user_xattr 1 1
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
/dev/sda1 /media/winxp ntfs-3g defaults 0 0
/dev/sda2 /media/lin ext3 defaults 0 0
/dev/sda3 /media/home ext3 defaults 0 0
/dev/sda5 /media/ubuntu ext3 defaults 0 0
/dev/sda6 /media/granular ext3 defaults 0 0
/dev/sda8 /media/kubuntu ext3 defaults 0 0
/dev/sda9 /media/arch ext3 defaults 0 0
/dev/sdb1 /media/backup ntfs-3g defaults 0 0
/dev/sdb2 /media/dump ext3 defaults 0 0
/dev/sdb3 /media/multi ntfs-3g defaults 0 0
/dev/sdb5 /media/rest ext3 defaults 0 0
 

Liverpool_fan

Sami Hyypiä, LFC legend
^ ^ ^
IIRC It's HAL which mounts CD/DVD, USB etc. in Linux.

@OP:
Is HAL running?

First post output of:
Code:
ps aux | grep hald
Code:
ps -C hald
(both do the same literally but let's see)

Check this out:
*en.opensuse.org/HAL
 
Last edited:

GigaHeartz

Off the beaten track
usbfs /proc/bus/usb usbfs noauto 0 0

add this line to fstab.. u will get your usb drive up and running..
 
OP
siddharthmakwana

siddharthmakwana

Broken In
^ ^ ^
IIRC It's HAL which mounts CD/DVD, USB etc. in Linux.

@OP:
Is HAL running?

First post output of:
Code:
ps aux | grep hald
Code:
ps -C hald
(both do the same literally but let's see)

Check this out:
*en.opensuse.org/HAL


linux-ziap:~/Desktop # ps aux | grep hald
root 7273 0.0 0.0 3064 716 pts/1 R+ 23:14 0:00 grep hald
linux-ziap:~/Desktop # ps -C hald
PID TTY TIME CMD
 

Liverpool_fan

Sami Hyypiä, LFC legend
This means HAL is NOT running. :|

Try starting/restarting HAL.
Code:
/etc/init.d/hal restart
Code:
/etc/init.d/hal start

Then insert a USB and check whether it works.
 
OP
siddharthmakwana

siddharthmakwana

Broken In
This means HAL is NOT running. :|

Try starting/restarting HAL.
Code:
/etc/init.d/hal restart
Code:
/etc/init.d/hal start
Then insert a USB and check whether it works.

is HAL missing...?

linux-ziap:/etc/init.d # hal restart
bash: hal: command not found
linux-ziap:/etc/init.d # hal start
bash: hal: command not found
linux-ziap:/etc/init.d # ls -l
total 776
-rwxr-xr-x 1 root root 3409 2008-06-07 07:52 aaeventd
-rwxr--r-- 1 root root 3734 2008-06-07 01:34 acpid
-rwxr-xr-x 1 root root 5311 2008-06-07 02:51 alsasound
-rwxr--r-- 1 root root 10132 2008-06-07 05:17 apache2
-rwxr-xr-- 1 root root 4328 2008-06-07 05:14 arpwatch
-rwxr-xr-x 1 root root 3955 2008-06-07 02:44 atd
-rwxr-xr-x 1 root root 6725 2008-06-07 01:08 auditd
-rwxr-xr-x 1 root root 4816 2008-06-07 04:29 autofs
-rwxr-xr-x 1 root root 2967 2007-05-21 15:56 autoyast
-rwxr-xr-x 1 root root 1410 2008-06-07 06:42 avahi-daemon
-rwxr-xr-x 1 root root 1337 2008-06-07 06:42 avahi-dnsconfd
-rwxr-xr-x 1 root root 3572 2008-06-07 03:52 bgpd
-rwxr-xr-x 1 root root 4438 2008-06-07 09:21 bluetooth
-rwxr-xr-x 1 root root 7373 2008-03-18 18:41 boot
-rwxr-xr-x 1 root root 2843 2008-06-07 07:52 boot.apparmor
-rwxr-xr-x 1 root root 1222 2008-06-07 03:45 boot.blktrace
-rwxr-xr-x 1 root root 2943 2008-05-07 19:03 boot.cleanup
-rwxr-xr-x 1 root root 3349 2008-05-20 12:55 boot.clock
-rwxr-xr-x 1 root root 2427 2008-06-07 02:09 boot.crypto
-rwxr-xr-x 1 root root 2327 2008-06-07 02:09 boot.crypto-early
-rwxr-xr-x 1 root root 1995 2008-06-07 01:45 boot.cycle
drwxr-xr-x 2 root root 4096 2009-05-12 18:08 boot.d
-rwxr--r-- 1 root root 778 2008-06-07 01:09 boot.device-mapper
-rwxr--r-- 1 root root 1228 2008-06-07 01:29 boot.dmraid
-rwxr-xr-x 1 root root 1590 2008-06-07 02:40 boot.fuse
-rwxr-xr-x 1 root root 1180 2008-04-18 17:17 boot.getclock
-rwxr-xr-x 1 root root 3427 2008-05-07 19:03 boot.ipconfig
-rwxr-xr-x 1 root root 1723 2007-06-20 15:27 boot.klog
-rwxr-xr-x 1 root root 1681 2007-08-12 00:07 boot.ldconfig
-rwxr-xr-x 1 root root 1003 2007-06-20 15:27 boot.loadmodules
-rwxr-xr-x 1 root root 395 2009-05-02 20:18 boot.local
-rwxr-xr-x 1 root root 8057 2008-06-04 22:44 boot.localfs
-rwxr-xr-x 1 root root 1583 2007-10-16 04:25 boot.localnet
-rwxr-xr-x 1 root root 1370 2008-06-07 01:53 boot.lvm
-rwxr-xr-x 1 root root 5476 2008-06-07 02:45 boot.md
-rwxr-xr-x 1 root root 1631 2007-09-14 18:47 boot.proc
-rwxr-xr-x 1 root root 4518 2008-06-07 03:05 boot.quota
-rwxr-xr-x 1 root root 4935 2008-04-07 14:42 boot.rootfsck
-rwxr-xr-x 1 root root 1955 2007-06-20 15:25 boot.sched
-rwxr-xr-x 1 root root 1517 2008-06-07 04:55 boot.scpm
-rwxr-xr-x 1 root root 2901 2008-05-09 17:48 boot.swap
-rwxr-xr-x 1 root root 1040 2008-06-07 01:10 boot.sysctl
-rwxr-xr-x 1 root root 2073 2008-06-07 01:09 boot.udev
-rwxr-xr-x 1 root root 763 2008-06-07 01:09 boot.udev_retry
-rwxr-xr-x 1 root root 1406 2008-06-07 01:36 boot.videobios
-rwxr-xr-x 1 root root 1440 2008-06-07 05:51 consolekit
-rwxr--r-- 1 root root 4294 2008-06-07 02:44 cron
-rwxr-xr-x 1 root root 4858 2008-06-07 04:14 cups
-rwxr-xr-x 1 root root 3153 2008-06-07 02:50 dbus
-rw-r--r-- 1 root root 1698 2009-05-14 00:28 .depend.boot
-rw-r--r-- 1 root root 3885 2009-05-14 00:28 .depend.start
-rw-r--r-- 1 root root 2716 2009-05-14 00:28 .depend.stop
-rwxr-xr-x 1 root root 5116 2008-06-07 01:36 dvb
-rwxr-xr-- 1 root root 1776 2008-06-07 01:07 earlysyslog
-rwxr-xr-x 1 root root 2934 2008-06-10 17:02 earlyxdm
-rwxr-xr-x 1 root root 2648 2008-06-07 09:16 fb-server
-rwxr-xr-x 1 root root 5402 2008-06-07 02:25 fbset
-rwxr-xr-x 1 root root 3291 2008-06-07 01:43 festival
-rwxr-xr-x 1 root root 4310 2008-06-07 01:30 gpm
-rwxr-xr-x 1 root root 6416 2008-06-07 06:02 haldaemon
-rwxr-xr-x 1 root root 6053 2008-05-09 02:46 halt
-rwxr--r-- 1 root root 360 2008-06-10 16:53 halt.local
-rwxr-xr-x 1 root root 1160 2009-05-12 19:27 hotplug
-rwxr-xr-x 1 root root 3784 2008-06-07 01:22 icecream
-rwxr-xr-x 1 root root 2524 2008-06-07 06:41 irda
-rwxr-xr-x 1 root root 4397 2008-06-07 06:22 ivman
-rwxr-xr-x 1 root root 9851 2008-06-07 03:43 java.binfmt_misc
-rwxr-xr-x 1 root root 2911 2008-06-07 02:51 joystick
-rwxr-xr-x 1 root root 13462 2008-06-07 02:24 kbd
-rwxr-xr-x 1 root root 7274 2008-06-07 04:41 lirc
-rwxr-xr-x 1 root root 3077 2008-06-07 05:45 lm_sensors
-rwxr-xr-x 1 root root 3990 2008-06-07 02:45 mdadmd
-rwxr-xr-x 1 root root 1155 2008-06-07 01:34 microcode.ctl
-rwxr-xr-x 1 root root 11496 2008-06-07 04:40 mysql
-rwxr-xr-x 1 root root 7323 2008-06-07 05:44 nagios
-rwxr-xr-x 1 root root 23733 2008-06-07 01:38 network
-rwxr--r-- 1 root root 6056 2008-06-07 04:20 nfs
-rwxr-xr-- 1 root root 2653 2007-11-13 17:18 nmb
-rwxr-xr-x 1 root root 3252 2008-06-07 00:17 nscd
-rwxr-xr-x 1 root root 5931 2008-06-07 04:23 ntp
-rwxr-xr-x 1 root root 2047 2008-06-07 06:28 openct
-rwxr-xr-x 1 root root 3597 2008-06-07 03:52 ospf6d
-rwxr-xr-x 1 root root 3576 2008-06-07 03:52 ospfd
-rwxr-xr-x 1 root root 1588 2008-06-07 06:13 pcscd
-rwxr--r-- 1 root root 3667 2008-06-07 01:31 portmap
-rwxr-xr-x 1 root root 5295 2008-06-07 04:55 postfix
-rwxr--r-- 1 root root 1335 2008-06-07 01:20 powerd
-rwxr-xr-x 1 root root 2390 2003-09-01 16:41 powerfail
-rwxr-xr-x 1 root root 7496 2008-06-07 05:56 powersaved
-rwxr-xr-x 1 root root 1773 2008-05-07 19:03 random
-rwxr--r-- 1 root root 1241 2008-06-07 02:45 raw
-rwxr-xr-x 1 root root 9361 2008-03-18 18:41 rc
drwxr-xr-x 2 root root 4096 2009-05-12 18:08 rc0.d
drwxr-xr-x 2 root root 4096 2009-05-12 18:08 rc1.d
drwxr-xr-x 2 root root 4096 2009-05-13 00:17 rc2.d
drwxr-xr-x 2 root root 4096 2009-05-13 00:17 rc3.d
drwxr-xr-x 2 root root 4096 2009-05-11 21:05 rc4.d
drwxr-xr-x 2 root root 4096 2009-05-13 00:17 rc5.d
drwxr-xr-x 2 root root 4096 2009-05-14 00:28 rc6.d
drwxr-xr-x 2 root root 4096 2009-05-11 21:05 rcS.d
-rw-r--r-- 1 root root 7827 2008-06-07 01:23 README
lrwxrwxrwx 1 root root 4 2009-05-02 20:13 reboot -> halt
-rwxr-xr-x 1 root root 3861 2008-06-07 03:01 resmgr
-rwxr-xr-x 1 root root 3601 2008-06-07 03:52 ripd
-rwxr-xr-x 1 root root 3568 2008-06-07 03:52 ripngd
-rwxr-xr-x 1 root root 3771 2008-06-07 04:13 rpasswdd
-rwxr-xr-x 1 root root 2486 2008-06-06 23:58 rpmconfigcheck
-rwxr-xr-x 1 root root 3867 2008-06-07 07:31 rsyncd
-rwxr-xr-x 1 root root 4056 2008-06-07 04:56 saslauthd
-rwxr-xr-x 1 root root 9584 2008-06-07 01:11 setserial
-rwxr-xr-x 1 root root 1180 2003-09-01 16:41 single
-rwxr-xr-x 1 root root 10640 2007-06-20 15:28 skeleton
-rwxr-xr-x 1 root root 12733 2008-01-11 16:19 skeleton.compat
-rwxr-xr-x 1 root root 2895 2008-06-08 17:41 slmodemd
-rwxr-xr-x 1 root root 15087 2008-06-07 02:40 smartd
-rwxr-xr-- 1 root root 2804 2007-11-13 17:18 smb
-rwxr-xr-- 1 root root 5163 2007-11-13 17:18 smbfs
-rwxr-xr-x 1 root root 3702 2008-06-07 03:34 smpppd
-rwxr----- 1 root root 5115 2008-06-07 02:42 spamd
-rwxr-xr-x 1 root root 3042 2008-06-07 02:43 splash
-rwxr-xr-x 1 root root 490 2008-06-07 02:43 splash_early
-rwxr-xr-x 1 root root 3878 2007-08-21 08:21 sshd
-rwxr-xr-x 1 root root 1006 2008-06-07 03:45 stopblktrace
-rwxr-xr-x 1 root root 1223 2008-06-07 01:21 SuSEfirewall2_init
-rwxr-xr-x 1 root root 1563 2008-06-07 01:21 SuSEfirewall2_setup
-rwxr-xr-- 1 root root 5485 2007-06-20 17:43 svnserve
-rwxr-xr-- 1 root root 4336 2008-06-07 01:07 syslog
-rwxr-xr-x 1 root root 8624 2008-06-07 21:23 tomcat6
-rwxr--r-- 1 root root 1818 2008-06-07 01:32 uuidd
-rwxr-xr-x 1 root root 1020 2008-06-07 03:45 waitfornm
-rwxr-xr-x 1 root root 6835 2008-06-07 04:45 xdm
-rwxr-xr-x 1 root root 2092 2006-09-11 20:59 xfs
-rwxr-xr-x 1 root root 4315 2008-06-07 01:30 xinetd
-rwxr-xr-x 1 root root 5331 2008-06-07 05:56 ypbind
-rwxr-xr-x 1 root root 3553 2008-06-07 03:52 zebra
 

Rahim

Married!
^Are you giving those commands with "root" privilege?
Code:
[B]sudo[/B] /etc/init.d/hal restart
sudo gives root privileges to normal user. If sudo doesnt work like if it says the user is not in sudoers list ,then enter su in the terminal and give the root password and then give that command to restart hal.
 
OP
siddharthmakwana

siddharthmakwana

Broken In
^Are you giving those commands with "root" privilege?
Code:
[B]sudo[/B] /etc/init.d/hal restart
sudo gives root privileges to normal user. If sudo doesnt work like if it says the user is not in sudoers list ,then enter su in the terminal and give the root password and then give that command to restart hal.

hey buddy....
linux-ziap:/etc/init.d # <<-- this # is used to specify root login in linux
 
OP
siddharthmakwana

siddharthmakwana

Broken In
HAL is there.

Try again to check it's running?


If NOT then try:





Then try again?


Also post output of:

i tried
/etc/init.d/haldaemon restart
/etc/init.d/haldaemon start


linux-ziap:/etc/init.d # lshal -m
Could not initialise connection to hald.
Normally this means the HAL daemon (hald) is not running or not ready.

linux-ziap:/etc/init.d #
ps -C haldaemon
PID TTY TIME CMD
 
Status
Not open for further replies.
Top Bottom