Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #231950 > unrolled thread

is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk

Started bySemih Ozlem <semihozlemlinuxuser@gmail.com>
First post2021-02-22 21:10 +0100
Last post2021-02-27 09:30 +0100
Articles 20 on this page of 44 — 18 participants

Back to article view | Back to linux.debian.user


Contents

  is it possible to add a secondary disk to an existing debian systems  and install programs to the secondary disk Semih Ozlem <semihozlemlinuxuser@gmail.com> - 2021-02-22 21:10 +0100
    Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk Brian <ad44@cityscape.co.uk> - 2021-02-22 21:30 +0100
      Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk Semih Ozlem <semihozlemlinuxuser@gmail.com> - 2021-02-22 22:00 +0100
        Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk Greg Wooledge <greg@wooledge.org> - 2021-02-22 22:20 +0100
          Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk Semih Ozlem <semihozlemlinuxuser@gmail.com> - 2021-02-22 22:40 +0100
            Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk "Andrew M.A. Cater" <amacater@einval.com> - 2021-02-22 23:20 +0100
            Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk David <bouncingcats@gmail.com> - 2021-02-22 23:20 +0100
              Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk Semih Ozlem <semihozlemlinuxuser@gmail.com> - 2021-02-23 00:10 +0100
                Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk David <bouncingcats@gmail.com> - 2021-02-23 00:20 +0100
                Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk "James H. H. Lampert" <jamesl@touchtonecorp.com> - 2021-02-23 17:20 +0100
                Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk Nicholas Geovanis <nickgeovanis@gmail.com> - 2021-02-23 17:20 +0100
                  Re: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk rhkramer@gmail.com - 2021-02-23 17:40 +0100
                    Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk Nicholas Geovanis <nickgeovanis@gmail.com> - 2021-02-23 18:00 +0100
                    Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk Joe <joe@jretrading.com> - 2021-02-23 18:20 +0100
            Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk Andrei POPESCU <andreimpopescu@gmail.com> - 2021-02-23 09:30 +0100
              Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk Celejar <celejar@gmail.com> - 2021-02-25 15:50 +0100
                Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk <tomas@tuxteam.de> - 2021-02-25 16:00 +0100
                Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk IL Ka <kazakevichilya@gmail.com> - 2021-02-25 16:00 +0100
                  Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk Celejar <celejar@gmail.com> - 2021-02-25 16:20 +0100
                    Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk IL Ka <kazakevichilya@gmail.com> - 2021-02-25 16:30 +0100
                      Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk The Wanderer <wanderer@fastmail.fm> - 2021-02-25 16:50 +0100
                        Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk Greg Wooledge <greg@wooledge.org> - 2021-02-25 17:00 +0100
                          Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk The Wanderer <wanderer@fastmail.fm> - 2021-02-25 17:10 +0100
                        Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk IL Ka <kazakevichilya@gmail.com> - 2021-02-25 17:00 +0100
                      Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk Celejar <celejar@gmail.com> - 2021-02-25 16:50 +0100
    Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk David Christensen <dpchrist@holgerdanske.com> - 2021-02-23 04:10 +0100
      Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk martin f krafft <madduck@debian.org> - 2021-02-23 11:40 +0100
        Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk Semih Ozlem <semihozlemlinuxuser@gmail.com> - 2021-02-26 07:00 +0100
          Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk Charles Curley <charlescurley@charlescurley.com> - 2021-02-26 08:00 +0100
            Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk Semih Ozlem <semihozlemlinuxuser@gmail.com> - 2021-02-26 08:40 +0100
              Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk Greg Wooledge <greg@wooledge.org> - 2021-02-26 13:30 +0100
          Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk David <bouncingcats@gmail.com> - 2021-02-26 11:00 +0100
            Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk Charles Curley <charlescurley@charlescurley.com> - 2021-02-26 18:30 +0100
              Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk Greg Wooledge <greg@wooledge.org> - 2021-02-26 18:50 +0100
                Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk Semih Ozlem <semihozlemlinuxuser@gmail.com> - 2021-02-27 09:40 +0100
                  Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk Semih Ozlem <semihozlemlinuxuser@gmail.com> - 2021-02-27 09:40 +0100
                    About keeping a Debian installation happy [was: is it possible to  add a secondary disk to an existing debian] systems and install programs to  the secondary disk <tomas@tuxteam.de> - 2021-02-27 10:20 +0100
                  Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk Joe <joe@jretrading.com> - 2021-02-27 10:10 +0100
                    Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk Semih Ozlem <semihozlemlinuxuser@gmail.com> - 2021-02-27 13:30 +0100
                      Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk Semih Ozlem <semihozlemlinuxuser@gmail.com> - 2021-02-27 13:30 +0100
                        Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk "Andrew M.A. Cater" <amacater@einval.com> - 2021-02-27 14:50 +0100
                      Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk Joe <joe@jretrading.com> - 2021-02-27 15:20 +0100
                      Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk David Wright <deblis@lionunicorn.co.uk> - 2021-03-01 01:40 +0100
          Re: is it possible to add a secondary disk to an existing debian  systems and install programs to the secondary disk martin f krafft <madduck@debian.org> - 2021-02-27 09:30 +0100

