LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-19-2006, 04:26 PM   #1
cjae
Member
 
Registered: Mar 2004
Distribution: bouncing
Posts: 277

Rep: Reputation: 30
probs with gentoo fstab /home and optical drives


Hi,

I got it to boot. I went back and booted the disc and tried to chroot to mnt/gentoo /bin/bash, but it didn't work . So I chroot / and it gave the sh shell ? Anyway edited the grub.conf and now my kernel boots, but it only boots to init 3 and I don't believe there is a gui. By the way I don't have any beeps like when you hit the up arrow key and there is no more commands it don't beep now. Although this is a blessing, I was curious to why it doesn't beep anymore? Is it because I didn't load kernel support for the pc speaker?

I can mount all my filesystems except for my two optical drives.

/dev/cdrom/cdrom1 /mnt/cdrom auto auto,rw,users 0 0
/dev/cdrom/cdrom0 /mnt/dvdrom auto auto,rw,users 0 0

What am I doing wrong?

Also I created a couple of just normal users, why don't they have they have any stuff in /home?
 
Old 04-19-2006, 06:03 PM   #2
GUIPenguin
Member
 
Registered: Aug 2004
Location: Maine
Distribution: Gentoo Linux
Posts: 239

Rep: Reputation: 30
>>Yes when you setup gentoo for the first time it is a very basic setup... no X..you will have to configure that later on. For now you only have a normal multi-user console.

>>those /etc/fstab entrys look correct (although I normaly have mine noauto...if any at all in /etc/fstab, I normaly mount it by hand when I need it). Have you tryed putting your disk in after boot and manualy mounting it to see that everythig works?

>>when you create a new user (useradd) use -m it'll automaticly create a home directory with correct permissions for your new user with all the hidden files. ls -a

And no idea about your beeping.

Last edited by GUIPenguin; 04-19-2006 at 06:06 PM.
 
Old 04-19-2006, 06:35 PM   #3
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
auto, auto

One is for filesystem choice and is OK,
second is for mounting at boot time and should be set to noauto. This is not for mounting CD-s automatically.
 
Old 04-19-2006, 07:22 PM   #4
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
Quote:
Originally Posted by cjae
Anyway edited the grub.conf and now my kernel boots, but it only boots to init 3 and I don't believe there is a gui.
Your going to have to emerge X, then emerge a gui like Gnome, KDE, or XFCE or Fluxbox.
X Gentoo Setup Guide
GNOME Gentoo Setup Guide
KDE Gentoo Setup Guide
Fluxbox Gentoo Setup Guide
I recomend KDE though for a new user.
Quote:
Originally Posted by cjae
Although this is a blessing, I was curious to why it doesn't beep anymore? Is it because I didn't load kernel support for the pc speaker?
That is a good posiability. If you used genkernel though, I doubt thats the problem.
Quote:
Originally Posted by cjae
Also I created a couple of just normal users, why don't they have they have any stuff in /home?
The /home directory is empty for several reasons. One, there is nothing to put in there. Your computer, as of right now, has nothing on it except for a running version of Linux. No programs or anything. Second, after you emerge things like X, and Gnome, the users /home will empty until you physically log in with that user, then the hidden folders and non-hidden folders that will be needed by X or Gnome will be created.

Finally as a general rule of thumb, if you google "Gentoo (Whatever program you need)" it will almost always return a Gentoo developer made howto. Example "Gentoo fluxbox" the third hit is the setup guide.
 
Old 04-20-2006, 04:27 AM   #5
cjae
Member
 
Registered: Mar 2004
Distribution: bouncing
Posts: 277

Original Poster
Rep: Reputation: 30
Hi,

Thanks for all the info,

Ok I used useradd -m -G users,wheel,audio -s /bin/bash john for the users.

I compiled the kernel from gentoo sources.

Are you positive that auto is not for automounting optical drives at boot otherwise would you be kind enough to tell what it is for?

Thanks for the links penguin I saw that I had to install and configure x first too and my nvidia card. I just figured that if I had created the users even in the cinsole it would have showed something for them in /home.

I also did the whole "emerge --update --deep --newuse world" update thing. Thought I couldn't hurt since I had new use flags since the cd environment.

