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