Page 1 of 3  [1] 2 3  Next page →


#231950 — is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk

FromSemih Ozlem <semihozlemlinuxuser@gmail.com>
Date2021-02-22 21:10 +0100
Subjectis it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk
Message-ID<BLpGO-8i-7@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Hi everyone,

First of all thanks to everyone who responded in detail to my previous
questions in email. Thanks for taking the time to read and reply to my
questions.

I would like to ask a different question. Suppose that I install debian on
a usb or a hard drive that does not have a lot of space. Suppose I get a
second hard disk that has more space. Can I add the second disk to the
debian system in a way so that additional programs that can not be
installed in the system without the second disk due to "no disk space left"
error can now be installed in the system. If the answer is yes, how should
one proceed to add the second hard disk to the system so that this can be
done?

Thanks

Semih Ozlem

[toc] | [next] | [standalone]


#231952 — Re: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk

FromBrian <ad44@cityscape.co.uk>
Date2021-02-22 21:30 +0100
SubjectRe: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk
Message-ID<BLq09-eK-1@gated-at.bofh.it>
In reply to#231950
On Mon 22 Feb 2021 at 23:04:00 +0300, Semih Ozlem wrote:

> Hi everyone,
> 
> First of all thanks to everyone who responded in detail to my previous
> questions in email. Thanks for taking the time to read and reply to my
> questions.
> 
> I would like to ask a different question. Suppose that I install debian on
> a usb or a hard drive that does not have a lot of space. Suppose I get a
> second hard disk that has more space. Can I add the second disk to the
> debian system in a way so that additional programs that can not be
> installed in the system without the second disk due to "no disk space left"
> error can now be installed in the system. If the answer is yes, how should
> one proceed to add the second hard disk to the system so that this can be
> done?

A really intetesting question. Maybe

  https://www.debian.org/releases/stable/amd64/release-notes/ch-upgrading.en.html#sufficient-space

helps you on your way.

-- 
Brian.

[toc] | [prev] | [next] | [standalone]


#231953 — Re: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk

FromSemih Ozlem <semihozlemlinuxuser@gmail.com>
Date2021-02-22 22:00 +0100
SubjectRe: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk
Message-ID<BLqtb-oP-1@gated-at.bofh.it>
In reply to#231952

[Multipart message — attachments visible in raw view] — view raw

It is a starting point but the problem is really not with whether there is
enough space to download installation files, for they can be downloaded
remotely to some other disk. The problem is when installing from the
downloaded files, the system itself may give an error saying no disk space
left. The problem is when installing the file I presume some files are
written in linux directory usually I presume or guess in /bin/ or /sbin so
that the installed programs become usable. When an external disk is added,
it is writable and readable but its space does not become incorporated or
available to /bin /sbin or whatever directories in linux filesystem get
used... Is it possible to make some changes to filesystem hierarchy so that
the additional disk becomes available to the system?

It is possible with some programs... One could extract files to any
directory one wishes, and run the program from the extracted directory. I
am not sure if it is possible with any program. (are .deb files basically
compressed files?)

I guess one problem one could run into is when the program needs to read
from and write to the rest of the system it needs to know where it is
located and how to access other elements of the system...

But apt-get install or dpkg -i will install files to /bin or /sbin ... Do
they have an option to install elsewhere and be able to resolve other
problems such as knowing its path and being able to communicate with other
paths appropriately?

Brian <ad44@cityscape.co.uk>, 22 Şub 2021 Pzt, 23:22 tarihinde şunu yazdı:

> On Mon 22 Feb 2021 at 23:04:00 +0300, Semih Ozlem wrote:
>
> > Hi everyone,
> >
> > First of all thanks to everyone who responded in detail to my previous
> > questions in email. Thanks for taking the time to read and reply to my
> > questions.
> >
> > I would like to ask a different question. Suppose that I install debian
> on
> > a usb or a hard drive that does not have a lot of space. Suppose I get a
> > second hard disk that has more space. Can I add the second disk to the
> > debian system in a way so that additional programs that can not be
> > installed in the system without the second disk due to "no disk space
> left"
> > error can now be installed in the system. If the answer is yes, how
> should
> > one proceed to add the second hard disk to the system so that this can be
> > done?
>
> A really intetesting question. Maybe
>
>
> https://www.debian.org/releases/stable/amd64/release-notes/ch-upgrading.en.html#sufficient-space
>
> helps you on your way.
>
> --
> Brian.
>
>

