Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
SMS Forum Index » Installation Support

Post new topic   Reply to topic
SMS installation almost succeeded but stopped by a panic... Goto page Previous  1, 2, 3  Next
View previous topic :: View next topic  
Author Message
miguipda
Member


Joined: 14 Jul 2011
Posts: 93

PostPosted: Tue May 29, 2012 9:40 pm    Post subject: Reply with quote

Hi,

a simple question before I install it back on my USB external HDD.

Even if you explain (in the 2.2.3 Setup paragraph) that we must create three partitions (/boot, swap and /).

Due to the problem I encounter. It could be easier to use a single partition and install all in the / (and even without LVM). Then I will just have a swap and a partition for the Native SMS.

May be it could solve my problem ? What do you think about it ?

Sincerely thanks and have a good night.

Miguipda Wink

_________________
Miguipda Wink
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Tue May 29, 2012 9:46 pm    Post subject: Reply with quote

You can skip /boot partition it's not a must, but before reinstalling I would recommend playing with lilo.conf to able to boot your current installation.

Try 3 configs like

Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
LBA32
boot = /dev/sda
disk = /dev/sda
inaccessible
prompt
timeout = 20
compact
change-rules
reset
vga = 791
image = /boot/vmlinuz
  root = /dev/sda3
  label = SMS
  read-only


Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
LBA32
boot = /dev/sda
disk = /dev/sda
     bios=0x80
prompt
timeout = 20
compact
change-rules
reset
vga = 791
image = /boot/vmlinuz
  root = /dev/sda3
  label = SMS
  read-only


Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
LBA32
boot = /dev/sda
disk = /dev/sda
     bios=0x81
prompt
timeout = 20
compact
change-rules
reset
vga = 791
image = /boot/vmlinuz
  root = /dev/sda3
  label = SMS
  read-only


gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
miguipda
Member


Joined: 14 Jul 2011
Posts: 93

PostPosted: Wed May 30, 2012 6:19 pm    Post subject: Reply with quote

Hi,

as you proposed I first tested to change the lilo.conf.
I first test with the disk = /dev/sda (no change after reboot = same error message)
Then I tested with bios = 0x80 (no change after reboot = same error message)
Then I tested with bios = 0x81 (no change after reboot = same error message)
I also tested thos two last bios parameter with and without the disk = /dev/sda.
I got the same result (no change after reboot = same error message)

As I previously installed the live SMS on this external USB HDD and it was formated in ext3 I also tested all this here before on ext4 and ext3 :
same result (no change after reboot = same error message)

How can I solve it now ?
Only with one partition ?

Have a nice day,

Miguipda Wink

_________________
Miguipda Wink
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Wed May 30, 2012 8:39 pm    Post subject: Reply with quote

I suppose every time you alter, lilo.conf you run 'lilo'.
If you didn't run 'lilo' changes will not save.

Also try creating a initrd.gz (you need to chroot), like
Code:
mkinitrd -k 3.2.14-smp -r /dev/sda3 -m ext4,ehci_hcd,ohci_hcd,uhci_hcd -f ext4


Also try to add a delay in lilo.conf

Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
append = "rootdelay=17 root=/dev/sda3"
LBA32
boot = /dev/sda
disk = /dev/sda
inaccessible
prompt
timeout = 20
compact
change-rules
reset
vga = 791
image = /boot/vmlinuz
  root = /dev/sda3
  label = SMS
  initrd = /boot/initrd.gz
  read-only


Also one with
Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
append = "rootdelay=17 root=/dev/sda3 sda=noprobe sdb=noprobe"
LBA32
boot = /dev/sda
disk = /dev/sda
inaccessible
prompt
timeout = 20
compact
change-rules
reset
vga = 791
image = /boot/vmlinuz
  root = /dev/sda3
  label = SMS
  initrd = /boot/initrd.gz
  read-only


