News | About | Get Frugalware | Packages | Documentation | Discussion Forums | Bug Tracker | Wiki | Community | Development

KnownBugs-0.7pre2

From FrugalWiki

Jump to: navigation, search

Intel users with SATA/IDE controller combos

On booting, some users might get a Kernel panic or the system may not boot at all. This happens on systems with SATA/IDE controller combos. The workaround for now is to boot using the 'ideX=norpobe ideY=noprobe' kernel parameters, where X and Y is the number of the device.

Example: hda - SATA disk, hdb - cdrom, hdc - ide/pata disk.

In this case one need the

ide1=noprobe ide2=noprobe

kernel parameters.

That will disable IDE support for those disks and enable libata for both, this way both SATA and IDE devices will work.

By not doing so, your machine may or may not boot.

It is also recommended to boot even the setup with these parameters so that you will have a correct /etc/fstab.

Example for my LapTop nx7010

I had the same problem, and solved it by editing /etc/fstab, then /boot/grub/menu.lst

In order to edit these files, you may want to use a live cd, or use a more tricky solution by editing the grub boot line during boot sequence.

Grub solution

I had to replace root=/dev/hda1 by root=/dev/sda1 during the boot sequence. Once done, frugalware boot partially. But I could use the maintenance mode. You have to remount your partition (/dev/hda1 in my case) in read/write mode in order to modify the two mentionned files.

# mount -o remount /dev/hda1 /

Now, you can edit /etc/fstab, and /boot/grub/menu.lst.

First, make a backup of those files :

# cp /etc/fstab /etc/fstab.`date -I`
# cp /boot/grub/menu.lst /boot/grub/menu.lst.`date -I`

In /etc/fstab, just replace every occurence of hd by sd. I've used vim for this purpose

# vim /etc/fstab   [ then <esc>:%s/hda/sda/g<enter><esc>:wq<enter> ]
# vim /boot/grub/menu.lst

For /boot/grub/menu.lst I have replaced the root=/dev/hda1 by root=/dev/sda1.

Here is my menu.lst file after modification :

default=0
timeout=5
gfxmenu (hd0,0)/boot/grub/message 

title Frugalware 0.7 (Sayshell) - 2.6.22-fw6
        kernel (hd0,0)/boot/vmlinuz root=/dev/sda1 ro quiet vga=791 

title Memtest86+
        kernel (hd0,0)/boot/memtest.bin

You can notice that (kernel) hd0 is still (kernel) hd0  : grub is not broken and still use the normal designation for hard drives.

And here is my fstab file once modified :

none             /proc            proc        defaults         0   0
none             /sys             sysfs       defaults         0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
usbfs            /proc/bus/usb    usbfs       devgid=23,devmode=664 0   0
tmpfs            /dev/shm         tmpfs       defaults         0   0
/dev/sda2        swap             swap        defaults         0   0
/dev/sda1        /                ext3        defaults         1   1
/dev/sda3        /var             ext3        defaults         1   1
/dev/sda4        /home            ext3        defaults         1   1

Of course, you have to adjust the files, accordingly to your configuration.

Using a live CD

If you decide to use a live cd, you have to open a terminal, then log as root. Here is the sequence I've used, if my memory is good enough :-) :

I've used a unbuntu live cd, this should work with any live cd that allow you to access to a root console.

LiveCD > sudo passwd            <- in order to change the root password, 'root' for example
LiveCD > su -                   <- enter the new root password
LiveCD # cd /mnt
LiveCD # mkdir sda1             <- You may the partition that contains / (see your /etc/fstab)
LiveCD # mount /dev/sda1 /mnt/sda1
LiveCD # cd /mnt/sda1/etc
LiveCD # vim fstab  <- Then replace hd to sd
LiveCD # cd /mnt/sda1/boot/grub
LiveCD # vim menu.lst <- modify the root

Don't hesitate to modify the menu.lst file. Grub is powerfull, and allow you to modify the whole line if ever it is broken (it happens many times, before I decided to edit this wiki).

Personal tools
Namespaces
Variants
Actions