[toc] | [prev] | [next] | [standalone]


#231954 — Re: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk

FromGreg Wooledge <greg@wooledge.org>
Date2021-02-22 22:20 +0100
SubjectRe: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk
Message-ID<BLqMy-KY-9@gated-at.bofh.it>
In reply to#231953
Semih Ozlem (semihozlemlinuxuser@gmail.com) wrote:
> It is a starting point but the problem is really not with whether there is
> enough space to download installation files, for they can be downloaded
> remotely to some other disk. The problem is when installing from the
> downloaded files, the system itself may give an error saying no disk space
> left. The problem is when installing the file I presume some files are
> written in linux directory usually I presume or guess in /bin/ or /sbin so
> that the installed programs become usable. When an external disk is added,
> it is writable and readable but its space does not become incorporated or
> available to /bin /sbin or whatever directories in linux filesystem get
> used... Is it possible to make some changes to filesystem hierarchy so that
> the additional disk becomes available to the system?

You decide where to mount the new partition(s) or logical volume(s).

Start from the beginning, please.  Show us the output of "df -h" or
something.  Also tell us how the computer is being used (personal
desktop/laptop, server of some kind, etc.).  Tell us where the big
files are, or the big collections of files.

Tell us how big each disk is.

From there, people may be able to give you concrete advice, like "make
a 10 GB partition and mount it as /var", or "mount the entire second
disk as /home".

[toc] | [prev] | [next] | [standalone]


#231956 — Re: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk

FromSemih Ozlem <semihozlemlinuxuser@gmail.com>
Date2021-02-22 22:40 +0100
SubjectRe: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk
Message-ID<BLr5T-Rn-11@gated-at.bofh.it>
In reply to#231954

[Multipart message — attachments visible in raw view] — view raw

I am currently pre-planning. If it could be done, then I am going to go
about searching and purchasing necessary devices in order to do the task.
That's why I am asking in the first place. I have a usb device that I can
attach for testing now.

Currently I am just running from a live usb. Here is the output of df -h

Filesystem      Size  Used Avail Use% Mounted on
udev            1.9G     0  1.9G   0% /dev
tmpfs           384M  6.4M  378M   2% /run
/dev/sdb1       2.9G  2.9G     0 100% /run/live/medium
/dev/loop0      2.6G  2.6G     0 100% /run/live/rootfs/filesystem.squashfs
tmpfs           1.9G  1.8G   86M  96% /run/live/overlay
overlay         1.9G  1.8G   86M  96% /
tmpfs           1.9G  102M  1.8G   6% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
tmpfs           1.9G  436K  1.9G   1% /tmp
tmpfs           384M  5.8M  378M   2% /run/user/1000


Greg Wooledge <greg@wooledge.org>, 23 Şub 2021 Sal, 00:14 tarihinde şunu
yazdı:

> Semih Ozlem (semihozlemlinuxuser@gmail.com) wrote:
> > It is a starting point but the problem is really not with whether there
> is
> > enough space to download installation files, for they can be downloaded
> > remotely to some other disk. The problem is when installing from the
> > downloaded files, the system itself may give an error saying no disk
> space
> > left. The problem is when installing the file I presume some files are
> > written in linux directory usually I presume or guess in /bin/ or /sbin
> so
> > that the installed programs become usable. When an external disk is
> added,
> > it is writable and readable but its space does not become incorporated or
> > available to /bin /sbin or whatever directories in linux filesystem get
> > used... Is it possible to make some changes to filesystem hierarchy so
> that
> > the additional disk becomes available to the system?
>
> You decide where to mount the new partition(s) or logical volume(s).
>
> Start from the beginning, please.  Show us the output of "df -h" or
> something.  Also tell us how the computer is being used (personal
> desktop/laptop, server of some kind, etc.).  Tell us where the big
> files are, or the big collections of files.
>
> Tell us how big each disk is.
>
> From there, people may be able to give you concrete advice, like "make
> a 10 GB partition and mount it as /var", or "mount the entire second
> disk as /home".
>
>

[toc] | [prev] | [next] | [standalone]


#231957 — Re: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk

From"Andrew M.A. Cater" <amacater@einval.com>
Date2021-02-22 23:20 +0100
SubjectRe: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk
Message-ID<BLrIB-1jK-9@gated-at.bofh.it>
In reply to#231956
On Tue, Feb 23, 2021 at 12:37:52AM +0300, Semih Ozlem wrote:
> I am currently pre-planning. If it could be done, then I am going to go
> about searching and purchasing necessary devices in order to do the task.
> That's why I am asking in the first place. I have a usb device that I can
> attach for testing now.
> 
> Currently I am just running from a live usb. Here is the output of df -h
> 
> Filesystem      Size  Used Avail Use% Mounted on
> udev            1.9G     0  1.9G   0% /dev
> tmpfs           384M  6.4M  378M   2% /run
> /dev/sdb1       2.9G  2.9G     0 100% /run/live/medium
> /dev/loop0      2.6G  2.6G     0 100% /run/live/rootfs/filesystem.squashfs
> tmpfs           1.9G  1.8G   86M  96% /run/live/overlay
> overlay         1.9G  1.8G   86M  96% /
> tmpfs           1.9G  102M  1.8G   6% /dev/shm
> tmpfs           5.0M  4.0K  5.0M   1% /run/lock
> tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
> tmpfs           1.9G  436K  1.9G   1% /tmp
> tmpfs           384M  5.8M  378M   2% /run/user/1000
> 
> 
> Greg Wooledge <greg@wooledge.org>, 23 Şub 2021 Sal, 00:14 tarihinde şunu
> yazdı:
> 
> > Semih Ozlem (semihozlemlinuxuser@gmail.com) wrote:
> > > It is a starting point but the problem is really not with whether there
> > is
> > > enough space to download installation files, for they can be downloaded
> > > remotely to some other disk. The problem is when installing from the
> > > downloaded files, the system itself may give an error saying no disk
> > space
> > > left. The problem is when installing the file I presume some files are
> > > written in linux directory usually I presume or guess in /bin/ or /sbin
> > so
> > > that the installed programs become usable. When an external disk is
> > added,
> > > it is writable and readable but its space does not become incorporated or
> > > available to /bin /sbin or whatever directories in linux filesystem get
> > > used... Is it possible to make some changes to filesystem hierarchy so
> > that
> > > the additional disk becomes available to the system?
> >
> > You decide where to mount the new partition(s) or logical volume(s).
> >
> > Start from the beginning, please.  Show us the output of "df -h" or
> > something.  Also tell us how the computer is being used (personal
> > desktop/laptop, server of some kind, etc.).  Tell us where the big
> > files are, or the big collections of files.
> >
> > Tell us how big each disk is.
> >
> > From there, people may be able to give you concrete advice, like "make
> > a 10 GB partition and mount it as /var", or "mount the entire second
> > disk as /home".
> >
> >
This is, effectively, what LVM was invented for: with a bit of care, you can
add another disk and "just add it" as extra storage.

[The debian-handbook package may be quite useful: a long book which covers a
lot of the basics and some advanced topics. It was very professionally written
by a Debian developer of long experience and covers a lot of your questions.
The package installs a PDF - you can also purchase print copies online.]

Having said that, if you partition disks using your own partitioning scheme
and run out of space in /var/ , say, you may have locked up the machine enough
that it's hard to undo enough to attach another disk.

This is one of the reasons why it's quite useful to keep a spare desktop style
machine around to practice installs, learn how to deal with breakage, have a
machine to practice upgrades to the next stable version and so on :)

All the best,

Andy C.

[toc] | [prev] | [next] | [standalone]


#231958 — Re: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk

FromDavid <bouncingcats@gmail.com>
Date2021-02-22 23:20 +0100
SubjectRe: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk
Message-ID<BLrIC-1jK-13@gated-at.bofh.it>
In reply to#231956
On Tue, 23 Feb 2021 at 08:38, Semih Ozlem <semihozlemlinuxuser@gmail.com> wrote:

> I have a usb device that I can attach for testing now.

Sorry if I overlooked that you provided this information already
elsewhere, but I think it would help us to help you if you would
properly describe for us the hardware that you are currently using.

1) What processor and motherboard hardware are you currently using?
   Make and model?
2) How much RAM is available?
3) What storage devices (eg hard disk drives) are connected to this?
   Make and model?   Using what busses/interfaces (eg SATA, USB)?
4) What is the software goal? What is the intended use?
   What services or applications do you wish to run on this hardware?

[toc] | [prev] | [next] | [standalone]


#231961 — Re: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk

FromSemih Ozlem <semihozlemlinuxuser@gmail.com>
Date2021-02-23 00:10 +0100
SubjectRe: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk
Message-ID<BLsv0-1Sm-5@gated-at.bofh.it>
In reply to#231958

[Multipart message — attachments visible in raw view] — view raw

processor i3-7100 ram 4 gb other details will have to restart the machine
to tell.
storage device there is an internal hard disk (500gb) that has windows
installed on it, which I can not install another operating system to for
now for reasons that I would have to back up files before and I don't have
time right now to do that, and I am not sure about what would be the safest
way of copying files (or should I clone the disk instead)
I will send lshw output shortly for interfaces and everything else.

