Search #Ubuntu channel logs

Note: Use Ctrl+F to search through these logs

Sunday, January 29, 2017

#ubuntu channel featuring precise, odigem, noc_, jayjo, rajivmars, enoch85, and 8 others.

noc_ 2017-01-29 06:45:49
enoch85, "thin drives doesn't shrink when you delete files" make sure the filesystem is mounted with the discard mount option (or use fstrim to do it in a one-time shot) and that the block devices through the stack support trim/discard, which dm-thin does IIRC
noc_ 2017-01-29 06:46:32
including TRIM support at the vmware level for the virtual disk image
noc_ 2017-01-29 06:47:34
or if on an ext4 fs, look into zerofree
enoch85 2017-01-29 06:47:37
noc_, thanks! how do I know if it's mounted with a discard mount option?
enoch85 2017-01-29 06:47:50
noc_, it's LVM
enoch85 2017-01-29 06:47:54
ext4
noc_ 2017-01-29 06:48:22
I have no idea about the LVM and the vmware support for discard. You have to make sure it's supported at all layers of the block device stack
noc_ 2017-01-29 06:48:38
The mount option should appear in /proc/mounts, if not then a mount -oremount,discard should do the job
enoch85 2017-01-29 06:49:14
noc_, so add discard in fstab?
noc_ 2017-01-29 06:49:23
yes
noc_ 2017-01-29 06:49:47
files deleted AFTER enabling discard are free'd. To free space deleted BEFORE the discard you have to use fstrim
precise 2017-01-29 06:50:22
Hey yall, so I checked in Gnome Disk Utility the other day, and it said my HDD was healthy, but had 8 bad sectors. / is mounted on my m.2 SSD, but the /home is on my HDD. I do have extensive backups so no need to worry about that. Now to the point: I didn't get any sort of notification that my disk was not in tip-top shape, is there anyway to set that up to see if my disk gets worse? I was thinking a Cron
precise 2017-01-29 06:50:28
to read SMART value on login, but I feel like I would be reinventing the wheel there. Any thoughts?
enoch85 2017-01-29 06:50:34
noc_, ok, so I ran fstrim -a /dev/sdb1 with no sucess
noc_ 2017-01-29 06:51:08
fstrim wants the mountpoint
enoch85 2017-01-29 06:51:14
where sdb1 is the drive I want to trim
jayjo 2017-01-29 06:51:23
I am struggling to copy this directory though - there is no space on the LIVE USB to save it to the desktop and upload to dropbox or something, and the connected drives are all read-only
enoch85 2017-01-29 06:51:28
ok, so how do I find that for a drive noc_
enoch85 2017-01-29 06:51:29
?
noc_ 2017-01-29 06:51:58
mount /dev/sdb1 /mnt then do the fstrim on /mnt
enoch85 2017-01-29 06:52:29
aah
enoch85 2017-01-29 06:52:51
and then unmount it?
akik 2017-01-29 06:52:55
jayjo: you can change permissions on the other disks so that you can write to them
noc_ 2017-01-29 06:53:04
yes
enoch85 2017-01-29 06:53:12
ok, thanks! will try
noc_ 2017-01-29 06:53:36
yw
akik 2017-01-29 06:54:00
jayjo: so if you see your other disk in /media/username/disk, you can then run "sudo mkdir /media/username/disk/backup; sudo chown $USER /media/username/disk/backup"
enoch85 2017-01-29 06:54:03
can I do this on a running live system without anything is affected?
enoch85 2017-01-29 06:54:08
noc_,
noc_ 2017-01-29 06:55:17
ymmv, I've done it on my laptop, never on a production server
enoch85 2017-01-29 06:55:38
noc_, I get this fstrim: /mnt: the discard operation is not supported
vijayanand 2017-01-29 06:56:06
Hi, I'm new to Ubuntu. I've been using 14.04 for 5 months without updating. Since using this computer (came with Ubuntu installed), every time I tried to update the software, something went wrong and the comp crashed. My software center stopped working recently so I am attempting to update my software again, but I am worried that my computer will crash again.
enoch85 2017-01-29 06:56:19
and I have HDDs noc_
enoch85 2017-01-29 06:56:25
not SSDs noc_
precise 2017-01-29 06:56:46
Anyone?
noc_ 2017-01-29 06:57:59
ok, then you have to fallback to zeroing the device and hoping LVM/VMware/etc support shrinking the disk images on zeroed space
noc_ 2017-01-29 06:58:57
the former can be done with zerofree for ext4 or dd'ing /dev/zero into a temporaey file until you run out of space on the ext4, that you then delete afterwards
vijayanand 2017-01-29 06:59:00
I've been updating for the past few minutes and it just said something failed
noc_ 2017-01-29 06:59:03
on the latter, I don't know
vijayanand 2017-01-29 06:59:05
and this: This likely means that your installation is broken.
vijayanand 2017-01-29 06:59:05
Try running the command
vijayanand 2017-01-29 06:59:05
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
vijayanand 2017-01-29 06:59:05
to make things work again for the time being.
enoch85 2017-01-29 06:59:26
noc_, thanks!
enoch85 2017-01-29 06:59:42
noc_, so zerofree /dev/sdb1 ?
enoch85 2017-01-29 07:00:20
aah it's mounted rw, can only be done on r mounted drives it seems
noc_ 2017-01-29 07:00:22
I don't remember the syntax, last time I used it was ages ago in combo with virtualbox
enoch85 2017-01-29 07:01:15
noc_, you think I can mount the drive as ro and then run zerofree on the ro mount and then unmount it?
noc_ 2017-01-29 07:01:41
try it and see
akik 2017-01-29 07:01:53
jayjo: the default for the hard disk mounts is read/write, it's just the permissions that might make things difficult
vijayanand 2017-01-29 07:05:10
While updating Ubuntu, this notice comes A new version of configuration file /etc/default/grub is available, but │
vijayanand 2017-01-29 07:05:10
│ the version installed currently has been locally modified. Should I keep the local version or install the package maintainers version?
jeffreylevesque 2017-01-29 07:05:33
I'm writing some security hardening stigs, right now tfor ubuntu 14.04
jeffreylevesque 2017-01-29 07:05:43
if anyone is willing to help out, that would be cool - https://github.com/jeff1evesque/cis-benchmark
akik 2017-01-29 07:06:03
jeffreylevesque: uk government agency had that kind of document
jeffreylevesque 2017-01-29 07:06:31
i'm writing puppet scripts
Vitriolic 2017-01-29 07:06:48
Hello, everyone.
Vitriolic 2017-01-29 07:07:44
I have a few minor issues in Hexchat, I'm sort of new to Ubuntu. If anyone could help me, maybe in private, that would be awesome. Thank you.
jeffreylevesque 2017-01-29 07:07:58
each puppet environment will have default scripts preloaded
noc_ 2017-01-29 07:08:23
enoch85, gotta go, good luck
jeffreylevesque 2017-01-29 07:08:34
however, they can be overriden by a corresponding hiera file, if they are named by the certname of the host
noc_ 2017-01-29 07:08:57
vijayanand, if you edited that file manually then you want to keep the local version
jeffreylevesque 2017-01-29 07:08:59
trusty64.yaml, will contain baseline scripts
noc_ 2017-01-29 07:09:13
otherwise pastebin them and let the chan see the difference
akik 2017-01-29 07:09:31
jeffreylevesque: well if you want to take a look: https://www.ncsc.gov.uk/guidance/eud-security-guidance-ubuntu-1604-lts
jeffreylevesque 2017-01-29 07:09:34
but, if you have a host with a certname by blah.blah.org, you can create blah.blah.org.yaml
jeffreylevesque 2017-01-29 07:09:43
and that will override the trusty64.yaml
jeffreylevesque 2017-01-29 07:10:10
akik: that doesn't look like puppet scripts
akik 2017-01-29 07:10:45
jeffreylevesque: no, it talks about ubuntu and security
jeffreylevesque 2017-01-29 07:11:40
oh ok
jeffreylevesque 2017-01-29 07:11:49
i'm currently using https://github.com/jeff1evesque/machine-learning/files/629747/CIS_Ubuntu_Linux_14.04_LTS_Benchmark_v2.0.0.pdf
jeffreylevesque 2017-01-29 07:11:53
as a benchmark
jeffreylevesque 2017-01-29 07:12:20
its like 283 pages of explanation
jeffreylevesque 2017-01-29 07:12:27
but, i just skip to the remediation portion really
jeffreylevesque 2017-01-29 07:13:13
anyways, i'm going to be writing puppet scripts to harden ubuntu 14.04
jeffreylevesque 2017-01-29 07:13:24
if anyone has free time, would be cool to get this done faster
odigem 2017-01-29 07:20:12
HI
odigem 2017-01-29 07:20:30
how to disable grouping windows?
rajivmars 2017-01-29 07:31:07
i have just install ubuntu 16.04.1. i can't the plymouthe screen during the boot? how do i recover my plymouth screen back?
rajivmars 2017-01-29 07:31:26
i have just install ubuntu 16.04.1. i can't see the plymouthe screen during the boot? how do i recover my plymouth screen back?
Apachez 2017-01-29 07:32:02
is it possible to load filesystem.squashfs from the ubuntu 16.10 livecd into a ramdisk through pxeboot (and by that avoid the use of nfs)?
Bashing-om 2017-01-29 07:34:57
Apachez: Maybe this ? https://help.ubuntu.com/community/Grub2/ISOBoot <-Ubuntu ISOs are designed to allow booting directly from the hard drive using GRUB 2 and eliminates the need for burning a CD/DVD.
deadmund 2017-01-29 07:37:39
Anybody have a link to official ubuntu documentation about how to install a custom shutdown / reboot script? I have the script, but I don't know how to insert it into /etc/rc.d anymore :(
Apachez 2017-01-29 07:38:14
Bashing-om: sort of, but I involve pxe booting
Apachez 2017-01-29 07:38:27
running ubuntu 16.10 livecd through pxeboot with nfs works
Apachez 2017-01-29 07:38:42
however I want to avoid the use of nfs and load the filesystem.squashfs into some ramdisk or such
Apachez 2017-01-29 07:38:53
but I dunno about the syntax of the pxelinux.cfg/default file to do so
Apachez 2017-01-29 07:38:57
and if this even is possible
Apachez 2017-01-29 07:39:13
some sources claims there might be a "fetch=" kernel parameter but first attempt failed
Bashing-om 2017-01-29 07:39:44
Apachez: Out of my experience range also . But it is 'buntu ; all things are possible .
Apachez 2017-01-29 07:40:02
hence why I ask in #ubuntu :)
deadmund 2017-01-29 07:42:55
Anybody have a link to official ubuntu documentation about how to install a custom shutdown / reboot script? I have the script, but I don't know how to insert it into /etc/rc.d anymore :(
fresheyeball 2017-01-29 07:44:37
hey folks
fresheyeball 2017-01-29 07:44:43
so I managed to badly mess up my laptop