/srv/irclogs.ubuntu.com/2015/07/12/#ubuntu-server.txt

=== utlemming is now known as utlemming_away
=== ejnahc is now known as ejnahc^
=== CiPi is now known as cipi
cripperzwant to earn USD50 per week by just shortening links.. new technique ... cant be found online ... pm me if interested. Requirement u need to run an app for atleast 150hrs per week else be ban from server.04:08
patdk-lapnot surre I can work 150hours per week without sleep04:18
=== pHcF_ is now known as pHcF
=== Lcawte|Away is now known as Lcawte
=== cipi is now known as CiPi
lordievaderGood morning.09:29
=== Lcawte is now known as Lcawte|Away
=== Lcawte|Away is now known as Lcawte
=== zz_DenBeiren is now known as DenBeiren
=== Lcawte is now known as Lcawte|Away
=== Lcawte|Away is now known as Lcawte
Bayoumi_dkhi.. what is ubuntu cloud? online desktop? or just another server?17:54
bekksServices running on remote servers.17:57
Bayoumi_dkok thx.. :)17:58
Bayoumi_dkThere are no webbased ubuntu os?17:59
bekksWhats is a "webbased ubuntu os"?18:00
Bayoumi_dkI thought that cloud is maybe a webbased Linux...18:02
bekksWhat is a "webbased linux"?18:03
Bayoumi_dkI'm just asking.. don't be an asshole18:04
bekksIgf you cant handle explanation requests, better dont say anything, instead of getting personal.18:04
bekksSetting you on ignore, for avoiding to read you any further.18:05
bekks*If18:05
Bayoumi_dkNice admin18:05
Bayoumi_dkThere are lots of online operation system writing in php/pearl.. I thought that ubuntu cloud was is a new ubuntu online operation system..18:06
lordievaderI suppose it is more geared towards could vm services. Like amazons web stuff.18:07
wolflarsonwhat is an easy way to just add ips to a file and then ban them from my whole computer?18:07
wolflarsonfail2ban keeps banning the same ips every few hours (from china) and I just want to ban the whole range but I am not sure how18:08
lordievaderwolflarson: iptables, or better ipset.18:08
lordievaderFail2ban has ipset support.18:09
AvatarAif you want easy, google ufw18:09
wolflarsonboom that is really easy thanks AvatarA!18:10
wolflarsonlordievader, iptables scares me18:10
lordievaderIptables is nothing to be scared about. It is rather lovely. Once you start getting into iptables you start to dislike ufw.18:11
wolflarsoni dont think i am smart enough to use it18:12
AvatarAit's hard to learn when you don't really need the advanced stuff iptables has to offer18:12
AvatarAbut if you'll need to fine tune your settings it will become easy as you take it step by step and learn from practice18:14
lordievaderAnyone is able to learn iptables.18:14
bekksEveryone :)18:15
wolflarsonso AvatarA will these settings save after reboot? or do I need to write these out to a file and add them to a config or something?18:19
wolflarsondont want to lock myself out :)18:19
renebarbosaw18:20
AvatarAyes they're saved18:21
AvatarAwhat are you trying to block? bruteforce attacks on ssh?18:23
wolflarsonwell fail2ban seems to work for that OK18:26
wolflarsonits just that when i go in the fail2ban log I see the same ips over and over again18:26
wolflarsonmay as well block them forever18:26
cryptodanYou can also use ufw which is an interface for iptables18:26
AvatarAif you want to get rid of all that junk in the logs, change the listening port of ssh18:33
AvatarAit's not security but at least you get rid of 99% of the noise18:33
Demon_JesterHey guys, I installed ubuntu server via usb, and my internal HDD was sdb while my flash drive was sda, and I had to install lilo grub on sdb (gnu grub was giving me problems) now when I boot the ain hdd it gives me ALERT! sdb6 cannot be found, I think this is because my main HDD is back to sda now. Is there way to change bootloader to search for sda instead of sdb?18:37
AvatarAyou have access to the grub boot menu when you boot?18:40
Demon_JesterAvatarA no, I do not, it just goes into console, and my name is initarmfs18:43
TJ-If "lilo" was used instead of "grub2" I'm not surprised :)18:44
AvatarAhold shift before you boot into console18:46
Demon_JesterTJ- I wish I could install grub but it just tells me it failed, and doesn't tell me why18:46
Demon_JesterAvatarA ok I will give it a shot, what is suppose to happen? menu?18:47
AvatarAaaa I misread, I thought you have grub18:47
Demon_JesterAvatarA I held shift and brough boot menu, and all there is "Linux" do I select it or since I dont have grub holding shift is moot?18:50
AvatarAanyway, you need to edit your boot entry from that boot menu and change to sda where necessary and then also edit your fstab18:50
AvatarAafter you boot18:50
AvatarAwell in grub you pressed "e" to edit the menu entry18:50
AvatarAthere must be a key for lilo as well but I don't know it, didn't use lilo that much18:51
Demon_JesterAvatarA, what edit program can I use? vi/gedit/nano are not available. or would I have to use sed to modify files?18:52
AvatarAtype editor, tell me what happens18:53
AvatarAsed is good for your particular case but be careful and have a looksie in your fstab before you run that command, see if everything else looks ok18:54
Demon_Jestereditor: not found and i used find and could not find fstab18:55
AvatarAlook in /etc/fstab18:56
AvatarAbtw you have a very weird install18:57
Demon_Jesterno fstab in /etc19:00
AvatarAtype mount19:01
Demon_JesterI know I have weird install nothing can go smooth for me, trying to install ubuntu server on dell poweredge is a hassle.19:01
Demon_Jesterhold up19:01
AvatarAand paste that to pastebin so I can see19:01
Demon_Jesteri cant paste it from another computer that has no internet access even when i bring up eth port.. it just shows me rootfs systf etc.. if i try to do mount /rootfs says cant find "etc/fstab" no such file or directory19:03
AvatarAtell me what is "on /"19:04
Demon_Jesterim gonna load irc on my tablet so i am not going between each room brb avatar19:04
Demon_JesterAvatarA ok i am back. did you asked what was on /?19:09
AvatarAI want to know what is mounted as / (root)19:09
AvatarAbut I believe you're booted into initramfs now19:10
Demon_Jesteryeah i am.19:10
AvatarAthat would explain the lack of nano and such19:10
AvatarAI'll tell you what should be done cuz how, is longer :)19:11
AvatarAremount your /dev/sda1 (or whatever your system is installed) as /19:12
Demon_Jesterext4 or anything?19:12
AvatarAext4 if that is how you created your partition19:12
Demon_Jesterkk19:12
AvatarAand with defaults is good19:13
AvatarAafter you remount that, you should resume boot, not restart19:14
Demon_Jesterok i mounted sda1 on / i didnt receive any error19:14
Demon_Jesterresume boot? just type boot?19:15
AvatarAI am not sure exactly how that can be done in your case.19:15
AvatarAif you type exit what happens?19:15
Demon_Jestergives me same error on giving uup waiting and how it cant find dev/sdb619:16
AvatarAok remount that sda1 and tell me if you can find /etc/fstab afterward19:17
Demon_Jesterno fstab im just gonna restart maybe i will get lucky19:21
AvatarAnothing's changed so I don't believe so19:23
Demon_Jesterdamn it19:23
AvatarAhow did you partition your drive?19:24
AvatarAdid you install on the first partition?19:24
Demon_Jesteryeah. its trying to find sdb that doesnt exist. idk how to change it to sda19:25
AvatarAyou're now in initramfs, something that runs in the RAM without using anything on your hard disk19:27
AvatarA2.you need to mount /dev/sda1 so you can access it19:28
AvatarA3. you need to edit /etc/fstab so you can edit it and replace with /sda1 where necessary19:28
AvatarA4. you need to edit your lilo config and do the same thing19:29
AvatarA5. reboot19:29
Demon_Jesterthere is no lilo conf file. unfortunately.19:29
AvatarAlet's retry :)19:30
AvatarAmkdir mylinux19:30
AvatarAworks?19:30
Demon_Jesterok i mounted19:30
Demon_Jesteryes mkdir mylinux works19:31
AvatarAumount /dev/sda1 cuz I don't know what/how you mounted there19:31
AvatarAso umount /dev/sda119:31
AvatarAworks?19:31
Demon_Jesterno errors.. let me see of my dir is stil in /19:32
dukestyxhey, may be a hot topic, but is SSL v3 still considered insecure?19:33
AvatarAmount /dev/sda1 /mylinux19:33
Demon_Jesterkk19:34
AvatarAworked?19:34
Demon_Jesteryep19:34
AvatarAls /mylinux19:34
Demon_Jesterall i had to do was make different dir19:35
AvatarAyou get a bunch of directories and files?19:35
Demon_Jesteryep fstab is here lilo.conf19:35
AvatarAok, those you need to edit19:35
AvatarAreplace what was your usb, /dev/whatever it was with /dev/sda1 and then you can reboot19:36
Demon_Jesterit shows uuid which matches /dev/sda*19:37
AvatarAwhere, in fstab?19:37
Demon_Jesterya19:38
AvatarAline that starts with UUID= ?19:39
Demon_Jesterya19:39
AvatarAok19:39
AvatarAnow check lilo.conf19:39
AvatarAif fstab uses UUIDs then nothing needs to be changed19:40
Demon_Jesterhmm19:40
AvatarAUUIDs replace stuff like /dev/sda1 with that series of characthers you just saw19:41
Demon_Jestercan i scroll in console so im not viewing last bit of a file?19:42
AvatarAso they stay unique and don't change even if you add or remove drives19:42
AvatarAwhat command did you use to view?19:42
Demon_Jestercat19:42
AvatarAuse "less"19:42
Demon_Jesterless not found19:43
AvatarAwhat about "busybox less"?19:43
Demon_Jesterapplet not found19:43
AvatarAcat lilo.conf | more ?19:44
Demon_Jesterstill nothing. screw it just gonna use sed replace all sdb with sda and hope for the best19:45
AvatarAnope19:46
AvatarAit's not sdb19:46
AvatarAyou should have had a number at the end19:46
AvatarAsdb1 or sdb6 or something19:46
AvatarAsame with sda, use sda119:47
Demon_Jesteri know sda1,2,5,619:47
AvatarAcuz sda1 is first partition,19:47
AvatarAsda is your drive, as a whole19:47
AvatarAif you replace everything with just sda you will likely screw everything even more19:47
AvatarAcat lilo.conf | head19:48
AvatarA?19:48
Demon_Jesteri know i meant sda1 sda2 sda5 sda619:48
patdk-laplilo?19:49
patdk-lapI didn't think ubuntu ever used lilo19:49
Demon_Jesterthis is useless it wont save my stuff anyways19:49
AvatarAwhat do you mean it won't save it?19:50
AvatarAit does save what you edit now19:50
Demon_Jesterif they didnt then i wouldnt have it installed. i would be trying to figure out why grub keeps failing at initial install.19:50
Demon_Jesterwhen i use sed it outputs the changes but wont save.19:51
Demon_Jestero.. -i wasnt used19:52
AvatarAhow do you know it doesn't save, it says so?19:52
AvatarAok, worked now?19:53
Demon_Jesteri use cat lilo.conf and still shows sdb1 sdb6 etc..19:53
Demon_Jesterya it did19:53
AvatarAroot=/dev/sdb1? or something like that?19:53
Demon_Jesterwell it did but its root=/dev/sda1; similar, im rebooting in hopes it worked19:54
AvatarAyeah root=/dev/sda1 seems about right19:54
Demon_Jesterhmm still booting.. nope same error19:55
AvatarAit would be cool if you could somehow paste your lilo.conf :)19:56
AvatarAwhat was the error again?19:56
AvatarAanyway seems kinda f'd up that you're using /dev/sda1 here and UUIDs in fstab19:57
AvatarAweird weird install19:57
Demon_JesterALERT! /dev/sdb6 cannot be found.. it tells me to check /proc/cmdline.. i tried to change it to sda6 using echo and said with no luck19:58
Demon_Jestersed*19:59
AvatarAno /proc doesn't matter here , that is not on your hard drive19:59
AvatarAyou sure your sed changed sdb6 to sda1 ?19:59
AndroUserHello20:00
AndroUserDoes this app work, anyone here?20:00
Demon_Jesterwell i mean i switched sdb6 to sda6 if needed i can switch sda6 to sda1 in lilo.conf20:00
AvatarAoh man... :D20:01
AvatarAfind a way to show me lilo.conf as it is now20:01
Demon_Jesteri cant even fully view it myself.20:01
AvatarAmaybe you can scroll after cat20:01
AvatarAtry Shift and Up Key20:01
AndroUserHey guys, would anyone be able to help me with this: http://askubuntu.com/q/647527/99155 I upgraded to 15.04 and my servers file system has become read only, really struggling to work out why/fix it :(20:02
AndroUser@here I'm hoping its something simple, i literally just updated from 14.04 to 15.0420:03
AvatarAAndroUser, /dev/vda1 on / type ext4 (rw,errors=remount-ro) seems vda is mounted as rw, read/write20:04
AvatarAwhy do you say it's read only?20:04
AndroUserAvatarA, i cannot make any changes at all20:04
Demon_JesterAvatar shift + page up works20:04
AvatarAok, at the beginning20:05
AvatarAboot=/dev ...20:05
AvatarAwhat do you have there?20:05
AndroUserI put the rw at the end, but it keeps saying there is something wrong with the UUID, so i changed it in fstab but it still doesnt work20:05
AndroUserWhat do you mean?20:06
AvatarAit was for Demon_Jester20:06
Demon_Jestertells me to `lilo to make changes which i did lol im at a >_ line.. lol20:06
Demon_Jesterok im back at the beginning20:07
AvatarAthat line starting with boot= told you lilo to make changes?20:07
AvatarAAndroUser, how did you change UUID exactly?20:07
AndroUserAvatarA, I have no idea what made it wrong in the first place, but i asked DigitalOcean to put in the recovery ISO, booted to that and edited /etc/fstab to what i though the correct UUID was, took out the ISO rebooted, and its still read only20:08
Demon_Jesterboot= is dev/sda should it be changed to sda1?20:09
AvatarAno, that is correct20:09
Demon_Jesterroot=/dev/sda1 actually20:09
AvatarAafter some lines that say image=/boot/vmlinuz .. ?20:10
AndroUserAndroUser, see the fstab output at the bottom, the #commented line is what it was previously, before i changed it: http://askubuntu.com/q/647527/9915520:10
AndroUserOops i mean AvatarA20:10
AvatarAwell it should match blkid of vda120:11
Demon_JesteravatarA insee image=/vmlinuz with options underneath like label=linux read-only etc..20:11
AvatarAit sucks that I can't see the whole file but if you type lilo20:13
AvatarAdoes it say that it is applying changes or something like that?20:13
Demon_Jesterno saus /bin/sh lilo not found20:13
AndroUserAvatarA is it the UUID starting 18 or 8c?20:13
Demon_Jestersays*20:13
AvatarAaa yes20:13
AvatarAso go to /mylinux/sbin/lilo20:14
AvatarArun that20:14
AndroUserAvatarA, labeled DOROOT or primary20:14
Demon_Jesterhow do i run it? i already tried `lilo` no luck20:15
AvatarAit should be the first one AndroUser I don't know what the second is20:16
Demon_Jesterok i did the whole director `/mylinux/sbin/lilo` and got a error "Fatal: chroot /dev/sdb6: no such file orndirectory"20:16
micahgdoes anyone have a test  neutron-lbaas-agent setup that they could quickly test a new haproxy with on trusty?20:17
AvatarAhey Demon_Jester if you try "chroot /mylinux" what happens?20:19
Demon_Jestergoes to root@none gave me some errors about something.20:20
LewAvatarA hey sorry got disconnected20:22
LewIts AndroUser20:22
Lew(On my phone)20:22
LewWhich one should the UUID be?20:23
AvatarAI said it seems to be first, I don't know what the second is20:23
LewOk so the DOROOT20:24
Demon_Jesteravatar what should i do now?20:30
AvatarAI was thinking about a chroot so you can uninstall lilo and just install grub but that requires a lot of steps too20:32
Demon_Jesteri can use vi and stuff no20:32
Demon_Jesternow20:32
Demon_Jesterwoot20:32
AvatarAyeah but I don't know if it's a complete chroot20:35
AvatarAproc should have been mounted too, sys and dev20:35
AvatarAanyways20:35
Demon_Jesterproc kind of is. nothing in directory20:35
AvatarAnow you can less lilo.conf20:35
Demon_Jesteri was able to view it completely using shift + page up,down earlier20:36
AvatarAand see if you have any sdb6 there or whatever that error told you20:36
Demon_Jesterno sdb6 in lilo.conf which is throwing me off.20:36
AvatarAand sda1 where it should be?20:37
Demon_Jesterits on root/dev/sda120:37
Demon_Jesterroot=/dev/sda1*20:37
AvatarAwell cuz that is just a config file and changes have not been written to boot loader20:37
AvatarAso try lilo now20:37
Demon_Jestersame error20:38
AvatarAwhat error?20:38
Demon_Jesterfatal: chroot /dev/sdb6: no such file or directory20:40
AvatarAhmm, I don't know where it gets that sdb6 from if you say it isn't present in lilo.conf20:42
Demon_Jesteri tried looking at /boot/map since that was a directory but no luck there20:42
AvatarAlilo -b /dev/sda20:47
AvatarAsame error?20:47
Demon_JesterAvatarA sorry i was at the server. umm i had my flash drive in so i removed it and rebooted. and i used df and showed my main hdd as sdb1 so idk whats going on. lol20:57
AvatarAso now your drive is sdb120:57
AvatarAso what is sda1?21:02
Demon_Jesteroh for fuck sakes vi wont edit my fikes it jist inserts letter doesn't delete. no i have to fucking figure why that is not fucking working.21:05
lordievaderDemon_Jester: Please watch your language.21:09
lordievaderYou could use vim instead of vi, it is much more user friendly.21:09
Demon_Jestervim is not on here21:10
lordievaderInstall it, takes just a second. Or use nano, ofcourse.21:11
Demon_Jesternow when i use lilo i get "fatal: raid_setup: stat("/dev/sdb")"21:11
Demon_Jesteri cant eth0 is not working no internet connection.21:11
lordievader"Is not working" any more details?21:12
Demon_Jesteri bring it up. doesnt get ip address assigned. i already used sed to modify what i need.21:13
lordievaderDhcp or static?21:13
Demon_Jesterdhcp.21:13
lordievader"sudo dhclient eth0" doesn't get you an address?21:14
AvatarAstill in initramfs now?21:15
Demon_Jesterno i have to make directory when i restart21:16
AvatarAso still at the initramfs stage21:17
Demon_Jesterstill getting sdb error idk why in ls /dev it doesnt list any sda* or sdb* i have checked lilo.conf repeatedly to see if there is /dev/sdb6 and nothing.21:18
TJ-initrd is a static file-system, and if udev doesn't run then no dynamic discovery of devices will occur21:19
lordievaderAin't it a good idea to configure lilo with UUID's instead of sdXY stuff?21:19
TJ-Surely it'd be quicker to reinstall using GRUB and get guidance during the install to ensure the boot-loader is correctly installed? Maintaining a Lilo boot-loader is going to be nightmare; I'm not sure the update scripts take account of it any more21:21
AvatarAI was thinking he could chroot and then remove lilo and then install grub221:21
Demon_Jesteri cant install grub it failed durimg installation didnt say why didnt tell me what logs to look at. lilo was my other option.21:22
lordievaderIs lilo even supported by Ubuntu?21:22
lordievader!lilo21:22
ubottulilo is an alternative [Li]nux Boot[Lo]ader. Note: it is recommended that you use GRUB on Ubuntu instead.21:22
lordievaderHmm, that is informative -.-21:22
AvatarAhow is your drive partitioned?21:23
Demon_Jestersda1 is ext4 sda5 is swap sda6 is ext4 idk if that is what u meant.21:24
AvatarAso you have a system partition, first, then some swap space and then the last is for your /home , personal files?21:26
TJ-Boot with a Live ISO in "Try ..." mode (giving full network and tools access), create a chroot into the installed system, replace lilo with grub2, get it configured correctly under guidance, and reboot21:26
Demon_JesterTJ- i cant try ubuntu-server..21:26
lordievaderDemon_Jester: Get an ubuntu image or some other desktop flavor.21:28
AvatarAif he can mount his root partition can't he also chroot into it?21:29
TJ-AvatarA: if 'chroot' is available21:30
AvatarADemon_Jester, want to give it a go?21:30
TJ-Demon_Jester: my feeling is you've already suffered 3 hours trying to make progress; in that time a Live ISO boot + chroot would have fixed this... and there's no guarantee continuing with Lilo is going to be sustainable for upgrades - and there are very few people now with expertise and experience with Lilo21:31
Demon_Jesterif grub could not be installed at initial installation, how will it work now?21:35
TJ-There's a lot of expertise on grub problems; that is a solvable issue21:36
lordievaderRunning grub-install in a terminal usually gives an error that is quite google-able.21:37
Demon_Jesterwell ok i will give it a shot.21:39
TJ-I'm currently doing a remote in-place replacement; the server is 12.04, I've created a 14.04 debootstrap install in a separate VG and am configuring that to take over from 12.04, using a chroot. I can be 100% sure that'll boot restarting the server. When you've got access to the network and full tool-set it makes fixing things so much easier21:41
lordievaderTJ-: That is allways a nice way of doing a reinstall :)21:42
lordievaderWhy a separete VG though?21:43
TJ-lordievader: It's been through 2 release-upgrades previously; I want a clean slate this time21:43
lordievaderI usually take a new lv in the same vg naming it something root-new-lv. When I'm done and it's tested I'll swap them around.21:44
TJ-lordievader: Current environment Xen block devices,  1 per file-system. I want the flexibility of LVM21:44
* lordievader has no experience with Xen.21:44
TJ-lordievader: This server started out with 8.04 I think it was21:44
lordievaderOld server then ;)21:45
TJ-No, 6.04!21:45
TJ-6.06 even, Dapper21:45
lordievaderHehe even more ancient :P21:46
lordievaderI hope not on the same hardware as then?21:46
TJ-yeah... and the amount of legacy crud means I'm reluctant to remove older components in case it breaks something21:46
lordievaderWow, what specs?21:47
TJ-It's virtualised, on Xen, and I'm porting it to KVM as well as moving it to 14.0421:47
Demon_Jesterok im burning ubuntu to usb. should be done shortly21:48
TJ-Intel Xeon E5-268021:48
lordievaderAh, ain't to bad. My personal server is weaker ;)21:48
TJ-The thing I like about a chroot replace/upgrade is you can move one service at a time (DNS, SSH, HTTP, SMTP, IMAP, etc.) over to the new install and ensure it is stable rather than moving everything and then scrambling to deal with upgrade issues, especially with the custom configs such systems usually have21:51
TJ-Demon_Jester: just to be sure; the Live ISO you're writing is the same architecture as the installed system (amd64, or i386) ?21:53
Demon_Jesteramd64 they both are22:00
TJ-Demon_Jester: good :)22:01
Demon_Jesterok im in and have terminal, do i just google how to install grub?22:07
TJ-Demon_Jester: No, we'll take you through it22:09
TJ-Demon_Jester: You'll need root for most of this so to make things easier start off with "sudo -i"22:09
TJ-Demon_Jester: , next, install the pastebinit package so you can easily share output with us: "apt-get install pastebinit"22:10
lordievaderI was more talking about the error. But replacing google with this chat works too ;)22:10
Demon_Jesterwell i mean i also googled but he, pastebinit is installed22:11
Demon_Jestereh*22:11
TJ-Demon_Jester: "mkdir /target"22:11
TJ-Demon_Jester: "pastebinit <( lsblk -f )"22:12
Demon_Jesterok its said failed to comtact the server22:13
lordievaderDemon_Jester: Do you have an internet connection?22:14
TJ-Demon_Jester: Yeah, just out luck that ubuntu pastebin is having problems this past few minutes... it seems to come and go. Try again22:14
Demon_Jesterlirdieavor, yes; TJ-, ok22:14
Demon_Jesterhttp://paste.ubuntu.com/11869385/22:15
TJ-lordievader: I've been having problems accessing paste.ubuntu.com I think there's a routing issue22:15
lordievaderHmm, I see.22:16
TJ-Demon_Jester: thanks, so we're dealing with /dev/sda. Now show us "pastebinit <( blkid )"22:16
Demon_Jesterhttp://paste.ubuntu.com/11869402/22:18
TJ-Demon_Jester: OK, and now "pastebinit <(cat /proc/partitions )"22:18
TJ-Demon_Jester: this gives us all the background info we need to be confident we understand the disk layout22:19
Demon_Jesterhttp://paste.ubuntu.com/1186941122:19
Demon_Jesterkk22:20
TJ-Demon_Jester: So sda is a 500GB disk?22:20
Demon_Jesterno its 1tb i partitioned it down to 500 for idk why tbh.22:21
TJ-Demon_Jester: OK... "pastebinit <( fdisk -l /dev/sda )"22:22
TJ-Demon_Jester: if fdisk not-found, then "apt-get install util-linux"22:26
Demon_Jesterhttp://paste.ubuntu.com/11869448/22:26
Demon_Jestersorry for the delay22:26
TJ-Demon_Jester: that's a weird layout!22:32
TJ-Demon_Jester: from your earlier adventures with the mention of /dev/sdb6, I'm guessing that /sda6 is the root file-system; is that correct?22:33
TJ-Demon_Jester: On that basis "mount /dev/sda6 /target" should allow us to confirm  that?22:34
Demon_Jesteri believe so, i hate this kind of stuff tbh22:34
TJ-Demon_Jester: "ls /target/" shold show something similar to "bin  boot  dev  etc  home  lib  lost+found  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var"22:35
Demon_Jesterits blank, am i suppose to mount something there22:38
TJ-Demon_Jester: >>>> On that basis "mount /dev/sda6 /target" should allow us to confirm  that22:39
Demon_Jesterya it shows what u listed.22:40
TJ-Demon_Jester: great! let's prepare it for chroot then. "for n in proc sys dev dev/pts run etc/resolv.conf; do mount --bind /$n /target/$n; done"22:41
Demon_Jesteri receive an error /target/etc/resolv.conf does not exist22:44
TJ-Demon_Jester: OK, let's create something for it then. "touch /target/etc/resolv.conf"  .... after that do "mount --bind /etc/resolv.conf /target/etc/resolv.conf"22:45
TJ-Demon_Jester: that bind is allowing the chroot to use the host's DNS resolver so that normal IP networking is available inside the chroot22:46
Demon_Jesterok done.22:48
TJ-Demon_Jester: Right, time to enter the chroot: "chroot /target"22:50
Demon_Jesterok done.22:50
Demon_Jesterdoes chroot just make that directory temp root directory?22:51
TJ-Demon_Jester: That and it intercepts some system libraries to fool tools into believing that too22:52
TJ-Demon_Jester: Now lets find out what the installed bootloader packages are: "pastebinit <( dpkg -l *lilo* grub* )"22:53
Demon_Jesterhttp:/paste.ubuntu.com/11869585/22:55
Demon_Jestercrap22:55
Demon_Jestershould still be able to see it.22:56
TJ-OK, so just "lilo" currently. Let's remove that and then install grub2. "apt-get purge lilo"22:57
Demon_Jesterok purged22:58
Demon_Jesterapt-get install grub2?22:59
TJ-Demon_Jester: "apt-get install grub-pc"22:59
TJ-At some point, if I recall correctly, you'll get asked where to install grub. That will be "/dev/sda"23:00
Demon_Jesterok i selected sda23:00
TJ-You should also see it generate the grub.cfg file, where it lists all the kernels it found installed23:01
Demon_Jestertook me a second to realize space selects it.23:01
TJ-I guess it was running the text-console ncurses pseudo-windowing interface. That can be confusing :)23:02
Lurchyif I was setting up a home system as a server...how can I set it up to wake on LAN?  is that a bios setting exclusively?  or do I need to set it also in ubuntu?  can anyone enlighten me?23:02
Demon_Jesteri dont see grub.cfg in /target23:02
TJ-Demon_Jester: "ls -l /boot/grub/"23:03
Demon_Jesterok perfect23:03
TJ-Demon_Jester: I'm going to take you through that process manually just so you know how to do it yourself, and what good output looks like too23:04
TJ-Demon_Jester: "grub-install /dev/sda"23:04
Demon_Jesterwdf its installing for i386..23:04
TJ-Demon_Jester: don't panic :)23:05
Demon_Jesterfinished. no errors23:05
TJ-Demon_Jester: GRUB runs in 32-bit mode... hands over to an operating system, which then switches into 64-bit long mode if its the AMD64 install23:05
Demon_Jesteroh i see23:05
TJ-Demon_Jester: OK, now to generate GRUB's /boot/grub/grub.cfg (which is done every time a new kernel is installed/old kernel removed) do "update-grub"23:06
Demon_Jesterok done.23:06
patdk-laplurchy, both, depends on what level of *sleep* your in23:07
patdk-lapif you mean, full poweroff, that is bios only23:07
TJ-you should see it list the kernel versions as it does that... each of those versions will be added to grub.cfg, with a 'regular' boot entry and a "Recovery" entry accessible from GRUB's "Advanced" sub-menu at boot-time, if you hold Shift as the system is booting.23:07
Demon_Jesteroh. i see. ok.23:08
TJ-Demon_Jester: I'm reasonably confident that is fixed, but I want to check before I say "reboot", OK?23:08
Demon_Jesterok23:08
Lurchyhmmm...sleep mode in ubuntu?  can you explain the difference?23:08
Lurchyahh23:09
patdk-lapconsult your cpu manual23:09
TJ-Demon_Jester: "pastebinit <( dd if=/dev/sda bs=512 count=1 |  hexdump -C)"23:09
LurchyI understand....I read it already23:09
patdk-lapI think there are normally 5 levels, where 5 == full poweroff23:09
TJ-Lurchy: If the motherboard is being supplied with 5V Stand-by, and the firmware has enabled WoL, and you've not disabled it with ethtool/miitool, then it should wake when sent a magic packet by tools like etherwake23:10
patdk-lapthe only one the bios controls for wol23:10
Demon_JesterTJ- hexdump command not found23:10
LurchyI am reading some stuff on my netgear POE router...it is saying "magic packet"....then I guess it would boot to ubuntu23:11
TJ-Demon_Jester: bah! keep forgetting its the Live ISO: "apt-get install bsdmainutils"23:11
TJ-Demon_Jester: , then re-run the pastebin ... hexdump command please23:11
Demon_Jesterhttp://paste.ubuntu.com/11869647/23:12
TJ-Demon_Jester: Hmmm! I don't like that I can see LILO as well as GRUB there. Give me a moment to check on that23:12
TJ-Demon_Jester: OK, we can ignore that. The import part is the first 3 bytes which do a jmp 0x90 (eb 63 90) where the GRUB boot-strap code starts23:14
Demon_Jesterok. what do you want me to do from here? reboot?23:15
TJ-Demon_Jester: just to be double sure I want to see the first few sectors where GRUB installs its core.img: "pastebinit <( dd if=/dev/sda bs=512 count=4 skip=1 | hexdump -C )"23:16
Demon_Jesterhttp//:paste.ubunti.com/11869668/23:17
Demon_Jesterdamn it.23:17
Demon_Jesterpaste.ubuntu.com/11869668/23:18
TJ-Demon_Jester: FYI: A BIOS boot reads sector 0 of the disk into memory and then the CPU executes it. The boot-strap code then loads more sectors which are GRUB's core.img, usually from sector 1 through about 1024 (these sectors are generally unused space at the start of the disk). core.img contains the proper boot-loader code, which then finds /boot/grub/, loads grub.cfg and executes its instructions to show menu, boot the default entry, or whatever23:18
TJ-Demon_Jester: That looks perfect; exactly the same as my system23:20
Demon_Jesteroh i see. im still confused but stuff looks interesting.23:20
TJ-Demon_Jester: OK, "exit" to get out of the chroot, then use the Live ISO's normal reboot option to shutdown and reboot cleanly... remove the USB once the reboot begins of course23:21
TJ-Demon_Jester: one thing I forgot to check, was that the target's "/etc/fstab" is correct, but if you haven't touched that the installer will have written that correctly originally23:23
Demon_Jesterhmm ok grub loaded and my screen when inactive23:25
TJ-black screen?23:26
Demon_Jesterya23:26
TJ-That is a relatively common issue with some GPUs/driver combinations23:26
TJ-Did the system load the OS before the screen went black?23:26
TJ-Usually you can see GRUB write "Loading Linux..."     "Loading initrd..." at top of screen before the Os takes over23:27
Demon_Jesterscreen goes blank before loading OS23:27
TJ-Sounds like it may be switching to graphics mode. Try Ctrl+Alt+Del to reboot, hold Shift down, when you see the GRUB menu choose the "Advanced" menu, then select the first "Recovery ..." option23:28
=== DenBeiren is now known as zz_DenBeiren
Demon_Jesterno advance menu comes up23:32
Demon_Jesternvm i went to advance options23:33
Demon_Jesterok it took me to root@myserver23:33
TJ-When GRUB starts it checks to see if the Shift key is being held down. If so, it doesn't boot the default operating system entry, it shows its menu. Usually the top entry is "ubuntu" and represents the normal boot with the latest kernel; beneath that is "Advanced" which is a sub-menu when selected shows all the installed OSes, each with its normal boot and an alternative "Recovery" option for when there are problems23:34
Demon_Jesterah ok.23:34
Demon_Jesterappears im in a shell environment23:34
TJ-OK, that's good. If the black-screen was caused by the usual GPU issue we add the setting "nomodeset" to the kernel command-line.23:34
Demon_Jesterok23:35
TJ-Did you see a menu with several options including "root shell" before getting to the root prompt?23:35
Demon_Jesterno just linux and linux with gibberish recovery23:36
Demon_Jestergibberish words i mean.23:36
TJ-OK... if the usual Recovery environment is installed it shows a pretty screen to do common tasks from23:36
TJ-First we need to ensure the root file-system is mounted with read/write permissions so you can make changes23:37
TJ-"cat /proc/mounts | grep ' / '  "23:37
TJ-you should see something like "/dev/sda6 / ext4 rw,relatime,errors=remount-ro,data=ordered 0 0"23:38
TJ-What is important is whether you see the "rw" option or not. If you see "ro" its mounted read-only and we need to change that23:38
Demon_Jesteryep its ro not rw23:38
Demon_Jesterwait.23:39
TJ-Demon_Jester: OK: "mount -o remount,rw  /"23:39
Demon_Jesterumm i was looking at the uuid is it rootfs im suppose to be looking at or /dev/disk/by-uuid/?23:40
TJ-The output of /proc/mounts is <device> <mountpoint> <options>  ... you should be looking for "/" in the mountpoint column23:41
Demon_Jesterim guessing rootfs / rootfs rw 0 0 is probably it23:42
Demon_Jesterand it is rw23:42
TJ-That's good, we can change files23:42
TJ-OK, I'm hoping you have a simple text editor installed, the default is usually nano - are you familiar with it?23:43
Demon_Jesteryes. to be clear I do have experience with ubuntu (not really really tech with it) along with openwrt, and arch linux.. arch wasnt as hard to install as people claim23:44
Demon_Jesteranyways im ready.23:44
TJ-OK ... assuming it's nano: "nano /etc/default/grub"23:45
TJ-look for the line that has "GRUB_CMDLINE_LINUX="23:45
Demon_Jesterfound it23:46
TJ-keeping whatever may be assigned to it already, add in "nomodeset" so its something like GRUB_CMDLINE_LINUX="nomodeset"23:46
Demon_Jesterit was blank.23:47
TJ-if there are other settings there, ensure you separate from them using a space23:47
Demon_Jesterso nothing else23:47
TJ-OK, simple then... save it and get back to the shell (Ctrl+X) I think?23:47
TJ-Now we regenerate grub.cfg - that new setting will be added to the kernel command-line for every entry in the file: "update-grub"23:48
Demon_Jesteryep. i ran the update on grub23:48
TJ-Demon_Jester: in theory - if the black screen was caused by the GPU issue - the screen should remain active during boot now23:48
TJ-"reboot" should do it23:48
Demon_Jesterlets hope *crosses fingers*23:50
Demon_Jesterstill black screen.. if i go into recovery and install openssh will i be fine to ssh in?23:52
TJ-Yes23:52
Demon_Jesterok cool i will do thay23:52
Demon_Jesterthay23:52
TJ-I assume you already configured the network side23:52
Demon_Jesterthat23:52
Demon_Jesteryes.23:52
TJ-Weird you're getting a black screen still; does the system have multiple GPUs, or multiple heads connected? I've seen that happen when a single monitor was connected to the secondary head ... everything is cloned to both heads until the OS starts, then it goes dark as the OS only uses the primary head23:55

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!