Software goal is (i) be able to test different systems, and planning to use
virtualization for this purpose (ii) possibly create virtual machines with
programs installed (iii) a sort of a potential goal is to build a web site
and host it , but mainly just rather for learning how to do it, since
probably I can not afford for now actually investing in necessary equipment
and probably it is easier to do that by paying some service rather than
doing it all on one's own (iv) be able to run some programming projects in
python

I sort of like exploring and testing out new things, and most of it is not
planned. But basically I would like to have the system be able to hold (i)
security tools/antivirus (ii) server (apache and samba), probably LAMP or
nginx (iii) math packages / programs (R,gnuplot, lapack, and possibly
others) (iv) programming packages (gcc,python,java,rhino) at the very least
(v) virtualization (virtualbox) (vi) calibre (document viewing and creating
instruments) (v) latex (vi) programs to record and view videos or audios,
if possible running on the same machine. Of these, I may forego idea of
running a server if this slows things too much.

If possible also programming tools for machine-learning.

David <bouncingcats@gmail.com>, 23 Şub 2021 Sal, 01:10 tarihinde şunu yazdı:

> On Tue, 23 Feb 2021 at 08:38, Semih Ozlem <semihozlemlinuxuser@gmail.com>
> wrote:
>
> > I have a usb device that I can attach for testing now.
>
> Sorry if I overlooked that you provided this information already
> elsewhere, but I think it would help us to help you if you would
> properly describe for us the hardware that you are currently using.
>
> 1) What processor and motherboard hardware are you currently using?
>    Make and model?
> 2) How much RAM is available?
> 3) What storage devices (eg hard disk drives) are connected to this?
>    Make and model?   Using what busses/interfaces (eg SATA, USB)?
> 4) What is the software goal? What is the intended use?
>    What services or applications do you wish to run on this hardware?
>
>

[toc] | [prev] | [next] | [standalone]


#231962 — Re: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk

FromDavid <bouncingcats@gmail.com>
Date2021-02-23 00:20 +0100
SubjectRe: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk
Message-ID<BLsEF-1WY-5@gated-at.bofh.it>
In reply to#231961
On Tue, 23 Feb 2021 at 10:02, Semih Ozlem <semihozlemlinuxuser@gmail.com> wrote:

Thanks for the info.

What is the make/model of the external USB disk?
Which version of USB port is it connected to?

> storage device there is an internal hard disk (500gb) that has windows installed on it, which I can not install another operating system to for now for reasons that I would have to back up files before and I don't have time right now to do that, and I am not sure about what would be the safest way of copying files (or should I clone the disk instead)

Is there physical space inside this machine into which you could
fit an extra internal (eg SATA) hard disk drive, and use it for experiments
with other operating systems?

[toc] | [prev] | [next] | [standalone]


#231984 — Re: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk

From"James H. H. Lampert" <jamesl@touchtonecorp.com>
Date2021-02-23 17:20 +0100
SubjectRe: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk
Message-ID<BLIzL-39j-5@gated-at.bofh.it>
In reply to#231961
On 2/23/21 8:13 AM, Nicholas Geovanis wrote:
> You can always add more filesystem space later. It's easier if you're using
> LVM but that isn't required. You just build another filesystem on the new
> drive after it's installed and mount it into your filesystems, at the
> appropriate mount point.

Indeed, and on my DOS/Linux dual-boot at home, I have the Linux side set 
up to mount all five DOS volumes.

--
JHHL

[toc] | [prev] | [next] | [standalone]


#231985 — Re: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk

FromNicholas Geovanis <nickgeovanis@gmail.com>
Date2021-02-23 17:20 +0100
SubjectRe: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk
Message-ID<BLIzL-39j-7@gated-at.bofh.it>
In reply to#231961

[Multipart message — attachments visible in raw view] — view raw

You can always add more filesystem space later. It's easier if you're using
LVM but that isn't required. You just build another filesystem on the new
drive after it's installed and mount it into your filesystems, at the
appropriate mount point.

Where is that? Depends on your needs. What if it's a critical filesystem
that you can't unmount while the OS is up? Or what if you need to copy a
critical fs to the new drive and reboot using the new, bigger copy? If
either is the case, write back and we'll pick it up from there.

On Mon, Feb 22, 2021, 5:03 PM Semih Ozlem <semihozlemlinuxuser@gmail.com>
wrote:

