Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Good morning, I am hoping someone can help me out in little steps since I am still new at using this OS.
I am running 12.04 Ubuntu 32 bit.
I don't mind reinstalling, and I understand it is likely the easiest path to take. I would like to avoid losing all my settings, emails, and applications, and saved passwords.
It sounds like if you back up your home directory in its entirety (including all hidden files/folders) it'll take care of most of what you're asking for (desktop settings, emails, and I'm assuming by "saved passwords" you mean in your web browser). Applications will need to be re-installed, especially since you'll be re-installing the 64-bit version instead of the 32-bit version, but that rarely takes much time, especially if you make a list of what you need ahead of time. Application settings are generally stored in /etc/, so you should make a backup of that as well.
In the past I have always kept my /home directory on a separate partition. All settings (ie: how I have my desktop set up just so, live there. So when doing a reinstall (either from 32 to 64 or 32 to 32/ 64 to 64), all I have to do is reinstall software. It should be pretty easy to do here.
My approach never did application settings, but I didn't find it too tedious to redo my application settings.
Why would you want to print out the directory contents?
Depends on what you do and where you like to put things. Personally, given my usage, I generally do around 50GB for /, 5GB for swap, and everything else for /home
I don't mind reinstalling, and I understand it is likely the easiest path to take. I would like to avoid losing all my settings, emails, and applications, and saved passwords.
I suggest a different basic approach than others are suggesting. Based on my experience, this is a better way assuming you have enough free space to do it this way:
First shrink the partitions of your existing install. If you have a swap partition, no reason to shrink that. It can be reused by the new install.
Next install the new version into new (except for swap) partitions made from the unpartitioned space left by shrinking the old install. The installer will probably default to detecting the old install and setting up dual boot as it installs new boot code. If not, you may want to set up that dual boot.
In the new system, temporarily mount one or more partitions of the old system. Figure out what needs to be copied and copy it.
When I have done this, I usually need to reboot back to the old system a few times to compare behaviors and deduce the source of such behaviors in order to find what needs to be copied.
Maybe someone more expert and more organized can figure out in advance what needs to be backed up from the old and restored to the new. I can't. Having a bootable old system to compare makes it much easier to figure out what you should have copied but missed on the first try.
Once you are confident the new system is right, unconfigure the dual boot in grub and delete the old partitions and grow the new partitions, so you are back to having lots of free space.
Quote:
Originally Posted by syklone
On a 2 TB drive, how would you recommend that I partition it? (size wise)
For ordinary home use of Linux, 2TB is so absurdly much that you are just wasting space. 2TB is also pretty cheap, so who cares how you waste it.
But maybe your use isn't ordinary. In that case how you partition the space completely depends on how you intend to use the space.
For example, maybe you want to edit videos (or do anything else that involves massive amounts of data). In that case, I strongly suggest having a /data partition (exact name doesn't matter, just not one of the standard Linux directory names).
As you will discover in reinstalling for 64-bit, the standard directories (especially /home) contain a mix of stuff you want to preserve across reinstall and stuff you can't preserve. Whatever backup, copy etc. mechanism you choose gets very messy if the data is massive.
But a non standard partition such as /data can just sit there undisturbed across the reinstall.
Often the things you put in /data ought to act as if they are deep inside /home. That is easy in Linux using either symbolic links or certain kinds of mount.
Depends on what you do and where you like to put things. Personally, given my usage, I generally do around 50GB for /, 5GB for swap, and everything else for /home
Do applications install in / or in /home ?
or rather, I should ask perhaps, what is installed in / Seems that 50G means its just the OS, and such?
I suggest a different basic approach than others are suggesting. Based on my experience, this is a better way assuming you have enough free space to do it this way:
First shrink the partitions of your existing install. If you have a swap partition, no reason to shrink that. It can be reused by the new install.
<snip>
Once you are confident the new system is right, unconfigure the dual boot in grub and delete the old partitions and grow the new partitions, so you are back to having lots of free space.
I am open to this path as well. Seems quite fail-safe. (hope I don't jinx myself lol)
Applications installed by the package manager do not go in /home.
Applications you might download from the application web site and install in some custom way, might go in /home. I'm not suggesting you do that. Just qualifying the statement that applications do not install in /home.
Quote:
what is installed in / Seems that 50G means its just the OS, and such?
50GB is a LOT. That is typically enough for the OS plus all the applications you will install, plus a lot of log files and other stuff. BTW, I was editing more about that part of your question into my previous post while you were replying. So you might reread that.
For ordinary home use of Linux, 2TB is so absurdly much that you are just wasting space. 2TB is also pretty cheap, so who cares how you waste it.
But maybe your use isn't ordinary. In that case how you partition the space completely depends on how you intend to use the space.
Well I fix computers, and I use Linux (Ubuntu) as a primary tool for this purpose. Typically, it is pretty mundane use, email, surfing, mounting NTFS and manipulating files. Sometimes, I will copy the contents of an NTFS drive to my desktop to preserve it if I want to get aggressive in the repairs. I also use it as a demo bed for customers that want to know what Linux is. I will admit, I am far from a master, but in the land of the blind, the one eyed man is king so to speak.
I have several clients that I have converted, and they are pretty happy. I just have to keep a few steps ahead of them
Either way, my environment allows me a lot of neat upgrades, the 2TB was free and who does not want a free 2TB to play with! I would like to max out my mobo in RAM too, just to see how fast I can make this thing fly. There is also a little professional competition here between co-workers. I am winning, but I want to obliterate them
That sounds like you ought to keep a decent amount of unpartitioned space. Maybe after you finish that upgrade don't expand into all the space left by deleting the old partitions.
As a non expert supporting customers, you probably will find the need to do an occasional test install onto your own system without disturbing your main install of Linux. (Be sure you know how to fix the boot code of your main install after such stunts).
Having unpartitioned space available saves you from a slow operation to shrink partitions before such experiments.
Quote:
Originally Posted by syklone
Sometimes, I will copy the contents of an NTFS drive to my desktop to preserve it if I want to get aggressive in the repairs.
Let me suggest an alternative to that as well:
Copy the image of the NTFS drive rather than its contents. If the NTFS is messed up (likely by the time they need your help) it may be hard to know you have all the contents until later in the repair attempt, by which time it is too late (been there, done that ).
I think you can loop mount an NTFS partition imaged as a file (I don't have detailed instructions). But I would tend to create a partition (from that unpartitioned space you would keep around) and image the NTFS to that partition, then mount that.
But on your original question: Your desktop is inside /home, so if you want to use your desktop that way, /home must be big.
I am in the process of trimming the fat out of it now. I have a second 2TB drive that I have in a cradle that I am putting stuff on.
I just wish I could get my POS system running on this platform, but alas its not even remotely supported, so I am hand-tied in that aspect.
I made an image of this install, just in case.
The work I do on NTFS usually does not require an image, but its good to know how. Most of the time I just use Linux as a brute-force method to mount NTFS, and delete a file, or do a manual registry rollback.
I tried once playing with FOG, but I was not able to get it running. Will Linux act as a deployment server for multiple OS's that are not machine specific? IE legal ISO of an OEM image that I can PXE boot and install?
You raise an interesting point. Is it possible to mount an NTFS drive in a VM?
If you've got the ntfs-3g pkg installed, I don't see why not.
(assuming vm is Linux OS).
If the ntfs is the whole OS and it still works, you can create an MS env VM using eg KVM or others.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.