LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 06-27-2009, 02:26 PM   #1
skalman93
LQ Newbie
 
Registered: Jan 2009
Posts: 17

Rep: Reputation: 0
No dvd-drive in Gentoo


Hi!
I'm dualbooting my gentoo install with Windows xp. If i boot windows and pop a disk in my dvd drive it all works, but if I do the same thing in gentoo nothing happens. I have installed HAL and it automounts usb-sticks and so on. Please help.

Skalman93
 
Old 06-28-2009, 08:45 AM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
give the user plugdev,cdrom,disk permissions, while your doing that give them audio and what ever else you want to give them.
 
Old 06-28-2009, 09:32 AM   #3
d2_racing
Gentoo support team
 
Registered: May 2009
Location: Ste-Foy,Québec,Canada
Distribution: Gentoo
Posts: 115

Rep: Reputation: 17
Also, can you post this :

Code:
# emerge --info
# groups your_user
 
Old 06-28-2009, 02:43 PM   #4
NathanZachary
Gentoo support team
 
Registered: May 2009
Posts: 21

Rep: Reputation: 17
Please also post the contents of /etc/fstab. What desktop environment or file manager are you using? Does the device show up but can't be mounted, or does it not show up in your file manager at all?
 
Old 06-28-2009, 03:24 PM   #5
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
You might want to confirm that you have correctly configured the cdrom in the kernel or initrd, as there are sometimes problems if e.g., the ide controller is loaded prior to the cdrom controller.
 
Old 06-28-2009, 07:17 PM   #6
d2_racing
Gentoo support team
 
Registered: May 2009
Location: Ste-Foy,Québec,Canada
Distribution: Gentoo
Posts: 115

Rep: Reputation: 17
You should post this too :

Code:
# lspci -kmv
 
Old 06-29-2009, 09:25 AM   #7
skalman93
LQ Newbie
 
Registered: Jan 2009
Posts: 17

Original Poster
Rep: Reputation: 0
Okej, I have added my user to the plugdev and the disk group.
persson@Tarffull ~ $ groups persson
Code:
disk wheel audio cdrom video usb plugdev persson
persson@Tarffull ~ $ emerge --info
Code:
Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r10 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r10-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-glibc2.0
Timestamp of tree: Thu, 25 Jun 2009 19:45:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo http://mirror.mdfnet.se/mirror/gentoo ftp://mirror.mdfnet.se/gentoo http://ftp.ing.umu.se/linux/gentoo/ ftp://ftp.ing.umu.se/linux/gentoo/ http://ftp.ds.karen.hj.se/gentoo/ ftp://ftp.ds.karen.hj.se/gentoo/ http://ftp.df.lth.se/pub/gentoo/ ftp://ftp.df.lth.se/pub/gentoo/ "
LANG="C"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa berkdb bzip2 cdr cli cracklib crypt css cups dbus divx dri dvb dvd dvdr dvdread emerald encode firefox flac fortran fuse gdbm gif glitz gnome gnome-keyring gpm gstreamer gtk gzip hal iconv iee1394 ipv6 isdnlog jpeg jpeg2k lcms mad midi mmx mmxext mov mp2 mp3 mpeg mudflap nautilus ncurses networkmanager nls nptl nptlonly ogg opengl openmp pam pcre perl png pppd python rar readline reflection session spl sse sse2 ssl ssse3 svg svn sysfs tcpd theora tiff truetype unicode usb vcd vorbis win32codecs wmf x86 xcb xorg xulrunnerdvi xv xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Here is the content of my /etc/fstab
Code:
/dev/sda1               /mnt/sda1       ntfs-3g         default      0 0
/dev/sdb1               /mnt/sdb1       ntfs-3g         default      0 0
/dev/sda6               /boot           ext2            noauto,noatime1 2
/dev/sda7               /               ext3            noatime      0 1
/dev/sda5               none            swap            sw           0 0
 
Old 06-29-2009, 09:32 AM   #8
skalman93
LQ Newbie
 
Registered: Jan 2009
Posts: 17

Original Poster
Rep: Reputation: 0
Sorry, double post.

Last edited by skalman93; 06-29-2009 at 09:37 AM.
 
Old 06-29-2009, 04:00 PM   #9
NeddySeagoon
Gentoo support team
 
Registered: May 2009
Location: 56N 3W
Distribution: Gentoo
Posts: 178

Rep: Reputation: 41
Drakeo,

Never put users in the disk group. That gives them raw hdd access, so they can bypass all the filesystem security.
e.g. they can steal your /etc/shadow or change anything they like.
 
