Quote:
For example, let's say I have a hard drive with 50GB... if I leave /home intact to the / partition my "path" will look like //home (or # /home?) correct? If so, does / and /home (and other partitions included in /) use the whole 50GB together? Or, will the install still partition them out in the / partition? Like, / gets 10GB, /tmp gets 2GB, swap gets 3GB, and /home gets the rest (35GB)? I would assume they all use the whole 50GB when / how they need to since partitioning /home during the install will be a waste of space? |
Anything not explicitly partitioned and mounted separate from / will just live on / and share the same space.
The path to /home will always be "/home" regardless of whether it's physically located on the same drive as /, or on a partition by itself, or on a RAID. |
Quote:
Ok, I get ya... Well, I'm off work in about 10 minutes and will be home in about an hour to "officially" start this project, haha. Hopefully I can figure something out... I feel like I have a good idea on how the partitioning works, but I need to figure out the best partitioning strategy for running the packages I plan to install.. perhaps I'll start looking into the packages I want so I can create a plan of action instead of just installing the OS and running around like a virtual chicken with my head cut off.. |
http://www.tldp.org/LDP/lame/LAME/li...titioning.html
Is the information on this page good advice? Especially when it comes to dividing up the HDD space for the partitions? Just wondering what you thoughts you guys may have.. |
Quote:
To delineate between "users" and "administrators" there will be a minimum of two accounts; root (home directory /root) and, in your case, all (home directory /home/all) |
Quote:
Personally, I would just give everything to / except for a small (maybe 2GB) swap partition. Once you move /home onto the RAID, you'll end up with three total partitions. A 2GB swap, a 58GB /, and a 750GB /home. If you'll be running a lot of services that write to /var (log files), you may consider giving that its own separate partition, so that if one of them runs a muck it won't fill up your / partition and bring down the system. Other than that, it's all personal preference. Some people like to give /etc/ its own partition so that system config files can be retained through wiping and reinstalling the OS. Some people like to install shared programs/data in /usr, so they give that its own paritition so it can be retained through wiping and reinstalling the OS. None of this is necessary though, it's all personal preference, and it all depends on what you plan to do with the system, where you're going to be putting your data, etc. The only partition that's NEEDED is /. Swap is highly recommended though. Everything after that is just user preference. |
Quote:
Yeah, I've noticed alot of it seems to be personal preference. And, I knew that was pretty old, lol, just wondering if some of the logic stills holds true.. I think I need to research each partition some more and find out what files will they handle. I do plan to throw a SWAP partition together. The way I was looking at it, was there is no need for additional "users" (besides root and me so I was going to name the me as "all" for the user) so I didn't think the /usr partition was necessary and wasn't planning to use it. I was also under the impression that any packages or software I install would be located on the / partition and not the /usr. The main reason I'd like to separate the other partitions (/etc, /var, /tmp, etc..) is 2 reasons... 1. I hear it's good practice in regards to security and 2. if they are housing files that I would make changes to regularly, I assumed it would be better to have them as their own partitions? Here is what I am imagining for the 60GB HDD (and the system will be used mostly for web development).. / - 8GB (this is about 10-15% of the 60GB HDD, but being the system partition should I just let this use the remainder of space after separating the other partitions?) SWAP - 4GB (half of the amount of RAMM I have, and with /home on the RAID I have all 60GB to work with... why not give it some extra?) /home - 750GB mounted to RAID (size won't matter because it will share the space on the / partition? at least during the initial setup) /var - ?GB (with it being a web server, I assume I will be using a few services that write log files to /var?) /usr - ?GB will hold software and packages so I can do reinstalls without losing them (can I create a different partition for these, or do they automatically get installed on the /usr partition? I'd like to create a new partition so I can name it /packs or /soft or soemthing...) /etc - ?GB partitioned for extra security... no system config files on / /tmp - ?GB (not sure if I should partition this one or not... I don't know how often I'd need to use this since it's like temporary downloads/files?) I'm mostly worried about what sizes the partitions should be as I don't want to "short change" any of them. For example, I feel like / should be quite large being the system, but /usr will need to be quite large to make sure I have room for PLENTY of packages (in case I find more to run after getting up an running with my currents plans). I plan to dedicate my whole 60GB HDD to the OS, packages, and any "system" related files. |
Quote:
--- rod. |
Quote:
1) If system services are regularly writing to that directory, there is a chance it could fill up the filesystem without your knowledge (say something happens to your ftp server and it starts rapidly dumping out messages to its log file in the middle of the night or over the weekend). If it's located on /, this could cause some serious problems. If it's in its own partition, then those services trying to write to it will get angry, but the system as a whole will still function normally. 2) If you accidentally screw up and break the OS, or if you want to change or upgrade the OS, it can be nice to have separate partitions for system config files, user config files, data files, etc., so that they'll persist through the new OS install, rather than being wiped out along with the old OS. I think your planned partitioning layout is excessive to a fault. As I said above, do not give /home its own partition during installation. If you do, then as soon as you migrate onto the RAID this partition will be useless, just sitting there eating up hard drive space doing absolutely nothing. For your first setup, you do not want to go overboard. I would just do swap, /, and then put /home on the RAID once you get it set up. Let everything else live on /. After you've used this system for a while, you can decide for yourself whether or not you want to use separate partitions for any or all of those directories, and you can look at your current usage to decide how big they need to be. I think by pre-allocating the sizes for SEVEN different partitions having never set up a system before, you're going to quickly back yourself into a corner. Everybody, and every system is different. Not a single person here can tell you how YOU are going to use YOUR system, so nobody can tell you how big to make any of those partitions. I can tell you that on my home server (OpenSUSE, hosting all media files for my home through both NFS and SAMBA shares, running a web server, ftp server, etc), this is the current usage for those directories: Code:
/ 500MB (excluding below directories, since most of them do not have their own partition) Code:
/ 10.8GB (excluding below directories, since most of them do not have their own partition) Code:
/ 2.1GB (excluding below directories, since most of them do not have their own partition) |
Quote:
|
Quote:
|
Quote:
Sorry. I didn't mean for it to look like I was suggesting setting up /home as a separate partition. I just listed it so it would be accounted for, lol. I have do a question in regards to /home being on the / partition... what happens to my data on /home if I decide/need to upgrade or reinstall the OS? Will the data still be intact? Setting up the system with the 3-4 partitions makes sense. I'll just have to figure out how to "track" what services are writing to what directories and how fast / how much they do their writing. Then, just start from scratch after a couple months.. As for security, I didn't really want to upload any of my data until I'm secure on the web... How does this work? Are there packages for securing your network that I should install before setting up any web / sharing packages? Or, do I setup security through the packages as I install them? |
Quote:
|
Security will depend on the distro use you. Most will have some kind of firewall built in, such as SELinux. Other than that...don't log in as root unless you need to do something that requires root permissions, don't browse the web as root, etc., shut down services you don't need/use, keep the system updated, and it's unlikely you'll have any problems. I would also disable root SSH login, you can do that through the sshd config file.
As for /home, I'm not sure I understand your question. /home will only be on the / partition for the first few minutes/hours that you are running the system. One of the first things you will do is migrate everything in the /home directory onto the RAID, then replace /home with the version from the RAID. At that point, /home will no longer be on /'s partition, it will be on its own partition on the RAID, so you can do anything you want with / and the OS without affecting it. |
Quote:
Ok. I'm quite worried about my security, haha. I'd like to build a CMS in PHP and mySQL, but I'm afraid to put it online because I worry about security holes, lol. And, you got me about /home. I basically wanted to make sure that once I move /home to the RAID setup, anything I do to the OS on the / partition will not affect my data (music, web sites, videos) on /home. |
Quote:
You're definitely over-thinking it ;) In any case we've all ended up doing a few re-installs in our early days before we got a handle on exactly what we want and how the system responds to that; each system is unique. Just make sure you backup key data files and any amended cfg files; basically any changes you make. Eventually you may(!) want a separate partition for /var (ie logs) if you are going to go public with this, in case of runaway progs (or security breaches; see below) as mentioned. I wouldn't rush to go on the net until you've a) got all the progs etc working the way you want them to and THEN(!) b) read all the Stickies on the Security forum and implement+test(!) all the relevant suggestions. This is going to take a while; don't try to rush it. |
Quote:
|
Quote:
--- rod. |
So, I've installed the base system and have made it to the command line. Yay!
I'm having an issue with "overscan" on the monitor though. Any ideas on how I can fix this? It's not real bad but it cuts off the first few letters of of each line, so some of the information during start up is easily missed. |
Quote:
It just needs to either listen on 127.0.01 & test from the on board GUI, or use the normal address and add a client system to your LAN. Latter is more realistic. |
Quote:
Most of the information shown during boot is replicated in the log files (/var/log/) so if you see any errors or failures check the files in there; messages, syslog, auth.log, daemon.log I think your web services will be quite safe until you open port 80 on your DSL router. |
Quote:
Currently, I'm plugged into the internet through my router. I also did the "netinstall" and installed Debian through their debian.org "mirror." By being plugged in to the router (and being able to do the install using that website mirror) aren't I already online and exposed to the world? |
Quote:
Currently, I'm plugged into the internet through my router. I also did the "netinstall" and installed Debian through their debian.org "mirror." By being plugged in to the router (and being able to do the install using that website mirror) aren't I already online and exposed to the world? ------ SORRY! webpage wasn't loading so I clicked submit again and posted the same reply twice.. |
Quote:
Ok. I will need to look into this overscan problem.. I named the machine "server," and when on the command line I only get to see "erver" haha. So, can I go ahead and start setting up the packages I want to use to try to get familiar with the system? Will any of the file sharing, web hosting, streaming, etc. packages require me to open any of these ports that will expose me to the world? I just don't want to be playing around with the system trying to learn it, then all of a sudden I get hacked or something, haha. |
Quote:
It might have been worthwhile installing a desktop environment (selected during the install) just to make it easier on yourself. You could always disable it later on to save CPU resources. As root you could type; apt-get update; apt-get install desktop-base |
indeed, routers by default forward NOTHING unless told to, consumer routers by default allow all outbound traffic but no inbound, professional grade routers allow NOTHING by default, so unless a hole is explicitly opened then they would have to install a backdoor on your workstation and use that to hack your server.
as for the 'overscan' issue? try fiddling with the controls on your monitor. |
Quote:
Yeah, I thought about the monitor buttons, but it was getting kind of late (the install was a slow process, lol, I was playing Starcraft at the same time), so I just shut it down once I made it command line. |
Quote:
You do realise that 2003 is, so last-decade. Is the firmware up-to-date? ;-) |
Quote:
Hahah, yeah I do... It may have been 2005 actually, as I got in college after graduating high school in 04, lol. I don't believe I've seen anything asking me to update it, so I'm not positive. I've never had any issues, so I would assume it's updated, lol. It may have been updated when I set it up a year ago when we moved to where we currently are now, but as I said, I don't remember seeing anything about updates, lol. I'll look into tonight or tomorrow. |
Quote:
|
Quote:
|
Hey Guys,
So, I started to play with the server box last night to see if I can start to familiarize myself with Linux. I didn't get too far into it, but I find a "dmidecode" command that list all of my detected hardware... so I ran it. I was trying to figure out if I'm missing any drivers. Everything seemed to be found and I couldn't tell if I was missing any drivers or anything (coming from a windows environment, lol). I did find something that said "UUID: Not present" or something like that. Any ideas of what this UUID is and is it something I need to find and install? I did some brief googling, and only found information for downloading/installing the UUID (although I didn't find anything very specific to Debian). Not much on what it is... |
UUID is simply a unique identifier of a device, particularly drives/partitions, it can be used in place of a raw device node (such as /dev/hda1), since those can in theory change, and prevent the system from functioning, but UUIDs don't change
|
Quote:
|
grub.conf
Code:
kernel /vmlinuz root=UUID={uuid} Code:
UUID={uuid} / ext4 defaults 1 1 |
Quote:
|
well another reason would be change in kernel might change how device nodes are assigned (used to be /dev/hdX for ide and /dev/sdX for scsi, now it's all just /dev/sdX, but a UUID would solve that because by nature UUID is unique to each device)
|
Quote:
LABEL=root / ext4 noatime,discard,errors=remount-ro 0 1 LABEL=swap none swap sw 0 0 LABEL=data /data ext4 defaults 0 2 |
Quote:
|
All times are GMT -5. The time now is 07:46 AM. |