Author |
Message |
pifpaf
|
Posted: Wed Jul 05, 2006 2:15 am |
|
Joined: Thu May 18, 2006 1:47 am
Posts: 9
Location:
France
|
Hi All,
I'm installing knoppMyth R5C7 on my Epia SP13000 with USB hard disk.
So I have follow the pamphlet: Manual install, create 4 partitions (sda1 to 4) has mentioned...
Then I reboot to do a post installation. And after lilo message and other kernel message I have error messages and a kernel panic:
Code: lilo 22.6.1. loading linux .................................................. Bios data check
...... A LOT OF kernel message that I can not see .......
mount no such device or adress mount no such device or adress mount no such device or adress mount no such device or adress /linuxrc: out of file descriptors /etc/init: out of file descriptors Kernel panic - not syncing : attempted to kill init! I thought taht the probleme came from that not all partitions have been formated but. I have done manually has mentioned in pamphlet and without error Code: mkswap /dev/sda2 swapon /dev/sda2 mke2fs -O sparse_super -m0 -i8000000 -L cache -M /cache /dev/sda3 mke2fs -j -O sparse_super -m0 -i8000000 -L myth -M /myth /dev/sda4
After the kernel panic the system is frozen and I can not run a dmesg to see all the messages
Do you have any idea about the probleme?
THX
|
|
Top |
|
 |
