Author Topic: Partitioning questions  (Read 696 times)

Offline kah5683

  • Sr. Member
  • ****
  • Posts: 307
Partitioning questions
« on: April 18, 2011, 04:22:38 PM »
When I recently bought a new 1tb harddrive, I divided it into partitions the following way (and this is how it shows in PCC):

Swap  3.8gb
Root   48gb
Home  439gb
Data   439gb

I split the home partition and data partition evenly with the idea of using the data partition as a backup for the home partition.  I also have a second harddrive in the computer I have always used as backup, so I don't know if this would really be necessary for 2 backups.

What is the thinking - pro and con - for having a partition for both home and data separate?  At a minimum, how big should the home partition be without data if it WOULD be a good idea to have the home partition and data partition separate?

Would I be better off having just one big home partition?

If one is better (or even if you think it wouldn't be  ;) ) How would I absorb the data partition into the home partition.  I have already copied everything from the data partition into the home partition...so would it be as easy as deleting the data partition and then expanding the home partition to add on the unallocated space?  Would I use PCC to do this, or ?

The last question I have is that the other day I reinstalled root only.  While I was doing so, I saw from the livecd when I was looking at the partitions that my backup harddrive is listed as sda, and my main harddrive with pclinuxos on it (the one we're talking about above) is listed as sdb.  Does that matter?  When I replaced the harddrive a couple months ago, I replaced it with a SATA from being IDE, and the other backup harddrive is IDE also.  If this is something that better be corrected, how do I do so?

I know these are a lot of questions for one posting, so thanks in advance!
P8Z68-V Pro/Gen3 Motherboard - onboard soundcard
Intel i5-2500K Processor 3.3 GHz 4 core
Nvidia GeForce GTX550Ti Graphics card
60gb Patriot SSD - 2tb Seagate HDD - 8gb RAM
PCLinuxOS-KDE-2012-02

Online muungwana

  • Hero Member
  • *****
  • Posts: 6205
Re: Partitioning questions
« Reply #1 on: April 18, 2011, 05:10:11 PM »

I am aware of hard drives failing, not partition failing. If you want to have back up, have it on a separate drive. As far as i know, when a hard drive goes down, all partitions go with it.

the "sda", "sdb" thing shouldnt matter, you would have seen a problem if it did.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6371
  • I'm going South
Re: Partitioning questions
« Reply #2 on: April 18, 2011, 05:15:54 PM »
When I recently bought a new 1tb harddrive, I divided it into partitions the following way (and this is how it shows in PCC):

Swap  3.8gb
Root   48gb
Home  439gb
Data   439gb

I split the home partition and data partition evenly with the idea of using the data partition as a backup for the home partition.  I also have a second harddrive in the computer I have always used as backup, so I don't know if this would really be necessary for 2 backups.

What is the thinking - pro and con - for having a partition for both home and data separate?  At a minimum, how big should the home partition be without data if it WOULD be a good idea to have the home partition and data partition separate?

Would I be better off having just one big home partition?

Having a separate backup partition is of course a good idea. Having it on the same drive as the partition you intend to back up is not such a good idea. It's better than having no backup at all: it means that you can sometimes restore corrupt files and directories. But when the whole drive dies on you, you lose both your original data and your backup.

Quote
If one is better (or even if you think it wouldn't be  ;) ) How would I absorb the data partition into the home partition.  I have already copied everything from the data partition into the home partition...so would it be as easy as deleting the data partition and then expanding the home partition to add on the unallocated space?

It is. And if your /home and /data partitions come in that order and are adjacent on the disk it isn't even very dangerous.

Quote
Would I use PCC to do this, or ?

I think you could. I'd use GParted (which is usually safe) and O-P would probably do it with fdisk from the command line.

Quote
The last question I have is that the other day I reinstalled root only.  While I was doing so, I saw from the livecd when I was looking at the partitions that my backup harddrive is listed as sda, and my main harddrive with pclinuxos on it (the one we're talking about above) is listed as sdb.  Does that matter?  When I replaced the harddrive a couple months ago, I replaced it with a SATA from being IDE, and the other backup harddrive is IDE also.  If this is something that better be corrected, how do I do so?

I know these are a lot of questions for one posting, so thanks in advance!


I see that muungwana was faster.
« Last Edit: April 18, 2011, 05:22:01 PM by Bald Brick »
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline T6

  • Super Villain
  • ******
  • Posts: 19077
  • xmas is comming!
Re: Partitioning questions
« Reply #3 on: April 18, 2011, 11:01:18 PM »

I am aware of hard drives failing, not partition failing. If you want to have back up, have it on a separate drive. As far as i know, when a hard drive goes down, all partitions go with it.

the "sda", "sdb" thing shouldnt matter, you would have seen a problem if it did.

partitions do fail too, but is more common to see a ntfs partition fail than a ext4

about having a backup on the same hard disk, it is not secure but hard disks normally last for 5 years with decent performance unless you got a special model(ready to die in 6 months  ;D  )

about swap, 3.8 gbs is big, almost too big, how much ram do you have there?  the rule is to have 1.5 times the size of ram in swap but if it is a desktop and you have more than 2 gbs you will not use that swap, possibly never

just leave 2 gbs of swap

about having multiple parts of the os on different partitions/hard disks i never done it but in the past this was a common practice, specially with swap with pcs with low amounts of ram

i personally don't have more than two partitions, one swap and one /

/ contains /home as a folder, all fine here since 2007 with pclinux( all was fine since 2005 with mandriva)

have multiple partitions sometimes just means that you have multiple partitions, nothing more, no benefits, no improvements, nothing more

if that hard disk was mine i would make a swap at a right size, a / with 400 gbs and the rest for a ntfs partition to share with my second os, xp
"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan