Click to See Complete Forum and Search --> : need help setting up new partitions


mis
07-06-2001, 09:27 AM
Ok I am picking up the power splitter so that I can add in this new HD. What I am thinking is this

HD1 20gig
/win 10GB
/ 10Gb for a storage of mp3's and photos.

HD2 30gig
/swap 256M
/ 1GB
/usr 1GB
/home 3GB
/var 250M
/tmp 250M
/sav 2GB to put things I don't want to have to d/l again. Like backgrounds and tra files.
Leaving the rest unallocated for future need. I should never have to get another HD.

The problem I am having is this. I am playing with the 30 to get it setup then install the other and just fix LILO later. While installing Debian I went into the partition part and setup the above partitions. But, after the install I did a df and all it showed was / and nothing else. What did I do wrong? And how does setting up the seperate partitions allow me to not lose everything if I have to reinstall? Am I going to get into anything complicted with 2 different drives? I can still access Win the same way right? Have I gotten in over my head?

Mis

Strike
07-06-2001, 09:41 AM
Well, portions where things could have gone wrong:

1. when using fdisk (or whatever partition tool), you forget to tell it to write the changes to disk before leaving (if the root partition takes up the whole disk, this is likely)
2. you didn't mount each of the partitions individually

Assuming it's not #1... but it might be, so check the partition table (fdisk -l).
#2 is kind of tedious and could probably be done better, but ... it's what we have to deal with. You have to first tell it about the swap partition (make sure you change it to type 82 in fdisk for Linux swap). Then you have to tell it to mount the root partition (/), and then every partition after that along with the mount point for each partition (with the optional format of each partition and bad blocks scan). Anything not told to be mounted by Debian at the install will not go into /etc/fstab.

May I suggest using about 2-3GB for /usr as well? 1GB isn't bad, but Debian's got tons of neat stuff to play with, and since this is supposed to last a while... 2-3GB makes more sense. Though 1GB would easily do. I've got only 337MB of programs and that includes a LOT of stuff (the other 800MB in my /usr is Linux kernel sources and documentation stuff). But, in total it's over a GB. Of course this includes just about everything practical (compilers, libraries, webserver, database stuff, etc), but programs aren't getting any smaller :) And you have plenty of free space on there.

mis
07-06-2001, 09:57 AM
[QUOTE]Originally posted by Strike:
[QB]Well, portions where things could have gone wrong:

1. when using fdisk (or whatever partition tool), you forget to tell it to write the changes to disk before leaving (if the root partition takes up the whole disk, this is likely)

Positive I did write it but will check to confirm.

2. you didn't mount each of the partitions individually

Nope didn't do this. How do I mount each one of them? I did change the type for the swap. Another question... Which ones to I setup as primary and which are logical? I used to built in partition maker that came with Debian but if using fdisk is better/easier I can do that too.