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


Groups > linux.debian.user > #228880

Re: adding a second HDD in debian

From Andy Smith <andy@strugglers.net>
Newsgroups linux.debian.user
Subject Re: adding a second HDD in debian
Date 2020-11-22 00:00 +0100
Message-ID <BdK1n-1gf-15@gated-at.bofh.it> (permalink)
References <BdJHX-195-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hello,

On Sat, Nov 21, 2020 at 06:31:53PM -0400, Antonio Barragan wrote:
> I have a PC with Debian 10 installed (on dev/sda), and working properly.
> Now I would like to add to it a second, 150 GB HDD (SATA), taken from
> another machine.

[…]

> How could that be done?

If you don't have hot swap drive bays:

- Power off your computer
- Fit the new drive in the chassis and plug it into a free SATA port
- Boot your computer again

If you do have hot swap drive bays:

- Insert the new drive into a spare drive slot

Then:

- cat /proc/partitions to see what new partitions have appeared
- check /var/log/syslog and dmesg to see what new drives have been
  seen

Most likely the partitions from the new drive just appear and can be
mounted somewhere, put in /etc/fstab and so on.

A possible failure mode is that your computer reorders its drives
and the new one becomes sda. This may interfere with your boot
process. Hopefully you referred to everything by UUID or label so
that this doesn't happen. If it does cause problems just take the
new drive out again and things should return to normal. Then you may
have to consider swapping cables between ports, or adjusting BIOS
boot order, or similar.

Most of the time though, just plugging the new drive in goes fine.

Cheers,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

adding a second HDD in debian Antonio Barragan <ajbg96r@gmail.com> - 2020-11-21 23:40 +0100
  Re: adding a second HDD in debian Andy Smith <andy@strugglers.net> - 2020-11-22 00:00 +0100
  Re: adding a second HDD in debian Keith Bainbridge <ke1thozgroups@gmx.com> - 2020-11-22 00:10 +0100
  Re: adding a second HDD in debian Joe <joe@jretrading.com> - 2020-11-22 00:10 +0100
  Re: adding a second HDD in debian David Wright <deblis@lionunicorn.co.uk> - 2020-11-22 00:30 +0100

csiph-web