LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Starting a server build (https://www.linuxquestions.org/questions/linux-newbie-8/starting-a-server-build-4175422206/)

Aunnix 08-27-2012 03:43 PM

Quote:

Originally Posted by suicidaleggroll (Post 4765754)
Anything not explicitly partitioned out and mounted will be included in the / partition.

You do not want to separate your /home partition during installation, otherwise that will just be a wasted partition after you migrate onto the RAID. Leave /home on / during the install.

Will the install still assign an amount of space to the /home? Or, will /home and / just use the same space?

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?

suicidaleggroll 08-27-2012 03:46 PM

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.

Aunnix 08-27-2012 03:54 PM

Quote:

Originally Posted by suicidaleggroll (Post 4765763)
Anything not explicitly partitioned and mounted separate from / will just live on / and share the same space.

The path to /home will be /home regardless of whether it's physically located on the same drive as /, or on a partition by itself, or on a RAID.


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..

Aunnix 08-28-2012 10:20 AM

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..

sjreilly 08-28-2012 10:33 AM

Quote:

Originally Posted by Aunnix (Post 4765498)
Ok. I didn't actually think about there being "system (configuration)" files on the home partition once it is created. For the user name, I basically want all data saved to the one "account." So, would I be able to get by with naming it "all" (or something) and then just accessing the /home/all directory when manipulating files?

Not "system (configuration)" files, but files that setup the desktop (if there was one), login scripts and default user settings.
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)

suicidaleggroll 08-28-2012 12:14 PM

Quote:

Originally Posted by Aunnix (Post 4766518)
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..

That is incredibly old, I wouldn't follow it. Partitioning "rules" have changed over the years as drives have gotten bigger and different directories are used for different things.

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.

Aunnix 08-28-2012 01:00 PM

Quote:

Originally Posted by suicidaleggroll (Post 4766597)
That is incredibly old, I wouldn't follow it. Partitioning "rules" have changed over the years as drives have gotten bigger and different directories are used for different things.

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.


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.

theNbomr 08-28-2012 01:50 PM

Quote:

Originally Posted by Aunnix (Post 4766635)
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 name '/usr' does suggest that it is a place to store users' files, however that is by no means the conventional purpose (the /home directory tree serves that purpose). /usr should be treated as a read-only tree, where additional packages not normally part of a standard installation are loaded (normally where root installs system-wide stuff). I don't think it is very conventional to dedicate a partition to the /usr directory.

--- rod.

suicidaleggroll 08-28-2012 02:11 PM

Quote:

Originally Posted by Aunnix (Post 4766635)
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?

It has nothing to do with security or regularly changing files. There are basically two reasons to separate a given directory onto its own partition:

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)
/home  1.5TB
/var  900MB
/usr  6.2GB
/etc  39MB
/tmp  0

My workstation at the office:
Code:

/      10.8GB (excluding below directories, since most of them do not have their own partition)
/home  2.0TB
/var  367MB
/usr  4.8GB
/etc  36MB
/tmp  3.1MB

One of the servers at the office:
Code:

/      2.1GB (excluding below directories, since most of them do not have their own partition)
/home  6.1TB
/var  857MB
/usr  53GB
/etc  36MB
/tmp  83MB

The only consistent one there is /etc. Until you know how YOU are going to use your system, don't overly constrain yourself by giving every single directory its own partition.

Aunnix 08-28-2012 02:16 PM

Quote:

Originally Posted by theNbomr (Post 4766682)
The name '/usr' does suggest that it is a place to store users' files, however that is by no means the conventional purpose (the /home directory tree serves that purpose). /usr should be treated as a read-only tree, where additional packages not normally part of a standard installation are loaded (normally where root installs system-wide stuff). I don't think it is very conventional to dedicate a partition to the /usr directory.

--- rod.

Ok. If I leave it as part of / though, I will have to reinstall all of the packages that I install and use over time the next time I decide to do an OS install? If so, will re installing all of the packages / software be a hassle later?

suicidaleggroll 08-28-2012 02:25 PM

Quote:

Originally Posted by Aunnix (Post 4766703)
Ok. If I leave it as part of / though, I will have to reinstall all of the packages that I install and use over time the next time I decide to do an OS install? If so, will re installing all of the packages / software be a hassle later?