Old 06-29-2009, 06:19 PM   #10
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Quote:
Never put users in the disk group. That gives them raw hdd access, so they can bypass all the filesystem security.
e.g. they can steal your /etc/shadow or change anything they like.
not really they just can go there it is still set by permission per-file I can look at a root folder on any drive but that does not mean you can access the folder.
If you feel real strong about it then ok your right. But my stuff is read and write protected. my /etc/shadow is write protected. good luck Been doing this a long time.

Linux is a server and that is what it's about letting user go places but not be able to read or change things you do not want changed.
Look at admin we have to allow people to access areas of the system for certain data.
ssh does not even allow root to see it. but root can change it. only that user can go to the disk but he or she can't see it or access it. Why even have read and write protection if you do not uses it.
So go to /etc/shadow as a user and try to open the file with an editor trust me if your not root it is not going to happen. unless you gave the user root permission.
for the sake of not arguing your write if you want to be.
Disk is a device and the new kernel and hal do permission by device then by access then by reed then by write.

Last edited by Drakeo; 06-29-2009 at 06:27 PM.
 
Old 06-29-2009, 07:32 PM   #11
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
As I said before, you might want to make sure the cdrom block device exists.
 
Old 06-30-2009, 02:39 PM   #12
NeddySeagoon
Gentoo support team
 
Registered: May 2009
Location: 56N 3W
Distribution: Gentoo
Posts: 178

Rep: Reputation: 41
Drakeo,

Code:
hexedit /dev/sda
gives me read and write access to all of sda if I am in the disk group. Similar commands work for partitions. True, filesystem permissions still work, if I elect to use the filesystem but my point was that any low level command that does not use the filesystem is open to abuse.

Consider too
Code:
dd if=/dev/urandom of=/dev/sda count=1 bs=446
that wipes out grub stage1 but leaves your partition table intact.
 
Old 07-01-2009, 09:25 PM   #13
NathanZachary
Gentoo support team
 
Registered: May 2009
Posts: 21

Rep: Reputation: 17
While it might not be necessary to have an entry in your fstab for optical drives, I have this line in mine:

Code:
/dev/cdrom              /mnt/cdrom      auto            noauto,user,ro  0 0
Try adding something like that to yours, and see if that helps out. Also, I don't think you mentioned what DE or file manager you are using to access the optical drive. That information will further help us assist you with the problem.
 
Old 07-01-2009, 10:36 PM   #14
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
/etc/fstab
Quote:
/dev/cdrom /media/cdrom auto umask=0,users,iocharset=utf8,noauto,ro,exec 0 0
this makes it load and point to file /media/cdrom

Quote:
NeddySeagoon
Like I said you really should not use root I will. and your right ok lets help this man see his cdrom. Hexedit is a program only used by root on my systems. Your right do not worry.
I could care less about grub with the same dd comand I put it right back on.
Quote:
# here '/boot/grub/mbr.sda.3345'. You can restore it like this.
# dd if=mbr.sda.3345 of=/dev/sda bs=512 count=1
if you allow your user to run admin programs that is up to you.

Last edited by Drakeo; 07-01-2009 at 10:38 PM.
 
Old 07-02-2009, 03:41 PM   #15
NeddySeagoon
Gentoo support team
 
Registered: May 2009
Location: 56N 3W
Distribution: Gentoo
Posts: 178

Rep: Reputation: 41
Drakeo,

I agree with both your points.

skalman93,

Do you have the file /dev/sr0 ?
That will be your CDROM. udev should correctly make the /dev/cdrom symlinks no matter what your CDROM device file is called.

Do you have /dev/cdrom in cyan and what does ls -l /dev/cdrom point to.

If you have changed drivers from the old PATA to the new SCSI cdrom driver, your CD may be renumbered, do your have any devices shown by the
Code:
ls -l /dev/cdrom?
command?
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Newly installed DVD drive won't boot perfectly good FC8 DVD cwlj Fedora - Installation 8 04-12-2008 11:37 PM
xp/gentoo dual boot , gentoo on usb external hard drive gentoo2006 Linux - Laptop and Netbook 2 09-16-2007 11:55 AM
DVD Drive Weirdness - Debian (possibly grub) makes my dvd drive disappear Daws Debian 8 08-26-2007 04:50 PM
which DVD player can play DVD from hard drive *and* support DVD Menu ? tho_x_tran Linux - Software 16 11-16-2006 02:00 PM
dvd-rom drive won't play movies and dvd burner won't record calble Linux - Hardware 1 08-09-2004 07:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 11:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration