Network and grub
I am new to install slackware, i am using scientific linux 6 and first, I don't know how to detect the wireless network and I don't know how to write the grub in my sl, I define the kernel to /boot/vmlinuz, which is a symbolic link, linking to the large single user mode, how can I use different kernels and it's easy to load the kernel but the config file, how should i edit the grub.conf
|
Regarding GRUB:
You can use the /boot/vmlinuz sym link for one of the systems, but to boot the other system you will need to use the full name of that particular kernel. Perhaps the following will help: Installing GRUB Multibooting Tips |
Yes, but when I switch the kernel to for instance vmlinuz-generic-2.6.37*, it tells me impossible to find the root directory, I think that's because it didn't load the right configure file, config-generic-2.6.37*,and the System.map-generic-2.6.37*...
|
Is your /boot file system on a separate partition or part of each operating system's file system? If /boot is part of each operating system's file system, then the menu.lst/grub.conf needs to be defined as such.
For example, if Slackware is installed on /dev/sda1 and /boot is part of that file system partition, then the location in grub to the Slackware kernel is something like this: kernel (hd0,0)/boot/vmlinuz-2.6.33.15-smp-1 If SL6 is on the same drive but partition sda2, then the kernel location for that system would look something like this: kernel (hd0,1)/boot/vmlinuz-2.6.33.15-smp-1 If /boot is a separate partition, say the first partition, then the configuration would look something like this: kernel (hd0,0)/vmlinuz-2.6.33.15-smp-1 The menu.lst/grub.conf kernel directive is different from the root directive. The kernel directive provides the location of the kernel file. The root directive provides the location of the operating system. Thus, if Slackware is located on sda1 and SL6 on sda2, the respective root directives would be like this: root=/dev/sda1 root=/dev/sda2 The kernel and root locations are not necessarily the same place. For example, on my systems I use a separate partition for /boot. Therefore my kernel files are all located in a different location than the operating system partitions. |
If you use any of the kernels name *generic*, then you nee to use an initrd with it since the kernel does not include any filesystem support. The initrd will load the correct kernel modules to add that support at boot-time.
|
This is my grub file
Code:
# grub.conf generated by anaconda Code:
. how should i write the grub.conf? if i load the vmlinuz-generic* for kernel, it can load it, but it says can't mount the root directory on an unknown block. |
*Read* the file README.initrd for instructions on how to *create* the initrd that you need. In fact AlienBob supplied a script (command) which can generate the command-line needed to generate your initrd using the mkinitrd command. There are surely many threads in this forum section which will guide you to boot using a generic kernel.
As I said, the generic kernels do not include file-system support (ext3,ext4, etc). The initrd you create matches the filesystem you have on '/' and includes and loads the kernel module for that filesystem. |
Thank you for answering my question, I have solved the grub problem according to your post.
Here's my solution first, login as root second, install the mkinitrd if you haven't have it yet, it's in /slackware/a of the disc. third, use mkinitrd to create your initrd.gz last, load the initrd.gz in your grub. hope it help the others and i find it's still necessary to login as a user in cli first. slackware doesn't provide a gui login interface. but, I still can get to the wireless network, the driver is ok, but I don't know how to connect to the network around me. |
"slackware doesn't provide a gui login interface" It does, if you have installed the kde series and edit /etc/inittab to use default runlevel 4 instead of 3.
|
Or add 4 to the kernel line(s) in your grub.conf file.
|
Quote:
Configuring Slackware for a GUI and a Command Line Startup The default login manager for Slackware is KDM, the KDE login manager. If KDE is not installed then Slackware defaults to XDM. |
All times are GMT -5. The time now is 03:52 AM. |