Unix Technical Forum

install slack 10.2 from Hard drive

This is a discussion on install slack 10.2 from Hard drive within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I'm trying to install slack 10.2 on an old system which has no cdrom drive. I managed to copy ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 06:23 PM
heavytull
 
Posts: n/a
Default install slack 10.2 from Hard drive

I'm trying to install slack 10.2 on an old system which has no cdrom
drive.
I managed to copy the content of cd1 and cd2 into a directory at the
root of the target partition.

for booting I used 3 disketttes (one for boot (bare.i) and the 2 others
are root diskettes (install.1 and install.2))

so I'm in a live linux;
and mount the hard drive on which I copied the content of the cds

I start by typing: setup

when I reach "SOURCE" in the setup menu I select "4. Install from a
pre-mounted directory"

and do what is required

but it fails
and I get back on the main setup menu

i think it failed because the source files were on the target
partition.
is it?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 06:23 PM
Milan Babuskov
 
Posts: n/a
Default Re: install slack 10.2 from Hard drive

heavytull wrote:
> i think it failed because the source files were on the target
> partition.
> is it?


I did it, but differently. I copied the .iso files to a separate
partition, mounted that on /install, created symlink and installed as if
it was from CD. Here's how:

Let's assume partition with .iso files is /dev/hda3:

mkdir /install
mount /dev/hda3 /install

Make fake entry in /dev:
ln -s /install/slack1.iso /dev/mycd

Edit the installer to use -o loop. Open the file:
/usr/lib/setup/INSCD

Find the part where it says:
while [ 0 ]; do # time to mount the CD/DVD device:
mount -o ro -t iso9600 $DRIVE_FOUND /var/log/mount 1> $RDIR 2> $RDIR

Change "-o ro" with "-o ro,loop"

Run "setup", select CDROM as installation media, type the path manually
"/dev/mycd". When installer asks for disc2, just open the other console
(Alt+F2) and mount it:

mount /dev/mycd -o ro,loop /var/log/mount/


Enjoy.

--
Milan Babuskov
http://njam.sourceforge.net
http://swoes.blogspot.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 06:24 PM
Jeffrey Froman
 
Posts: n/a
Default Re: install slack 10.2 from Hard drive

heavytull wrote:

> i think it failed because the source files were on the target
> partition.
> is it?


Yes most likely this is the case. Place the files on a NON target partition,
and mount it somewhere OTHER than /mnt, and it should work better.

Jeffrey
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 06:24 PM
heavytull
 
Posts: n/a
Default Re: install slack 10.2 from Hard drive


Milan Babuskov wrote:
> heavytull wrote:
> > i think it failed because the source files were on the target
> > partition.
> > is it?

>
> I did it, but differently. I copied the .iso files to a separate
> partition, mounted that on /install, created symlink and installed as if
> it was from CD. Here's how:
>
> Let's assume partition with .iso files is /dev/hda3:
>
> mkdir /install
> mount /dev/hda3 /install
>

ok
> Make fake entry in /dev:
> ln -s /install/slack1.iso /dev/mycd
>

why in /dev/????
> Edit the installer to use -o loop. Open the file:
> /usr/lib/setup/INSCD
>
> Find the part where it says:
> while [ 0 ]; do # time to mount the CD/DVD device:
> mount -o ro -t iso9600 $DRIVE_FOUND /var/log/mount 1> $RDIR 2> $RDIR
>
> Change "-o ro" with "-o ro,loop"
>

thanks for this info

> Run "setup", select CDROM as installation media, type the path manually
> "/dev/mycd". When installer asks for disc2, just open the other console
> (Alt+F2) and mount it:
>

not so simple!
actually I managed to get the two cd images in /hdd1 (by mkdir and
mouting..).
the I ln -s img1 cd_img

when the setup pgrm asks for disc 2 I ln -s img2 cd_img

> mount /dev/mycd -o ro,loop /var/log/mount/
>

so the setup pgrm doesn't mount itself the second disc!?
I tried without mounting but it didn't work
so I retried after having mounted the disc. it went on fine.
>
> Enjoy.


yes
>
> --
> Milan Babuskov
> http://njam.sourceforge.net
> http://swoes.blogspot.com


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 06:25 PM
Milan Babuskov
 
Posts: n/a
Default Re: install slack 10.2 from Hard drive

heavytull wrote:
>>Make fake entry in /dev:
>>ln -s /install/slack1.iso /dev/mycd

>
> why in /dev/????


I can't remember (I did it about a year ago, so I just copy/pasted from
my notes I made back then).

>>mount /dev/mycd -o ro,loop /var/log/mount/

>
> so the setup pgrm doesn't mount itself the second disc!?


I thought it would (reading the script seemed that way) but it didn't.
Perhaps the "eject" failed since it was mounted via loop and it had
problems with that.


--
Milan Babuskov
http://njam.sourceforge.net
http://swoes.blogspot.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-20-2008, 06:25 PM
heavytull
 
Posts: n/a
Default Re: install slack 10.2 from Hard drive


Milan Babuskov wrote:
> heavytull wrote:
> >>Make fake entry in /dev:
> >>ln -s /install/slack1.iso /dev/mycd

> >
> > why in /dev/????

>
> I can't remember (I did it about a year ago, so I just copy/pasted from
> my notes I made back then).
>
> >>mount /dev/mycd -o ro,loop /var/log/mount/

> >
> > so the setup pgrm doesn't mount itself the second disc!?

>
> I thought it would (reading the script seemed that way) but it didn't.
> Perhaps the "eject" failed since it was mounted via loop and it had
> problems with that.
>

fortunately we could go head on setup
>
> --
> Milan Babuskov
> http://njam.sourceforge.net
> http://swoes.blogspot.com


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:01 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com