But now it asks to update a bunch of files that were protected, but I have no idea how to. I did read why they do this and that you can mercilessly auto-update these config files, but I believe this could cause havock.

I entered find /etc -iname '._cfg????_*' and it shows mw the list but how do I update them?

I was going to follow up with
merge --depclean
revdep-rebuild

But am suck at the whole config file thing and then I was going to move onto X.

Thanks again.
 
Old 04-20-2006, 09:16 AM   #6
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
The first auto tells the computer to guess at the file system, that way you can read different file systems on CDs, not just one. The second auto is to make it automount at boot.

When you did the updates using emerge, did it not ask you which files you want to update, and which you don't?
 
Old 04-20-2006, 03:57 PM   #7
cjae
Member
 
Registered: Mar 2004
Distribution: bouncing
Posts: 277

Original Poster
Rep: Reputation: 30
No it did not ask about any files.

Ok, how come emerson says auto does not automatically mount optical drive at boot, but penguin says it does and everything I have read to this point tells me that is what it does. Or am I misunderstanding some underlying direction?
 
Old 04-20-2006, 05:44 PM   #8
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Quote:
Originally Posted by cjae
Hi,

I got it to boot. I went back and booted the disc and tried to chroot to mnt/gentoo /bin/bash, but it didn't work . So I chroot / and it gave the sh shell ? Anyway edited the grub.conf and now my kernel boots, but it only boots to init 3 and I don't believe there is a gui. By the way I don't have any beeps like when you hit the up arrow key and there is no more commands it don't beep now. Although this is a blessing, I was curious to why it doesn't beep anymore? Is it because I didn't load kernel support for the pc speaker?

I can mount all my filesystems except for my two optical drives.

/dev/cdrom/cdrom1 /mnt/cdrom auto auto,rw,users 0 0
/dev/cdrom/cdrom0 /mnt/dvdrom auto auto,rw,users 0 0

What am I doing wrong?

Also I created a couple of just normal users, why don't they have they have any stuff in /home?
I had to change my device paths for the optical drives to work. My entries are as follows,
Code:
/dev/hdc  /mnt/cdrom  auto  noauto,user  00
/dev/hdd  /mnt/cdrom1  auto  noauto,user  00
As for starting a display manager, you need to do,
Code:
#rc-update add xdm default
After that edit /etc/rc.conf and change the display manager to one of your liking e.g. DISPLAYMANAGER="kdm".

About your config files, you need to run "etc-update" if emerge notifies you about config files waiting to be updated.
 
Old 04-20-2006, 06:06 PM   #9
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
Quote:
Originally Posted by cjae
Ok, how come emerson says auto does not automatically mount optical drive at boot, but penguin says it does and everything I have read to this point tells me that is what it does. Or am I misunderstanding some underlying direction?
Here look at this page, I think we're all alittle confused about who's talking about what. By the time i read the quoted post, i was confused.
 
Old 04-20-2006, 09:27 PM   #10
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson
auto, auto
...
second is for mounting at boot time and should be set to noauto. This is not for mounting CD-s automatically.
Uh, I think I wasn't very clear here.

Auto should be set only for volumes and partitions which are always present. CD may be present and may not. If the drive is empty then it produces error messages and delays boot.
Auto option will not mount CD's automatically during normal operation, it is a boot time mount option.
 
Old 04-20-2006, 10:12 PM   #11
ataraxia
Member
 
Registered: Apr 2006
Location: Pittsburgh
Distribution: Debian Sid AMD64
Posts: 296

Rep: Reputation: 30
Quote:
Originally Posted by cjae
No it did not ask about any files.

Ok, how come emerson says auto does not automatically mount optical drive at boot, but penguin says it does and everything I have read to this point tells me that is what it does. Or am I misunderstanding some underlying direction?
There are two "autos". Look at this line:
Code:
/dev/hdc  /mnt/cdrom  auto  noauto,user  0 0
The red "auto" is for the type of filesystem, so you don't have to know ahead of time if it's a CD or a DVD.

The blue "noauto" means "don't mount this thing at boot-time". If it said "auto" instead your machine would be unhappy every time you booted it without a disc in the drive.
 
Old 04-21-2006, 01:11 AM   #12
cjae
Member
 
