[00:48] <nhaines> Here, not bad, huh?  http://ubuntuone.com/6exwwMYV1DawESL9OqMPQO
[00:49] <pleia2> :)
[00:56] <nhaines> I added the QR code from last time.  An interested bystander who will spread his stuff out to save seats emailed me and told me to remember to bring another printout to put on the community board.
[00:57] <nhaines> I want to make it even smaller, but a half-sheet isn't bad.
[02:36] <icarus81> Hey everybody has anybody had problems mount an ext4 external drive in 11.10?
[02:37] <icarus81> I know the partition is good but ubuntu will not see it as vaild.
[02:44] <icarus81> anybody?
[02:47] <akk> Don't think I have any ext4 external disks, sorry. What does fdisk or gparted say it is?
[02:48] <icarus81> /dev/sdb1   *        2048      368639     1466368   83  Linux
[02:48] <icarus81> /dev/sdb2          368640   976740351  3905486848   83  Linux
[02:48] <akk> oh, well, fdisk is useless, I guess.
[02:49] <icarus81> gparted sees the 83 linux
[02:49] <icarus81> but it sees it as unreconized
[02:50] <icarus81> I just had this working in a windows computer an hour ago
[02:50] <akk> maybe try fsck and see what it thinks it is?
[02:50] <icarus81> wouldn't hurt
[02:52] <icarus81> Superblock invalid, trying backup blocks...
[02:52] <icarus81> fsck.ext2: Bad magic number in super-block while trying to open /dev/sdb2
[02:52] <icarus81> The superblock could not be read or does not describe a correct ext2
[02:52] <icarus81> filesystem.  If the device is valid and it really contains an ext2
[02:52] <icarus81> filesystem (and not swap or ufs or something else), then the superblock
[02:52] <icarus81> is corrupt, and you might try running e2fsck with an alternate superblock:
[02:52] <icarus81>     e2fsck -b 8193 <device>
[02:53] <icarus81> That is why it is not mounting... bad superblock...
[02:53] <icarus81> How do i fix that without re-formating
[02:53] <akk> But that's fsck.ext2
[02:53] <akk> now try fsck.ext4 and see what it says
[02:53] <akk> don't fix the superblock with fsck.ext2 now if it was supposed to be ext4
[02:54] <akk> (not sure how compatible they are)
[02:54] <icarus81> good point
[02:54] <icarus81> same shit
[02:55] <akk> Still superblock bad?
[02:55] <icarus81> yeah same exact thing
[02:55] <akk> Oh, have you checked dmesg to make sure you're not getting any I/O errors? (Do that before you try to make repairs)
[02:56] <icarus81> [45083.763596] EXT3-fs (sdb2): error: can't find ext3 filesystem on dev sdb2.
[02:56] <icarus81> [45083.764715] EXT2-fs (sdb2): error: can't find an ext2 filesystem on dev sdb2.
[02:56] <icarus81> [45083.780721] EXT4-fs (sdb2): VFS: Can't find ext4 filesystem
[02:56] <icarus81> [45098.775089] EXT4-fs (sdb2): VFS: Can't find ext4 filesystem
[02:56] <icarus81> [45110.260339] EXT3-fs (sdb2): error: can't find ext3 filesystem on dev sdb2
[02:56] <akk> okay, no I/O errors, anyway, good.
[02:57] <icarus81> I don't see any I/O errors
[02:57] <icarus81> that just tail |grep sdb2
[02:57] <akk> At this point, I would try to let fsck repair it -- but first, if I had another machine handy, I'd try it there
[02:57] <akk> and if it mounts on another machine, I'd umount it then try fsck there.
[02:58] <icarus81> well its the drive for my HTPC and it runs great in there
[02:59] <akk> d just found blkid -- apparently a cmdline way to test what filesystem the system thinks is on a partition
[02:59] <icarus81> do I need to be root?
[02:59] <akk> blkid -p -u filesystem /dev/whatever
[02:59] <akk> yes, have to be root
[03:00] <akk> should include something like TYPE="ext4" if it can tell
[03:00] <akk> (but might not, in this case)
[03:01] <icarus81> I typed blkid -p u ext4 /dev/sdb2 and it say unknown argument ext4
[03:02] <icarus81> I just assumed that where the filesystem went
[03:03] <icarus81> oh I am retarded
[03:03] <akk> No, -u filesystem, literally
[03:04] <akk> (that wasn't obvious to me either at first)
[03:04] <icarus81> Yeah just releasied that
[03:05] <icarus81> nothin
[03:05] <akk> It doesn't print anything?
[03:06] <akk> okay, no help there
[03:06] <icarus81> no sudo blkid -p -u filesystem,other /dev/sdb2
[03:06] <icarus81> $ sudo blkid -p -u filesystem /dev/sdb1
[03:07] <icarus81> I just want to resize sdb2
[03:07] <akk> then I guess fsck repair is the only option, but I do think it's worth trying it in another machine if you have one handy.
[03:07] <icarus81> wait I do have another machine
[03:08] <icarus81> its like 10.10 or somthing like that
[03:08] <akk> Sounds perfect (I think 10.10 had ext4, anyway)
[03:09] <icarus81> I am going to go hook it up brb
[03:19] <icarus81> same shit
[03:22] <akk> okay, then it probably really is a problem with the superblock
[03:23] <akk> and repairing it is probably the way to go.
[03:23] <akk> Does it have important stuff on it?
[03:23] <akk> If it has really important data, it might be worth backing up the whole thing with dd before attempting repair, just to keep the bases covered.
[03:23] <icarus81> its already backuped
[03:24] <icarus81> I am upgrading
[03:24] <icarus81> this is just a bigger drive
[03:24] <akk> Good! Then just try saying y to fsck.ext4 when it asks about the superblock.
[03:24] <akk> (and any other questions it asks, too)
[03:29] <icarus81> I tried this sudo fsck.ext4 -y -p -c -v /dev/sdb2
[03:29] <icarus81> and it just complained about the superblock
[03:39] <akk> Did it repair it?
[03:39] <akk> I usually just run interactively without flags, and say y, that way I know what it's doing.
[03:39] <akk> If it actually repaired because of the -y, then running fsck again should give no errors.
[03:39] <icarus81> mke2fs 1.41.14 (22-Dec-2010)
[03:39] <icarus81> Filesystem label=
[03:39] <icarus81> OS type: Linux
[03:39] <icarus81> Block size=4096 (log=2)
[03:39] <icarus81> Fragment size=4096 (log=2)
[03:39] <icarus81> Stride=1 blocks, Stripe width=1 blocks
[03:39] <icarus81> 60956672 inodes, 243822006 blocks
[03:39] <icarus81> 12191100 blocks (5.00%) reserved for the super user
[03:40] <icarus81> First data block=0
[03:40] <icarus81> Maximum filesystem blocks=0
[03:40] <icarus81> 7441 block groups
[03:40] <icarus81> 32768 blocks per group, 32768 fragments per group
[03:40] <icarus81> 8192 inodes per group
[03:40] <icarus81> Superblock backups stored on blocks:
[03:40] <icarus81> 	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
[03:40] <icarus81> 	4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
[03:40] <icarus81> 	102400000, 214990848
[03:40] <icarus81> I am looking at this http://linuxexpresso.wordpress.com/2010/03/31/repair-a-broken-ext4-superblock-in-ubuntu/
[03:40] <akk> Um, you're giving up and making a new filesystem instead of what was there?
[03:41] <icarus81> I was just trying to repair the superblock
[03:43] <akk> oh, I've never had to tell fsck where to look for superblocks
[03:43] <akk> it's always been able to figure out where the backups are
[03:44] <icarus81> I have all the data it would sadly might be easier to just do it in windows 7
[03:45] <akk> I doubt it would be easier to repair ext4 in windows.
[03:45] <akk> It doesn't work to just type fsck.ext4 /dev/whatever and say y when it asks?
[03:45] <icarus81> this same drive was in a windows system not more than 2 hours ago
[03:45] <icarus81> with a ext4 driver on the system
[03:46] <akk> . o O ( I wonder if that's how it got corrupted? )
[03:47] <icarus81> it's possable
[03:47] <icarus81> http://www.ext2fsd.com/
[03:47] <icarus81> this is the driver I used
[03:49] <icarus81> well I am going to reboot and try windows. If it dosen't work I guess I will just copy it again. Thanks for your help
[04:06] <akk> If anybody's reading, interested in astronomy and has binoculars, train them on Venus right now (that's the really bright thing low in the west)
[04:06] <akk> and if you hold the binocs steady enough, you can see Uranus as a faint greenish dot to the left and a little down.
[04:06] <akk> (Mentioning it here because people here are in the right timezone, they haven't set yet.)
[04:47] <pleia2> neat (too bad I have no make-things-seem-closer devices!)
[04:48] <akk> darn
[04:50] <DonkeyHotei> my neck is in no condition to look outside; i got rear-ended AGAIN tonight
[04:50] <pleia2> yikes :(
[04:51] <DonkeyHotei> i don't want to pursue an injury claim this time; more trouble than it's worth. i'll just try to self-treat with the exercises the PT prescribed last time
[04:52] <DonkeyHotei> EureCA: seen em
[04:52] <EureCA> Factoid seen em not found
[04:53] <DonkeyHotei> oh right, not a supy
[19:28] <philipballew_> Can someone tell me where I would load grub onto if I am reinstalling grub?
[19:28] <akk> With grub2, generally it writes a little bit onto the MBR of the disk, and a whole bunch of stuff onto /boot/grub
[19:29] <akk> that's for grub-install ... if you're installing the grub package, that puts things in normal places like /usr and /etc and so forth.
[19:30] <philipballew_> yeah, bur i still have to pick a sda1,2 and so on? correct? like i have to pick the best one when i reinstall it to. I think it oringally had grub 95
[19:31] <akk> When you're partitioning you pick where /boot goes (or if it's part of /)
[19:32] <akk> and grub has to know about that (because it's mounted when you're running grub-install)
[19:32] <philipballew_> Well im actually trying to reinstall grub as grub boots into a prompt when I boot
[19:33] <philipballew_> because sda1 would be my live cd right? then is some weird windows partition, then I have my swap? on sda5
[19:34] <akk> Oh, you're trying to install grub from a liveCD, not from the running booted machine?
[19:34] <akk> Yeah, that's different.
[19:34] <philipballew_> okay, yeah, I cant boot into the hd :)
[19:35] <akk> And yes, you'll have to tell it which partition /boot is, and probably where you have / mounted that has all the grub info on it.
[19:35] <philipballew_> so I need to mount the internal harddrive, thats right
[19:36] <akk> y'know, back in the dawn of linux, installers always used to have a "boot from hard disk" option, for when the bootloader got messed up
[19:36] <akk> and it's a real loss that Ubuntu doesn't do that (I think fedora still does)
[19:36] <akk> Yes, you'll want the ubuntu partition on the internal hard drive mounted
[19:36] <akk> and probably also /boot if that's different
[19:36] <philipballew_> alright. ill do that
[19:37] <philipballew_> but before I mounted it, it would still show up in fdisk -l right akk ?
[19:37] <akk> right
[19:38] <philipballew_> yeah, but then what one would I mount. It seems that the drive has a weird table? http://pastebin.com/bHDQuRnT
[19:41] <akk> Looks like sda1 is the likely candidate, but it could be on sda2. Try mounting them both and see what's on them.
[19:43] <philipballew_> okay. just to mount with the filesystem type and see what happens.
[19:43] <akk> mount should be able to figure out the filesystem type, usually
[19:44] <philipballew_> mount /dev/sda1 says wrong fs type or bad supererblock. Might be a bad partition?
[19:44] <akk> Might be
[19:45] <philipballew_> that would explain why grub is having errors booting
[19:46] <akk> yes, definitely could
[19:46] <akk> maybe try fsck and see if it can figure anything out?
[19:47] <philipballew_> If i run that from the live cd it still checks the unmounted hd?
[19:47] <nhaines> Use testdisk to see if the partition table is corrupt.
[19:47] <nhaines> philipballew_: no, 'fsck' by itself doesn't do anything.  You have to tell it what filesystem to scan.
[19:49] <philipballew_> yeah, but do they need to be mounted nhaines ?
[19:50] <nhaines> philipballew_: they need to not be mounted.
[19:50] <akk> No, for fsck you don't want them mounted.
[19:50] <philipballew_> thats right
[19:52] <philipballew_> nice! I got a superblocck error
[19:52] <nhaines> Those aren't nice . :)
[19:54] <akk> Wow, this is just like last night, when someone else had a corrupted filesystem with a bad superblock
[19:54] <akk> but they'd been using it on windows with some ext4 driver add-on, which I suspect might have been the problem
[19:54] <philipballew_> should I clear the invalid journal?
[19:57] <akk> With fsck I usually say y to everything, unless the filesystem has really important data I need to recover
[19:57] <akk> then I consider making a dd backup just in case fsck messes something up
[19:57] <akk> (that's never actually happened to me, fsck has always done the right thing, but I'm paranoid sometimes)
[19:58] <philipballew_> alright, I made a image with like clonezilla last week so I am good there
[19:59] <akk> Good. Then you're probably safe saying y to everything.
[20:04] <philipballew_> this thing is pumping out errors. Must not be a happy partition
[20:04]  * philipballew_ considers just holding down y
[20:04] <akk> Try Y (capital) -- it might take that as "Y to everything", can't remember
[20:06] <philipballew_> no, ill pull up the man page again maybe
[20:06] <philipballew_> I recall capitol Y working a year or so ago
[20:10] <philipballew_> you just have to say fsck -y /dev/sdawhatever apparently
[20:11] <philipballew_> it fixed them. not to try it on sda2
[20:11] <nhaines> There are no file systems on sda2
[20:12] <philipballew_> thats right. sda1 finished. Maybe ill try to mount it now
[20:12] <philipballew_> it mounted
[20:13]  * philipballew_ figures out where it mounted
[20:25] <philipballew_> it mounts fine, but still boots into grub promt. ill look look at the directory and see if I need to reinstalol grub
[21:26] <philipballew_> Can I figure out what distro a system is from looking at the file system easily
[21:26] <broder> uh, /etc/lsb-release is a good place to start
[21:26] <broder> i believe that's fairly cross-distro
[21:27] <broder> debian and its derivates have /etc/debian_version
[21:27] <philipballew_> alright. need to make sure what i am running brfore i try to chroot into it
[21:27] <broder> i think redhat/fedora/centos and its derivatives generally have /etc/redhat_version or something like that
[21:27] <broder> not all distributions change those files, though - e.g. i think mint doesn't
[21:29]  * philipballew_ wonders if mint changes anything :)
[21:30] <philipballew_> yeah, im trying to find errors in this hd. I think all the files in etc appear to be gone. I might try to reinstall all together
[21:31] <philipballew_> or errors in the syetem
[21:38] <philipballew_> yay! the system is broken!!!!
[21:40] <akk> Unfortunately /etc/lsb-release isn't very cross-distro, but it does work on ubuntu.
[21:41] <broder> is it just the lsb_release command that's supposed to be cross-distro?
[21:42] <akk> I think they're both *supposed* to be, except nobody but ubuntu actually agrees with that.
[21:42] <akk> (haven't checked fedora, but debian and arch don't have it)
[21:43] <broder> ...really? i would have sworn lsb-release at least was a debian invention
[21:44] <broder> or at least that ubuntu inherited its implementation
[21:46] <broder> oh, nope. debian has an lsb_release, but does it completely differently
[21:46] <akk> Just checked debian squeeze: it has an empty directory called /etc/lsb-base, nothing else matching /etc/lsb*
[21:46] <broder> debian's lsb_release looks at your apt configuration to figure out what version you're on
[21:46] <akk> Oh, hey, it does have the lsb_release binary, though.
[21:48] <akk> So you can find out what you're running if you're running it, but not by just examining the filesystem.
[21:48] <akk> I would so love to see a standard file, like /etc/version, that all distros used, so you could tell which filesystem was which.
[22:00] <nhaines> I could go for /etc/conf/make_it_work
[22:45] <nhaines> http://brucebyfield.com/2012/02/10/reducing-anxiety-in-public-speaking/
[22:45] <pleia2> vodka
[22:46] <nhaines> haha!  :D
[22:47] <pleia2> interesting that he doesn't talk to people, I find talking to people before the talk helps (gets my mind off of it, so relaxes me)
[22:47] <nhaines> I find that talk time means I can't prepare any longer, but I like to greet people as they enter, etc.
[22:48] <pleia2> practicing my talk 10+ times is what has helped with anxiety the most
[22:48] <pleia2> it was nice when I learned that even accomplished speakers spend 8+ hours practicing :)
[22:50] <nhaines> Oh yeah.  :)  I never seem to get around to practicing straight through more than twice, but I'll practice sections.
[22:51] <pleia2> yeah, I'll take a 20 minute break from work and practice a bit at a time
[23:07] <akk> I'm not sure practice helps with nervousness, but it sure helps with delivering the talk.