Chances are you're going to have to re-install most of them anyway, unless the new OS install is exactly the same distribution and version as the one you had before. Just save the installation files for the packages you want, and it will be easy to re-install them later.

Aunnix 08-28-2012 02:49 PM

Quote:

Originally Posted by suicidaleggroll (Post 4766701)
It has nothing to do with security or regularly changing files. There are basically two reasons to separate a given directory onto its own partition:

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
/home  1.5TB
/var  900MB
/usr  6.2GB
/etc  39MB
/tmp  0



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?

Aunnix 08-28-2012 02:55 PM

Quote:

Originally Posted by suicidaleggroll (Post 4766712)
Chances are you're going to have to re-install most of them anyway, unless the new OS install is exactly the same distribution and version as the one you had before. Just save the installation files for the packages you want, and it will be easy to re-install them later.

Do I need to save them to a separate partition though? Because if the packages are installed on /usr which is on the / partition... won't they be deleted if I reinstall the OS because they are part of the / partition? Would I just move the download/installation files to my /home setup?

suicidaleggroll 08-28-2012 02:58 PM

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.

Aunnix 08-28-2012 03:07 PM

Quote:

Originally Posted by suicidaleggroll (Post 4766744)
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.


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.

chrism01 08-28-2012 06:17 PM

Quote:

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.
This ++
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.

Aunnix 08-28-2012 07:37 PM

Quote:

Originally Posted by chrism01 (Post 4766889)
This ++
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.

In order to run the web server and file server, doesn't the machine need to be online?

theNbomr 08-28-2012 07:42 PM

Quote:

Originally Posted by chrism01 (Post 4766889)
This ++
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.

Couldn't agree more. Doing a re-install isn't a sign of weakness or failure. I recommend planning on at least one re-install. Just don't spend a huge amount of time installing and configuring stuff. Anything you really do want to keep, burn to DVD or copy to some other host temporarily.

--- rod.

Aunnix 08-28-2012 07:44 PM

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.

chrism01 08-28-2012 08:40 PM

Quote:

In order to run the web server and file server, doesn't the machine need to be online?
It needs to be up and running; it does NOT need to be available on the internet.
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.

sjreilly 08-29-2012 04:19 AM

Quote:

Originally Posted by Aunnix (Post 4766930)
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.

Congrats!!

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.

Aunnix 08-29-2012 07:27 AM

Quote:

Originally Posted by chrism01 (Post 4766959)
It needs to be up and running; it does NOT need to be available on the internet.
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.

Yeah, I'd like to just add it to my LAN. This would be ideal so I can figure out how to do it and how difficult it will be.

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?

Aunnix 08-29-2012 07:33 AM

Quote:

Originally Posted by chrism01 (Post 4766959)
It needs to be up and running; it does NOT need to be available on the internet.
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.

Yeah, I'd like to just add it to my LAN. This would be ideal so I can figure out how to do it and how difficult it will be.

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..

Aunnix 08-29-2012 07:42 AM

Quote:

Originally Posted by sjreilly (Post 4767187)
Congrats!!

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.


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.

sjreilly 08-29-2012 08:07 AM

Quote:

Originally Posted by Aunnix (Post 4767325)
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.

I really wouldn't worry about it. If you don't have any setting in your router pointing any port on your "server" then you don't exist (unless _"THEY"_ hack the machine you are writing this on ;-) )

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

frieza 08-29-2012 08:24 AM

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.

Aunnix 08-29-2012 08:36 AM

Quote:

Originally Posted by frieza (Post 4767353)
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.

Well, I have a basic (old, like 2003ish) Linksys router from Wal-mart. Then only thing ever done with it is allowing wireless access from my ps3, iphone, and the girlie's netbook. I don't believe I've ever had to open ports for anything (maybe my old roommates 360?). Even then, I would assume the 360 would have been considered "outbound traffic" still... It is WEP encrypted though.

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.

sjreilly 08-29-2012 09:30 AM

Quote:

Originally Posted by Aunnix (Post 4767359)
Well, I have a basic (old, like 2003ish) Linksys router from Wal-mart. Then only thing ever done with it is allowing wireless access from my ps3, iphone, and the girlie's netbook. I don't believe I've ever had to open ports for anything (maybe my old roommates 360?). Even then, I would assume the 360 would have been considered "outbound traffic" still... It is WEP encrypted though.

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.

