Unix Technical Forum

Installing Slack on another drive

This is a discussion on Installing Slack on another drive within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Can I install Slackware onto a drive then transfer that drive into another system if I run through the ...


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, 07:05 PM
Eugene Nine
 
Posts: n/a
Default Installing Slack on another drive

Can I install Slackware onto a drive then transfer that drive into another
system if I run through the normal setup like a new install. I'm thinking
it should work, just select the other drive as the install target and it
shouldn't touch the slack install already on the first drive right?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 07:05 PM
Grant
 
Posts: n/a
Default Re: Installing Slack on another drive

On Sun, 24 Sep 2006 19:21:51 -0400, Eugene Nine <no@spam.com> wrote:

>Can I install Slackware onto a drive then transfer that drive into another
>system if I run through the normal setup like a new install.


Yes, should be no problems.

Grant.

--
http://bugsplatter.mine.nu/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 07:05 PM
Robby Workman
 
Posts: n/a
Default Re: Installing Slack on another drive

On 2006-09-24, Eugene Nine <no@spam.com> wrote:
> Can I install Slackware onto a drive then transfer that drive into another
> system if I run through the normal setup like a new install. I'm thinking
> it should work, just select the other drive as the install target and it
> shouldn't touch the slack install already on the first drive right?
>



installpkg(8):

-root /otherroot
Install using a location other than / (the default) as the root of
the filesystem to install on. In the example given, use /otherroot
instead. Setting the ROOT environment variable does the same thing.

In other words, yes. It should work fine. In fact, this is a handy way
to set up a "clean" build environment on your system that you can then
chroot into...

RW

--

http://rlworkman.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 07:05 PM
Handover Phist
 
Posts: n/a
Default Re: Installing Slack on another drive

Robby Workman :
> On 2006-09-24, Eugene Nine <no@spam.com> wrote:
>> Can I install Slackware onto a drive then transfer that drive into another
>> system if I run through the normal setup like a new install. I'm thinking
>> it should work, just select the other drive as the install target and it
>> shouldn't touch the slack install already on the first drive right?
>>

>
>
> installpkg(8):
>
> -root /otherroot
> Install using a location other than / (the default) as the root of
> the filesystem to install on. In the example given, use /otherroot
> instead. Setting the ROOT environment variable does the same thing.
>
> In other words, yes. It should work fine. In fact, this is a handy way
> to set up a "clean" build environment on your system that you can then
> chroot into...


Just a thought, would this work over NFS? Samba?

--
SEIZE LIBERTY

http://www.websterscafe.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 07:05 PM
Sylvain Robitaille
 
Posts: n/a
Default Re: Installing Slack on another drive

Handover Phist wrote:

>> installpkg(8):
>> -root /otherroot
>> ...

>
> Just a thought, would this work over NFS? Samba?


I don't see why not ...

--
----------------------------------------------------------------------
Sylvain Robitaille syl@alcor.concordia.ca

Systems and Network analyst Concordia University
Instructional & Information Technology Montreal, Quebec, Canada
----------------------------------------------------------------------
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-20-2008, 07:05 PM
Robby Workman
 
Posts: n/a
Default Re: Installing Slack on another drive

On 2006-09-25, Handover Phist <jason@jason.websterscafe.com> wrote:
> Robby Workman :
>>
>> installpkg(8):
>>
>> -root /otherroot
>> Install using a location other than / (the default) as the root of
>> the filesystem to install on. In the example given, use /otherroot
>> instead. Setting the ROOT environment variable does the same thing.
>>
>> In other words, yes. It should work fine. In fact, this is a handy way
>> to set up a "clean" build environment on your system that you can then
>> chroot into...

>
> Just a thought, would this work over NFS? Samba?



Depending on what you mean by that, yes, it will. So far as the OS is
concerned, a mountpoint is a mountpoint in this context. For example, if
/mnt/nfs is an NFS share mounted from another box, and you have proper
write permissions as root, then:
installpkg -root /mnt/nfs $PKG_REPO/*/*.tgz
should work just fine.

RW

--

http://rlworkman.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-20-2008, 07:05 PM
Henrik Carlqvist
 
Posts: n/a
Default Re: Installing Slack on another drive

Handover Phist <jason@jason.websterscafe.com> wrote:
>> installpkg(8):
>>
>> -root /otherroot
>> Install using a location other than /


> Just a thought, would this work over NFS? Samba?


I can see no problem with NFS if root has enough permissions, but a Samba
share might not be aware of unix permissions and different unix users.
With smbfs you have an option (username) to connect as a single user only.

regards Henrik
--
The address in the header is only to prevent spam. My real address is:
hc8(at)uthyres.com Examples of addresses which go to spammers:
root@variousus.net root@localhost

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-20-2008, 07:05 PM
William Hunt
 
Posts: n/a
Default Re: Installing Slack on another drive

On Mon, 25 Sep 2006, Robby Workman wrote:

> On 2006-09-24, Eugene Nine <no@spam.com> wrote:
>> Can I install Slackware onto a drive then transfer that drive into another
>> system if I run through the normal setup like a new install. I'm thinking
>> it should work, just select the other drive as the install target and it
>> shouldn't touch the slack install already on the first drive right?
>>

>
> installpkg(8):
>
> -root /otherroot
> Install using a location other than / (the default) as the root of
> the filesystem to install on. In the example given, use /otherroot
> instead. Setting the ROOT environment variable does the same thing.
>
> In other words, yes. It should work fine. In fact, this is a handy way
> to set up a "clean" build environment on your system that you can then
> chroot into...
>
> RW


ummmmmmmmm, as i read the question, Eugene Nine wants to run
setup, not installpkg. eg., given a working slackbox with hda,
add fresh disk as hdb, boot to installer (cdrom), setup to hdb,
remove disk hdb, transport disk to some other box, add disk as
hda, boot and run slackware.

if so, answer is still yes, except that /etc/fstab would need to
be edited, s/hdb/hda. links for /dev/cdrom and /dev/modem might
also need tweaking, no bfd.


--
William Hunt, Portland Oregon USA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-20-2008, 07:05 PM
Eugene Nine
 
Posts: n/a
Default Re: Installing Slack on another drive

William Hunt wrote:

> On Mon, 25 Sep 2006, Robby Workman wrote:
>
>> On 2006-09-24, Eugene Nine <no@spam.com> wrote:
>>> Can I install Slackware onto a drive then transfer that drive into
>>> another
>>> system if I run through the normal setup like a new install. I'm
>>> thinking it should work, just select the other drive as the install
>>> target and it shouldn't touch the slack install already on the first
>>> drive right?
>>>

>>
>> installpkg(8):
>>
>> -root /otherroot
>> Install using a location other than / (the default) as the root of
>> the filesystem to install on. In the example given, use /otherroot
>> instead. Setting the ROOT environment variable does the same thing.
>>
>> In other words, yes. It should work fine. In fact, this is a handy way
>> to set up a "clean" build environment on your system that you can then
>> chroot into...
>>
>> RW

>
> ummmmmmmmm, as i read the question, Eugene Nine wants to run
> setup, not installpkg. eg., given a working slackbox with hda,
> add fresh disk as hdb, boot to installer (cdrom), setup to hdb,
> remove disk hdb, transport disk to some other box, add disk as
> hda, boot and run slackware.
>
> if so, answer is still yes, except that /etc/fstab would need to
> be edited, s/hdb/hda. links for /dev/cdrom and /dev/modem might
> also need tweaking, no bfd.
>
>

Would I even need to boot from the CD, can I just mount the CD and run setup
selecting the target of /dev/sda1 (drive in an USB enclosure) and have
setup install lilo and everything.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-20-2008, 07:05 PM
William Hunt
 
Posts: n/a
Default Re: Installing Slack on another drive

On Mon, 25 Sep 2006, Eugene Nine wrote:
> William Hunt wrote:
>> On Mon, 25 Sep 2006, Robby Workman wrote:
>>> On 2006-09-24, Eugene Nine <no@spam.com> wrote:
>>>> Can I install Slackware onto a drive then transfer that drive into
>>>> another
>>>> system if I run through the normal setup like a new install. I'm
>>>> thinking it should work, just select the other drive as the install
>>>> target and it shouldn't touch the slack install already on the first
>>>> drive right?
>>>
>>> installpkg(8):

[...]
>> ummmmmmmmm, as i read the question, Eugene Nine wants to run
>> setup, not installpkg. eg., given a working slackbox with hda,
>> add fresh disk as hdb, boot to installer (cdrom), setup to hdb,
>> remove disk hdb, transport disk to some other box, add disk as
>> hda, boot and run slackware.
>>
>> if so, answer is still yes, except that /etc/fstab would need to
>> be edited, s/hdb/hda. links for /dev/cdrom and /dev/modem might
>> also need tweaking, no bfd.
>>

> Would I even need to boot from the CD, can I just mount the CD and run setup
> selecting the target of /dev/sda1 (drive in an USB enclosure) and have
> setup install lilo and everything.


hmmmm. to be safe, boot from cd. Is there any good reason not to?
There is probably a simple method, to do it from a running system as
you ask, but i've never tried to do that ...

Note that the fstab edit mentioned above must be done -before- you
boot off the USB drive, and -must- match whatver whatever dev the USB
drive ends up as. I -think- this can be simplified using volume labels,
idunno, never tried - look for an excellant write-up on volume labels
in fstab posted here a few weeks back ...


--
William Hunt, Portland Oregon USA
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:21 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