> processor i3-7100 ram 4 gb other details will have to restart the machine
> to tell.
> storage device there is an internal hard disk (500gb) that has windows
> installed on it, which I can not install another operating system to for
> now for reasons that I would have to back up files before and I don't have
> time right now to do that, and I am not sure about what would be the safest
> way of copying files (or should I clone the disk instead)
> I will send lshw output shortly for interfaces and everything else.
>
> Software goal is (i) be able to test different systems, and planning to
> use virtualization for this purpose (ii) possibly create virtual machines
> with programs installed (iii) a sort of a potential goal is to build a web
> site and host it , but mainly just rather for learning how to do it, since
> probably I can not afford for now actually investing in necessary equipment
> and probably it is easier to do that by paying some service rather than
> doing it all on one's own (iv) be able to run some programming projects in
> python
>
> I sort of like exploring and testing out new things, and most of it is not
> planned. But basically I would like to have the system be able to hold (i)
> security tools/antivirus (ii) server (apache and samba), probably LAMP or
> nginx (iii) math packages / programs (R,gnuplot, lapack, and possibly
> others) (iv) programming packages (gcc,python,java,rhino) at the very least
> (v) virtualization (virtualbox) (vi) calibre (document viewing and creating
> instruments) (v) latex (vi) programs to record and view videos or audios,
> if possible running on the same machine. Of these, I may forego idea of
> running a server if this slows things too much.
>
> If possible also programming tools for machine-learning.
>
> David <bouncingcats@gmail.com>, 23 Şub 2021 Sal, 01:10 tarihinde şunu
> yazdı:
>
>> On Tue, 23 Feb 2021 at 08:38, Semih Ozlem <semihozlemlinuxuser@gmail.com>
>> wrote:
>>
>> > I have a usb device that I can attach for testing now.
>>
>> Sorry if I overlooked that you provided this information already
>> elsewhere, but I think it would help us to help you if you would
>> properly describe for us the hardware that you are currently using.
>>
>> 1) What processor and motherboard hardware are you currently using?
>>    Make and model?
>> 2) How much RAM is available?
>> 3) What storage devices (eg hard disk drives) are connected to this?
>>    Make and model?   Using what busses/interfaces (eg SATA, USB)?
>> 4) What is the software goal? What is the intended use?
>>    What services or applications do you wish to run on this hardware?
>>
>>

[toc] | [prev] | [next] | [standalone]


#231986 — Re: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk

Fromrhkramer@gmail.com
Date2021-02-23 17:40 +0100
SubjectRe: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk
Message-ID<BLIT8-3fx-9@gated-at.bofh.it>
In reply to#231985
On Tuesday, February 23, 2021 11:13:12 AM Nicholas Geovanis wrote:
> You can always add more filesystem space later. It's easier if you're using
> LVM but that isn't required. You just build another filesystem on the new
> drive after it's installed and mount it into your filesystems, at the
> appropriate mount point.

