/srv/irclogs.ubuntu.com/2006/01/22/#ubuntu-boot.txt

=== mgalvin [n=mgalvin@ubuntu/member/mgalvin] has joined #ubuntu-boot
=== mgalvin [n=mgalvin@ubuntu/member/mgalvin] has joined #ubuntu-boot
=== Keybuk [n=scott@syndicate.netsplit.com] has joined #ubuntu-boot
=== Abecedarian [n=Administ@c-24-18-103-81.hsd1.wa.comcast.net] has joined #ubuntu-boot
AbecedarianHello.  By any chance could somebody here answer a few questions on booting and the linux kernel, particularly as it relates to having a linux kernel loads modules and executse the linuxrc?09:12
Mithrandirpossibly, if you ask your question09:19
AbecedarianThanks!09:20
AbecedarianI'm in the process of building a boot disk that will allow be to boot a USB external Ubuntu on computers unable to boot via USB.09:21
Mithrandiras in, boot off an USB enclosure or something?09:21
AbecedarianBasically, from articles taht I've read (http://www-128.ibm.com/developerworks/linux/library/l-fireboot.html and http://www.neowin.net/forum/lofiversion/index.php/t269145.html) it *can* be done.09:21
AbecedarianYeah.09:21
Mithrandirwhere are you going to get the initramfs and kernel off?  (And bootloader)09:22
AbecedarianThe method seems to be to have a copy of the kernel on the boot cd which will then run a linuxrc script which scans for the USB device after loading the proper drivers/modules, after which (if it detects) it will relocate root to the proper device.09:22
Mithrandiryou might want to look at casper09:23
Keybukaye, we've solved much of these problems in Ubuntu already09:23
AbecedarianTwo ways.  I have a modified script from the neowin article (via a friend) that generates a boot image.  Also, it is possible to just download their complete image and edit the contents.09:23
MithrandirAbecedarian: also, have you seen https://wiki.ubuntu.com/BootingFromUS ?09:24
Mithrandiruhm09:24
Mithrandirhttps://wiki.ubuntu.com/BootingFromUSB09:24
=== robotgeek [n=robotgee@62.240.70.121] has joined #ubuntu-boot
AbecedarianNo, I hadn't had a chance to look over https://wiki.ubuntu.com/BootingFromUS ...  But from a glance I'd have to say that I'm uncertain it would apply to computers that lack a BIOS capable of detecting or booting to USB devices.09:27
AbecedarianWhich is a major issue for "Portable Ubuntu" on an external.09:28
robotgeekit would be nice to grab a bootable cd and boot from it.09:28
AbecedarianThat and the article seems a bit...  short.  Or vague.  No offense to whomever wrote it, but it still looks like they're working on it.09:29
AbecedarianWorking on a similar project, I mean.09:29
robotgeekAbecedarian: it seems more like comments on a spec, the BootingFromUSB page09:29
KeybukAbecedarian: *shrug* that kind of thing is easy, especially in dapper09:30
Keybukyou stick the kernel and initramfs on something the bios can boot09:30
Keybukand then the rest of the system on a USB devic09:30
Mithrandirit's a spec, it's not an article.09:30
AbecedarianExactly!09:30
AbecedarianAnd, as I understand from the articles, it must execute something called "linuxrc" in "initrd".  At least, that is one method.09:31
AbecedarianI've found bootable images and toyed with modifying them a bit, but it always runs into a kernel panic somewhere down the road.09:31
AbecedarianI think when it tries to relocate root since it does manage to boot and does manage to load thekernel.09:31
AbecedarianAnd since I have template images, a copy of my kernel, and a possibly superior template linuxrc script, I was hoping you might be able to enlighten me on how the initrd and linuxrc scrip on the boot disk "work".09:33
robotgeekKeybuk: i have a dapper flight cd 3. i'll play around with it09:33
Keybukthat stuff's out of date now09:33
Keybukwe don't use either initrd or linuxrc09:33
Keybukrobotgeek: use root=/dev/disk/by-label/VOLLABEL and it _should_ just work09:33
robotgeekKeybuk: do i put grub on the external hdd?09:35
Mithrandirit might even work to boot off a live cd with approximately that command09:35
Keybukrobotgeek: if grub is on the external HDD, your bios would need to be able to boot from that HDD09:35
Keybukif the bios can, the installer will just let you do it09:35
Keybukif the bios can't, the installer won't09:36
KamionAbecedarian: the initramfs on the boot disk is a gzipped cpio archive; the kernel unpacks it and executes /init in early userspace; that program is then responsible for finding and mounting the real root device (and other stuff) and chaining to /sbin/init there09:36
robotgeekKeybuk: my macs do allow that, my pc doesn't09:36
Kamionrobotgeek: Fabio only fixed grub-installer to allow that recently (post-Breezy)09:36
robotgeekKamion: i tht i put grub on the external boot disk with a shipit09:37
Kamionit certainly didn't do it automatically ...09:38
Kamionwell, not unless you have a "special" BIOS, which isn't out of the question :)09:38
Keybuk"spethial"09:39
robotgeekKamion: i booted from the install cd , it detected my external usb hdd, and asked me if i was sure if i wanted to install it there09:40
Kamionlucky, then :)09:40
robotgeekany good resources on where to read up on the process we follow for booting?09:40
KeybukLWN have done some good articles on it09:41
robotgeekdon't want to ask you stupid questions and waste your time :)09:41
Keybukalso our Wiki contains many of the specs we've followed09:41
Keybukin particular, read EarlyUserspace, UdevRoadmap, HardwareDetection, ProbeForRootFilesystem, BootFromUSB, etc.09:41
robotgeekokay, i'll check CatergorySpec then09:41
Keybukalso the source code can often help :)09:42
Keybukfortunately much of it is written in plain old shell09:42
robotgeeki'm okay with bash scripting, so i guess i won't have much of an issue09:43
AbecedarianI'm a bit of a n00b...  But I'm a little confused.  If the goal is to boot *to* usb rather than *from* it, what is the relationship between the two reverse methods?09:43
Keybukyou never boot to something09:44
Keybukso the phrase doesn't make sense :)09:44
Keybukyou boot from something09:45
Keybukhow much of the boot process you can do from that item is up to your computer's bios, usually09:45
Abecedarian*lol*  Okay, well, run it from usb but boot it from cd.09:45
Keybukwith BootFromUSB, our goal is that you can insert the key and supporting BIOS will boot directly from it09:45
robotgeekwe were more interested in making a bootable cd which along with our external hdd, we could take our ubuntu where ever we go09:45
Keybukwith non-supporting BIOS you need a boot-strapping tool, like a LiveCD, floppy "boot" disk, or internal HDD -- which contains the kernel and initramfs09:46
robotgeekKeybuk: do they have to match the version installed?09:46
Keybukrobotgeek: they should, yes09:46
AbecedarianOur goal is a bit of a helper for yours...  To make it work even on computers without the BIOS supporting USB booting.09:46
KeybukAbecedarian: we intend to support this out of the box09:47
Keybukit should work now09:47
robotgeekwell, that's a relief :)09:47
Keybukinstall Flight 3 onto your USB key, and boot it by inserting the Flight 3 Live-CD and changing the root= line to be root=/dev/disk/by-label/VOLNAME where VOLNAME is the name of your USB key09:47
robotgeekso, once i get upgrades to flight 3, what happens?09:48
robotgeekthe kernel on dapper flight 3 wont match the one on the cd?09:49
Keybukrigh09:49
Keybukyour kernel needs to match the userland you're booting09:49
Keybukbecause the drivers are on the USB key :)09:49
robotgeektrue09:50
AbecedarianBut a dapper flight 3 live cd would work fine, we'd just have to disable updates until a newer livecd comes out?09:50
robotgeekmaybe we can make a small boot cd everytime we upgrade the kernel09:50
KeybukLiveCDs always come out at the same time as Installer CDs09:51
Keybukyes, you could also place the kernel, initramfs and bootloader on a custom CD of your own09:51
Keybukor, if your computers support PXE, these could be on the network09:51
robotgeeknice...gotta try the flight cd's then09:51
AbecedarianSo we could just take a live cd, "hollow out" most of it, and then tell it to automatically boot to the external saving us having to type it in each time.  And update the kernel to non-flight versions if we do update the dapper kernel on the external?09:52
robotgeeklooks like someone was pissed when they wrote this. https://wiki.ubuntu.com/UdevRoadmap09:53
Mithrandirflight 3 live doesn't support booting off ieee1394, current dailies should09:53
Mithrandir(once they're buildable)09:53
Keybukrobotgeek: I don't recall being drunk ... why?09:53
robotgeekhotplug: Ask the ftpmasters to eject it from the archive like the bitch it is.09:54
KeybukMithrandir: really, what did we miss to not support that?09:54
Keybukrobotgeek: heh, that's just my writing style09:54
MithrandirKeybuk: sbp2 and ohci139409:54
KeybukMithrandir: ah, not in the initramfs?09:54
Mithrandircorrcet09:57
Mithrandircorrect, even09:57
Keybukudev loads them if they are, though?09:58
Mithrandiryes,09:59
Mithrandirso if we could actually get -desktop installable, I could get a test image out so I could ask people to test it09:59
Keybukwoo, I rock :)10:01
Keybukwhy does desktop need to be installable to make Live CDs now?  I never did know why that is10:01
KamionKeybuk: live fs build script fails otherwise10:01
Kamionsince it's doing apt-get install ubuntu-desktop or similar10:02
robotgeekokay guys, thanks for your time. i'll put on dapper cd , and bug you guys later.10:02
AbecedarianOne other question...  I've been reading that there are efforts to make Ubuntu installed on externals more "adaptable" - ie, like a live cd.  Do you have any recommended documentation on (a) what ways a livecd's adaptability differs from a regular install and (b) developments on fixing it?10:04
MithrandirI'm not sure what you mean.10:06
AbecedarianAs in a livecd goes out of its way to scan for devices (screen, etc) and reconfigure the gui and other things to work on that computer...10:06
AbecedarianWhile a regular install on an external may sometimes get comfortable on whatever computer it normally is used with and as a result might run into issues when booted on multiple computers.10:07
AbecedarianA regular install might flat-out not have any problems constantly being moved around, but without having a working external install yet I should definitely read up as much as possible in case it is an issue.10:08
Mithrandiryou can do most of that by using a livecd and persistent storage, I'd guess.10:09
MithrandirI've also pondered changing the live cd so it'll allow easy installs and -boots on fat32 and ntfs drives.10:10
AbecedarianBut using persistent storage is a bit different than using the livecd to boot with root being located on the external, correct?10:11
Mithrandiryes.10:11
AbecedarianSo is the difference significant enough to limit portability of a install, and which documentation should I read up on for figuring out how to resolve it?10:16
Mithrandirthe problem with doing automatic reconfiguration at each boot is mostly related to stability of configuration.10:18
AbecedarianOkay...  is there any documentation you would recommend reading to learn more about increasing stability and reconfiguring?10:20
Mithrandirnone which springs to my mind immediately, at least10:28
Mithrandirit's basically that if you have a working configuration, you don't want to change it, since you might end up ruining hand-tweaked configs or even generated configs.10:29

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