I don't have an external USB disk to try an installation, that's why I'm guessing things...
I'll try to find one to test an installation to try to boot, and see where and if there is a problem.

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
miguipda
Member


Joined: 14 Jul 2011
Posts: 93

PostPosted: Wed May 30, 2012 9:17 pm    Post subject: Reply with quote

Hi,

maybe you will consider me so stupid because I will answer that no I did not made the lilo command. And indeed I could be considered stupid for that but ...

As I booted withe live SMS installed on the USB Key there are no lilo command on this Live SMS. I even tried to run it from the installed Native SMS on the external USB HDD but I got those error answer :

with this (by mounting the /dev/sda3 to /mnt/sda3) :
# /mnt/sda3/sbin lilo-C /mnt/sda3/etc/lilo.conf I received the error :
Fatal: Creat /boot/map~: No such file or directory

and with this :
# /mnt/sda3/sbin lilo
Fatal: Cannot open: /etc/lilo.conf

Then I was no able to run the concerned lilo that must usually done when we change the lilo.conf
I just hoped it could worked by just changing the lilo.conf file even if in fact it must be assigned by the lilo command.

As you know when we are exasperated we may sometimes try stupid actions.

Then how could I solve it ?
I will wait your answer.

Sincerely thanks and have a nice day.

Miguipda Wink

P.S. : As you can see even if it must be easier for an administrator to be able to configure Native installation on external HDD to be able to use it later on some computers (server) it seems there is maybe a trick to do it.

With pleasure to read you with the solution.

_________________
Miguipda Wink
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Wed May 30, 2012 10:07 pm    Post subject: Reply with quote

Ir you run SMS.LiveCD, lilo command exists and from SMS.NativeCD Installer also.

Once again the procedure:
Code:
mount /dev/sda3 /mnt/tmp
mount /dev/sda1 /mnt/tmp/boot/


Code:
lilo -C /mnt/tmp/etc/lilo.conf


You can also do
Code:
chroot /mnt/tmp

and run
Code:
mkinitrd -k 3.2.14-smp -r /dev/sda3 -m ext4,ehci_hcd,ohci_hcd,uhci_hcd -f ext4


I'll make an installation as soon as possible to examine the situation, I'll tell you. Smile

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
miguipda
Member


Joined: 14 Jul 2011
Posts: 93

PostPosted: Thu May 31, 2012 10:22 am    Post subject: Reply with quote

Hi,

in your last instructions you said to run :
mkinitrd -k 3.2.14-smp -r /dev/sda3 -m ext4,ehci_hcd,ohci_hcd,uhci_hcd -f ext4

But as I finished by formatting the HDD in ext3 I presume I must run :
mkinitrd -k 3.2.14-smp -r /dev/sda3 -m ext3,ehci_hcd,ohci_hcd,uhci_hcd -f ext3

Is not it ?

Sincerely thanks and have a nice day,

Miguipda Wink

_________________
Miguipda Wink
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Thu May 31, 2012 12:42 pm    Post subject: Reply with quote

Yes, you need to change it to your filesystem format, in that case 'ext3'.

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
miguipda
Member


Joined: 14 Jul 2011
Posts: 93

PostPosted: Thu May 31, 2012 6:53 pm    Post subject: Reply with quote

Hi,

well I installed back the Live SMS on my USB Key to boot on it to follow your instructions. Then I ran :

mount /dev/sda3 /mnt/tmp (if you take some notes about what we made : here it said there is no /mnt/tmp then I created it to be able to continue the process).

After having created the /mnt/tmp I ran without any problem. All was ok :
mount /dev/sda3 /mnt/tmp
mount /dev/sda1 /mnt/tmp/boot/
lilo -C /mnt/tmp/etc/lilo.conf

But when I ran this (due to the fact I previously finalized with a formatted ext3) :
mkinitrd -k 3.2.14-smp -r /dev/sda3 -m ext3,ehci_hcd,ohci_hcd,uhci_hcd -f ext3

