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 » Bugs

Post new topic   Reply to topic
sms-text-installer doesnt see sda10 & installs to sda1?!
View previous topic :: View next topic  
Author Message
linus72
Junior Member


Joined: 21 Mar 2009
Posts: 4

PostPosted: Fri Apr 09, 2010 3:58 pm    Post subject: sms-text-installer doesnt see sda10 & installs to sda1?! Reply with quote

OK

so, I thought I'd install sms 1.5.0 to my sda10 partition

upon running the installer it (thankfully) formatted sda10
but then actually installed itself into sda1 which was ubuntu 9.04

So, now obviously my 9.04 install is seriously fubar'd and wont boot correctly
and stops trying to run clamav,etc from sms.

I dont so much care about 9.04 as its gotta go anyway

I do care that the install failed so bad.

I am going to install to sda1 this time

But, need to know if this installer issue can be fixed?
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1743
Location: Greece

PostPosted: Fri Apr 09, 2010 5:37 pm    Post subject: Reply with quote

I see what the problem is?
I'll fix it and try it, just in case.
The problem is with all actions containing
"cat $TMP/pout | cut -b 6-9" and generally "cut -b 6-9" or "cut -b 1-9".
so /dev/sda10 outputs /dev/sda1
The appropriate would be
"cat $TMP/pout | cut -b 6-10"
Sorry but I never thought a machine that acts as a server would have root "/" or "/boot" on a such high device number.
Have you try installing SMS.Native.CD?
It's more appropriate for installation, although you should choose custom lilo configuration in you situation.

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
linus72
Junior Member


Joined: 21 Mar 2009
Posts: 4

PostPosted: Fri Apr 09, 2010 6:20 pm    Post subject: Reply with quote

Thanks for answering!

Well, I'm a distro hopper, love Slackware, love livecd's
love making livecd's, see here
http://multidistro.com/

http://linux.softpedia.com/progMoreBy/Publisher-AegisX-31789.html

So, I have many many different and diverse Linux distro's installed
from kolibriOS to ttylinux to slack to gentoo,etc
you know

I have many partitions too

I thought sms's installer would be similar to remastersys's installer
or maybe slackware's. so i used it, not thinking about having many partitions.

as I said the formatting and swap formatting parts all worked well
just where it actually installed to was sda1 instead of sda10,etc

I didnt look at the installer script before installing, I usually dont

Hopefully you can fix it, though maybe it is not so neccesary for a normal sms user.

In the meantime, being no newbie, I could manually install it
by lzm2dir and setting up fstab, lilo, etc yes?

would there be symlink isuues once its un-lzm'd?

thanks
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1743
Location: Greece

PostPosted: Fri Apr 09, 2010 6:55 pm    Post subject: Reply with quote

Since you want to use LiveCD for installation:
Once you boot:
You could try
sed -e "s,cut -b 1-9,cut -b 1-10,g" -i /usr/bin/sms-text-installer
sed -e "s,cut -b 6-9,cut -b 6-10,g" -i /usr/bin/sms-text-installer

and run the installer if you are brave enough, I did it on virtual machine and it worked.
But LiveCD has only automatically lilo configuration and not manually.

It's quite simple to install manually on the other hand.
Once you boot:
use cfdisk, parted or mkfs your partition e.g. 'mkfs.ext4 /dev/sda10'.
mount your partition
mkdir /mnt/sda10
mount /dev/sda10 /mnt/sda10

The installer use
cp -R --preserve /{bin,boot,dev,etc,home,lib,root,sbin,srv,usr,var} /mnt/sda10
to copy files but you can use also
cp -a /{bin,boot,dev,etc,home,lib,root,sbin,srv,usr,var} /mnt/sda10
create directories
mkdir /mnt/sda10/{mnt,proc,sys,tmp}
copy your kernel to your partition
cp /mnt/live/mnt/*/boot/vmlinuz /mnt/sda10/boot/
create you fstab with vi or nano e.g. nano /mnt/sda10/etc/fstab
it should look something like
/dev/sda5 swap swap defaults 0 0
/dev/sda10 / ext4 defaults 1 1


mount --bind /dev /mnt/sda10/dev
mount -t proc /proc /mnt/sda10/proc
chroot /mnt/sda10

and run
liloconfig.

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
linus72
Junior Member


Joined: 21 Mar 2009
Posts: 4

PostPosted: Mon Apr 12, 2010 2:00 am    Post subject: Reply with quote

OK

well, it installed OK doing it manually, but at boot up I get kernel panic and it says the prior gentoo install is somehow still trying to boot gentoo's 2.6.33 kernel

LOL

Question:

Can sms-text-installer "see" my sdb Harddrive?

I have a partition on sdb (/dev/sdb2)

I dont want it thinking its /dev/sda2

thanks
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1743
Location: Greece

PostPosted: Mon Apr 12, 2010 6:17 am    Post subject: Reply with quote

It can sees as many disks as you have no problem there at all, and if you sed the above lines it will see up to 99 partitions.

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
jose89
Junior Member


Joined: 07 Feb 2011
Posts: 5

PostPosted: Fri Feb 11, 2011 7:33 am    Post subject: Reply with quote

Hey, I could learn a lot after going through the whole problem above here. I am actually new to Linux and got to get many tips like this in solving issues. The pocket writer OS is really very good. I am really looking forward to knowing more of such interesting things. Embarassed
_________________
hr services
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SMS Forum Index » Bugs All times are GMT + 2 Hours
Page 1 of 1

 
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 cannot 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