derthnada
|
Posted: Wed Jul 05, 2006 5:43 am |
|
Joined: Sun Jul 02, 2006 5:27 am
Posts: 1
|
Wild. This just happened to me last night. I had done an uneventful install, and got to the point where I could watch, record, etc. on my monitor. No problems up to that point...I was able to boot just fine. (I'm using an internal IDE drive, btw).
The next step was to get the signal to my TV. I have an ATI Radeon (I know, I know...it's a leftover), so I grabbed fgldx-driver, made a few uninformed changes to my xorg.conf via "aticonfig," and viola! Kernel panic as you described on the next reboot.
Correlation is not necessarily causation, and it seems really odd that an X config change would cause a failure to mount anything, but it's the only change that I made that I can identify. Now, I did install the ati driver all willy-nilly with Synaptic Package Manager ("willy-nilly" = didn't pay attention to what dependencies it required or may have broken), so that seems a more likely suspect.
Any similarities to your situation?
|
|
Top |
|
 |
pifpaf
|
Posted: Wed Jul 05, 2006 6:16 am |
|
Joined: Thu May 18, 2006 1:47 am
Posts: 9
Location:
France
|
But you ran mythTv
in my case I didnot managed to run anything except manual installation.
Doing it again and again, deleting & reformating all partitions ... same crash.
|
|
Top |
|
 |
mjl
|
Posted: Wed Jul 05, 2006 6:28 am |
|
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location:
Warwick, RI
|
Hi pifpaf,
You situation is totally unrelated. With some real careful digging on the forum you should be able to find most of your answers I think. In a nut shell, it sounds as if you were able to run lilo -v and install the boot loader ok. Question is did you edit the lilo.conf first to adjust the pointer to be looking at sda1?
I haven't done usb serial (yet )but settings should be the simular as internal sata, check in the area:
#boot=/dev/hda5 boot=/dev/sda1
# Specifies the device that should be mounted as root. (`/') # #root=/dev/hda5 root=/dev/sda1
Any changes require lilo -v to apply
Mike
|
|
Top |
|
 |
pifpaf
|
Posted: Wed Jul 05, 2006 7:12 am |
|
Joined: Thu May 18, 2006 1:47 am
Posts: 9
Location:
France
|
I will check that.
But I though that i was the installer job (when checking sda1)
So I have to do it manually before rebooting? (edit lilo.conf with vi and run lilo -v)
I'm right?
this part is not documeted in pamphlet http://mysettopbox.tv/doc.html#manualinstall
|
|
Top |
|
 |
mjl
|
Posted: Wed Jul 05, 2006 4:26 pm |
|
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location:
Warwick, RI
|
Hi pifpaf,
The serial is a manual install and although I haven't done one recently, I am 99% sure that I had to do that step. Some things just leave a lasting impression
Also check the wiki for any special details as tjc, Xsecrets and the real gurus often share good hints there.
Mike
|
|
Top |
|
 |
pifpaf
|
Posted: Wed Jul 05, 2006 5:08 pm |
|
Joined: Thu May 18, 2006 1:47 am
Posts: 9
Location:
France
|
So I have check my lilo.conf
after mounting /mnt/sda1 and chroot
so I am ok with boot=/dev/sda and root=/dev/sda1
lilo -v said:
Warning: '/proc/partitions' does not exist , disk scan bypassed
Using MENU secondary loader
Calling map_insert_data
others message seems good
About fstab Im not expert and I dont know if is correct
Code: /dev/sda1 / ext3 default,errors=remount-ro 0 1 proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0 /dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0 /dev/cdrom /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0 /dev/cdromhda /cdromhda iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/sda2 none swap defaults 0 0 /dev/sda3 /mnt/sda3 ext3 noauto,users,exec 0 0 /dev/sda4 /mnt/sda4 ext3 noauto,users,exec 0 0 [/code]
I have see in the wiki that if I save the config and edit it, the drive is sda1
so seems correct
the probleme is persistant another Idea?
THX for helping
|
|
Top |
|
 |
mjl
|
Posted: Wed Jul 05, 2006 8:58 pm |
|
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location:
Warwick, RI
|
Hi pifpaf,
Looking at the fstab,
here are a couple of things that will nead changing, but not yet.
/dev/sda1 / ext3 default,errors=remount-ro 0 1
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
/dev/sdb1 /stick vfat defaults,user,noauto,showexec,umask=022 0 0
/dev/cdrom /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/cdromhda /cdromhda iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/sda2 none swap defaults 0 0
/dev/sda3 /mnt/sda3 ext3 noauto,users,exec 0 0
/dev/sda4 /mnt/sda4 ext3 noauto,users,exec 0 0
# /dev/sda4 /myth ext3 auto,users,exec 0 0
Let me explain what little I know:
You have formatted sda4 as the pamphlet guided, now you have to make the future myth partition to be ready for it's task of media storage.
do these as root,
# mount /mnt/sda4
# cp -a /myth/* /mnt/sda4/
This will make an identical copy of the /myth directory that is on the root partition in the future /myth partition. Once the prompt returns, # umount /mnt/sda4
Now edit the /etc/fstab and make these suggested changes / additions
First you will want to add the two green lines,
Second is the cache which is blue is not used in B & >
Third once all is done, move the # from green sda4 to red sda4, save and exit.
Fouth # mount /myth
Fifth # mkdir /stick
Sixth (optional) # chown mythtv:mythtv /stick (user mythtv can mount / umount /stick)
Seventh # mkdir /floppy
Eight (optional) # chown mythtv:mythtv /floppy (never know when you may want a floppy file)
Ok, by now everyone is wondering what the hey is a stick  Being lazy, it is my short name for usb memory stick which means you can mount a small meg memory device to a many meg usb harddrive to a directory called /stick and save your "files" to a windows / dos formated storage device. Any memory stick I have purchased were already formatted so it was plug, mount, save files, umount
The /dev/sda3 can be mounted and used for storage of what ever, music, images, downloads, or what ever. I don't believe that partition is bothered by an upgrade so is realativly safe storage area.
At this point if it has booted into myth, you should be good to go for the setups and finishing touches. Besure when done, do a backup. May want to save a copy off onto a memory stick
When you boot up or reboot all should remount as normal.
Hope this is of assistance.
Mike
|
|
Top |
|
 |
pifpaf
|
Posted: Thu Jul 06, 2006 4:56 pm |
|
Joined: Thu May 18, 2006 1:47 am
Posts: 9
Location:
France
|
Im sorry but /myth does not exist so I can cp anything
If I do (but may be Im wrong)
#chroot /mnt/sda4
sh-3.00# ls /myth
image_cahe
sh-3.00#ls /myth/image_cache
sh-3.00# ##is empty
where am i wrong ???
Im nearly to give up and install debian and then mythTv with apt ...
 or found a IDE HDD to do a normal install
good night
note: I did not found any usefull information in the wiki except the pamphlet (or similar informations)
|
|
Top |
|
 |
archibald
|
Posted: Fri Jul 07, 2006 8:48 am |
|
Joined: Fri May 26, 2006 2:12 pm
Posts: 12
|
Since you are doing a new installation, there will not be any /myth folder to copy.
I followed the instructions from this thread:
http://mysettopbox.tv/phpBB2/viewtopic.php?t=10632
This appeared to setup my lilo.conf and fstab correctly (I had to change from sda to sdb in fstab, but you don't have that problem).
You will still need to add the entry for the flash drive in your fstab.
If all this goes well, and you still get the same kernel panic on the post-install bootup, then your problem may be similar to the one I am currently having (no solution yet).
http://mysettopbox.tv/phpBB2/viewtopic.php?t=10480
|
|
Top |
|
 |
mjl
|
Posted: Fri Jul 07, 2006 10:08 pm |
|
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location:
Warwick, RI
|
Hi pifpaf,
Ok, time out as I am easily confused. I don't know where you are in the start up, after doing the editing of lilo.conf and running lilo -v, does it boot?
This should be your root: if you boot from the cd
mount -o rw,dev /dev/sda1 /mnt/sda1
chroot /mnt/sda1
nano /etc/fstab to be close to the previous post..
/dev/sda1 / ext3 default,errors=remount-ro 0 1
once fstab is set correctly do an ls /mnt/ and look for sda4 it should exsist. If so mount /mnt/sda4
Manual install / upgrade creates a /myth directory on the root partition that is populated. As a matter of fact, that is all you truely need to bring it to life. I have KM running on a 4.1 gig drive and can watch live tv but not for long as there is very little space. Everything else seems to work fine. So yes, there is a myth directory.
At this point sda1 and sda4 are mounted. do
# cp -a /myth/* /mnt/sda4
when finished,
# umount /mnt/sda4
make the changes to fstab so that sda4 is /myth
# mount /myth
Let us know where you are at as we can not see but only what you tell us.
Thanks
Mike
|
|
Top |
|
 |
archibald
|
Posted: Mon Jul 10, 2006 7:04 am |
|
Joined: Fri May 26, 2006 2:12 pm
Posts: 12
|
Sorry about my misleading post. I guess I shouldn't make assumptions, but I thought that the manual install would use the mounted /myth/ partition, instead of creating a folder and using that instead.
I hope I didn't cause any problems. I'll be a little more selective about which foot I eat next time.
|
|
Top |
|
 |
mjl
|
Posted: Mon Jul 10, 2006 8:31 pm |
|
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location:
Warwick, RI
|
Hi archibald,
No problem, I get bit by the little devil often myself, assumptions and his cousin, the one with the hyphen in the middle..
Actually, it appears the manual install, even into a single partition, is very complete. One of the nice features of linux is that everything is basicly a directory so if you have "stuff" on a hard drive, make a directory and mount the hd on to that new directory and now you have those contents available. Let the mind wander a bit and see where that could take your media library.
Have a great day!
Mike
|
|
Top |
|
 |
pifpaf
|
Posted: Wed Jul 12, 2006 2:59 am |
|
Joined: Thu May 18, 2006 1:47 am
Posts: 9
Location:
France
|
Hi guys,
So I have re-install from scratch with all your advise:
I will detailed what I have done:
hardware: MB:EPIA SP-13000, 512MB, 60GB HD-USB (sda), DVD (hda)
1. Boot from knoppmyth R5C7 cd installer option knoppmyth lang=fr fb800x600
2. Partition:
Code: /dev/sda1 for root 2.5GB /dev/sda2 for swap 750MB /dev/sdsa3 for /cache 5GB (not use in this release but just in case) /dev/sda5 for /myth 50GB 3. Format : Code: mkswap /dev/sda2 && swapon /dev/sda2 mke2fs -O sparse_super -m0 -i8000000 -L cache -M /cache /dev/sda3 mke2fs -j -O sparse_super -m0 -i8000000 -L myth -M /myth /dev/sda5 4. Return to installer, load config /KNOPPIX/KNOPPMYTH-sata 5. Start install install lilo on MBR user pifpaf realname pifpaf, password, admin password mythtv the system format sda1 and install file 6. Goto line command Code: mount -o rw,dev /dev/sda1 /mnt/sda1 (I think is already mounted in /mnt/hdinstall that is used by knoppmyth to installation) chroot /mnt/sda1 nano /etc/lilo.conf # check boot=/dev/sda root=/dev/sda1 OK lilo -v nano /etc/fstab /dev/sda1 / ext3 default,errors=remount-ro 0 1 proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0 # no floppy drive so line commented #/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0 /dev/cdrom /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0 /dev/cdromhda /cdromhda iso9660 defaults,ro,user,noexec,noauto 0 0 /dev/sda2 none swap defaults 0 0 /dev/sda3 /cache ext2 auto,users,exec 0 0 #not used in this release /dev/sda5 /myth ext3 auto,users,exec 0 0 7. At this point I want to copy file to /myth, but the only source I found is /KNOPPMYTH/myth (I'm still in chroot) Code: cp -a /KNOPPMYTH/myth/* /myth reboot
8. I think I have done everything I reboot .. but the problem is the same
9. Because I was thinking in hardware problem to install linux onto USB hard disk I have install debian sarge on sda correctly I will test mythtv (installing with .deb). The install works.
Another point to test is not create partition for /cache (I have already test that?, too much reinstallation confused me) but the menu config does not show another thing that "1.partition and 2. quit " if dont.
Waiting for your comments ...
|
|
Top |
|
 |
archibald
|
Posted: Wed Jul 12, 2006 7:39 am |
|
Joined: Fri May 26, 2006 2:12 pm
Posts: 12
|
This may be the driver problem that I was having for the sata drive. (more details at http://mysettopbox.tv/phpBB2/viewtopic.php?p=63264)
Follow these instructions to install the sata driver module. (Thanks to nybbler for helping me out with this)
Here is an overview... the detailed steps will be below.
1. Figure out what driver module you need for your sata drive.
2. Open the initrd image
3. Copy the required module(s) into the initrd image
4. Tell the linuxrc (inside the initrd image) to load that module before it tries to mount the root filesystem
5. Re-compress the initrd image and reboot.
1. Figure out what driver module you need for your sata drive.
Boot to the knoppmyth cd and exit the installer to get to a command prompt.
Type this command to see what sata module is loaded:
Code: lsmod | grep -i sata This should output something like this: Quote: sata_nv 3 blah blah If there are more than one listed, ignore any that have a "0", and you might need to load all of the others. 2. Open the initrd imageMount your boot partition and change the working directory to "/mnt/sda1/boot" Code: mount /dev/sda1 /mnt/sda1 cd /mnt/sda1/boot Decompress the initrd image and mount it Code: gunzip initrd mkdir /mnt/initrd mount -o loop initrd /mnt/initrd 3. Copy the required module(s) into the initrd imageBe sure to copy the module that you determined you needed earlier. This will assume that it is "sata_nv" (nVidia) - yours may be different. Code: cp /mnt/sda1/lib/modules/2.5.15.blah-blah/kernel/drivers/scsi/sata_nv.ko /mnt/initrd/modules/ 4. Tell the linuxrc (inside the initrd image) to load that module before it tries to mount the root filesystemUse whatever editor you want. It looks like you prefer nano, so use this command: Code: nano /mnt/initrd/linuxrc Now you will add the following line BEFORE the command to mount the root filesystem Quote: insmod /modules/sata_nv.ko 5. Re-compress the initrd image and reboot.Now you need to re-compress the initrd image, run lilo again, and then reboot: Code: umount /mnt/initrd cd /mnt/sda1/boot gzip initrd chroot /mnt/sda1 lilo -v exit reboot
Congratulations! You have just installed a sata driver module to the initrd! If that works, then its just a matter of what problem you will have to face next.
|
|
Top |
|
 |