Free Republic
Browse · Search
General/Chat
Topics · Post Article

Skip to comments.

Linux Installation How To
Various | 17 January 2019 | Various

Posted on 01/17/2019 8:28:14 AM PST by ShadowAce

There are 4 ways of "installing" Linux:

  1. "no-install": a "Run-from-CD" LiveCD distribution. Everything runs from the CD and RAM, leaving the hard drive untouched -- completely avoiding the trickiest part of setting up Linux, "hard drive partitioning". After you take out the CD and reboot, everything is restored to the way it was before. (Many of these work just as well with USB flash drive as with CD)
  2. Linux on top of Windows: it's possible to keep windows applications running, and run Linux like any other application side-by-side with the Windows applications (this is an advantage compared to dual-booting, which shows either only Linux applications, or only Windows applications, and you have to reboot to get to the other one). andLinux, Portable Ubuntu, coLinux, Topologilinux, etc.
  3. There's a lot of information on setting up "Dual-boot" systems. This is not for beginners. (Experts generally don't do this either -- if they need 2 operating systems, they keep them on 2 physically separate hard drives, or better yet 2 physically separate computers).
  4. If you are certain there is nothing you want to keep on a computer's hard drive, you can completely erase the HD and install Linux only. This is the most fool-proof system -- Once the hard drive has been erased, the worst that can happen is erasing the hard drive again and having to start all over.
  5. This is rare now, but some distributions allow installation to any FAT32 partition even if it contains an installation of Windows. This just copies files containing the Linux and uses a Floppy or a Boot Loader to load. Wubi, etc.

Preliminary Note

You most likely do not need to do this as it is integrated into the installers

Generally installers have excellent partitioning tools so this is all part of the install. If not, or if you are not installing it is easiest to use a live CD distro that has GParted on it, such as ubuntu. GParted does not support LVM volumes used on more complicated partitioning setups, however fedoras installer for example and debians can install and partition LVM volumes.

Hard Way

You most likely do not need to do this as it is integrated into the installers

Generally installers have excellent partitioning tools so this is all part of the install. If not, or if you are not installing it is easiest to use a live CD distro that has GParted on it, such as ubuntu. GParted does not support LVM volumes used on more complicated partitioning setups, however fedoras installer for example and debians can install and partition LVM volumes.

What Size?

You would be hard-pressed to fit a normal desktop Linux system in under 2GB. It's advisable to give Linux more space than that, however, because many, many applications are available for free for Linux, and especially with a high-speed Internet connection, one is likely to install quite a lot of them.

You should plan on leaving at least 20% of each of your hard drive partitions free at all times -- modern file systems (such as NTFS, ext3 and ReiserFS) try to keep fragmentation low on their own, but they need extra space to do it with.

Manual Resizing

Easiest Way

(NOTE: Most of this only applies if there is already a version of Microsoft Windows on the computer) The volume resizing is a safe process, but afterwards the hard drive must be repartitioned. An error here can destroy the data on the hard drive, so double-check all commands. A typical session with ntfsresize ("/dev/hda1" is the most likely name for the NTFS partition. In this case, it is 10 GB in size.):

paul@faust:/$ su
Password:

You must be root to run ntfsresize. Under Knoppix {what about other live CDs? Under Gentoo's LiveCD, you are already root, so the su will not prompt for a password. Anyone know about others? I'd assume no-password or already-root would cover most of them...}, you will not be asked for a password unless you had already set one.

faust:/# umount /dev/hda1

This step is only needed if hda1 is already mounted, which is unlikely. However, if it is not needed, it will only give an error message and not do anything.

faust:/# ntfsresize -i /dev/hda1
ntfsresize v1.9.0
NTFS volume version: 3.1
Cluster size       : 4096 bytes
Current volume size: 10999992832 bytes (11000 MB)
Current device size: 11013617664 bytes (11014 MB)
Checking filesystem consistency ...
100.00 percent completed
Accounting clusters ...
Space in use       : 4197 MB (38.2%)
Estimating smallest shrunken size supported ...
File feature         Last used at      By inode
$MFT               :      8223 MB             0
Multi-Record       :      3160 MB         14852
You might resize at 4196970496 bytes or 4197 MB (freeing 6803 MB).
Please make a test run using both the -n and -s options before real resizing!

ntfsresize, version 1.90 and later, will automatically move files (including ones that the Windows defragmenter can't) in order to resize the partition, so defragmentation is not necessary before resizing (it might be easier to defragment while the partition is larger, though, so its a good opportunity).

The next step does a test run of the resizing process. Here, the user decided to leave Windows with about 6GB of space.

faust:/# ntfsresize -n -s 6000M /dev/hda1
ntfsresize v1.9.0
NTFS volume version: 3.1
Cluster size       : 4096 bytes
Current volume size: 10999992832 bytes (11000 MB)
Current device size: 11013617664 bytes (11014 MB)
New volume size    : 5999993344 bytes (6000 MB)
Checking filesystem consistency ...
100.00 percent completed
Accounting clusters ...
Space in use       : 4197 MB (38.2%)
Needed relocations : 251614 (1031 MB)
Schedule chkdsk for NTFS consistency check at Windows boot time ...
Resetting $LogFile ... (this might take a while)
Relocating needed data ...
100.00 percent completed
Updating $BadClust file ...
Updating $Bitmap file ...
Updating Boot record ...
The read-only test run ended successfully.

Now, write down the exact number of megabytes passed on the command line here (in this case, 6000). (The file system will probably not be resized to the exact size you specify, but ignore that — use what you entered.) You will need to resize the partition to the same size later.

Run ntfsresize with the same parameters, except leaving out the -n. This resizes the ntfs filesystem, but not the partition.


Splitting the partition is the only remaining task. Be sure to give it the hard drive (like "/dev/hda") as a parameter, rather than the partition ("/dev/hda1").

faust:/# cfdisk /dev/hda

If you don't have cfdisk, use fdisk instead. It has a less friendly interface, but it has exactly the same commands. Either way, no changes are made to the disk until you tell the program to (w)rite out the new partition table. If you accidentally write out the wrong partition structure, you should be able to save your data by replacing it with the correct one before doing anything to the affected partitions.


You need to

Note: If you're an advanced user and want to have few Linux systems installed side-by-side, or different file systems for experimenting, configuring Logical Volume Manager may be a good idea.

More:



TOPICS: Computers/Internet
KEYWORDS: linux
Navigation: use the links below to view more comments.
first 1-2021-4041-49 next last

1 posted on 01/17/2019 8:28:14 AM PST by ShadowAce
[ Post Reply | Private Reply | View Replies]

To: rdb3; Calvinist_Dark_Lord; JosephW; Only1choice____Freedom; Ernest_at_the_Beach; martin_fierro; ...

2 posted on 01/17/2019 8:28:28 AM PST by ShadowAce (Linux - The Ultimate Windows Service Pack)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

For those contemplating upgrading from Linux Mint 18.3 and earlier to 19. There is a significant change to how Mint runs in ver 19. Further, not all video drivers are supported as of yet.

As always, take a snapshot / backup before the upgrade so you can revert if needed.

Also, check to see if 19 supports your driver before the upgrade attempt.

I have an embedded video card (AMD R7) that was not supported at the time of the attempt to upgrade. Learned the hard way.


3 posted on 01/17/2019 8:34:46 AM PST by taxcontrol
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

I read the posted info and seemed to have missed the info on setting up #2 “Linux on top of Windows”. I’ve tried dual boot set ups and partitioning is old hat. But the #2 option...sounds interesting.


4 posted on 01/17/2019 8:36:15 AM PST by Bloody Sam Roberts (Atrophy of science is visible when the spokesman goes from Einstein to Sagan to Neli Degrasse Tyson.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

bkmk


5 posted on 01/17/2019 8:40:53 AM PST by brownsfan (Behold, the power of government cheese.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce
It is surprisingly easy. But you might run into compatibility issues and so you need to test it out first before installing it. The newer distros don't support older hardware as well.

It is truly a wonderful OS because of its broad support for older hardware. Plus, it is more secure than Windows, etc. I am running Ubuntu on three of my computers. One of them is a 12 year old laptop.

Oh, and they do offer a 32bit version for the really old hardware. You just have to look for it.

6 posted on 01/17/2019 8:41:58 AM PST by dhs12345
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

Thx for posting this.


7 posted on 01/17/2019 8:46:32 AM PST by matthew fuller (https://patriotpost.us/alexander/13407-the-battle-of-athens-tennessee)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

Question: I have a laptop with a bad HD. It’s 5 or 6 years old. Would Linux run well on it?


8 posted on 01/17/2019 8:46:43 AM PST by Blood of Tyrants (Twitter is Trump's laser pointer and the media are all cats.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: taxcontrol

That’s why I still recommend the 18.3 and am letting the dust settle on 19 and 19.1 for awhile.

And very good suggestion about making a backup right away. And also go and set up “Timeshift” right away so that it starts to take mirrors at regular intervals as you prefer. Time shift works just like the “restore” feature in windows.


9 posted on 01/17/2019 8:49:54 AM PST by Openurmind
[ Post Reply | Private Reply | To 3 | View Replies]

To: Blood of Tyrants

With a bad HD? If you boot to a LiveCD, it should run just fine, though a little slow (optical drives are much slower than hard drives).


10 posted on 01/17/2019 8:50:41 AM PST by ShadowAce (Linux - The Ultimate Windows Service Pack)
[ Post Reply | Private Reply | To 8 | View Replies]

To: Blood of Tyrants

If the hard drive actually works it will. But not having a working drive makes it a brick and nothing can be done with it. New drive maybe?


11 posted on 01/17/2019 8:52:50 AM PST by Openurmind
[ Post Reply | Private Reply | To 8 | View Replies]

To: ShadowAce

I tried Linux again a few weeks ago. It’s worse than ever.

If you’re a fan boy, and willing to make sure everything you buy is compatible, then go for it. Otherwise, it’s a huge waste of time.

Linux isn’t even worth it for rescue disk anymore.


12 posted on 01/17/2019 8:53:25 AM PST by Moonman62 (Give a man a fish and he'll be a Democrat. Teach a man to fish and he'll be a responsible citizen.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

I went an even easier route. I had the guru at the computer repair shop install Mint for me.


13 posted on 01/17/2019 9:02:17 AM PST by sparklite2 (Don't mind me. I'm just a contrarian.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

This article seems to deal with 10 year old technology. The way to run Linux “over” Windows is to use free software like VirtualBox and install virtual machines. If you build CopyOnWrite image files, then it doesn’t even take a lot of disk space.

I just set up a 10 virtual machine test cluster on a monster lab machine with 32 processors. I used Fedora 29 as my host machine and KVM for the virtual software.

But if you are starting with a Windows machine and you have some disk space to spare, then VirtualBox is probably the way to go.


14 posted on 01/17/2019 9:08:48 AM PST by the_Watchman
[ Post Reply | Private Reply | To 1 | View Replies]

To: Openurmind

I was thinking that, also. How should I format the new HD?


15 posted on 01/17/2019 9:13:26 AM PST by Blood of Tyrants (Twitter is Trump's laser pointer and the media are all cats.)
[ Post Reply | Private Reply | To 11 | View Replies]

To: Blood of Tyrants

you can get Hard Drives really cheap these days- and they are easy to install- I’d pick up a good used one, and install linux on it or even dual boot- if you are thinking of wiping out windows on the old Hd anyways- but yes, it should run fine on your computer- but try a live CD first to see-


16 posted on 01/17/2019 9:23:34 AM PST by Bob434
[ Post Reply | Private Reply | To 8 | View Replies]

To: the_Watchman

Bkmk.


17 posted on 01/17/2019 9:28:44 AM PST by grey_whiskers (The opinions are solely those of the author and are subject to change without notice.)
[ Post Reply | Private Reply | To 14 | View Replies]

To: Openurmind

I have a couple of machines, one with the Nvidia 1080 card. That upgrade went smoothly.


18 posted on 01/17/2019 9:32:16 AM PST by taxcontrol
[ Post Reply | Private Reply | To 9 | View Replies]

To: Blood of Tyrants

With the version of linux I highly recommend, it does it all for you automatically as part of the great install package. It will ask you if you want to format it before it installs the package and do it for you. Are you sure the drive is even bad? It could be something else.

There are many things that could give this false impression. Just trying to install linux will tell you. It will check everything out as part of the install and if it is truly bad it will tell you. If not... You will have a working linux machine! :)

I’d just give it a shot and see what it does! Make the Linux USB stick on a working computer and then set your bios on the target Computer to boot from the USB stick which it might do bad drive or not. Then see what it does with the install. Worst case scenario you will already have your linux stick made up already for when you do get the drive working. :)


19 posted on 01/17/2019 9:37:14 AM PST by Openurmind
[ Post Reply | Private Reply | To 15 | View Replies]

To: taxcontrol

Slick as snot! I really like the auto-install and how easy it works. Did you encrypt it? I haven’t done this yet because I have been installing it over windows and was worried about whether it would still go read and access the windows folders like it does when it is unencrypted.


20 posted on 01/17/2019 9:41:52 AM PST by Openurmind
[ Post Reply | Private Reply | To 18 | View Replies]


Navigation: use the links below to view more comments.
first 1-2021-4041-49 next last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
General/Chat
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson