On Sun, 2 Sep 2001, Peter Christensen wrote: > I'm still learning about the basics of Linux, so please excuse a very > basic question: If I want to access a CD do I need to add a line to > /etc/fstab: > > /dev/cdrom /cd iso9660 ro,user,noauto,unhide > > and then under superuser type: > > mount -t iso9660 /dev/cdrom /cdrom
You don't need to be root to mount a CD, the user in your fstab line says that. > to replace it. Now that I've reloaded Linux I can't edit /etc/fstab > with emacs. Emacs works OK with a normal signon, but under SU I get the > following messages: > > Xlib: connection to ":0.0" refused by server > Xlib: Invalid MIT-MAGIC-COOKIE-1 key > emacs: Cannot connect to X server :0.0 > check the display environment variable or use "-d" > Also use the 'xhost' program to verify that it is set to permit > connections from your machine Under X Emacs opens in a different envirnment with menus and mouse usage. You can either go to a text konsole with Ctrl+Alt+Fn (where n is 1-6) and switch back to X with Alt+F7, login as root and edit fstab. The other way is to allow root to connect to your X server, see man X and man xhost. > > So... two questions: Do I always need to type the full mount command, > or is there a shortcut for this? And how can I get emacs to work under > Superuser? mount /cdrom > > Thanks, > Peter Christensen Frank