I would be more worried about people cracking your WEP than hacking your Linux box.

You do realise that 2003 is, so last-decade. Is the firmware up-to-date? ;-)

Aunnix 08-29-2012 09:49 AM

Quote:

Originally Posted by sjreilly (Post 4767404)
I would be more worried about people cracking your WEP than hacking your Linux box.

You do realise that 2003 is, so last-decade. Is the firmware up-to-date? ;-)


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.

sjreilly 08-29-2012 09:55 AM

Quote:

Originally Posted by Aunnix (Post 4767420)
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.

Routers don't usually badger you for updates. Check the installed firmware version from the routers setup web page with that on the manufacturers support web page.

Aunnix 08-29-2012 10:31 AM

Quote:

Originally Posted by sjreilly (Post 4767426)
Routers don't usually badger you for updates. Check the installed firmware version from the routers setup web page with that on the manufacturers support web page.

Cool. Will do.

Aunnix 08-31-2012 08:21 AM

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...

frieza 08-31-2012 10:17 AM

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

Aunnix 08-31-2012 10:41 AM

Quote:

Originally Posted by frieza (Post 4769253)
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

Ok. I think I understand. Instead of seeing my HDD as "/dev/hda1" I can set the UUID to name /dev/hda1 something else like "harddrive60gb"? Is this a recommended practice? Should I be using this UUID and how?

frieza 08-31-2012 10:57 AM

grub.conf
Code:

kernel /vmlinuz root=UUID={uuid}
fstab
Code:

UUID={uuid}      /    ext4 defaults        1      1
recommended? that's up to you, but the use of UUIDs provide more consistency, especially if you change your hardware from time to time. Particularly with portable drives (memory cards, thumb drives, usb hard drives for instance can change from /dev/sdB to /dev/sdC to /dev/sdD from time to time, or if you have more than one they are assigned in the order in which they are plugged in, but a UUID doesn't matter what they /dev/sdX letter they are assigned, the UUID doesn't change)

Aunnix 08-31-2012 11:22 AM

Quote:

Originally Posted by frieza (Post 4769283)
grub.conf
Code:

kernel /vmlinuz root=UUID={uuid}
fstab
Code:

UUID={uuid}      /    ext4 defaults        1      1
recommended? that's up to you, but the use of UUIDs provide more consistency, especially if you change your hardware from time to time. Particularly with portable drives (memory cards, thumb drives, usb hard drives for instance can change from /dev/sdB to /dev/sdC to /dev/sdD from time to time, or if you have more than one they are assigned in the order in which they are plugged in, but a UUID doesn't matter what they /dev/sdX letter they are assigned, the UUID doesn't change)

Cool. I may look into this a little more a little later. My plans are to build the server box where no parts will ever need to be changed (with the exception of my 2 750GB HDDs that will be my /home on RAID when they run out of space in LONG time, lol). I don't really plan to use any of the USB ports on the server machine, because once it is situated I will move it to my basement (colder envrionment) and remote in to do everything from my everyday computer in my home office. I planned to basically load any files (from USB, phone, etc.) onto my office computer and then just upload the files to the server from there.

frieza 08-31-2012 11:25 AM

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)

sjreilly 09-04-2012 10:43 AM

Quote:

Originally Posted by frieza (Post 4769310)
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)

I prefer to give partitions labels rather than work with UUIDs - but that's just me.

LABEL=root / ext4 noatime,discard,errors=remount-ro 0 1
LABEL=swap none swap sw 0 0
LABEL=data /data ext4 defaults 0 2

frieza 09-04-2012 11:02 AM

Quote:

Originally Posted by sjreilly (Post 4772447)
I prefer to give partitions labels rather than work with UUIDs - but that's just me.

LABEL=root / ext4 noatime,discard,errors=remount-ro 0 1
LABEL=swap none swap sw 0 0
LABEL=data /data ext4 defaults 0 2

that works too, but even labels are arbitrary, especially when you re-format and re-purpose drives (i've done that a few times), then you have to remember to change the label.


All times are GMT -5. The time now is 07:46 AM.