LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-18-2015, 01:31 PM   #1
smbelow
LQ Newbie
 
Registered: Aug 2009
Posts: 14

Rep: Reputation: 0
Using 2 Hard Drives (sda -- sdb)


I have two hard drives (sda=80G, sdb=2T) on a machine that I would like to use. Haven't been able to find any clear tutorials yet.

Used mainly as a file server, I also have some other things going on...
1. /home : file storage big time!
2. web server w/database setup (testing only not available to outside)
3. ftp (considering)
4. future ideas??? don't know yet

Are there any intuitive "how to" articles that explain how to effectively use the hard drives or should I just use the 2T and forgo the 80G???

Can this be done through the installation program or will I have to do something after initial install?
 
Old 09-19-2015, 04:15 AM   #2
luvr
Member
 
Registered: May 2005
Location: Boom - The Home Town of Tomorrowland, Belgium
Distribution: Slackware, Xubuntu
Posts: 459
Blog Entries: 2

Rep: Reputation: 194Reputation: 194
I would set up the first drive as the root filesystem (the "system disk", so to speak).
Probably with two partitions: a Linux filesystem, to be mounted as "/", and a swap partition.

Some people will create a (relatively small) boot partition as well, but I don't usually bother.

The second disk can be used as your data disk. Without thinking too deeply about it, I would use the whole disk as one partition, to be mounted as "/home". Depending on your needs, however, a few extra partitions may be appropriate--you certainly have the space. Maybe a separate partition for the web server data, to be mounted wherever you want the data to appear.

Just my $0.02... Others may have more concrete suggestions. I certainly wouldn't forego the first disk; it's simply a great idea to have a separate system disk, and 80GB is more than sufficient.
 
Old 09-19-2015, 05:13 AM   #3
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Personally, I would be tempted use the 80GB disk as / and include the /home partition on it also -- so at install time just use the 80GB disk. Then I would mount the 2T under something like /data and use simlinks to it anywhere where I wanted to use its storage. The reason I would not use the 2TB as /home is that sometimes settings and the like are stored in /home and to my mind it's easier to use the 2TB drive for just "pure" data without having to worry about hidden settings files and the like.
Well, OK, no I would probably use ~30GB of the 80TB drive as / then use the remaining ~50GB as /home so that I could reinstall the OS without having to reconfigure things but this approach means potentially losing 10-20GB of space from / as in reality probably only between 7 and 20GB will be used but I think 20GB is a bit small for / if you're going to start installing a lot of things.

My own desktop is using about 16GB of a 30GB partition on a 60GB SSD as /; a 240GB mounted as /home, with about 128GB used and a 3TB HDD mounted as /data.
 
Old 09-20-2015, 07:44 AM   #4
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
FWIW, I'd put /boot, /, and swap partitions on the 80 GB drive; one or more data partitions on the 2 TB drive, and symlink anything you want to appear in your /home directory.
 
Old 10-31-2015, 04:23 AM   #5
smbelow
LQ Newbie
 
Registered: Aug 2009
Posts: 14

Original Poster
Rep: Reputation: 0
Hey Everyone! Thanks for the responses. I'll have to work on this a little more. It seems I'm only able to work with one drive during the installation process. I've not seen anywhere that allows me to setup /home on the second drive. Would that be through the advanced setup? Anyways, I had to get everything going--have other lab computers to contend with. So currently, everything is on the 2TB. However, I do want to solve this problem.

SIDE NOTE: That's what frustrates me about LINUX. I generally setup the server and leave it be. I don't have to keep babysitting it, so I forget how to do certain things and/or don't spend a lot of time researching. Would love to know LINUX a lot better, just don't have many reasons to keep my hands in it. :-)

I will have the end of the year to return to this again (shutdown) and will probably purchase an SSD for the root file system.

Just need the steps to setup both drives during installation.


Thanks again guys,

Last edited by smbelow; 10-31-2015 at 04:27 AM.
 
Old 10-31-2015, 04:47 AM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
SSD is great for root - all my desktops are set up this way. Applications start fast.
For a server SSD does not add any benefits, all programs are started at boot time.
 
Old 10-31-2015, 07:06 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,681

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
The installer has a manual partitioning option where you can setup the drives/partitions as desired.

https://www.debian.org/releases/stable/amd64/
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] sda drive to sdb, so new hdd can become sda? irgunII Slackware 5 03-07-2014 08:38 AM
[SOLVED] Hard Drive showing up as /dev/sde while sda, sdb, sdc, and sdd show nothing swilsy Linux - Hardware 12 06-03-2012 03:02 AM
[SOLVED] Grub: If exists sdb, then boot sdb, else sda defaultyeti Linux - Desktop 6 06-28-2011 02:38 AM
sda sdb sdc drives not consistent ufmale Linux - Newbie 6 05-27-2008 06:38 PM
sda or sdb? stevest SUSE / openSUSE 7 12-18-2007 11:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration