Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Hi, all! I've installed Linux with a particular setup, and I'm interested to know if I can do with it what I think I can.
I'm dual-booting Ubuntu 10.04 with Windows 7. Windows came pre-installed on the machine. When I began to install Ubuntu I discovered that Windows actually uses three partitions: the "main" partition and then two boot partitions (one for Win7 and one for Vista, of all things). So I installed three logical partitions for Ubuntu: /, swap, and /home.
My understanding is that keeping my / and /home partitions separate will allow me to re-install more easily. My impression from reading up on this is that my data will sit safely on my /home directory while I install Ubuntu or any other Linux distro to root. So if I want to experiment with something other than Ubuntu (on a more long-term basis than a LiveCD) I can easily do so.
My question is: is this correct? Can I swap distros or re-install a damaged distro easily with this arrangement? Are there any pitfalls I need to watch for?
Yeah, having a separate /home partition would help if you had to reinstall Ubuntu. But other distros have a different layout within /home/username, some different sub-directories. So, I'm not sure what happens then. I've only every created / and swap partitions.
Ignoring the windows partitions, using /, /home and swap does generally simplify things when installing a new version of the same distro. I haven't actually tried this with an overwrite of one distro with another, but I don't see why it shouldn't work (SuSE, which is my usual poison on the desktop, uses .kde4 for the setup for KDE 4 (!), while many others use .kde (...which in SuSE terms is deprecated, because that's for KDE 3, which you might also have installed) and it seems to me that the only danger here is that you end up with an unused but unharmful directory structure. Not an issue, unless you are very short of disk space.
It is possible that you could choose a file system format for /home not supported by the new distro (say something old like reiser 3, or obscure like YFFS2, or bleeding edge like BTRFS) but that wouldn't put you in a worse position than not having a separate /home, because a clean install would only be one quick partition format away. Obviously, that would mean losing the data on the /home partition, though.
If you were going to multiboot different Linux distros (which I know isn't your question, but is related), I'd advise something different, though. Let each distro have its own /home data structure and have another partition on which you store your document data (as opposed to all of the /home structures which just keep the various dot directories, and which needn't be actual partitions). That way there shouldn't be a danger of any distro messing up another distro's dot files, but you still get to share personal data between distros.
I used to set my system up with /, /usr, /home & swap. The /home partition was particularly useful when I changed from Mandriva to Ubuntu as I just did a custom partition job and left / home alone. The other partitions (except swap) would be re-formatted before the install and I was then able to access my original data/documents/pictures/ etc.
However... when I started playing with VirtualBox I soon discovered that the virtual disks relating to the virtual systems resided under / and that partition soon filled up as I hadn't given it much capacity! I tend to stick to / and /home now on my desktop but just / on my netbook.
I reckon there will probably be some residual dross from the previous Distro in my /home directory but it does what I want.
my preferred is /,/home and swap and also /data. /data or whatever name you prefer is for storing all the personal data (pics music and etc). this way in case something happens during reinstall and home MUST be formated my data will be intact.