LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Which file loads at boot time? (https://www.linuxquestions.org/questions/slackware-14/which-file-loads-at-boot-time-128823/)

plm 12-25-2003 09:50 AM

Which file loads at boot time?
 
How can I tell my linux to mount a hdd at boot? i mean when the hardware drivers are loaded and so on. like in modules.conf what is written in there is loaded at startup, but where do i have to write 'mount -w /dev/hdb2 /home' ? can anyone tell me? i've added the hard drive after installation. u know during the installation, the setup asks you as what to mount hda1... / and other, but on every boot i have to write the command to mount this second hdd. i hope u understand what im trying to explain.:)

fancypiper 12-25-2003 10:00 AM

Make an entry in your /etc/fstab file. Here is mine for an example:
Code:

# Duron 950 Red Hat 7.3 /etc/fstab file
/dev/hda7        /              reiserfs        defaults        1 1
/dev/hda3        /boot          ext3                defaults        1 2
none            /dev/pts        devpts                gid=5,mode=620  0 0
/dev/hda9        /home          reiserfs        defaults        1 2
/dev/hda1        /mnt/win98        vfat                defaults        0 0
/dev/hda2        /mnt/win2k        ntfs                defaults        0 0
none            /proc          proc                defaults        0 0
none            /dev/shm        tmpfs                defaults        0 0
/dev/hdb4        /pub            ext3                defaults        1 2
#/dev/hda10    /snd            reiserfs        defaults        1 2
#/dev/hda6        /mnt/gentoo    reiserfs        defaults        1 2
#/dev/hda8        /mnt/mandrake  ext3                defaults        1 2
/dev/hda5        swap            swap                defaults        0 0
/dev/cdrom        /mnt/cdrom        iso9660                noauto,owner,ro 0 0
/dev/fd0        /mnt/floppy    auto                noauto,owner    0 0

# Managing drives
LNAG - Accessing my drives
Rute - Device Mounting

plm 12-25-2003 10:12 AM

okay i'm adding some lines and will come back to you after reboot! what about if i want to run gdm at boot? how do i make it automatically run at startup?

fancypiper 12-25-2003 10:25 AM

I don't use a gui login manager as it is awkward to get out of if you have x troubles. I prefer to log in to a console and use "startx".

Your distro (not mentioned or in your profile) should have some way to configure gdm.

plm 12-25-2003 10:34 AM

i use the console startx way too, but i like graphics, and i'm gonna make my own cool them for gdm:) my distro is slack 9.1. thanks for the thing with fstab!:) i edited it and everything is perfect:) merry christmas!

plm 12-25-2003 10:48 AM

so, there is gdmsetup.. and when i set everything up it will start at boot?

fancypiper 12-25-2003 10:59 AM

Here is the documentation: Gnome Display Manager Reference Manual

plm 12-25-2003 11:01 AM

thanks very much and i'm sorry for bothering everyone with silly things as this

delta9 12-25-2003 11:43 AM

To boot graphically (directly into X)you need to change your default runlevel from 3 to 4. For that you need to edit your /etc/inittab file and change the line

id:3:initdefault:

to

id:4:initdefault:

To make sure gdm starts as default DM (instead of kdm or xdm) check /etc/rc.d/rc.4 to see if gdm is checked first

ksd 12-26-2003 12:02 AM

Hey is there some thing like gdmsetup to KDE?I always use KDE and have already configured my rc.4 modules to directly get into KDE.however..the LILO is in Console mode and I want to put some graphics into it..How to do it?Has any one got any idea?


All times are GMT -5. The time now is 01:53 PM.