Registered: Mar 2004
Distribution: bouncing
Posts: 277

Original Poster
Rep: Reputation: 30
Thanks reddazz,

I will try the fstab entries, kind of figured that these were nit quite right, but I think only my dvd is the one that does not mount. But these are likely better entries anyway. Without the rw options on them did you ever have any trouble writing with the drives. The reasons I selected these
options is cause during my time with suse, I installed some packages through yast that somehow mucked up my optical drives, and I could only write disks by loggin as root.

Quote:
and everything I have read to this point tells me that is what it does
Thanks penguin, these were some of the pages I was talking about when I said I read them.

Quote:
Auto option will not mount CD's automatically during normal operation, it is a boot time mount option.
Thanks Emerson, I kind of thought that what you meant and that I may have misinterpreted. Although it may have slown boot it never caused any errors with or without discs.

Oh, also reddazz.

Quote:
About your config files, you need to run "etc-update" if emerge notifies you about config files waiting to be updated.
I did that and I hit enter for all the files it wanted to update. 14 of them I think. And then I followed it by

merge --depclean
revdep-rebuild

and now when I login as root it has 7 configuration error entries.
unknown item 'faillog_enab' (notify admin)
'' 'lastlog_enab' ''
'motd_file'
'ftmp_file'
'evn_rootpath'
'pass_min_len'
'chfn_auth'

Also what is this

Quote:
As for starting a display manager, you need to do,
Code:

#rc-update add xdm default

After that edit /etc/rc.conf and change the display manager to one of your liking e.g. DISPLAYMANAGER="kdm".
Is this not just the console? I am not sure what you mean here.

Last edited by cjae; 04-21-2006 at 01:23 AM.
 
Old 04-21-2006, 02:18 AM   #13
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Quote:
Without the rw options on them did you ever have any trouble writing with the drives
I've never had problems using those options. The rw part is not really useful on optical media because most discs tend to be read only and if I need to write anything to blank discs, I can just use cdrecrd, k3b etc. As for Suse, it has weird entries in /etc/fstab that tend to cause problems for my dvd burners, so I usually change them to the above.

As for the display manager section the part in the code tags (in my post above) needs to be performed in the command line so that gentoo enables the xdm service which starts a login manager at boot up. After enabling the xdm service you need to edit /etc/rc.conf and set an entry for the login manager you wish to use.
 
Old 09-07-2006, 08:10 PM   #14
BlackBic
LQ Newbie
 
Registered: Mar 2005
Posts: 5

Rep: Reputation: 0
similar problems

hi,

I just installed gentoo today through comman prompt. I finally got to the end where i edited and made the grub and fstab files. I had to reboot the handbook says, so i reboot, and for some reason the fstab or grub did not work cause i got a no operating system error. When i tried to get back in to where i was working in the file system, i saw that none of the files i made or installed was there.


Is there something i am missing? How do i get back into my environment so that i can re-edit me grub and fstab, and is there anything that anyone can think of that would have caused it not to boot? I followed the instructions and didn't have a problem.

The only thing i can think of is that /mnt/gentoo would not umount since it was busy, but i waited and it never would unmount, so i sent the reboot command and here is where i am at.


much appreciated for any help.

tim
 
Old 09-08-2006, 12:44 AM   #15
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
You'll have to chroot back into your enviroment, its simple to do don't worry about it. If you didn't unmount before rebooting you might have damaged your filesystem which would explain your lose of files. Which filesystems did you choose for root and boot? Both of these errors can probably be fixed using the live CD you installed off of.

http://oliver.steven.googlepages.com/tutorials3

Thats a link to my lame home page where a wrote a tutorial to help out people like you and myself when I forget.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
S-ATA Optical Drives carlosinfl Linux - Hardware 0 11-21-2005 09:34 AM
Optical drives on Suse 9.2 ylawayjdp SUSE / openSUSE 1 05-09-2005 06:03 AM
optical drives, help please. kenthegardener Linux - General 5 05-01-2005 08:33 AM
Magneto-optical drives olaf77 Linux - Hardware 1 01-28-2005 10:33 PM
Help with Optical Drives QzarBaron Slackware 3 01-17-2005 02:21 PM


All times are GMT -5. The time now is 12:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration