Search #Ubuntu channel logs

Note: Use Ctrl+F to search through these logs

Monday, January 30, 2017

#ubuntu channel featuring C0r3, nicomachus, BluesKaj, anddam, velis, Zen, and 10 others.

noc_ 2017-01-30 03:45:26
heftig, http://old-releases.ubuntu.com/ubuntu/pool/
heftig 2017-01-30 03:47:29
noc_: apparently those only contain old ubuntu releases, not old packages for current releases
heftig 2017-01-30 03:47:35
I need libglib2.0-0-dbg 2.48.1-1~ubuntu16.04.1
heftig 2017-01-30 03:47:41
amd64.
Innokenty 2017-01-30 03:49:57
with the debian packages fit on ubuntu
heftig 2017-01-30 03:50:20
they might. not in general, though
velis 2017-01-30 03:53:31
any /boot experts here? Having a hard time installing open-iscsi to initrd.img: the postinst script (from the .deb package) uses some utilities that are only available in full ubuntu install, but not in the /boot initrd.img. Are there any guides on how one installs software in there? (talking about placement of files / configuration, not unpacking / repacking the image file)
ali_ 2017-01-30 03:57:09
hi
tatertots 2017-01-30 03:57:29
velis: open-iscsi should be simple to install, it's in the ubuntu repositories even, i'm sure there exists plenty of documentation on "usage"
velis 2017-01-30 03:58:06
tatertots: yes, it's easy. but not to /boot. I don't know how to install it into /boot
tatertots 2017-01-30 03:59:26
velis: without having elaborated on your goal or intentions after installation of open-iscsi, are you %100 certain you even need to?
velis 2017-01-30 03:59:35
no, I'm not
anddam 2017-01-30 04:00:09
how's the Launcher process called? I'd like to force-restart it
velis 2017-01-30 04:00:09
but installing ubuntu to an iSCSI volume with /boot placed on a small local ssd, I'm left with an unbootable computer because the iSCSI volume doesn't mount
tatertots 2017-01-30 04:00:18
velis: so it's probably best to share what you are trying to accomplish,
tatertots 2017-01-30 04:01:01
velis: what size is your lun?
Zen 2017-01-30 04:01:03
Sounds like he needs the iSCSI drivers available at boot time
velis 2017-01-30 04:01:22
tatertots: does my above post explain it sufficiently? I don't have PXE available, so I'm using a very small local storage for /boot and the main storage is supposed to be iSCSI
velis 2017-01-30 04:01:37
also, what Zen said
tatertots 2017-01-30 04:01:48
velis: what size is your lun?
velis 2017-01-30 04:02:01
4 TB
mcphail 2017-01-30 04:02:34
velis: don't know if it will help in your case, but the usual way to install for exotic boot setups is to do the install from the CD, then chroot into your installed system from the live CD and install whatever package you need and then try to boot your system. I need to do this to install bcache-tools, for example
velis 2017-01-30 04:04:02
I considered this, but would this not install open-iscsi to the iSCSI volume and not to the /boot initrd.img?
tatertots 2017-01-30 04:04:21
velis: have you been able to present the lun to ubuntu and view/manage it's content? yes or no or "i have not tried"?
velis 2017-01-30 04:04:28
yes
velis 2017-01-30 04:05:01
everything works, except it mounting during boot. Boot doesn't mount the volume and therefore drops to initramfs prompt
nicomachus 2017-01-30 04:05:42
I'm doing a backup of my /home folder to get ready to do a fresh reinstall. Anything I should backup outside of /home/?
tatertots 2017-01-30 04:06:41
velis: is it waiting on a network connection to be established possibly?
velis 2017-01-30 04:07:49
I don't think so. There's nothing in the initramfs that would suggest open-iscsi being setup. The error messages being printed out before it drops to prompt are exactly that: volume not found
BluesKaj 2017-01-30 04:08:00
nicomachus, is /home on a separate partition?
nicomachus 2017-01-30 04:08:44
BluesKaj: no.
nicomachus 2017-01-30 04:09:14
The only partitions here are ubuntu and Windows, and I'm wiping out Windows finally. So just gonna do it with a fresh install
BluesKaj 2017-01-30 04:11:44
nicomachus, recommend you use separate partitions for / and /home, then whmn you do an up grade or new install, you install to / and merely set the mountpoint for /home using manual partitoning. This method save all your config files for desktop and default aps etc
nicomachus 2017-01-30 04:12:13
BluesKaj: I want to redo all of that anyway.
BluesKaj 2017-01-30 04:12:14
scuse the typos
nicomachus 2017-01-30 04:12:24
but I do see the advantage and your point.
BluesKaj 2017-01-30 04:12:44
teah then this would be a good time to set up the partitions
BluesKaj 2017-01-30 04:12:52
yeah
BluesKaj 2017-01-30 04:13:23
saves a lot of work in the long run
ducasse 2017-01-30 04:13:37
nicomachus: you might want to backup /etc, in case you need to see how you changed some config
nicomachus 2017-01-30 04:15:39
ducasse: good call.
ducasse 2017-01-30 04:16:23
nicomachus: you haven't got any vm images or containers under /var?
nicomachus 2017-01-30 04:16:42
not on this puter
alkisg 2017-01-30 04:17:51
velis: I don't know about open-iscsi, but I do know about other boot methods like nbd, nfs etc. So, if you run `dpkg -L open-iscsi | grep /usr/share/initramfs-tools`, you'll see if it puts anything inside the initramfs or not
alkisg 2017-01-30 04:18:24
velis: or, find /usr/share/initramfs-tools -iname '*scsi*'
BluesKaj 2017-01-30 04:18:32
hey ducasse , good suggestion about /etc , that should save some work as well :-0
BluesKaj 2017-01-30 04:18:44
err :-)
velis 2017-01-30 04:18:49
trying now, thanks
alkisg 2017-01-30 04:20:10
velis: I see in its file list that it does put stuff into the initramfs: http://packages.ubuntu.com/xenial/i386/open-iscsi/filelist
ducasse 2017-01-30 04:20:40
BluesKaj: easier than needing to look up how to configure something all over again :)
velis 2017-01-30 04:21:48
alkisg: dpkg -L shows one initramfs-tools hook & one script
BluesKaj 2017-01-30 04:22:08
ducasse, yeah like /etc/openvpn crts and .ovpn files
alkisg 2017-01-30 04:22:09
velis: right, the hooks copies stuff into the initrd.img, and then the script starts it on boot
alkisg 2017-01-30 04:22:33
velis: when you get to the busybox prompt, do you see /sbin/iscsistart ?
velis 2017-01-30 04:22:33
you mean at install time?
alkisg 2017-01-30 04:22:48
velis: at update-initramfs time, when you install or update kernels
alkisg 2017-01-30 04:23:00
velis: and sure, at iscsi package installation time
velis 2017-01-30 04:23:48
no, I mean: I had all this set up when I started ubuntu installation. But the resulting /boot image does not have any of that
alkisg 2017-01-30 04:24:03
velis: they are compressed inside initrd.img
alkisg 2017-01-30 04:24:08
velis: you cannot see them with plain ls
velis 2017-01-30 04:24:11
I know
velis 2017-01-30 04:24:18
I decompressed it
velis 2017-01-30 04:24:21
and it has nothing
alkisg 2017-01-30 04:24:28
velis: no /sbin/iscsistart there?
velis 2017-01-30 04:24:30
related to open-iscsi, i mean
velis 2017-01-30 04:24:35
except the kernel modules
velis 2017-01-30 04:24:39
no
velis 2017-01-30 04:24:41
none
alkisg 2017-01-30 04:25:02
velis: try to run `update-initramfs -u`, and then run cpio to unzip, and check again
velis 2017-01-30 04:25:40
while I have the chroot into the install?
alkisg 2017-01-30 04:25:57
velis: what chroot?
velis 2017-01-30 04:26:20
Right now I'm typing this from a livecd session
velis 2017-01-30 04:26:42
from within this session I can mount the iscsi volume as well as the /dev/sda1 (/boot)
alkisg 2017-01-30 04:26:56
velis: eh ok then, chroot into it and run update-initramfs there, although you might need to specify the kernel then if it's not the same
alkisg 2017-01-30 04:27:03
Check for error messages while doing so
velis 2017-01-30 04:27:11
presumably I'd be running update-initramfs against the installed image, not against the livecd session?
velis 2017-01-30 04:27:23
no, kernel is the same
velis 2017-01-30 04:27:40
I can even restart the procedure from scratch, there's nothing here yet
alkisg 2017-01-30 04:27:51
no need to
alkisg 2017-01-30 04:27:55
Try chrooting, yes
alkisg 2017-01-30 04:28:05
If you see error messages, mention them
velis 2017-01-30 04:28:27
ok, but it will take some time
alkisg 2017-01-30 04:29:03
update-initramfs should take a few seconds
velis 2017-01-30 04:29:32
yes, but I don't currently have the iSCSI volume attached. I need to account for the new initiator ID in the target and mount it
alkisg 2017-01-30 04:30:33
velis: btw, why iscsi instead of e.g. nbd or nfs?
C0r3 2017-01-30 04:30:57
Hey somebody please guide me recover my data. I lost my data in a partition.
ikevin 2017-01-30 04:31:31
C0r3, use testdisk :)
C0r3 2017-01-30 04:32:08
ikevin: How to do that?
ikevin 2017-01-30 04:32:39
C0r3, umount your disk, do a testdisk /dev/your_disk
ikevin 2017-01-30 04:33:28
C0r3, you will find a step by step howto here: http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step
C0r3 2017-01-30 04:33:45
ikevin: I just installed it using sudo apt install testdisk
velis 2017-01-30 04:40:37
alkis: because I don't know nbd or nfs. I figured iSCSI would be the best way, but since you mention these two, I might also give them a go. The primary idea here is to use my small local storage also as cache for the iSCSI volume. The primary objective being to have all storage cetralised
velis 2017-01-30 04:41:54
anyway, I attached the iSCSI volume, bot now LVM won't map the logical volumes there. It recognises them fine, but won't create the appropriate /dev/ mappings
Lachezar 2017-01-30 04:43:37
Hey all. Got a bigger monitor to attach to my laptop, but: when I close the lid, the screen stays on (good), but if I lock my laptop I can only unlock it with the lid up. How come?