Re: [gentoo-user] Printing phpmyadmin output
On 13/4/2011, at 8:14pm, Mick wrote: ... I've tried Opera and Chrome; Chrome does the same as Firefox while Opera shows one line giving the phpMyAdmin location and version number. Works fine in Safari here. Maybe you could try another Webkit-based browser? Konqueror, maybe? ... and I was just advised by my other half (a web developer) that FF will follow a print-CSS if one is there, otherwise will follow the HTML code which may contain the frame and specify it to the size of the screen. Have you guys tried right-clicking within the frame and open frame in new window, then printing? Stroller.
[gentoo-user] Re: configure wlan0 route metric
deadeyes gvm999 at gmail.com writes: code that can be added in /etc/conf.d/net: postup() { local metric=0 case ${IFACE} in eth0) metric=0 ;; eth1) metric=1 ;; esac ifmetric ${IFACE} ${metric} return 0 } Seems like this works for me as well! :) Thanks for your responses guys
Re: [gentoo-user] Re: configure wlan0 route metric
On 13 April 2011 20:52, deadeyes gvm...@gmail.com wrote: Mick michaelkintzios at gmail.com writes: Whether you set NIC priority in the /etc/conf.d/net file or in a post up script, the result is the same. One NIC will have a higher priority than another for ALL connections. This is because NICs do not do NATing. They will send all packets out to the gateway (192.168.1.1) and the router at the gateway will determine which packet is forwarded to the Internet and which to the LAN. So, if you do not want to prioritise one NIC over another, it may be better to use iptables to route LAN packets via a particular NIC instead. Great to see this helps someone else as well :) @Mick: I am not sure if I fully understand what you mean. Following the routing table the most specific route will be used, which is not the default route, but the route to the local lan. *All* routes have to go through the local LAN. That's where you router is. Both NICs are in the same subnet (192.168.1.0/24) and use the same gateway (192.168.1.1). Therefore, the only thing that determines which NIC your packets will go out of is the NIC's metric setting. In your first email you show eth0 with a higher priority than wlan0. All connections will go out eth0, unless eth0 goes down for some reason, or becomes saturated. In this case the metric is important as there are multiple interfaces with the same network. And what do you mean by setting NIC priority (using the metric_eth0 config option?) using /etc/conf.d/net or in a post script? Both have different outcomes it looks to me. Both have the same outcome - set priority for your eth0 and wlan0 NICs, use the same file - /etc/conf.d/net and set up the same parameter - metric. The post up script also sets the lo interface to 0 which is the default anyway. Unless I misunderstand the file's nomenclature local stands for Local Loopback (127.0.0.1/255.0.0.0) and by default has higher priority. Anyway, that's how I understand this, no doubt some networking guru will correct me if I got it wrong. -- Regards, Mick
Re: [gentoo-user] Re: configure wlan0 route metric
On 14 April 2011 09:13, deadeyes gvm...@gmail.com wrote: deadeyes gvm999 at gmail.com writes: code that can be added in /etc/conf.d/net: postup() { local metric=0 case ${IFACE} in eth0) metric=0 ;; eth1) metric=1 ;; esac ifmetric ${IFACE} ${metric} return 0 } Seems like this works for me as well! :) It does? I assume that eth1 above is wlan0 in your case. If you restart both eth0 and wlan0 so as to zero the packet counters, then start a download/upload from your a machine in your LAN, what packet counts do you get in ifconfig for each NIC? -- Regards, Mick
Re: [gentoo-user] Printing phpmyadmin output
On 14 April 2011 07:03, Stroller strol...@stellar.eclipse.co.uk wrote: On 13/4/2011, at 8:14pm, Mick wrote: ... I've tried Opera and Chrome; Chrome does the same as Firefox while Opera shows one line giving the phpMyAdmin location and version number. Works fine in Safari here. Maybe you could try another Webkit-based browser? Konqueror, maybe? ... and I was just advised by my other half (a web developer) that FF will follow a print-CSS if one is there, otherwise will follow the HTML code which may contain the frame and specify it to the size of the screen. Have you guys tried right-clicking within the frame and open frame in new window, then printing? Yes! :-) I forgot to try the obvious ... Peter, if you right-click and select to see the frame in question (while in 'Print View') and then select Print Preview in Firefox, you can see all pages that the tables will spread across. Thanks Stroller for pointing this out. -- Regards, Mick
Re: [gentoo-user] Printing phpmyadmin output
On Thursday 14 April 2011 11:20:51 Mick wrote: Have you guys tried right-clicking within the frame and open frame in new window, then printing? Yes! :-) I forgot to try the obvious ... Hmm. Well, it may be obvious to you, but it isn't obvious to me that the page even uses frames, never mind how to print them. Peter, if you right-click and select to see the frame in question (while in 'Print View') and then select Print Preview in Firefox, you can see all pages that the tables will spread across. Actually I right-clicked in the original page and selected Open in new tab. I got the same output as I get by clicking the Print button at the bottom of the original page, so I suppose we now know what that button does. Thanks Stroller for pointing this out. Indeed. -- Rgds Peter
Re: [gentoo-user] Why can't I emerge telnet?
I just have a little script: $ cat /usr/local/sbin/up-x #!/bin/bash # # /usr/local/sbin/up-x # # Recompile X drivers etc. after kernel upgrade: # emerge -1 --jobs=5 --keep-going `qlist -IC x11-drivers` \ echo \ sh /usr/local/src/VirtualBox*run \ echo Makes life really simple, with hardly any typing. Very nice. BTW, you do not need to escape newlines after . echo Try echo This echo At echo Home || echo Or Not
[gentoo-user] Re: raid1 grub ext4
Florian Philipp lists at binarywings.net writes: Your boot partition is not by any chance a logical partition and therefore would be (hd0,4) and not (hd0,0)? grub root (hd0,4) Error 22: No such partition No? You can try to use 0.90 metadata by specifying it while creating the RAID with mdadm. I'm using it myself because AFAIK this is the only way for grub to handle a single RAID containing partitions instead of partitions containing RAIDs. OK so I read about this 0.90 metadata but could not find details (syntax) of when and exactly how to use this information. OK, so, I've rebooted and got the md1, md2, md3 renamed by (whatever) to md125 md127 and md126, respectively. I changed the fstab like so: #/dev/md1 /boot ext4noauto,noatime 1 2 #/dev/md3 / ext4noatime 0 1 #/dev/md2 swap swapdefaults0 0 none/proc procdefaults 0 0 /dev/cdrom /mnt/cdrom autonoauto,rw,user 0 0 shm /dev/shmtmpfs nodev,nosuid,noexec 0 0 /dev/md125 /boot ext2 noauto,noatime 1 2 /dev/md126 / ext4 noatime 0 1 /dev/md127 swapswap defaults0 0 I put ext2 on /boot, re-emerged grub, edit the grub.conf, but when I run grub I still get HD that cannot be found? grub root (hd0,0) Filesystem type unknown, partition type 0xfd grub root (hd1,0) Filesystem type unknown, partition type 0xfd grub find /boot/grub/stage1 Error 15: File not found grub find /grub/stage1 Error 15: File not found All the files are in /boot/grub... ext2 support is built into the kernel, with extended attributes. ideas? (syntax and steps to repeat after a reboot?) Its my first software raid on gentoo, so I'm sure I've mucked things up a bit James
[gentoo-user] Re: raid1 grub ext4
Florian Philipp lists at binarywings.net writes: You can try to use 0.90 metadata by specifying it while creating the RAID with mdadm. I'm using it myself because AFAIK this is the only way for grub to handle a single RAID containing partitions instead of partitions containing RAIDs. Not sure what this inconsistency is tell me: (chroot) livecd grub # cat /proc/mdstat Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] md125 : active raid1 sda1[0] sdb1[1] 262132 blocks super 1.2 [2/2] [UU] md126 : active raid1 sdb3[1] sda3[0] 1948226512 blocks super 1.2 [2/2] [UU] md127 : active raid1 sdb2[1] sda2[0] 5022708 blocks super 1.2 [2/2] [UU] (chroot) livecd grub # cd /boot/grub/ (chroot) livecd grub # df . FilesystemSize Used Avail Use% Mounted on /dev/md1 248M 7.5M 228M 4% /boot So is it md1 or md125 for /boot, which is on it's own partition? James
Re: [gentoo-user] Re: raid1 grub ext4
Am 14.04.2011 14:56, schrieb James: Florian Philipp lists at binarywings.net writes: Your boot partition is not by any chance a logical partition and therefore would be (hd0,4) and not (hd0,0)? grub root (hd0,4) Error 22: No such partition No? You can try to use 0.90 metadata by specifying it while creating the RAID with mdadm. I'm using it myself because AFAIK this is the only way for grub to handle a single RAID containing partitions instead of partitions containing RAIDs. OK so I read about this 0.90 metadata but could not find details (syntax) of when and exactly how to use this information. OK, so, I've rebooted and got the md1, md2, md3 renamed by (whatever) to md125 md127 and md126, respectively. The parameter for specifying metadata versions is -e. Try mdadm --create --metadata=0.90 ... Of course it can only be specified while creating the array. The renaming is pretty ugly. You can force specific names by circumventing the kernel autodetection. Add the following kernel parameters: raid=noautodetect md=0,/dev/sda1,/dev/sdb1 ... This assembles md0 with sda1 and sdb1. You can also try to keep autodetection on and only force the numbering for your raid partition. Hope this helps, Florian Philipp signature.asc Description: OpenPGP digital signature
[gentoo-user] Re: raid1 grub ext4
James wireless at tampabay.rr.com writes: Not sure what this inconsistency is tell me: I rebooted, using a minimal CD. Dmesg has this information: md: bindsda1 md: bindsdb3 md: bindsda2 md: bindsda3 md/raid1:md126: active with 2 out of 2 mirrors md126: detected capacity change from 0 to 1994983948288 md: bindsdb1 md126: unknown partition table md: bindsdb2 md/raid1:md127: active with 2 out of 2 mirrors md127: detected capacity change from 0 to 268423168 md/raid1:md125: active with 2 out of 2 mirrors md125: detected capacity change from 0 to 5143252992 md127: unknown partition table md125: unknown partition table unknown partition tables? Trying to avoid the 4k disk problems, I used this to format the drives originally (which) I found in a gentoo bug: livecd ~ # fdisk -c -S 56 -u /dev/sda Command (m for help): p Disk /dev/sda: 2000.4 GB, 2000398934016 bytes 255 heads, 56 sectors/track, 273601 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xab83344a Device Boot Start End Blocks Id System /dev/sda1 *2048 526335 262144 fd Linux raid autodetect /dev/sda2 52633610573823 5023744 fd Linux raid autodetect /dev/sda310573824 3907029167 1948227672 fd Linux raid autodetect I think my problem in the partition table is unknown? If so, what did I miss and how to recover? Also, still unsure if my fstab is correct. (see previous post). when I boot with the minCD all is there after I mount and go into chroot environment Perplexed, James
Re: [gentoo-user] GPU lockup with nouveau driver and accel on
Sorry, Doug, I can't help you but FWIW, my eselect options on my NVidia laptop follow. I do not have gallium or nouveau use flags. 64bit i915 (Intel 915, 945) 64bit i965 (Intel 965, G/Q3x, G/Q4x) 64bit r300 (Radeon R300-R500) 64bit r600 (Radeon R600-R700, Evergreen, Northern Islands) 64bit sw (Software renderer) [1] classic * 32bit i915 (Intel 915, 945) [1] classic * [2] gallium 32bit i965 (Intel 965, G/Q3x, G/Q4x) [1] classic * [2] gallium 32bit r300 (Radeon R300-R500) [1] classic [2] gallium * 32bit r600 (Radeon R600-R700, Evergreen, Northern Islands) [1] classic * [2] gallium 32bit sw (Software renderer) [1] classic [2] gallium * And you are to be complimented on your picture-perfect example of How to Ask a Question. ESR would be proud.
Re: [gentoo-user] Why can't I emerge telnet?
On Thursday 14 April 2011 12:55:36 Bill Longman wrote: BTW, you do not need to escape newlines after . Just goes to show: you learn something new every day - if you're not careful. -- Rgds Peter
Re: [gentoo-user] Re: raid1 grub ext4
Am 14.04.2011 15:41, schrieb James: James wireless at tampabay.rr.com writes: Not sure what this inconsistency is tell me: I rebooted, using a minimal CD. Dmesg has this information: md: bindsda1 md: bindsdb3 md: bindsda2 md: bindsda3 md/raid1:md126: active with 2 out of 2 mirrors md126: detected capacity change from 0 to 1994983948288 md: bindsdb1 md126: unknown partition table md: bindsdb2 md/raid1:md127: active with 2 out of 2 mirrors md127: detected capacity change from 0 to 268423168 md/raid1:md125: active with 2 out of 2 mirrors md125: detected capacity change from 0 to 5143252992 md127: unknown partition table md125: unknown partition table unknown partition tables? Trying to avoid the 4k disk problems, I used this to format the drives originally (which) I found in a gentoo bug: livecd ~ # fdisk -c -S 56 -u /dev/sda Command (m for help): p Disk /dev/sda: 2000.4 GB, 2000398934016 bytes 255 heads, 56 sectors/track, 273601 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xab83344a Device Boot Start End Blocks Id System /dev/sda1 *2048 526335 262144 fd Linux raid autodetect /dev/sda2 52633610573823 5023744 fd Linux raid autodetect /dev/sda310573824 3907029167 1948227672 fd Linux raid autodetect I think my problem in the partition table is unknown? If so, what did I miss and how to recover? Also, still unsure if my fstab is correct. (see previous post). when I boot with the minCD all is there after I mount and go into chroot environment Perplexed, James I don't think the missing partition table is your problem. Linux supports partitions within md devices. You don't use this feature and therefore there is no partition table within the md devices to be detected. However, you might be onto something with the changed sector offset. But I don't know enough of this to help you. Regards, Florian Philipp signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Re: raid1 grub ext4
Hi, Just picking the last post I read here. OP. You may want to read this: http://grub.enbug.org/LVMandRAID I know little about LVM and nothing about RAID but found that howto that is pretty straight foreword on how it should work. Also, make sure you are using a version of grub that can see RAID/LVM. According to what I read, not all versions can, only the most recent has that feature. It also has a grub.conf example too. Maybe that will help to. Hope that helps. Dale :-) :-)
[gentoo-user] http-replicator problem
Hello list, I've been running http-replicator with default config on my LAN server with no problems until today, when I got this in its log: 14 Apr 2011 11:12:19 INFO: HttpReplicator started 14 Apr 2011 11:12:41 STAT: HttpClient 1 bound to 192.168.2.6 14 Apr 2011 11:12:41 ERROR: HttpClient 1 caught an exception in __getattr__: HttpClient instance has no attribute 'data' 192.168.2.6 is this workstation, where I was running emerge -uaDv world. The emerge failed with a Connection-refused error when attempting to fetch the distfile. The server also can't fetch distfiles via its http-replicator, so I suspect that's where the problem lies - not at the client end. On the server I've recompiled http-replicator-3.0-r2 and run repcacheman. On the client I've checked that I'm using python-2.7 and I've reinstalled portage: [ebuild R ] sys-apps/portage-2.1.9.42 USE=(ipc) -build -doc -epydoc - python2 -python3 (-selinux) LINGUAS=-pl I can't think what else to try, and I can't think of anything that's changed since yesterday. Anyone any ideas? -- Rgds Peter
Re: [gentoo-user] Re: raid1 grub ext4
On Thu, Apr 14, 2011 at 7:56 AM, James wirel...@tampabay.rr.com wrote: OK, so, I've rebooted and got the md1, md2, md3 renamed by (whatever) to md125 md127 and md126, respectively. The name of the array probably got weird because your hostname doesn't match the homehost of the array. The array has the host name stored in its metadata, so if you're booting in an environment that doesn't have the same hostname (such as a live CD) then it'll use different (large) numbering to avoid a conflict with local arrays. It may also cause some other differences. The manpage of mdadm has good information. I think you can also set it to ignore the hostname entirely in mdadm.conf, but I've not personally ever tried that.
[gentoo-user] Re: GPU lockup with nouveau driver and accel on
On 04/13/2011 07:09 AM, Doug Hunley wrote: I recently switched from the proprietary driver to the nouveau driver and everything appeared to go well except that during boot I see: GPU lockup detected switching to software fbcon I'd ask on the nouveau mailing list, e.g. gmane.comp.freedesktop.xorg.nouveau. The nouveau project is still, well, new, so bug reports are a part of using their drivers.
[gentoo-user] Re: raid1 grub ext4
Dale rdalek1967 at gmail.com writes: http://grub.enbug.org/LVMandRAID Not using lvm at all. Simple raid1 on /boot, /, and swap partitions. I do not need the added complexity of LVM on a simple raid array; I perfectly capable of follow explicit instructions(syntax) and still screwing things up, without LVM... You build a raid1 system yet? NO lvm ;-) Come-on Dale, I need you to flush this out http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml http://en.gentoo-wiki.com/wiki/RAID/Software :-( Alligators? I do not see any Gators. Come on in, the water is FINE! James
[gentoo-user] Re: raid1 grub ext4
Florian Philipp lists at binarywings.net writes: I don't think the missing partition table is your problem. OK, let's assume you are correct, ignoring . However, you might be onto something with the changed sector offset. But I don't know enough of this to help you. Well if I have to reformat I look everything on the install. Not ready to start over yet. So after a fresh reboot I see: livecd ~ # cat /proc/mdstat Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] md125 : active (auto-read-only) raid1 sdb3[1] sda3[0] 1948226512 blocks super 1.2 [2/2] [UU] md126 : active (auto-read-only) raid1 sda2[0] sdb2[1] 5022708 blocks super 1.2 [2/2] [UU] md127 : active (auto-read-only) raid1 sda1[0] sdb1[1] 262132 blocks super 1.2 [2/2] [UU] If you look at previous posts of mine on the mdpart names, and focus on the sized, you'll see something very troubling... The minimal CD keeps using the md125-127 names but assigns them to the different partitions: NOW /boot is: md127 : active (auto-read-only) raid1 sda1[0] sdb1[1] 262132 blocks super 1.2 [2/2] [UU] / is md125 : active (auto-read-only) raid1 sdb3[1] sda3[0] 1948226512 blocks super 1.2 [2/2] [UU] swap is md126 : active (auto-read-only) raid1 sda2[0] sdb2[1] 5022708 blocks super 1.2 [2/2] [UU] Something is morphing the numbers each time I reboot with minCD So no what I put in /etc/fstab, it's going to be wrong. grub cannot find the partition with the kernel? OR is this not a problem? Plus, since I'm never able to write the grub stuffage to the MBR, grub nor the kernel every run. after rebooting I tried this step to correct for the metadata problem you previously posted about: mdadm --create /dev/md1 --level=1 --raid-devices=2 --metadata=0.90 /dev/sda1 /dev/sdb1 mdadm: super0.90 cannot open /dev/sda1: Device or resource busy mdadm: /dev/sda1 is not suitable for this array. mdadm: super0.90 cannot open /dev/sdb1: Device or resource busy mdadm: /dev/sdb1 is not suitable for this array. mdadm --create /dev/md127 --level=1 --raid-devices=2 --metadata=0.90 /dev/sda1 /dev/sdb1 mdadm: super0.90 cannot open /dev/sda1: Device or resource busy mdadm: /dev/sda1 is not suitable for this array. mdadm: super0.90 cannot open /dev/sdb1: Device or resource busy mdadm: /dev/sdb1 is not suitable for this array.
Re: [gentoo-user] Re: raid1 grub ext4
Am 14.04.2011 17:07, schrieb James: Florian Philipp lists at binarywings.net writes: I don't think the missing partition table is your problem. OK, let's assume you are correct, ignoring . However, you might be onto something with the changed sector offset. But I don't know enough of this to help you. Well if I have to reformat I look everything on the install. Not ready to start over yet. So after a fresh reboot I see: livecd ~ # cat /proc/mdstat Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] md125 : active (auto-read-only) raid1 sdb3[1] sda3[0] 1948226512 blocks super 1.2 [2/2] [UU] md126 : active (auto-read-only) raid1 sda2[0] sdb2[1] 5022708 blocks super 1.2 [2/2] [UU] md127 : active (auto-read-only) raid1 sda1[0] sdb1[1] 262132 blocks super 1.2 [2/2] [UU] If you look at previous posts of mine on the mdpart names, and focus on the sized, you'll see something very troubling... The minimal CD keeps using the md125-127 names but assigns them to the different partitions: NOW /boot is: md127 : active (auto-read-only) raid1 sda1[0] sdb1[1] 262132 blocks super 1.2 [2/2] [UU] / is md125 : active (auto-read-only) raid1 sdb3[1] sda3[0] 1948226512 blocks super 1.2 [2/2] [UU] swap is md126 : active (auto-read-only) raid1 sda2[0] sdb2[1] 5022708 blocks super 1.2 [2/2] [UU] Something is morphing the numbers each time I reboot with minCD So no what I put in /etc/fstab, it's going to be wrong. I guess you can resort to labels or UUIDs. The real problem is the root=... parameter for the kernel. That's why I suggested overriding the auto detection and define the raids explicitly on the kernel parameter list. grub cannot find the partition with the kernel? OR is this not a problem? Wild guess: Does grub maybe rely on the partition type to identify file system? Does it work if you change the type from 0xfd to standard 0x82? Plus, since I'm never able to write the grub stuffage to the MBR, grub nor the kernel every run. As a workaround to get your system into a usable state, you can still try to put /boot on a USB stick. In the past, I've also had a system where grub (whole /boot except kernel) was located on a floppy and then located the kernel file on the HDD. You could try this in order to find out whether an working grub still has trouble with your file system. after rebooting I tried this step to correct for the metadata problem you previously posted about: mdadm --create /dev/md1 --level=1 --raid-devices=2 --metadata=0.90 /dev/sda1 /dev/sdb1 mdadm: super0.90 cannot open /dev/sda1: Device or resource busy mdadm: /dev/sda1 is not suitable for this array. mdadm: super0.90 cannot open /dev/sdb1: Device or resource busy mdadm: /dev/sdb1 is not suitable for this array. mdadm --create /dev/md127 --level=1 --raid-devices=2 --metadata=0.90 /dev/sda1 /dev/sdb1 mdadm: super0.90 cannot open /dev/sda1: Device or resource busy mdadm: /dev/sda1 is not suitable for this array. mdadm: super0.90 cannot open /dev/sdb1: Device or resource busy mdadm: /dev/sdb1 is not suitable for this array. Are you sure sda1 and sdb1 are not in use? Did the kernel activate the already present RAID? Then you have to deactivate it. Use mdadm --stop /dev/md* Additionally, check that you did not mount sda1 or sdb1 by accident. Hope this helps, Florian Philipp signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Re: raid1 grub ext4
James wrote: Dalerdalek1967at gmail.com writes: http://grub.enbug.org/LVMandRAID Not using lvm at all. Simple raid1 on /boot, /, and swap partitions. I do not need the added complexity of LVM on a simple raid array; I perfectly capable of follow explicit instructions(syntax) and still screwing things up, without LVM... You build a raid1 system yet? NO lvm ;-) Come-on Dale, I need you to flush this out http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml http://en.gentoo-wiki.com/wiki/RAID/Software :-( Alligators? I do not see any Gators. Come on in, the water is FINE! James That talks about using RAID tho. I don't think you have to be using LVM to use that guide. It just talks about both in one place. Maybe I don't know enough to see that it requires both tho. lol Dale :-) :-)
[gentoo-user] Re: raid1 grub ext4
Florian Philipp lists at binarywings.net writes: Are you sure sda1 and sdb1 are not in use? Did the kernel activate the already present RAID? Then you have to deactivate it. Use mdadm --stop /dev/md* AHh! livecd ~ # mdadm --stop /dev/md* mdadm: error opening /dev/md: Is a directory mdadm: stopped /dev/md1 mdadm: stopped /dev/md125 mdadm: stopped /dev/md126 mdadm: stopped /dev/md127 mdadm: stopped /dev/md3 mdadm: stopped /dev/md4 So it has 2 sets of md ? mdadm --create /dev/md127 --level=1 --raid-devices=2 --metadata=0.90 /dev/sda1 /dev/sdb1 mdadm: /dev/sda1 appears to be part of a raid array: level=raid1 devices=2 ctime=Sun Apr 10 17:12:42 2011 mdadm: /dev/sdb1 appears to be part of a raid array: level=raid1 devices=2 ctime=Sun Apr 10 17:12:42 2011 Continue creating array? y mdadm: array /dev/md127 started. What next? James
[gentoo-user] Re: raid1 grub ext4
Dale rdalek1967 at gmail.com writes: http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml http://en.gentoo-wiki.com/wiki/RAID/Software That talks about using RAID tho. I don't think you have to be using LVM to use that guide. It just talks about both in one place. Correct, if my research-comprehension is properly aligned Maybe I don't know enough to see that it requires both tho. lol Nope, lvm is extra. ONCE you master lvm, I'll dive in with both feet! For now, no lvm as my needs are simple mirroring of all 3 partions. boot and swap are plenty big, everything else is / So this should be straight forward I think Florian is bout to help me flesh out the problem, on the other thread James
Re: [gentoo-user] Gentoo/FBSD
On 04/14/2011 10:38 AM, Fredrik Andersson wrote: Is the Handbook outdated? I dont know if I have ever seen it be out of date.. http://www.gentoo.org/doc/en/handbook/ The handbook is fine, but doesn't cover the FreeBSD install. I was almost able to do it by finding a FreeBSD 8.x live CD pulling down an 8.x stage 3 tarball, but too much of @system is broken for me to do anything after the chroot. Can't install boot0 because Perl is broken, so I try grub. But first, I have to fix xz-utils so that I can unpack it. But first, I have to fix binutils because ld crashes building a new xz-utils. But first, I have to fix GCC because it can't build binutils. But first, I have to fix glibc so that GCC works. But firFORGET IT I'M GOING OUTSIDE.
Re: [gentoo-user] LibreOffice + GLib-GIO:ERROR:gdbusconnection.c:2279:initable_init: assertion failed
On 13 April 2011 01:49, Daniel Pielmeier bil...@gentoo.org wrote: 2011/4/12 Carlos Sura carlos.su...@googlemail.com: It might be GLIB? (I've reciently updated) Do you also use the ~amd64 version of glib? What about downgradeing it to the version you had before, should be worth a try and quicker than rebuiding libreoffice on and on. -- Daniel Pielmeier Hello Daniel Pielmeier, Yes, I'm using ~amd64 version of glib, I tried to downgrade glib, but it show me this error: *downgrading glibc is not supported and a sure way to destruction.* * * So, I'm searching a way to make a safe downgrade. Any suggestion would be great. Regards, P.S. I did rebuild LibreOffice, but It's not working. -- Carlos Sura.-
Re: [gentoo-user] Re: raid1 grub ext4
Am 14.04.2011 18:29, schrieb James: Florian Philipp lists at binarywings.net writes: Are you sure sda1 and sdb1 are not in use? Did the kernel activate the already present RAID? Then you have to deactivate it. Use mdadm --stop /dev/md* AHh! livecd ~ # mdadm --stop /dev/md* mdadm: error opening /dev/md: Is a directory mdadm: stopped /dev/md1 mdadm: stopped /dev/md125 mdadm: stopped /dev/md126 mdadm: stopped /dev/md127 mdadm: stopped /dev/md3 mdadm: stopped /dev/md4 So it has 2 sets of md ? *Head scratch* This, uhm, looks odd. No clue what to make of it. mdadm --create /dev/md127 --level=1 --raid-devices=2 --metadata=0.90 /dev/sda1 /dev/sdb1 mdadm: /dev/sda1 appears to be part of a raid array: level=raid1 devices=2 ctime=Sun Apr 10 17:12:42 2011 mdadm: /dev/sdb1 appears to be part of a raid array: level=raid1 devices=2 ctime=Sun Apr 10 17:12:42 2011 Continue creating array? y mdadm: array /dev/md127 started. What next? Guess you also have to remove them from the old array: mdadm /dev/md0 --remove /dev/sda1 You can also try --force. Regards, Florian Philipp signature.asc Description: OpenPGP digital signature
[gentoo-user] Firefox 4 hard freeze
Hi list, I'm running into some weird problem. Firefox was upgraded to version 4 a few days ago. And up until last night I have had no problems with it. Starting this morning, however, it seems that Firefox would freeze up whenever I touch the keyboard with the window in focus! I can open new tabs, go visit links in the history, etc, with no problems. But any keyboard input (hitting Ctrl-t for new tab, Ctrl-n for new Window, or trying to enter an address into the address bar) completely freezes the program. Running from command line produced no outputs. Running with `strace` gives the following output near the end. I am not sure what's going on with the read(3, 0x9038118, 4096) thing which keeps giving Reseource temporarily unavailable: it keeps flashing by once Firefox has started, seems like firefox keep trying to poll something, but I have no idea what it is doing. But at the very least, even when I just leave the window alone, I knew firefox was doing something. But the minute I hit the keyboard, the rapidly scrolling output of strace stops, and I had to hit Ctrl-C to terminate the process (resulting in the last line of the posted trace). The running versions of firefox is 4.0-r3, and xulrunner is at 2.0-r1 [ebuild R ] net-libs/xulrunner-2.0-r1 USE=alsa ipc webm wifi -crashreporter -custom-optimization -dbus -debug -gconf -libnotify -startup-notification -system-sqlite 0 kB [ebuild R ] www-client/firefox-4.0-r3 USE=alsa ipc webm wifi -bindist -custom-optimization -dbus -debug -libnotify -startup-notification -system-sqlite LINGUAS=en fr -af -ak -ar -ast -be -bg -bn -bn_BD -bn_IN -br -bs -ca -cs -cy -da -de -el -en_ZA -eo -es -es_ES -et -eu -fa -fi -fy -fy_NL -ga -ga_IE -gd -gl -gu -gu_IN -he -hi -hi_IN -hr -hu -hy -hy_AM -id -is -it -ja -kk -kn -ko -ku -lg -lt -lv -mai -mk -ml -mr -nb -nb_NO -nl -nn -nn_NO -nso -or -pa -pa_IN -pl -pt -pt_PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -sv_SE -ta -ta_LK -te -th -tr -uk -vi -zu 0 kB Any ideas? --strace output snip writev(3, [{\221\6\2\0\3\0 \1, 8}, {NULL, 0}, {, 0}], 3) = 8 poll([{fd=3, events=POLLIN}], 1, -1)= 1 ([{fd=3, revents=POLLIN}]) read(3, \1\3\354\4\17\0\0\0\1\1\1\0\0\0\0\0\0\0\0\0\224\2(\0,\1,\1\240\0(\0..., 4096) = 92 read(3, 0x9038118, 4096)= -1 EAGAIN (Resource temporarily unavailable) read(3, 0x9038118, 4096)= -1 EAGAIN (Resource temporarily unavailable) poll([{fd=3, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=3, revents=POLLOUT}]) writev(3, [{\221\10\7\0\3\0G\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\5, 28}, {NULL, 0}, {, 0}], 3) = 28 poll([{fd=3, events=POLLIN}], 1, -1)= 1 ([{fd=3, revents=POLLIN}]) read(3, \1\3\355\4\f\4\0\0\0\0\10\377G\0\0\31\31\10\351\0\370\0\0\0\0\0\0\0\0\0\0\10..., 4096) = 4096 read(3, \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0..., 80) = 80 read(3, 0x9038118, 4096)= -1 EAGAIN (Resource temporarily unavailable) read(3, 0x9038118, 4096)= -1 EAGAIN (Resource temporarily unavailable) gettimeofday({1302810140, 819284}, NULL) = 0 futex(0x905a888, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x905a884, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 1 gettimeofday({1302810140, 824690}, NULL) = 0 gettimeofday({1302810140, 824783}, NULL) = 0 futex(0x905a888, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x905a884, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 1 gettimeofday({1302810140, 825089}, NULL) = 0 gettimeofday({1302810140, 825183}, NULL) = 0 gettimeofday({1302810140, 825464}, NULL) = 0 read(16, \372, 1) = 1 gettimeofday({1302810140, 825899}, NULL) = 0 gettimeofday({1302810140, 825996}, NULL) = 0 gettimeofday({1302810140, 826099}, NULL) = 0 gettimeofday({1302810140, 826196}, NULL) = 0 gettimeofday({1302810140, 826287}, NULL) = 0 gettimeofday({1302810140, 826397}, NULL) = 0 poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=16, events=POLLIN}], 3, 0) = 0 (Timeout) gettimeofday({1302810140, 826733}, NULL) = 0 gettimeofday({1302810140, 826829}, NULL) = 0 poll([{fd=3, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=3, revents=POLLOUT}]) writev(3, [{\201\1\2\0\306\0\0\0, 8}, {NULL, 0}, {, 0}], 3) = 8 poll([{fd=3, events=POLLIN}], 1, -1)= 1 ([{fd=3, revents=POLLIN}]) read(3, \1\0\356\4\0\0\0\0\305\0\0\0\220'\t\\0\0\0\0\0\0\0\0\322\300\277\0\0\0\0, 4096) = 32 read(3, 0x9038118, 4096)= -1 EAGAIN (Resource temporarily unavailable) read(3, 0x9038118, 4096)= -1 EAGAIN (Resource temporarily unavailable) gettimeofday({1302810140, 827861}, NULL) = 0 poll([{fd=3, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=3, revents=POLLOUT}]) writev(3, [{\221\10\7\0\0\1\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\5, 28}, {NULL, 0}, {, 0}], 3) = 28 poll([{fd=3, events=POLLIN}], 1, -1)= 1 ([{fd=3, revents=POLLIN}]) read(3, \1\3\357\4\10\4\0\0\0\0\10\377\7\0\0\31\31\10\351\0\370\0\0\0\0\0\0\0\0\0\0\10..., 4096) = 4096 read(3,
Re: [gentoo-user] Printing phpmyadmin output
On Thursday 14 April 2011 11:44:49 Peter Humphrey wrote: On Thursday 14 April 2011 11:20:51 Mick wrote: Peter, if you right-click and select to see the frame in question (while in 'Print View') and then select Print Preview in Firefox, you can see all pages that the tables will spread across. Actually I right-clicked in the original page and selected Open in new tab. I got the same output as I get by clicking the Print button at the bottom of the original page, so I suppose we now know what that button does. Not exactly ... the 'Print View' button uses a different stylesheet, but yes it has the same effect of making all pages of the table printable. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Firefox 4 hard freeze
On Thu, Apr 14, 2011 at 03:53:39PM -0400, Willie Wong wrote: Hi list, I'm running into some weird problem. Firefox was upgraded to version 4 a few days ago. And up until last night I have had no problems with it. Starting this morning, however, it seems that Firefox would freeze up whenever I touch the keyboard with the window in focus! I can open new tabs, go visit links in the history, etc, with no problems. But any keyboard input (hitting Ctrl-t for new tab, Ctrl-n for new Window, or trying to enter an address into the address bar) completely freezes the program. Update: seems that only some keyboard input is affected. For example, arrow keys for scrolling, and typing things in text/input boxes on webpages are fine. But hotkeys interacting with Firefox, or typing in the Address bar or Search bar freezes the program. W -- Willie W. Wong ww...@math.princeton.edu Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire et vice versa ~~~ I. Newton
[gentoo-user] Re: raid1 grub ext4
*Head scratch* This, uhm, looks odd. No clue what to make of it. Ahhh, Don't give up just yet? I issued these commands: mdadm --create /dev/md127 --level=1 --raid-devices=2 --metadata=0.90 /dev/sda1 /dev/sdb1 mdadm --create /dev/md125 --level=1 --raid-devices=2 --metadata=0.90 /dev/sda3 /dev/sdb3 mdadm: /dev/sda3 appears to be part of a raid array: level=raid1 devices=2 ctime=Thu Apr 14 13:22:32 2011 mdadm: /dev/sdb3 appears to be part of a raid array: level=raid1 devices=2 ctime=Thu Apr 14 13:22:32 2011 Continue creating array? y mdadm --create /dev/md126 --level=1 --raid-devices=2 --metadata=0.90 /dev/sda2 /dev/sdb2 I'm not sure if I just wiped the drives clean (empty)? If so, I'll have to start over.? mdadm --detail /dev/md1 mdadm: cannot open /dev/md1: No such file or directory same now for md2 and md3... Look (ma no hands!): livecd gentoo # mdadm --detail /dev/md125 /dev/md125: Version : 0.90 Creation Time : Thu Apr 14 14:15:21 2011 Raid Level : raid1 Array Size : 1948227584 (1857.97 GiB 1994.99 GB) Used Dev Size : 1948227584 (1857.97 GiB 1994.99 GB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 125 Persistence : Superblock is persistent Update Time : Thu Apr 14 15:51:46 2011 State : clean, resyncing Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 Rebuild Status : 37% complete UUID : fa800cdb:33955cfd:cb201669:f728008a (local to host livecd) Events : 0.6 Number Major Minor RaidDevice State 0 830 active sync /dev/sda3 1 8 191 active sync /dev/sdb3 mdadm --detail /dev/md126 /dev/md126: Version : 0.90 Creation Time : Thu Apr 14 14:16:01 2011 Raid Level : raid1 Array Size : 5023680 (4.79 GiB 5.14 GB) Used Dev Size : 5023680 (4.79 GiB 5.14 GB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 126 Persistence : Superblock is persistent Update Time : Thu Apr 14 14:16:01 2011 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 UUID : e4651ca8:4aae2908:cb201669:f728008a (local to host livecd) Events : 0.1 Number Major Minor RaidDevice State 0 820 active sync /dev/sda2 1 8 181 active sync /dev/sdb2 # mdadm --detail /dev/md127 /dev/md127: Version : 0.90 Creation Time : Thu Apr 14 14:10:56 2011 Raid Level : raid1 Array Size : 262080 (255.98 MiB 268.37 MB) Used Dev Size : 262080 (255.98 MiB 268.37 MB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 127 Persistence : Superblock is persistent Update Time : Thu Apr 14 16:12:41 2011 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 UUID : 8939604f:676aa8df:cb201669:f728008a (local to host livecd) Events : 0.18 Number Major Minor RaidDevice State 0 810 active sync /dev/sda1 1 8 171 active sync /dev/sdb1 We'll see in a few hours James
Re: [gentoo-user] LibreOffice + GLib-GIO:ERROR:gdbusconnection.c:2279:initable_init: assertion failed
On 13 April 2011 01:49, Daniel Pielmeier bil...@gentoo.org wrote: 2011/4/12 Carlos Sura carlos.su...@googlemail.com: It might be GLIB? (I've reciently updated) Do you also use the ~amd64 version of glib? What about downgradeing it to the version you had before, should be worth a try and quicker than rebuiding libreoffice on and on. -- Daniel Pielmeier Also, I've tried strace, and this is the output: http://tinypaste.com/e025e0 -- Carlos Sura.-
[gentoo-user] Re: configure wlan0 route metric
Mick michaelkintzios at gmail.com writes: It does? I assume that eth1 above is wlan0 in your case. Yes indeed :) it is wlan0.
[gentoo-user] Re: raid1 grub ext4
Florian Philipp lists at binarywings.net writes: livecd ~ # mdadm --stop /dev/md* mdadm: error opening /dev/md: Is a directory mdadm: stopped /dev/md1 mdadm: stopped /dev/md125 mdadm: stopped /dev/md126 mdadm: stopped /dev/md127 mdadm: stopped /dev/md3 mdadm: stopped /dev/md4 From this web page: http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml possibly? Code Listing 2.10: Create device nodes and devices livecd ~ # mknod /dev/md1 b 9 1 livecd ~ # mknod /dev/md3 b 9 3 livecd ~ # mknod /dev/md4 b 9 4 livecd ~ # mdadm --create /dev/md1 --level=1 --raid-devices=2 --metadata=0.90 /dev/sda1 /dev/sdb1 mdadm: array /dev/md1 started. livecd ~ # mdadm --create /dev/md3 --level=1 --raid-devices=2 /dev/sda3 /dev/sdb3 mdadm: array /dev/md3 started. livecd ~ # mdadm --create /dev/md4 --level=0 --raid-devices=2 /dev/sda4 /dev/sdb4 mdadm: array /dev/md4 started. Not exactly what I did, as the (omitted forth partition and only used raid 1) but it does not align with the md125-md127 numbers, but all are present. Comments and suggestions are most welcome! James
Re: [gentoo-user] LibreOffice + GLib-GIO:ERROR:gdbusconnection.c:2279:initable_init: assertion failed
Carlos Sura schrieb am 14.04.2011 21:47: Yes, I'm using ~amd64 version of glib, I tried to downgrade glib, but it show me this error: *downgrading glibc is not supported and a sure way to destruction.* sys-libs/glibc != dev-libs/glib It should be safe to downgrade dev-libs/glib. -- Daniel Pielmeier signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Firefox 4 hard freeze
On Thu, Apr 14, 2011 at 3:16 PM, Willie Wong ww...@math.princeton.edu wrote: On Thu, Apr 14, 2011 at 03:53:39PM -0400, Willie Wong wrote: Hi list, I'm running into some weird problem. Firefox was upgraded to version 4 a few days ago. And up until last night I have had no problems with it. Starting this morning, however, it seems that Firefox would freeze up whenever I touch the keyboard with the window in focus! I can open new tabs, go visit links in the history, etc, with no problems. But any keyboard input (hitting Ctrl-t for new tab, Ctrl-n for new Window, or trying to enter an address into the address bar) completely freezes the program. Update: seems that only some keyboard input is affected. For example, arrow keys for scrolling, and typing things in text/input boxes on webpages are fine. But hotkeys interacting with Firefox, or typing in the Address bar or Search bar freezes the program. Have you tried as a different user or with a fresh Firefox profile? I wonder if it would make a difference.
[gentoo-user] repair damaged pdf?
Dear all What is your experience with corrupted PDF files? Do you know any tool that can attempt to repair damaged PDF files? Does it make any sense to edit a PDF file in hex mode? I have a damaged PDF that cannot be opened with any of the about 10 tools that I've just tried. liv@liv-laptop:/tmp$ pdf2ps Class\ 1.pdf Warning: File has a corrupted %%EOF marker, or garbage after %%EOF. Warning: An error occurred while reading an XREF table. The file has been damaged. This may have been caused by a problem while converting or transfering the file. Ghostscript will attempt to recover the data. Error: /typecheck in --run-- Operand stack: --nostringval-- --nostringval-- 1 Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1878 1 3 %oparray_pop 1877 1 3 %oparray_pop 1861 1 3 %oparray_pop --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- Dictionary stack: --dict:1155/1684(ro)(G)-- --dict:1/20(G)-- --dict:75/200(L)-- --dict:75/200(L)-- --dict:108/127(ro)(G)-- --dict:288/300(ro)(G)-- --dict:20/25(L)-- --dict:1/10(L)-- Current allocation mode is local GPL Ghostscript 8.71: Unrecoverable error, exit code 1 liv@liv-laptop:/tmp$ pdftops Class\ 1.pdf Error: PDF file is damaged - attempting to reconstruct xref table... Error: Top-level pages object is wrong type (null) Error: Couldn't read page catalog Any ideas how I could try to repair it? (It's not sensitive and it's small, so I could post it.) I tried pdftk, but it also fails. liv@liv-laptop:/tmp$ pdftk Class\ 1.pdf output Class\ 11.pdf java.lang.NullPointerException at com.lowagie.text.pdf.PdfReader$PageRefs.iteratePages(itext-2.1.7.jar.so) at com.lowagie.text.pdf.PdfReader$PageRefs.readPages(itext-2.1.7.jar.so) at com.lowagie.text.pdf.PdfReader$PageRefs.init(itext-2.1.7.jar.so) at com.lowagie.text.pdf.PdfReader$PageRefs.init(itext-2.1.7.jar.so) at com.lowagie.text.pdf.PdfReader.readPages(itext-2.1.7.jar.so) at com.lowagie.text.pdf.PdfReader.readPdf(itext-2.1.7.jar.so) at com.lowagie.text.pdf.PdfReader.init(itext-2.1.7.jar.so) at com.lowagie.text.pdf.PdfReader.init(itext-2.1.7.jar.so) Error: Unexpected Exception in open_reader() Error: Failed to open PDF file: Class 1.pdf Errors encountered. No output created. Done. Input errors, so no output created. Regards Liviu -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: [gentoo-user] Re: raid1 grub ext4
Am 14.04.2011 22:19, schrieb James: *Head scratch* This, uhm, looks odd. No clue what to make of it. Ahhh, Don't give up just yet? I issued these commands: mdadm --create /dev/md127 --level=1 --raid-devices=2 --metadata=0.90 /dev/sda1 /dev/sdb1 mdadm --create /dev/md125 --level=1 --raid-devices=2 --metadata=0.90 /dev/sda3 /dev/sdb3 mdadm: /dev/sda3 appears to be part of a raid array: level=raid1 devices=2 ctime=Thu Apr 14 13:22:32 2011 mdadm: /dev/sdb3 appears to be part of a raid array: level=raid1 devices=2 ctime=Thu Apr 14 13:22:32 2011 Continue creating array? y mdadm --create /dev/md126 --level=1 --raid-devices=2 --metadata=0.90 /dev/sda2 /dev/sdb2 I'm not sure if I just wiped the drives clean (empty)? If so, I'll have to start over.? Ouch, I didn't think of that. Well, I guess it will not wipe it, it will merely re-sync the disks. Since they have been mirrors of each other before this action, you might be lucky and it keeps working. mdadm --detail /dev/md1 mdadm: cannot open /dev/md1: No such file or directory same now for md2 and md3... Well, at least you are rid of the duplicate arrays. Look (ma no hands!): livecd gentoo # mdadm --detail /dev/md125 /dev/md125: Version : 0.90 Creation Time : Thu Apr 14 14:15:21 2011 Raid Level : raid1 Array Size : 1948227584 (1857.97 GiB 1994.99 GB) Used Dev Size : 1948227584 (1857.97 GiB 1994.99 GB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 125 Persistence : Superblock is persistent Update Time : Thu Apr 14 15:51:46 2011 State : clean, resyncing Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 Rebuild Status : 37% complete UUID : fa800cdb:33955cfd:cb201669:f728008a (local to host livecd) Events : 0.6 Number Major Minor RaidDevice State 0 830 active sync /dev/sda3 1 8 191 active sync /dev/sdb3 [...] We'll see in a few hours James You can keep using it while it re-syncs. Re-syncing just means that you do not have any redundancy, yet. You can still read/write on the array. You will get or manipulate whatever mdadm thinks is the correct value for each block. That's also what will end up on both disks, ultimately. I guess you can even reboot but since your setup is not really persistent, I wouldn't try it. Regards, Florian Philipp signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] repair damaged pdf?
Am 14.04.2011 23:08, schrieb Liviu Andronic: Dear all What is your experience with corrupted PDF files? Do you know any tool that can attempt to repair damaged PDF files? Does it make any sense to edit a PDF file in hex mode? I have a damaged PDF that cannot be opened with any of the about 10 tools that I've just tried. liv@liv-laptop:/tmp$ pdf2ps Class\ 1.pdf Warning: File has a corrupted %%EOF marker, or garbage after %%EOF. Warning: An error occurred while reading an XREF table. The file has been damaged. This may have been caused by a problem while converting or transfering the file. Ghostscript will attempt to recover the data. Error: /typecheck in --run-- Operand stack: --nostringval-- --nostringval-- 1 Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1878 1 3 %oparray_pop 1877 1 3 %oparray_pop 1861 1 3 %oparray_pop --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- Dictionary stack: --dict:1155/1684(ro)(G)-- --dict:1/20(G)-- --dict:75/200(L)-- --dict:75/200(L)-- --dict:108/127(ro)(G)-- --dict:288/300(ro)(G)-- --dict:20/25(L)-- --dict:1/10(L)-- Current allocation mode is local GPL Ghostscript 8.71: Unrecoverable error, exit code 1 liv@liv-laptop:/tmp$ pdftops Class\ 1.pdf Error: PDF file is damaged - attempting to reconstruct xref table... Error: Top-level pages object is wrong type (null) Error: Couldn't read page catalog Any ideas how I could try to repair it? (It's not sensitive and it's small, so I could post it.) I tried pdftk, but it also fails. liv@liv-laptop:/tmp$ pdftk Class\ 1.pdf output Class\ 11.pdf java.lang.NullPointerException at com.lowagie.text.pdf.PdfReader$PageRefs.iteratePages(itext-2.1.7.jar.so) at com.lowagie.text.pdf.PdfReader$PageRefs.readPages(itext-2.1.7.jar.so) at com.lowagie.text.pdf.PdfReader$PageRefs.init(itext-2.1.7.jar.so) at com.lowagie.text.pdf.PdfReader$PageRefs.init(itext-2.1.7.jar.so) at com.lowagie.text.pdf.PdfReader.readPages(itext-2.1.7.jar.so) at com.lowagie.text.pdf.PdfReader.readPdf(itext-2.1.7.jar.so) at com.lowagie.text.pdf.PdfReader.init(itext-2.1.7.jar.so) at com.lowagie.text.pdf.PdfReader.init(itext-2.1.7.jar.so) Error: Unexpected Exception in open_reader() Error: Failed to open PDF file: Class 1.pdf Errors encountered. No output created. Done. Input errors, so no output created. Regards Liviu Well, you could try app-text/qpdf from the benf overlay. It has an option to suppress recovery of damaged files so it looks like it at least tries to repair them per default. If you don't want to install layman and overlays, you can send me the file off-list and I take a look. One good thing about PDF is that its structure is stored uncompressed (AFAIK it only compresses text and binary data with zlib since version 1.2). This means that it might be at least partially recoverable. Regards, Florian Philipp signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] repair damaged pdf?
On Thursday 14 April 2011 22:30:01 Florian Philipp wrote: Am 14.04.2011 23:08, schrieb Liviu Andronic: Dear all What is your experience with corrupted PDF files? Do you know any tool that can attempt to repair damaged PDF files? Does it make any sense to edit a PDF file in hex mode? I have a damaged PDF that cannot be opened with any of the about 10 tools that I've just tried. Well, you could try app-text/qpdf from the benf overlay. It has an option to suppress recovery of damaged files so it looks like it at least tries to repair them per default. If you don't want to install layman and overlays, you can send me the file off-list and I take a look. One good thing about PDF is that its structure is stored uncompressed (AFAIK it only compresses text and binary data with zlib since version 1.2). This means that it might be at least partially recoverable. You can also try pdfclean in case it reads it, from the package app-text/mupdf -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] repair damaged pdf?
On Fri, Apr 15, 2011 at 12:03 AM, Mick michaelkintz...@gmail.com wrote: You can also try pdfclean in case it reads it, from the package pap-text/mupdf It does seem to input it, since it outputed a non-null file, but it also seems corrupted: /usr/local/build/mupdf-0.8.15-linux-amd64/pdfclean /tmp/Class 1.pdf (1173) + mupdf/pdf_xref.c:63: pdf_readstartxref(): cannot find startxref | mupdf/pdf_xref.c:493: pdf_loadxref(): cannot read startxref \ mupdf/pdf_xref.c:549: pdf_openxrefwithstream(): trying to repair warning: object missing 'endobj' token /usr/local/build/mupdf-0.8. ... /pdfclean /tmp/Class 1.pdf (1173) returned '0' liv@liv-laptop:/tmp$ pdftops out.pdf Error: Top-level pages object is wrong type (null) Error: Couldn't read page catalog Regards Liviu
Re: [gentoo-user] Re: configure wlan0 route metric
On Thu, Apr 14, 2011 at 12:00:02PM +0200, Mick wrote: On 14 April 2011 09:13, deadeyes gvm...@gmail.com wrote: deadeyes gvm999 at gmail.com writes: code that can be added in /etc/conf.d/net: postup() { local metric=0 case ${IFACE} in eth0) metric=0 ;; eth1) metric=1 ;; esac ifmetric ${IFACE} ${metric} return 0 } Seems like this works for me as well! :) It does? I assume that eth1 above is wlan0 in your case. On my thinkpad the wireless is eth0, wired is eth1. Not sure why, but I've had a few machines that work that way. -- /\ /\ \ / ^ caveat utilitor 'v-v'
Re: [gentoo-user] Re: configure wlan0 route metric
On Fri, Apr 15, 2011 at 12:30:02AM +0200, Indi wrote: On Thu, Apr 14, 2011 at 12:00:02PM +0200, Mick wrote: On 14 April 2011 09:13, deadeyes gvm...@gmail.com wrote: deadeyes gvm999 at gmail.com writes: code that can be added in /etc/conf.d/net: postup() { local metric=0 case ${IFACE} in eth0) metric=0 ;; eth1) metric=1 ;; esac ifmetric ${IFACE} ${metric} return 0 } Seems like this works for me as well! :) It does? I assume that eth1 above is wlan0 in your case. On my thinkpad the wireless is eth0, wired is eth1. Oh, I got that backwards, sorry -- wireless is eth1. :) -- /\ /\ \ / ^ caveat utilitor 'v-v'
Re: [gentoo-user] Re: configure wlan0 route metric
On Friday 15 April 2011 03:06:57 Indi wrote: On Fri, Apr 15, 2011 at 12:30:02AM +0200, Indi wrote: On Thu, Apr 14, 2011 at 12:00:02PM +0200, Mick wrote: On 14 April 2011 09:13, deadeyes gvm...@gmail.com wrote: deadeyes gvm999 at gmail.com writes: code that can be added in /etc/conf.d/net: postup() { local metric=0 case ${IFACE} in eth0) metric=0 ;; eth1) metric=1 ;; esac ifmetric ${IFACE} ${metric} return 0 } Seems like this works for me as well! :) It does? I assume that eth1 above is wlan0 in your case. On my thinkpad the wireless is eth0, wired is eth1. Oh, I got that backwards, sorry -- wireless is eth1. Different drivers name the wireless interface using different names (eth1, wlan0, ath0, etc.) -- Regards, Mick signature.asc Description: This is a digitally signed message part.