I got this error :
ERROR: No /lib/modules/3.2.14-smp kernel modules tree found for kernel "3.2.14-smp"

Then I powered off to tell you what happen.

And now how could I help you to try solving it ?

Have a good night.

Miguipda Wink

_________________
Miguipda Wink
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Thu May 31, 2012 9:20 pm    Post subject: Reply with quote

To run kminitrd you need to chroot to mnt/tmp. Did you chroot?
Code:
chroot /mnt/tmp


If you select a kernel other than 3.2.14-smp e.g. 3.2.17 use 3.2.17.
ls -l /mnt/tmp/lib/modules
will show you which kernels are installed.

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
miguipda
Member


Joined: 14 Jul 2011
Posts: 93

PostPosted: Fri Jun 01, 2012 6:01 pm    Post subject: Reply with quote

Hi,

it did not work and sorry to answer that like this but there are so many cross error problem during my test I will not explain. It will be too long.

I presume the lilo command crossed to the USB key then I can not reboot on it.
I also discovered I don not need to mount /dev/sda3 to /mnt/tmp because it is already mounted on /mnt/sda3 and so on.

Finally I tried to reinstall the USB key to be able to run the lilo command because the chroot worked well and the mkinird just answer twice :
cat: /proc/partitions : No such file or directory
then told me :
6104 blocks
Be sure to run lilo again if you use it

Then I tried to run the lilo -C /mnt/sda3/etc/lilo.conf or even then
it gives back the same as previous error :
Fatal : cannot open /mnt/sda3/etc/lilo.conf

Then I am really now bored to tell you that I will stop there all my test. I regret to not be able to do it and I really though to be able to help you to make a wiki for this case.

I still have two possibilities :
1) try it with only one partition
2) extract the HDD out of its case and install it as a single HDD on a computer but I found it is too many work.

I consider it must could be possible to install SMS on an external HDD by booting with a Native SMS installed on USB Key. With this situation it could be efficient to configure many server by using a HDD docking then use those HDD when needed for maintenance.

Then I will let you try to give this possibility to us. Because as you know doing a small enterprise or home server on fanless small computer could then be a really interesting solution (reduction of consumption and less noise).

Sincerely thanks for all your help until now and with pleasure to read you with a great solution.

Have a nice day,

Miguipda Wink

_________________
Miguipda Wink
Back to top
View user's profile Send private message
miguipda
Member


Joined: 14 Jul 2011
Posts: 93

PostPosted: Fri Jun 01, 2012 7:03 pm    Post subject: Reply with quote

Dear gerasimos_h,

I just tried now with one swap partition, one / partition and one personal data partition.

Same problem persist : kernel panic.

Sorry but I will wait your test results.

Have a good night.

Miguipda Wink

_________________
Miguipda Wink
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Sat Jun 02, 2012 8:49 am    Post subject: Reply with quote

OK! I made a USB install, so I now have a look of your situation.
In my installation the problem was that USB HDD always takes a new device assign, from sda to sdc to sdd. so booting was kind of impossible, so the only way to do this is by using UUID.

1. For kernel use hugesmp or generic, and an initrd image.
Code:
chroot /mnt/
mkinitrd -k 3.2.14-smp -r /dev/sda3 -m ext4:ehci_hcd:ohci_hcd:uhci_hcd -f ext4
exit

It doesn't matter specifying a root device as it will overridden from lilo.conf and fstab.

2. once finish installing edit /etc/fstab and change /dev/sdaX with your UUID
To find your UUID just type "blkid" and look for UUID=

