Click to See Complete Forum and Search --> : Startup, Shutdown and the 2.6


JohnT
06-09-2004, 07:51 PM
I had been having trouble with some specifics (USB)upon upgrade to the 2.6.6, so I thought I would share these findings.

Files that were located in the proc filesystem for the 2.4 kernel have migrated to the sysfs filesystem for the 2.6 kernel. As an example, the USB device list that was stored in the file /proc/bus/usb/devices when using a 2.4 kernel is now stored in the file /sys/bus/usb/devices under the 2.6 kernel. Finally, you should also make equivalent changes to any scripts invoked during your system's shutdown procedure. For example, on Red Hat systems, the shutdown process invokes the script /etc/init.d/halt during system shutdown, which references the proc filesystem but not the equivalent sysfs filesystem. The items listed in this section are the primary system startup and shutdown changes that most people will need to make to use a 2.6 kernel with a 2.4 Linux root filesystem. Depending on the extent to which you have customized your system's startup process and installed additional utilities or drivers, you might find that other changes are required. A sample rc.sysinit file that has been conditionalized to work with both the 2.4 and 2.6 kernels is available online in the TimeSys Resource Center at the URL http://www.timesys.com/2.6. The sample file was created for use on a system running Red Hat 9, but shows the types of changes that you will need to make regardless of which Linux distribution you are running.

hard candy
06-09-2004, 08:50 PM
For my Slackware, after adding the following to the "append" line in lilo, everything plays nice.
append="hdc=ide-scsi hdd=ide-scsi noacpi pci=noapci apm=power-off"
I kept scsi emulation so anything that has to access my dvd recorder and cdrw can do so. The "apm=poweroff" lets my computer shut down and power off with no problem. I disabled acpi and apci to make sure all my usb stuff works correctly. And disable IPv6 so DNS will be a lot faster.
One other thing is using yanc (http://yanc.sourceforge.net/index-en.html)

to configure my nvidia card, it works well with the 5335 driver and the 2.6 kernel.

JohnT
06-09-2004, 10:21 PM
At the time mine would not reboot...it would go through the reboot script to the actual "Rebooting System", but it would hang. Then hard restart.... The first thing I tried was the apic route as it smacked an awfully lot like the recent FreeBSD 5.2 apic bug. It works fine now

MMYoung
06-13-2004, 02:11 PM
Don't know if it's relavent to your situation, but a "while" back there was a discussion similar to this HERE (http://justlinux.com/forum/showthread.php?s=&threadid=123556). As bwkaz stated in this thread unless you just want to have the scripts all you have to do is add the following to your fstab:

sysfs /sys sysfs defaults 0 0

and it will be mounted automagically. If you still have the 2.4.x kernel and boot with it instead of the 2.6.x the only thing that will happen is you will get an error message saying the the sysfs filesystem isn't supported. Least it works for me anyway.


BTW, I don't even use an "append" line in lilo.conf and I haven't had any problems with starting or restarting.


Later,
MMYoung

JohnT
06-13-2004, 06:07 PM
TimeSys...he,he....where do you think I got my fix?:D Got all 5 .pdf's. Takes awhile to read through though.:p

MMYoung
06-13-2004, 06:24 PM
Originally posted by JohnT
TimeSys...he,he....where do you think I got my fix?:D Got all 5 .pdf's. Takes awhile to read through though.:p
I got the first three and they are a "decent" read. I haven't gotten the other two yet, but I plan to.

Later,
MMYoung

JohnT
06-13-2004, 06:51 PM
Better get 'em' before they're sold out:D