Don't you have to do things like copy the old filesystem content to the new 
filesystem (possibly using a temporary mount point for one of those), then move 
the new filesystem to the old mount point?  (Maybe that is only if they are 
"system" filesystems (e.g., /var, /etc, /home ...?)

> Where is that? Depends on your needs. What if it's a critical filesystem
> that you can't unmount while the OS is up? Or what if you need to copy a
> critical fs to the new drive and reboot using the new, bigger copy? If
> either is the case, write back and we'll pick it up from there.

[toc] | [prev] | [next] | [standalone]


#231987 — Re: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk

FromNicholas Geovanis <nickgeovanis@gmail.com>
Date2021-02-23 18:00 +0100
SubjectRe: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk
Message-ID<BLJct-3m9-1@gated-at.bofh.it>
In reply to#231986

[Multipart message — attachments visible in raw view] — view raw

On Tue, Feb 23, 2021, 10:37 AM <rhkramer@gmail.com> wrote:

> On Tuesday, February 23, 2021 11:13:12 AM Nicholas Geovanis wrote:
> > You can always add more filesystem space later. It's easier if you're
> using
> > LVM but that isn't required. You just build another filesystem on the new
> > drive after it's installed and mount it into your filesystems, at the
> > appropriate mount point.
>
> Don't you have to do things like copy the old filesystem content to the
> new
> filesystem (possibly using a temporary mount point for one of those), then
> move
> the new filesystem to the old mount point?  (Maybe that is only if they
> are
> "system" filesystems (e.g., /var, /etc, /home ...?)
>

I answered that in my 2nd paragraph, which you see right below this text.
One step at a time for a newer sysadmin.

> Where is that? Depends on your needs. What if it's a critical filesystem
> > that you can't unmount while the OS is up? Or what if you need to copy a
> > critical fs to the new drive and reboot using the new, bigger copy? If
> > either is the case, write back and we'll pick it up from there.
>
>

[toc] | [prev] | [next] | [standalone]


#231988 — Re: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk

FromJoe <joe@jretrading.com>
Date2021-02-23 18:20 +0100
SubjectRe: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk
Message-ID<BLJvP-3IF-1@gated-at.bofh.it>
In reply to#231986
On Tue, 23 Feb 2021 11:37:12 -0500
rhkramer@gmail.com wrote:

> On Tuesday, February 23, 2021 11:13:12 AM Nicholas Geovanis wrote:
> > You can always add more filesystem space later. It's easier if
> > you're using LVM but that isn't required. You just build another
> > filesystem on the new drive after it's installed and mount it into
> > your filesystems, at the appropriate mount point.  
> 
> Don't you have to do things like copy the old filesystem content to
> the new filesystem (possibly using a temporary mount point for one of
> those), then move the new filesystem to the old mount point?  (Maybe
> that is only if they are "system" filesystems (e.g., /var, /etc,
> /home ...?)
> 

Yes, and you also need to delete the content in the original directory
tree, or else you don't recover the space. Most of this is most easily
done from a live/rescue OS with the host OS offline, though it can be
done online with a bit more work.

If you're moving /usr it is wise to rebuild grub from chroot, making a
new initramfs. Systemd requires /usr during boot and gets quite upset
if it can't find it. I'm aware there is controversy about putting
essential system software in a tree named '/usr' and I'm not going to
add to it.

There are many web articles on how to add and mount a new drive, but
hardly any (mostly one for Ubuntu repeated widely) for actually moving
an existing directory tree, especially a system one like /usr. I
hesitate to offer details as it is a long time, pre-systemd, since I
last did it.


-- 
Joe

[toc] | [prev] | [next] | [standalone]


#231969 — Re: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk

FromAndrei POPESCU <andreimpopescu@gmail.com>
Date2021-02-23 09:30 +0100
SubjectRe: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk
Message-ID<BLBeW-7eN-7@gated-at.bofh.it>
In reply to#231956

[Multipart message — attachments visible in raw view] — view raw

On Ma, 23 feb 21, 00:37:52, Semih Ozlem wrote:
> I am currently pre-planning. If it could be done, then I am going to go
> about searching and purchasing necessary devices in order to do the task.
> That's why I am asking in the first place. I have a usb device that I can
> attach for testing now.
> 
> Currently I am just running from a live usb. Here is the output of df -h

It seems to me like you are making some assumptions about Debian (and 
possibly Linux distributions in general) that lead to wrong conclusions.

While it is technically possible to install Debian packages to different 
locations this is most likely the wrong solution to your problem.

For a start it may help to understand the Filesystem Hierarchy 
Standard[1][2].

Additionally, a major difference between Debian (as well as most other 
Linux systems) and Windows is that library packages are installed to be 
available for all other packages on the system. This means that a 
library package forcibly installed to a different location is suddenly 
unavailable for packages that might need it. And this is just the 
beginning of potential problems if you go this route.

As you seem to want to experiment the best solution for you is to do 
just that: experiment ;)

I would recommend to start with a blank drive[3] and keep your 
partitioning as simple as possible (e.g. all in one partition).

As you start filling the drive you can look into what data (preferable, 
if your application supports it) or parts of the system you need to move 
to different drives. Common candidates are /home (user data) and /var 
(variable application data) and even /usr (system packages, rather 
unlikely though).

As has already been suggested, LVM can be used to make your storage more 
flexible, while adding significant complexity.

[1] https://manpages.debian.org/hier
[2] Live systems in particular might deviate significantly from it.

Have fun,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

[toc] | [prev] | [next] | [standalone]


#232091 — Re: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk

FromCelejar <celejar@gmail.com>
Date2021-02-25 15:50 +0100
SubjectRe: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk
Message-ID<BMq7M-4hI-5@gated-at.bofh.it>
In reply to#231969
On Tue, 23 Feb 2021 10:21:49 +0200
Andrei POPESCU <andreimpopescu@gmail.com> wrote:

...

> Additionally, a major difference between Debian (as well as most other 
> Linux systems) and Windows is that library packages are installed to be 
> available for all other packages on the system. This means that a 
> library package forcibly installed to a different location is suddenly 
> unavailable for packages that might need it. And this is just the 
> beginning of potential problems if you go this route.

Aren't Windows DLLs roughly analogous to Linux library packages?

Celejar

[toc] | [prev] | [next] | [standalone]


#232092 — Re: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk

From<tomas@tuxteam.de>
Date2021-02-25 16:00 +0100
SubjectRe: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk
Message-ID<BMqhs-4n8-1@gated-at.bofh.it>
In reply to#232091

[Multipart message — attachments visible in raw view] — view raw

On Thu, Feb 25, 2021 at 08:58:42AM -0500, Celejar wrote:
> On Tue, 23 Feb 2021 10:21:49 +0200
> Andrei POPESCU <andreimpopescu@gmail.com> wrote:
> 
> ...
> 
> > Additionally, a major difference between Debian (as well as most other 
> > Linux systems) and Windows is that library packages are installed to be 
> > available for all other packages on the system. This means that a 
> > library package forcibly installed to a different location is suddenly 
> > unavailable for packages that might need it. And this is just the 
> > beginning of potential problems if you go this route.
> 
> Aren't Windows DLLs roughly analogous to Linux library packages?

Not really "library packages", but rather "libraries" or "shared objects".

Technically yes, but traditionally DLLs tend to come "with the app",
so under Windows it's more frequent for each app to bring along their
own version of a DLL.

This is now changing a bit with flatpaks and similar things.

Cheers
 - t

[toc] | [prev] | [next] | [standalone]


#232093 — Re: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk

FromIL Ka <kazakevichilya@gmail.com>
Date2021-02-25 16:00 +0100
SubjectRe: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk
Message-ID<BMqhs-4n8-3@gated-at.bofh.it>
In reply to#232091

[Multipart message — attachments visible in raw view] — view raw

>
> Aren't Windows DLLs roughly analogous to Linux library packages?
>

In most cases yes. On Windows you can install the library to the "System32"
and access it from anywhere.
But since most software in Windows is installed not from "repository" but
from some random places instead, "DLL hell" may come.
Modern Windows uses "side-by-side" (WinSxS) technology to fix that.
But some apps just bundle dlls not to pollute OS with their dependencies.

In **nix world people install software from the repository, so all apps
share the same versions of their libraries.

[toc] | [prev] | [next] | [standalone]


#232099 — Re: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk

FromCelejar <celejar@gmail.com>
Date2021-02-25 16:20 +0100
SubjectRe: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk
Message-ID<BMqAO-4Md-15@gated-at.bofh.it>
In reply to#232093
On Thu, 25 Feb 2021 17:56:20 +0300
IL Ka <kazakevichilya@gmail.com> wrote:

> >
> > Aren't Windows DLLs roughly analogous to Linux library packages?
> >
> 
> In most cases yes. On Windows you can install the library to the "System32"
> and access it from anywhere.
> But since most software in Windows is installed not from "repository" but
> from some random places instead, "DLL hell" may come.
> Modern Windows uses "side-by-side" (WinSxS) technology to fix that.
> But some apps just bundle dlls not to pollute OS with their dependencies.
> 
> In **nix world people install software from the repository, so all apps
> share the same versions of their libraries.

Thanks for the explanation. But I guess that the Windows style is
becoming increasingly common in the Linux world as well, with the rise
of Docker, Flatpak, Snap, etc. (as another poster in this thread
mentioned). And these are not just for those who don't understand the
value of using the repositories: lately I've been encountering quite a
few popular and useful applications (e.g., Nextcloud (server), Jitsi,
Caddy, Traefik) that for whatever reason (upstream doesn't maintain a
sufficiently stable version, etc.) are not packaged for Debian, and
going the Docker / Flatpak / Snap route is quite tempting.

Celejar

[toc] | [prev] | [next] | [standalone]


#232100 — Re: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk

FromIL Ka <kazakevichilya@gmail.com>
Date2021-02-25 16:30 +0100
SubjectRe: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk
Message-ID<BMqKu-4QM-13@gated-at.bofh.it>
In reply to#232099

[Multipart message — attachments visible in raw view] — view raw

>
> Thanks for the explanation. But I guess that the Windows style is
> becoming increasingly common in the Linux world as well,

You mean  "side by side", right?

I agree. Some developers took another approach and compiled all their code
statically.
AFAIK "Go" language does it by default, so all libraries are simply
"packed" to the one big binary file
that depends on kernel ABI only.

with the rise
> of Docker, Flatpak, Snap, etc. (as another poster in this thread
> mentioned). And these are not just for those who don't understand the
> value of using the repositories: lately I've been encountering quite a
> few popular and useful applications (e.g., Nextcloud (server), Jitsi,
> Caddy, Traefik) that for whatever reason (upstream doesn't maintain a
> sufficiently stable version, etc.) are not packaged for Debian, and
> going the Docker / Flatpak / Snap route is quite tempting.
>

Yes, this reason is very common: I need "Python 3.9", but stable Debian
doesn't have it.
So, I have to use Docker.

There is even a Linux distro that doesn't have anything except bare core
OS: "Core OS"


>

[toc] | [prev] | [next] | [standalone]


Page 1 of 3  [1] 2 3  Next page →

Back to top | Article view | linux.debian.user


csiph-web