Since you will be in installer, an easy way to get UUID without typing it (it's a long one) do e.g.
Code:
blkid /dev/sda3 |cut -d '"' -f 2 >> /mnt/etc/fstab

So if edit with nano you will have your /dev/sda3 UUID at the end of /etc/fstab
with ctrl+K you cut, and with ctrl+U you paste.
Do the same for boot and swap.

You fstab should look something like
Code:
UUID=21334433-232-13431232     swap      swap     defaults     0  0
UUID=21323233-232-12231232     /      ext4     defaults     1  1
UUID=21333333-343-34544532     /boot      ext3     defaults     1  2
...


3. Do the same in lilo.conf
Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
append="root=UUID=21323233-232-12231232"
LBA32
boot = /dev/sda
prompt
timeout = 20
compact
change-rules
reset
vga = 791
image = /boot/vmlinuz
  root = "UUID=21323233-232-12231232"
  label = SMS
  initrd=/boot/initrd.gz
  read-only

!! ATTENTION !!
in boot=/dev/sdX replace with your current device, even if that's not /dev/sda and it's /dev/sdb or /dev/sdc and so on.
It doesn't matter since when it boot it will look for UUID.

And don't forget the most important
Code:
lilo -C /mnt/etc/lilo.conf


And you are ready to go.. I boot my USB HDD in 2 different machines without a problem.

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
miguipda
Member


Joined: 14 Jul 2011
Posts: 93

PostPosted: Sun Jun 03, 2012 10:26 am    Post subject: Reply with quote

Dear gerasimos_h,

thanks for your last explaination I just tried.

I began with a blank situation. It means I partitioned (in ext4) my external USB HDD like previously explained :
/dev/sda1 for boot with 100 Mb
/dev/sda2 for swap with 3 Gb
/dev/sda3 for root with 10 Gb
/dev/sda4 for personal data

I install back the Native SMS on my USB key and booted on this (that always got the /dev/sdb1 on this computer).

Then as you just explained I ran the command :
Code:
chroot /mnt/

This will command back to the root prompt without error (perfect).

I ran this next explained command line :
Code:
mkinitrd -k 3.2.14-smp -r /dev/sda3 -m ext4:ehci_hcd:ohci_hcd:uhci_hcd -f ext4

It answers (witjout error) :
6105 Blocks
/boot/initrd.gz created
Be sure to run lilo again if you use it

After that in place of doing the give next command :
Code:
exit

I first tried to modify the fstab as explained :
Code:
blkid /dev/sda3 |cut -d '"' -f 2 >> /mnt/etc/fstab

This gived me an error message saying :
sh: /mnt/etc/fstab: No such file or directory

Then I checked what is in the /mnt/etc with :
Code:
ls /mnt

It returned :
README cdrecorder cdrom dvd floppy hd memory tmp zip



At this moment I though it was maybe due to the fact in place of doing a chroot /mnt you maybe want to talk about the previously explained :
Code:
mount /dev/sda3 /mnt/tmp
mount /dev/sda1 /mnt/tmp/boot/

Then I restarted to setup and just before doing the chroot I first used the previously mounted point : /dev/sda3 to /mnt/tmp (and as explained for the /dev/sda1).
Then I ran the chroot /mnt/tmp without receiving any error message.

But when I ran the mkinitrd I received those answers lines :
cat: /proc/partitions : No such file or directory
cat: /proc/partitions : No such file or directory
6104 blocks
Be sure to run lilo again if you use it

After that I ran the explained :
Code:
blkid /dev/sda3 |cut -d '"' -f 2 >> /mnt/etc/fstab

This gived me an error message saying :
... /mnt/etc/fstab: No such file or directory


Where did I miss something that generate the error I can not change the fstab before doing the lilo -C ... command line ?

Sincerely thanks and have a nice day,

Miguipda Wink

_________________
Miguipda Wink
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Sun Jun 03, 2012 10:32 am    Post subject: Reply with quote

If you mount with
Code:
mount /dev/sda3 /mnt/tmp
mount /dev/sda1 /mnt/tmp/boot/


then your fstab is at
Code:
/mnt/tmp/etc/fstab


gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SMS Forum Index » Installation Support All times are GMT + 2 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

SMS - Superb! Mini Server Project © 2016
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional