Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Debian Linux Help
Reload this Page Help auto mounting cdrom in GNOME
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Debian Linux Help Discussions related to Debian GNU/Linux.

Reply
 
Thread Tools Display Modes
Old 12-27-2007   #1 (permalink)
Just Joined!
 
Join Date: Dec 2007
Posts: 3
Help auto mounting cdrom in GNOME

I wanted to securely delete all files from my usb device, so I did:

# srm -d -r -v /media/usbdisk/.* /media/usbdisk/*

I discovered that it also deleted everything in /media
I know stupid of me to be root. However, my problem was to get my cdrom working again. So after a while, I "fixed" it. Then I discovered that Gnome no longer is able to view my cdrom. After experimenting, I discovered that the user valerij (myself) is unable to view it however:

$ groups
valerij dialout cdrom floppy audio video plugdev netdev powerdev

$ mount
/dev/hda on /media/cdrom0 type iso9660 (ro,noexec,nosuid,nodev,user=valerij)

$ umount /media/cdrom0

$ mount /media/cdrom0
mount mount: block device /dev/hda is write-protected, mounting read-only

$ mount
/dev/hda on /media/cdrom0 type iso9660 (ro,noexec,nosuid,nodev,user=valerij)

$ cd /cdrom
bash: cd: /cdrom: Permission denied

$ cd /media/cdrom
bash: cd: /media/cdrom: Permission denied

$ cd /media/cdrom0
bash: cd: /media/cdrom0: Permission denied

# cd /media/cdrom

# ls
??? Alexi Laiho - Special Guitar Lecture.avi Ozzy Osbourne
???? ?????????? - ??????.avi Queen - The Show Must Go On.mpg
?????? LOTR Scorpions
??????? Metallica Shitparad___gruppa_Kuvalda.avi
???????? ?????? M+M_Video.wmv Sting - Shape of my heart.mpg
???????? ????????? ?????? ?????? - ??????? ?????.mpg Within Temptation
????????? 13.avi ?????? ''??????''.mpg
???? (?????????-?????? 5-0).avi Nightwish

# ls /media/ -h -l -a
total 18K
drwx------ 5 root root 4.0K 2007-12-24 23:40 .
drwxr-xr-x 22 root root 4.0K 2007-12-24 23:40 ..
lrwxrwxrwx 1 root root 7 2007-12-24 23:40 cdrom -> cdrom0/
dr-xr-xr-x 1 root root 2.0K 2007-05-29 22:42 cdrom0
drwxr-xr-x 2 root root 4.0K 2007-12-24 23:33 Debian 4.0 r0 i386 Bin-1
---xr-s--T 1 root root 0 2007-12-24 22:00 .hal-mtab-lock
drwxr-xr-x 2 root root 4.0K 2007-12-24 00:55 usbdisk

# ls / -h -l -a
total 104K
drwxr-xr-x 22 root root 4.0K 2007-12-24 23:40 .
drwxr-xr-x 22 root root 4.0K 2007-12-24 23:40 ..
drwxr-xr-x 2 root root 4.0K 2007-12-20 01:47 bin
drwxr-xr-x 3 root root 4.0K 2007-12-20 01:49 boot
lrwxrwxrwx 1 root root 12 2007-12-24 23:40 cdrom -> /media/cdrom
drwxr-xr-x 15 root root 4.3K 2007-12-24 23:44 dev
drwxr-xr-x 125 root root 12K 2007-12-24 23:57 etc
drwxr-xr-x 3 root root 4.0K 2007-12-20 01:35 home
drwxr-xr-x 2 root root 4.0K 2007-12-20 01:23 initrd
lrwxrwxrwx 1 root root 28 2007-12-20 01:49 initrd.img -> boot/initrd.img-2.6.18-5-686
lrwxrwxrwx 1 root root 28 2007-12-20 01:24 initrd.img.old -> boot/initrd.img- 2.6.18-4-686
drwxr-xr-x 15 root root 12K 2007-12-20 01:47 lib
drwx------ 2 root root 16K 2007-12-20 01:21 lost+found
drwx------ 5 root root 4.0K 2007-12-24 23:40 media
drwxr-xr-x 2 root root 4.0K 2006-10-28 17:06 mnt
drwxr-xr-x 3 root root 4.0K 2007-12-20 22:12 opt
dr-xr-xr-x 128 root root 0 2007-12-24 23:44 proc
drwxr-xr-x 13 root root 4.0K 2007-12-24 23:50 root
drwxr-xr-x 2 root root 4.0K 2007-12-20 01:47 sbin
drwxr-xr-x 2 root root 4.0K 2007-03-08 00:56 selinux
drwxr-xr-x 2 root root 4.0K 2007-12-20 01:23 srv
drwxr-xr-x 11 root root 0 2007-12-24 23:44 sys
drwxrwxrwt 12 root root 4.0K 2007-12-24 23:53 tmp
drwxr-xr-x 12 root root 4.0K 2007-12-22 01:09 usr
drwxr-xr-x 15 root root 4.0K 2007-12-24 01:57 var
lrwxrwxrwx 1 root root 25 2007-12-20 01:49 vmlinuz -> boot/vmlinuz-2.6.18-5-686
lrwxrwxrwx 1 root root 25 2007-12-20 01:24 vmlinuz.old -> boot/vmlinuz-2.6.18-4-686

# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/sda3 / ext3 defaults,errors=remount-ro 0 1
/dev/sda4 none swap sw 0 0
/dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0
valerij is offline   Reply With Quote
Old 12-28-2007   #2 (permalink)
Linux Newbie
 
Tutku's Avatar
 
Join Date: Jul 2007
Location: Izmir / Turkey
Posts: 169
Send a message via ICQ to Tutku
have you ever installed hal and dbus? these packages detect and automount your hardware like usb or dvd/cd
Tutku is offline   Reply With Quote
Old 12-28-2007   #3 (permalink)
Just Joined!
 
Join Date: Dec 2007
Posts: 3
You see, everything was working as it should be, until I wiped /media clean. Yes hal; and dbus are installed. The problem is that I do not know how to restore the /media folder to the original state (I have tried everything, and recreated the folders as stated in debian doc pages (as can be seen from my ls command)).
valerij is offline   Reply With Quote
Old 12-28-2007   #4 (permalink)
Just Joined!
 
Join Date: Dec 2007
Posts: 3
Silly me. I have just noticed:

drwx------ 5 root root 4.0K 2007-12-24 23:40 media

How should I reset it?

# chmod a+rwx /media

or something less privileged?

Thanks
valerij is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
 

Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to disabe auto login newbeewortel SuSE Linux Help 2 09-14-2006 10:27 PM
Mounting Cdrom Problems fxfvd Debian Linux Help 7 07-16-2006 10:23 PM
Where the hell did my GNOME go??? afroguy013 Redhat / Fedora Linux Help 5 04-29-2006 02:41 AM
cdrom mounting issue yowwww Installation 29 07-19-2003 02:16 AM
CDROM Manual Mounting Help Fonso Linux Newbie 4 05-23-2003 02:35 AM

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 04:38 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0