Reddit

Subscribe to Reddit feed
All things Linux and GNU/Linux -- this is neither a community exclusively about the kernel Linux, nor is exclusively about the GNU operating system.Linux, GNU/Linux, free software...
Updated: 16 min 30 sec ago

Ubuntu not installing to HDD

Sat, 2017-11-18 19:11

Okay, so I've been looking it over bit by bit over the last week and decided to install Linux on my old shitty laptop because I've wanted to try it for a while, so I downloaded Ubuntu as I read it was the safest as far as hardware compatibility.

I downloaded Ubuntu from the website, mounted the ISO to my USB and plugged it in. I clicked install Ubuntu and went through the process, everything seemed to be okay but when I restarted and removed the USB it didnt work, there was just a bios error. I also tried unplugging before hitting restart but it said there were no resources or something.

I looked it up and tried a few different things, I tried editing and creating partitions, working in the terminal go install the OS onto one of the partitions, and I tried reinstalling many times but nothing has worked. It will not work without the USB.

If anyone knows a solution I'd appreciate the help, in the meantime I'm going to keep trying and I will update if anything works.

submitted by /u/Djanko28
[link] [comments]

Fedora 5 Issues (Urgent)

Sat, 2017-11-18 17:52

Hi, I'm new here so if anything is wrong with my post (Structure, location, etc.) please forgive me.

I'm having a huge problem right now. I have an industrial printer. Prints roughly 3 meters wide. Inside it is a computer running Fedora 5. I don't think there is anything special about the computer but the Hard drive containing Fedora has irreplaceable software for actually running the printer. The problem with the computer is that it goes straight to an FF post code when booted but that isn't my issue right now. Basically what I want to do is remove the hard drive from the computer, put it in another one, and reinstall the computer back into the printer. How would I go about doing this? Simply removing the drive and plugging it into another PC results in No Operating System Found.

Any help would be appreciated. The printer set me back roughly $40 000.

PS. The reason I'm not going to the manufacturer is because the company doesn't exist anymore. Also this is really urgent because its Saturday afternoon and and I have someone coming to purchase the machine on Monday morning.

submitted by /u/blankymcblankface
[link] [comments]

MBR, GPT, LVM, EFI, GRUB and finally lilo

Sat, 2017-11-18 16:10

(English is not my native language, sorry for the mistakes)

TL;DR: author is whining about GRUB being so lame with LVM and finally discovers lilo doing it right, but being abandoned since late 2015.

MBR?

MBR is just a mistake. A great mistake that went so far. Are you serious thinking about putting together information about boot and disk partitions?

Don't tell me "It was always like that", just say "It is ugly".

It gets even worse when engineering mistakes are being fixed by using duct tape and WD40. To overcome stupid 4 partitions limit we have to welcome "extended partition" (logically), which in turn, tricks us and puts a lot of half-empty MBRs all over the disk. Spaghetti, anyone?

And of course, you couldn't just resize a partition. Well, you could, but only if it has a space afterwards, and the way to do it is easy: just delete it and create again with same beginning and new ending. You could do it a little bit less scary with sfdisk, and sfdisk will be the only automated backup and restore solution when you have "extended" shit.

There is an utility called ptmax, it helps a lot, but anyway, MBR and partition increase is just a pain in the ass.

Now welcome the anal plug of MBR, GRUB with core.img. Obviously 446 bytes in the MBR is not enough to store any reasonable code, and it's too costy to create a separate partition for GRUB in MBR environment, so it's better to put some data just after MBR and before the partition has started. This is a "well documented" behavior, of course, because 1Mb space before the first partition now is rather bit, but was a lot smaller back in the old days.

Backup? Anyone? Well, without "extended" bullshit all you have to do is to take the first 512 bytes with dd and you're good to go. Using "extended" partition makes you idiot: sfdisk or just take a photo of your partition layout with your shiny smartphone.

GPT?

Well, nope. GPT solves "shake but don't stir" problem of MBR: it tells us not to use this stupid hacks of core.img with MBR and created separate partition for GRUB.

It has a nice and well engineered backup process: you always have a backup copy in the end of the disk (but modern fdisk with GPT support still thinks there is none, gdisk is fine with it), and you can just copy first 34 blocks with dd and be happy.

But the problem with partition resize is still here. And as soon as our environment gets more and more virtualized, resize of virtual disk becomes more and more everyday and simple operation. But you've created partitions, don't you? Then nothing will help you here.

LVM

This is awesome. I can do whatever I want. I can snapshot, resize, move aroud. This. Is. Awesome.

Tools for backup are nice and easy to use, vgcfgbackup and vgcfgrestore have some rough edges, but in general, they are nice.

But the understanding of the nature of LVM is still uncommon. More and more system administrators create one big partition with MBR on their disks and then put this partition to LVM. Why? Fuck you, that's why.

And even more gore and sorrow awaits ahead if you dare to abandon MBR or GPR completely, leaving only LVM for your whole disk.

Nice try, Ubuntu!

Note: I will use Ubuntu as an example here. If you've ever had any other experience with LVM, please leave a comment.

"What's the problem, man? I've seen something about LVM during installation, is it so bad?"

itsbeautiful.jpg: https://imgur.com/a/byzlV

Everything here makes me cry.

First of all, a partition is put to LVM. Why? Fuck you once again, that's why. And this is an "extended" partition, so two stupid MBR records all over my disk.

Then /boot. Well, you've said "LVM"? Now have your MBR and /boot as primary partition. Yes, I do know about GRUB unable to boot from LVM, but this was a long time ago in a galaxy far away. GRUB plays well with /boot in LVM now.

And to the poing: what's the reason of having MBR with LVM? LVM can do all the things.

Let it die

Can we abandon MBR completely? Yes, for sure. Installer will not help us, so just press Alt+F2 to fire up second console and to the following (assuming /dev/sda is my disk):

pvcreate /dev/sda vgcreate ubuntu /dev/sda lvcreate -n root -L6G ubuntu lvcreate -n swap -l100%FREE ubuntu

6Gb here for rootfs, all other for swap.

Afterwards "Partition disks" step of installer will do just fine and let us use our logical volumes instead of partitions.

Houston, we have a problem

Everything goes well, but the GRUB. Could we potentially install it? As sure as hell - LVM leaves first megabyte empty. Why? Well, you know. But pvs -o +pe_start will show it.

Once again, first megabyte of disk is perfectly empty. Nothing stops GRUB from writing there 446 bytes of stage 1, and putting core.img as it would like. But GRUB is unable to do it without MBR.

Damn, why not? Just put a warning sign, ask me for confirmation, and just do it! Neeeeeeh. You support LVM, WHAT'S THE PROBLEM?

Okay, maybe this is the installer to blame? Chroot and try is manually, grub-install and adding -s option. It will give is «unable to identify a filesystem in hostdisk//dev/sda: safety check can't be performed» error.

So let's put on our masks and animal skins and grep the sources. The truth is - GRUB will never ever install itself without MBR with at least 1 partition. Deal with it.

True warriors will look at me with compassion and say: "Just join our church of EFI, stop jumping aroud as an amphetamine bunny with GRUB".

Well, I'm ready, I'm in, EFI is really simple way, but there still is a lot of legacy hardware without EFI support. And while EFI could act as BIOS, BIOS will always be BIOS.

EFI?

At large, EFI is good. No hidden parts on your disk, just plain ESP partition, plain old FAT, just put .efi binary there and good to go. EFISTUB-enabled kernels could do it without any help.

systemd-boot needs only 7 lines of configuration. Seven. Compare is to your grub.cfg and let's cry together.

But stop. EFI needs partition. Again. And no LVM support.

There is a trick. We can take a disk and format it without partitions to FAT, EFI will use it without any problem. So we will have two disks in our environment - one for the EFI, one for the rootfs and stuff. No so bad, but still not perfect.

lilo?

And yes, this is WAT. This is a real WATMAN!

But let's think again - why GRUB is so ugly? Well, because it supports the whole hell of features. Boot this so, boot this other way, put some options here, chainload my Windows installation here and show me a menu. But in modern world we usually have some well-separated simple environments, we just need to boot our one kernel.

So, what about lilo? It plays well with LVM with PV as whole disk: could have /boot on logical volume; don't need any MBR or GPT to be created; works well in Ubuntu 16.04 LTS (there is a package, it works just fine).

There is another problem with it: the project has been abandoned since late 2015. But it is good as it is.

Takeaway

Please, just see my message: do not use MBR or GPT, if you have LVM. There is no reason! And don't ever put partition to LVM (except some crazy dual-boot-my-grandma-Windows cases).

And let's hope to have LVM support with EFI somedays. And while it is not there, let's cry and use lilo.

submitted by /u/maniaque_ru
[link] [comments]

Intalling Node.js

Sat, 2017-11-18 15:10

Help woth installing linux or ubuntu on dell inspiron 15 7995

Sat, 2017-11-18 13:58

It keeps freezing as soon as I try to boot it up from a USB , I used Rufus to install the Iso file. The menus are working in the bios but as soon as the Linux logo shows up it freezes and nothing is happening. Laptop is fairly new got it last year

submitted by /u/Dubxx
[link] [comments]

Linux Mint 18.3 Beta Review

Sat, 2017-11-18 13:24

So i want to get my dad to upgrade to linux

Sat, 2017-11-18 11:34

i want to get my dad to upgrade but he does not know much about computers, and i was just wondering what you all thought the easiest transition was, like mint or elementary, what would you recommend as the easiest transition

submitted by /u/depressingfire
[link] [comments]

With Nix and Guix around, why do we need Snaps and Flatpaks?

Sat, 2017-11-18 08:29

What are the differences, and are they worth it?

submitted by /u/justajunior
[link] [comments]

Why? Why does Chrome need to open 13 udp sockets to 5353?

Sat, 2017-11-18 04:13

This seems ridiculous.

udp6 0 0 :::5353 :::* 15786/chromium-brow udp6 0 0 :::5353 :::* 15786/chromium-brow udp`6 0 0 :::5353 :::* 15786/chromium-brow udp6 0 0 :::5353 :::* 15786/chromium-brow udp6 0 0 :::5353 :::* 15786/chromium-brow udp6 0 0 :::5353 :::* 15786/chromium-brow udp6 0 0 :::5353 :::* 15786/chromium-brow udp6 0 0 :::5353 :::* 15786/chromium-brow udp6 0 0 :::5353 :::* 15786/chromium-brow udp6 0 0 :::5353 :::* 15786/chromium-brow udp6 0 0 :::5353 :::* 15786/chromium-brow udp6 0 0 :::5353 :::* 15786/chromium-brow udp6 0 0 :::5353 :::* 15786/chromium-brow

submitted by /u/Gwerks71
[link] [comments]

Native decorations for Firefox Quantum on Linux?

Sat, 2017-11-18 04:07

Does anyone know when Firefox window decorations will do that neat Chrome trick where you can have the window controls on the same level as the tabs? If that happened that would be so awesome.

submitted by /u/Buttmoist
[link] [comments]

Pages