[gentoo-user] Is it safe to change the start of the first partition?
Hi, modern fdisk puts the first partition at block 63 while older version have put it at block 1. Now, I'm going to upgrade an older system. Is it safe to repartition it by letting the first partition start 63 and shortening the first partition by 62 blocks? (I will loose the first partition which doesn't matter in my case.) Many thanks for sharing your experience, Helmut.
Re: [gentoo-user] Is it safe to change the start of the first partition?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03.07.2012 09:09, Helmut Jarausch wrote: Hi, modern fdisk puts the first partition at block 63 while older version have put it at block 1. Now, I'm going to upgrade an older system. Is it safe to repartition it by letting the first partition start 63 and shortening the first partition by 62 blocks? (I will loose the first partition which doesn't matter in my case.) Many thanks for sharing your experience, Helmut. Do you want to resize the partition or do you want to delete and recreate it? The second option is no problem, the first could lead to some data loss (if you are unlucky). -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJP8p5gAAoJEJwwOFaNFkYcoDAIAMNRsPzJq8ukcX8SYfpt2TAN y4UQ8l39zdJx+8WLTHwEAcjDIsYti0xOPzz38RteMCJ4lY6KSDlw7QdpQQv6wK4V EuNfpnUXrb+ty6Fk6X3mS5bUS6rDmTrxGFVeFJha2tklHR7oPNa8CVrULSccpZrG spLBUy8q/XxlkjB/dCn2zzfDFhOzAkqmuCxLgGoj7QDBfOBBsCE3HF3JqlkD3JFt OusMVlFHZf2RI1/1G/R1Hq5WQfQAKe2Y6cLLYvmHGx+gWFbyudIL7FQpsX+orCc0 arUGe5V2swt7NGN3DvjxLbLWubuPmqKfMS/iDNkYUZS3xso2EpVZzUXBU4sLwcc= =Of29 -END PGP SIGNATURE-
Re: [gentoo-user] Is it safe to change the start of the first partition?
On 07/03/2012 09:25:20 AM, Hinnerk van Bruinehsen wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03.07.2012 09:09, Helmut Jarausch wrote: Hi, modern fdisk puts the first partition at block 63 while older version have put it at block 1. Now, I'm going to upgrade an older system. Is it safe to repartition it by letting the first partition start 63 and shortening the first partition by 62 blocks? (I will loose the first partition which doesn't matter in my case.) Many thanks for sharing your experience, Helmut. Do you want to resize the partition or do you want to delete and recreate it? The second option is no problem, the first could lead to some data loss (if you are unlucky). I'd like to delete and recreate ONLY the first partition (which is small). The question is, can I keep the other partitions. As far as I remember, I once deleted the extended partition and tried to recreate logical partitions at the same place. But that didn't work. Helmut.
Re: [gentoo-user] Is it safe to change the start of the first partition?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03.07.2012 09:42, Helmut Jarausch wrote: On 07/03/2012 09:25:20 AM, Hinnerk van Bruinehsen wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03.07.2012 09:09, Helmut Jarausch wrote: Hi, modern fdisk puts the first partition at block 63 while older version have put it at block 1. Now, I'm going to upgrade an older system. Is it safe to repartition it by letting the first partition start 63 and shortening the first partition by 62 blocks? (I will loose the first partition which doesn't matter in my case.) Many thanks for sharing your experience, Helmut. Do you want to resize the partition or do you want to delete and recreate it? The second option is no problem, the first could lead to some data loss (if you are unlucky). I'd like to delete and recreate ONLY the first partition (which is small). The question is, can I keep the other partitions. As far as I remember, I once deleted the extended partition and tried to recreate logical partitions at the same place. But that didn't work. Helmut. If the first partition is a primary partition it's no issue. If it is inside a extended partion it gets tricky, because the extended partition acts like a kind of container. - From your description I guess it's a boot partition, which normally is a primary one. In that case just delete it and recreate it afterwards. Note: you may need to reinstall you bootloader afterwards (due to the changed partition data) and don't forget to toggle the bootable flag for that partition. If it's an extended partition I fear that my experience doesn't suffice to give you qualifield hints as I try to avoid them. -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJP8qSkAAoJEJwwOFaNFkYcKSIH/i1USa0uUOGqfwaYZeJf9fhA tSshu2Hu74KZZedkoVgu/zWIYpbPdu1al60elUR20TGXVtE7FXukpakjYLCb/50i Izj9RAhkbk719TbeJ78Vmu7hVn+zXGMBsoRM6WsrLlm0rw1WhrRElunbkJ6qeURS Bw2ZecSsnrxa3V89fizFHbQkWb15iN0O5afIbgLGgiwtzxhRCNRSNWJrNKpHiu2n tnGO7A+0wWDbV7d2ua8mCwKYBa+Rxs9HerENaOY4jQaA8nxJoBW/Pplb7OZA5KZ0 q/Cv8MFhuMjci4EQ1RNNNucmTqzGZ4uLmhWrXNdzG0TKZ2IkvBKXDeptb+bs810= =SBZ0 -END PGP SIGNATURE-
Re: [gentoo-user] Is it safe to change the start of the first partition?
Helmut Jarausch writes: modern fdisk puts the first partition at block 63 while older version have put it at block 1. No, it's older versions that use 63, while the new fdisk uses 2048. This way the new 4K sectors of huge drives are aligned well. It does not need to be 2048, as long as it's dividable by 8. But fdisk apparently does not allow smaller values. Now, I'm going to upgrade an older system. Is it safe to repartition it by letting the first partition start 63 and shortening the first partition by 62 blocks? (I will loose the first partition which doesn't matter in my case.) I thought this would work, but I'm not sure now. But why do you want to change the partition start anyway? Wonko
Re: [gentoo-user] Re: Grub2 and is the upgrade a tooth puller.
Am 02.07.2012 14:11, schrieb Stefan G. Weichinger: I don't really need UUID working, but it would be fine to debug this, just to know about the issue. Aside from the UUID-issue I am fiddling with booting ISOs from hdd. Numerous howtos, but I think it doesn't work with isos on LVM and/or RAID ... sigh. One ubuntu-howto said that, so I even tried to store the files on an NTFS partition ... no success so far. Anyway. Grub 2 boots, good enough for me now ;-) S
[gentoo-user] Not receiving emails
I only recieved one email since signing up on this list yesterday. I expected to see more traffic. There's nothing going to spam, I'm not sure it I should repost or not. The forum doesn't seem to have it either.
Re: [gentoo-user] Re: make of gentoo-sources-3.2.12 fails [SOLVED]
Hi all, I promised to tell you when I cracked this nasty little problem of mine, though it's somewhat embarrassing for me: in short, don't put shell scripts called ld or cc in your /usr/local/bin. I had an ld script to give me lists of directories in a certain format and then forgot about its existence, until I had the happy idea to type 'ld' on the command line to see what would happen. at least now I know that I've really grown old. again, thank you for all your efforts to help me. kind regards, michael
[gentoo-user] genkernel 3.3.8 fails to build initramfs
When running genkernel all on the latest source 3.3.8 I get the following error. CC util-linux/mkfs_ext2.o CC util-linux/volume_id/ocfs2.o util-linux/mkfs_ext2.c:51:27: fatal error: linux/ext2_fs.h: No such file or directory compilation terminated. When I do a find the ext2_fs.h is found. The entire log is below and the error is near the bottom. How can I fix this to get the kernel and initramfs build correctly? Thanks * Gentoo Linux Genkernel; Version 3.4.24_p1[0m * Running with options: initramfs * Linux Kernel 3.3.8-gentoo[0m for x86_64[0m... * blkid: Using cache * busybox: Applying patches... * - 1.18.1-openvt.diff * - busybox-1.19.3-mdstart.patch * - busybox-1.7.4-signal-hack.patch * busybox: Configuring... COMMAND: make -j2 CC=gcc LD=ld AS=as HOSTCC scripts/basic/fixdep GEN include/applets.h HOSTCC scripts/basic/split-include scripts/basic/split-include.c: In function ‘main’: scripts/basic/split-include.c:134:11: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result HOSTCC scripts/basic/docproc GEN include/usage.h GEN e2fsprogs/Kbuild GEN e2fsprogs/Config.in GEN e2fsprogs/old_e2fsprogs/Kbuild GEN e2fsprogs/old_e2fsprogs/Config.in GEN e2fsprogs/old_e2fsprogs/e2p/Kbuild GEN e2fsprogs/old_e2fsprogs/uuid/Kbuild GEN e2fsprogs/old_e2fsprogs/blkid/Kbuild GEN e2fsprogs/old_e2fsprogs/ext2fs/Kbuild GEN networking/Kbuild GEN networking/Config.in GEN networking/libiproute/Kbuild GEN networking/udhcp/Kbuild GEN networking/udhcp/Config.in GEN libbb/Kbuild GEN libbb/Config.in GEN findutils/Kbuild GEN findutils/Config.in GEN loginutils/Kbuild GEN loginutils/Config.in GEN debianutils/Kbuild GEN debianutils/Config.in GEN runit/Kbuild GEN runit/Config.in GEN scripts/Kbuild GEN init/Kbuild GEN init/Config.in GEN selinux/Kbuild GEN selinux/Config.in GEN shell/Kbuild GEN shell/Config.in GEN printutils/Kbuild GEN printutils/Config.in GEN mailutils/Kbuild GEN mailutils/Config.in GEN sysklogd/Kbuild GEN sysklogd/Config.in GEN editors/Kbuild GEN editors/Config.in GEN miscutils/Kbuild GEN miscutils/Config.in GEN modutils/Kbuild GEN modutils/Config.in GEN libpwdgrp/Kbuild GEN console-tools/Kbuild GEN console-tools/Config.in GEN coreutils/Kbuild GEN coreutils/Config.in GEN coreutils/libcoreutils/Kbuild GEN archival/Kbuild GEN archival/Config.in GEN archival/libarchive/Kbuild GEN applets/Kbuild GEN util-linux/Kbuild GEN util-linux/Config.in GEN util-linux/volume_id/Kbuild GEN procps/Kbuild GEN procps/Config.in HOSTCC scripts/kconfig/conf.o scripts/kconfig/conf.c: In function ‘conf_choice’: scripts/kconfig/conf.c:354:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result scripts/kconfig/conf.c: In function ‘conf_askvalue’: scripts/kconfig/conf.c:106:8: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result HOSTCC scripts/kconfig/kxgettext.o HOSTCC scripts/kconfig/mconf.o SHIPPED scripts/kconfig/zconf.tab.c SHIPPED scripts/kconfig/lex.zconf.c SHIPPED scripts/kconfig/zconf.hash.c scripts/kconfig/mconf.c: In function ‘show_textbox’: scripts/kconfig/mconf.c:839:7: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result scripts/kconfig/mconf.c: In function ‘exec_conf’: scripts/kconfig/mconf.c:473:6: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result HOSTCC scripts/kconfig/zconf.tab.o scripts/kconfig/zconf.tab.c: In function ‘expr_print_file_helper’: scripts/kconfig/expr.c:1083:8: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result scripts/kconfig/zconf.tab.c: In function ‘conf_write’: scripts/kconfig/confdata.c:492:13: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result scripts/kconfig/confdata.c:494:14: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result HOSTLD scripts/kconfig/conf scripts/kconfig/conf -o Config.in # # using defaults found in .config # * * Busybox Configuration * * * Busybox Settings * * * General Configuration * Enable options for full-blown desktop systems (DESKTOP) [N/y/?] n Provide compatible behavior for rare corner cases (bigger code) (EXTRA_COMPAT) [N/y/?] n Enable obsolete features removed before SUSv3 (INCLUDE_SUSv2) [N/y/?] n Avoid using GCC-specific code constructs (USE_PORTABLE_CODE) [N/y/?] n Enable Linux-specific applets and features (PLATFORM_LINUX) [Y/?] y Buffer allocation policy 1. Allocate with Malloc (FEATURE_BUFFERS_USE_MALLOC) 2. Allocate on the Stack (FEATURE_BUFFERS_GO_ON_STACK) 3. Allocate in
[gentoo-user] genkernel 3.3.8 fails to build initramfs
When running genkernel all on the latest source 3.3.8 I get the following error. CC util-linux/mkfs_ext2.o CC util-linux/volume_id/ocfs2.o util-linux/mkfs_ext2.c:51:27: fatal error: linux/ext2_fs.h: No such file or directory compilation terminated. When I do a find the ext2_fs.h is found. The entire log is below and the error is near the bottom. How can I fix this to get the kernel and initramfs build correctly? Thanks * Gentoo Linux Genkernel; Version 3.4.24_p1[0m * Running with options: initramfs * Linux Kernel 3.3.8-gentoo[0m for x86_64[0m... * blkid: Using cache * busybox: Applying patches... * - 1.18.1-openvt.diff * - busybox-1.19.3-mdstart.patch * - busybox-1.7.4-signal-hack.patch * busybox: Configuring... COMMAND: make -j2 CC=gcc LD=ld AS=as HOSTCC scripts/basic/fixdep GEN include/applets.h HOSTCC scripts/basic/split-include scripts/basic/split-include.c: In function ‘main’: scripts/basic/split-include.c:134:11: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result HOSTCC scripts/basic/docproc GEN include/usage.h GEN e2fsprogs/Kbuild GEN e2fsprogs/Config.in GEN e2fsprogs/old_e2fsprogs/Kbuild GEN e2fsprogs/old_e2fsprogs/Config.in GEN e2fsprogs/old_e2fsprogs/e2p/Kbuild GEN e2fsprogs/old_e2fsprogs/uuid/Kbuild GEN e2fsprogs/old_e2fsprogs/blkid/Kbuild GEN e2fsprogs/old_e2fsprogs/ext2fs/Kbuild GEN networking/Kbuild GEN networking/Config.in GEN networking/libiproute/Kbuild GEN networking/udhcp/Kbuild GEN networking/udhcp/Config.in GEN libbb/Kbuild GEN libbb/Config.in GEN findutils/Kbuild GEN findutils/Config.in GEN loginutils/Kbuild GEN loginutils/Config.in GEN debianutils/Kbuild GEN debianutils/Config.in GEN runit/Kbuild GEN runit/Config.in GEN scripts/Kbuild GEN init/Kbuild GEN init/Config.in GEN selinux/Kbuild GEN selinux/Config.in GEN shell/Kbuild GEN shell/Config.in GEN printutils/Kbuild GEN printutils/Config.in GEN mailutils/Kbuild GEN mailutils/Config.in GEN sysklogd/Kbuild GEN sysklogd/Config.in GEN editors/Kbuild GEN editors/Config.in GEN miscutils/Kbuild GEN miscutils/Config.in GEN modutils/Kbuild GEN modutils/Config.in GEN libpwdgrp/Kbuild GEN console-tools/Kbuild GEN console-tools/Config.in GEN coreutils/Kbuild GEN coreutils/Config.in GEN coreutils/libcoreutils/Kbuild GEN archival/Kbuild GEN archival/Config.in GEN archival/libarchive/Kbuild GEN applets/Kbuild GEN util-linux/Kbuild GEN util-linux/Config.in GEN util-linux/volume_id/Kbuild GEN procps/Kbuild GEN procps/Config.in HOSTCC scripts/kconfig/conf.o scripts/kconfig/conf.c: In function ‘conf_choice’: scripts/kconfig/conf.c:354:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result scripts/kconfig/conf.c: In function ‘conf_askvalue’: scripts/kconfig/conf.c:106:8: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result HOSTCC scripts/kconfig/kxgettext.o HOSTCC scripts/kconfig/mconf.o SHIPPED scripts/kconfig/zconf.tab.c SHIPPED scripts/kconfig/lex.zconf.c SHIPPED scripts/kconfig/zconf.hash.c scripts/kconfig/mconf.c: In function ‘show_textbox’: scripts/kconfig/mconf.c:839:7: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result scripts/kconfig/mconf.c: In function ‘exec_conf’: scripts/kconfig/mconf.c:473:6: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result HOSTCC scripts/kconfig/zconf.tab.o scripts/kconfig/zconf.tab.c: In function ‘expr_print_file_helper’: scripts/kconfig/expr.c:1083:8: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result scripts/kconfig/zconf.tab.c: In function ‘conf_write’: scripts/kconfig/confdata.c:492:13: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result scripts/kconfig/confdata.c:494:14: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result HOSTLD scripts/kconfig/conf scripts/kconfig/conf -o Config.in # # using defaults found in .config # * * Busybox Configuration * * * Busybox Settings * * * General Configuration * Enable options for full-blown desktop systems (DESKTOP) [N/y/?] n Provide compatible behavior for rare corner cases (bigger code) (EXTRA_COMPAT) [N/y/?] n Enable obsolete features removed before SUSv3 (INCLUDE_SUSv2) [N/y/?] n Avoid using GCC-specific code constructs (USE_PORTABLE_CODE) [N/y/?] n Enable Linux-specific applets and features (PLATFORM_LINUX) [Y/?] y Buffer allocation policy 1. Allocate with Malloc (FEATURE_BUFFERS_USE_MALLOC) 2. Allocate on the Stack (FEATURE_BUFFERS_GO_ON_STACK) 3. Allocate in
Re: [gentoo-user] Problem with sudo
On Sun, Jul 01, 2012 at 10:41:12AM +0800, Penguin Lover 赵佳晖 squawked: I have use your method , it didn't work . Like: sudo echo sys-boot/grub:2 ** /etc/portage/package.accept_keywords/package.keywords.grub2 echo sys-boot/grub:2 ** | sudo tee /etc/portage/package.accept_keywords/package.keywords.grub2 And the result : zjhui@gentoo ~ $ ls -l /etc/portage/package.accept_keywords/package.keywords.grub2 -rw-r--r-- 1 root root 0 Jul 1 10:37 /etc/portage/package.accept_keywords/package.keywords.grub2 It's an empty file. I think you misread the e-mail. The left hand side below is what you **shouldn't** do. The right hand side is what you **should** do. So you **should** run echo sys-boot/grub:2 ** | sudo tee /etc/portage/package.accept_keywords/package.keywords.grub2 and no more. W If Neil is right, you may want to read man tee. It work roughly like that: instead of do sudo echo sthg /etc/file.cfg echo sthg | sudo tee /etc/file.cfg sudo echo sthg /etc/file.cfg echo sthg | sudo tee -a /etc/file.cfg
Re: [gentoo-user] Not receiving emails
Hi David! I only recieved one email since signing up on this list yesterday. I expected to see more traffic. There's nothing going to spam, I'm not sure it I should repost or not. The forum doesn't seem to have it either. Your mails arrive just fine, I see six altogether. You can see them here, for example: http://old.nabble.com/gentoo-user-f12640.html And your initial question about the initramfs has been answered already: https://bugs.gentoo.org/show_bug.cgi?id=424579 Posted mailed, Wonko
Re: [gentoo-user] Not receiving emails
Thanks, I'll take a look. Though I'm not sure why I'm not seeing the user list email traffic. Thanks again. On Tue, Jul 3, 2012 at 8:55 AM, Alex Schuster wo...@wonkology.org wrote: Hi David! I only recieved one email since signing up on this list yesterday. I expected to see more traffic. There's nothing going to spam, I'm not sure it I should repost or not. The forum doesn't seem to have it either. Your mails arrive just fine, I see six altogether. You can see them here, for example: http://old.nabble.com/gentoo-user-f12640.html And your initial question about the initramfs has been answered already: https://bugs.gentoo.org/show_bug.cgi?id=424579 Posted mailed, Wonko
Re: [gentoo-user] Re: Grub2 and is the upgrade a tooth puller.
On 03.07.2012 12:32, Stefan G. Weichinger wrote: Am 02.07.2012 14:11, schrieb Stefan G. Weichinger: I don't really need UUID working, but it would be fine to debug this, just to know about the issue. Aside from the UUID-issue I am fiddling with booting ISOs from hdd. Numerous howtos, but I think it doesn't work with isos on LVM and/or RAID ... sigh. One ubuntu-howto said that, so I even tried to store the files on an NTFS partition ... no success so far. Anyway. Grub 2 boots, good enough for me now ;-) S I can boot the systemrescuecd from /boot/systemrescuecd-x86-2.8.0.iso on lvm. No raid though. menuentry SystemRescueCD { set isofile=/systemrescuecd-x86-2.8.0.iso loopback loop $isofile linux (loop)/isolinux/rescue64 docache isoloop=$isofile initrd (loop)/isolinux/initram.igz }
Re: [gentoo-user] Not receiving emails
On Tue, Jul 3, 2012 at 7:00 AM, David Kuhl dhkuhl1...@gmail.com wrote: I only recieved one email since signing up on this list yesterday. I expected to see more traffic. There's nothing going to spam, I'm not sure it I should repost or not. The forum doesn't seem to have it either. I replied to you yesterday. http://www.gossamer-threads.com/lists/gentoo/user/256482?do=post_view_threaded There have also been several emails from this list since then, too. -- :wq
[gentoo-user] Is there a Gentoo Expert in NYC?
I need a Gentoo Expert to take a look at this. Are there any in NYC around West 72nd? I've got to get this laptop working. After following the recomendations on building the latest kernel I don't have a system anymore. Everything on my LVM2 partitions are gone or at least not working. I added genkernel ~amd64 to the portage/package.keywords as suggested to get the latest genkernel to build . . . which it did. Now the kernel (3.3.8) which was suppose to fix the xorg-server problem destroyed the system, I can't boot to the old kernel either it's the same thing. This is getting worse. How can I fix this? Is there anyone near by? Thanks.
Re: [gentoo-user] Re: Grub2 and is the upgrade a tooth puller.
Am 03.07.2012 15:45, schrieb Poncho: I can boot the systemrescuecd from /boot/systemrescuecd-x86-2.8.0.iso on lvm. No raid though. menuentry SystemRescueCD { set isofile=/systemrescuecd-x86-2.8.0.iso loopback loop $isofile linux (loop)/isolinux/rescue64 docache isoloop=$isofile initrd (loop)/isolinux/initram.igz } I had to use set isofile=/boot/systemrescuecd-x86-2.8.0.iso but then it worked. Yes, thanks! (that isoloop= option was new to me) Now looking at the grml-options, just curious. Stefan
[gentoo-user] Gentoo Laptop Looks to be Trashed
I'm so stuck with this Gentoo laptop. It started with a standard update which was the first in three months. Then when the X didn't run due to xorg-server getting upgraded, the 3.3.8 gen kernel was suppose to be built with KSM. That failed due to mkfs_ext2.h. The a beta of genkernel was used and which built the kernel and initramfs, but the rest of the machine looks like it's gone. All the LVM2 partitions are broke: /home /var /opt /usr. What's the best way to get this back without loosing the system? Thanks
[gentoo-user] Re: genkernel 3.3.8 fails to build initramfs
Hello David, it seems that this bug has been reported before: https://bugs.gentoo.org/show_bug.cgi?id=424579 Best, Sebastian
Re: [gentoo-user] Gentoo Laptop Looks to be Trashed
Am 03.07.2012 20:00, schrieb David Kuhl: I'm so stuck with this Gentoo laptop. It started with a standard update which was the first in three months. Then when the X didn't run due to xorg-server getting upgraded, the 3.3.8 gen kernel was suppose to be built with KSM. That failed due to mkfs_ext2.h. The a beta of genkernel was used and which built the kernel and initramfs, but the rest of the machine looks like it's gone. All the LVM2 partitions are broke: /home /var /opt /usr. What's the best way to get this back without loosing the system? Thanks Step one: Do a full disk backup. Boot to a live-CD, then back everything up with dd or -- if available -- ddrescue. Step two: Replace broken partitions with `mount --bind` versions from the live-CD. Then chroot into your system. Refer to the Gentoo Handbook for details. Step three: Do you still have /etc? In that case, you can try to restore the LVM metadata from backups that are automatically created by certain operations. Try `vgcfgrestore --list volume group` from a to see what is available. Step four: Post more info. Regards, Florian Philipp signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Re: Grub2 and is the upgrade a tooth puller.
Am 02.07.2012 14:11, schrieb Stefan G. Weichinger: The question is, where does that blkid come from? busybox? Inside the initramfs? (I also rebuilt that initramfs, just in case) I *assume* it can't access that library because it is located on / which might not yet be mounted at that time? My / is located on /dev/md0, and also contains /boot. In the booted system blkid works just fine. Should I file a bug? Anyone else hitting this? I hesitate as I might have forgotten something simple/stupid. S
Re: [gentoo-user] Gentoo Laptop Looks to be Trashed
David Kuhl writes: I'm so stuck with this Gentoo laptop. It started with a standard update which was the first in three months. Then when the X didn't run due to xorg-server getting upgraded, the 3.3.8 gen kernel was suppose to be built with KSM. That failed due to mkfs_ext2.h. The a beta of genkernel was used and which built the kernel and initramfs, but the rest of the machine looks like it's gone. All the LVM2 partitions are broke: /home /var /opt /usr. What's the best way to get this back without loosing the system? Thanks Did you use genkernel with --lvm, or is it activated in genkernel.conf? Does lvscan still list the logical volumes? Assuming you get to a prompt and can use your system without the missing partitions, if not you need to use a live CD. Maybe they are just inactive, and vgchange -a y will make them active and you can continue booting? Does your old kernel (the one without KMS and so without X, but with a working text console) find the LVMs? Wonko
[gentoo-user] Re: Gentoo Laptop Looks to be Trashed
On 03/07/12 21:35, Florian Philipp wrote: Am 03.07.2012 20:00, schrieb David Kuhl: I'm so stuck with this Gentoo laptop. It started with a standard update which was the first in three months. Then when the X didn't run due to xorg-server getting upgraded, the 3.3.8 gen kernel was suppose to be built with KSM. That failed due to mkfs_ext2.h. The a beta of genkernel was used and which built the kernel and initramfs, but the rest of the machine looks like it's gone. All the LVM2 partitions are broke: /home /var /opt /usr. What's the best way to get this back without loosing the system? Thanks Step one: Do a full disk backup. Boot to a live-CD, then back everything up with dd or -- if available -- ddrescue. Step two: ... ... install Ubuntu (or one of its spin-offs.) Having a laptop with Gentoo that wasn't updated for months looks to me like the wrong usage case for Gentoo. If you want periods of several months of base package stability, you do not use a rolling-release distro. With Gentoo you need to update often and *pay attention* to the changes.
Re: [gentoo-user] Re: Gentoo Laptop Looks to be Trashed
On 07/03/12 17:16, Nikos Chantziaras wrote: On 03/07/12 21:35, Florian Philipp wrote: Am 03.07.2012 20:00, schrieb David Kuhl: I'm so stuck with this Gentoo laptop. It started with a standard update which was the first in three months. Then when the X didn't run due to xorg-server getting upgraded, the 3.3.8 gen kernel was suppose to be built with KSM. That failed due to mkfs_ext2.h. The a beta of genkernel was used and which built the kernel and initramfs, but the rest of the machine looks like it's gone. All the LVM2 partitions are broke: /home /var /opt /usr. What's the best way to get this back without loosing the system? Thanks Step one: Do a full disk backup. Boot to a live-CD, then back everything up with dd or -- if available -- ddrescue. Step two: ... ... install Ubuntu (or one of its spin-offs.) Having a laptop with Gentoo that wasn't updated for months looks to me like the wrong usage case for Gentoo. If you want periods of several months of base package stability, you do not use a rolling-release distro. With Gentoo you need to update often and *pay attention* to the changes. Six months to a year isn't really (and shouldn't) be a big deal. Just look at the output of `emerge -puDN world`, and do the upgrades a few at a time. Stop when you upgrade something major to make sure everything works, then go back to what you were doing. Devs take this into account when adding/removing features.. many proposals have a wait a year step.
[gentoo-user] Anyone have cinnamon working properly?
Cinnamon almost works well for me except that the Applications menu does nothing when I click on it. The other dropdown menus work as expected. If it works for you, I'll do more debugging here, but if it's just broken then I won't spend any more time on it. Thanks
Re: [gentoo-user] Re: Gentoo Laptop Looks to be Trashed
120704 Nikos Chantziaras wrote: Am 03.07.2012 20:00, schrieb David Kuhl: I'm so stuck with this Gentoo laptop. It started with a standard update which was the first in three months. Then when the X didn't run due to xorg-server getting upgraded, the 3.3.8 gen kernel was suppose to be built with KSM. That failed due to mkfs_ext2.h. The a beta of genkernel was used and which built the kernel and initramfs, but the rest of the machine looks like it's gone. All the LVM2 partitions are broke: /home /var /opt /usr. What's the best way to get this back without loosing the system? ... install Ubuntu (or one of its spin-offs). Having a laptop with Gentoo that wasn't updated for months looks to me like the wrong usage case for Gentoo. I disagree: I update my netbook my stand-by machine once/year. However, I never-ever do a simple 'emerge world': I always do 'emerge -Dup world', then work thro' the listed pkgs a few at a time, taking note of warnings, failures etc. I suspect DK sb using Gentoo-sources for his kernel -- I've never used Genkernel -- looking carefully at the options. Compile everything into the kernel : avoid using modules. As for LVM, boot from Systemrescue, which should recognise them: if it does, the problem is elsewhere (eg kernel); if not, he will have to recreate LVM hope he has back-ups. Why does he need KSM ? -- Google found an article which advises : if you need to run multiple virtual machines on a host where memory is a constraint, then KSM is your solution. Why would he need to do that on a laptop ? Also, it helps not to boot straight into the GUI : I boot to a raw login prompt, then 'startx', which allows me to do system jobs by logging in as 'root' using CLI. Yes, it's ok to login as 'root' if you're not using a GUI or the I/net, or even with the I/net if you're careful (you wb using Lynx or Wget). Finally -- with a (big smile) -- don't panic ! We've all been there with Gentoo the solution is usually not far away once you find it. -- ,, SUPPORT ___//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT`-O--O---' purslowatchassdotutorontodotca
Re: [gentoo-user] Problem with sudo
Oh,yes , i misunderstand it . Thank you 2012/7/3 Willie WY Wong wong...@member.ams.org On Sun, Jul 01, 2012 at 10:41:12AM +0800, Penguin Lover 赵佳晖 squawked: I have use your method , it didn't work . Like: sudo echo sys-boot/grub:2 ** /etc/portage/package.accept_keywords/package.keywords.grub2 echo sys-boot/grub:2 ** | sudo tee /etc/portage/package.accept_keywords/package.keywords.grub2 And the result : zjhui@gentoo ~ $ ls -l /etc/portage/package.accept_keywords/package.keywords.grub2 -rw-r--r-- 1 root root 0 Jul 1 10:37 /etc/portage/package.accept_keywords/package.keywords.grub2 It's an empty file. I think you misread the e-mail. The left hand side below is what you **shouldn't** do. The right hand side is what you **should** do. So you **should** run echo sys-boot/grub:2 ** | sudo tee /etc/portage/package.accept_keywords/package.keywords.grub2 and no more. W If Neil is right, you may want to read man tee. It work roughly like that: instead of do sudo echo sthg /etc/file.cfg echo sthg | sudo tee /etc/file.cfg sudo echo sthg /etc/file.cfg echo sthg | sudo tee -a /etc/file.cfg -- 好好学习,天天向上!!!
[gentoo-user] Failed to emerge Spamassassin
hi, I tried to emerge Spamassassin bit it failes due to missing dependencies, which I would exspect to be resolved by emerge itsself. I wanted, I will post the referenced logfiles also. How can I fix this? Best regards, mcc solfire:/home/usersudo emerge spamassassin Calculating dependencies... done! Verifying ebuild manifests Emerging (1 of 1) mail-filter/spamassassin-3.3.2-r1 * Mail-SpamAssassin-3.3.2.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] cfg-update-1.8.2-r1: Creating checksum index... Unpacking source... Unpacking Mail-SpamAssassin-3.3.2.tar.bz2 to /var/tmp/portage/mail-filter/spamassassin-3.3.2-r1/work Source unpacked in /var/tmp/portage/mail-filter/spamassassin-3.3.2-r1/work Preparing source in /var/tmp/portage/mail-filter/spamassassin-3.3.2-r1/work/Mail-SpamAssassin-3.3.2 ... * Applying spamassassin-3.3.2-mysql_count_rows.patch ... [ ok ] * Applying spamassassin-3.3.2-binary_token.patch ... [ ok ] * Applying spamassassin-3.3.2-innodb.patch ... [ ok ] Source prepared. Configuring source in /var/tmp/portage/mail-filter/spamassassin-3.3.2-r1/work/Mail-SpamAssassin-3.3.2 ... * Using ExtUtils::MakeMaker * perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor INSTALLMAN3DIR=none DESTDIR=/var/tmp/portage/mail-filter/spamassassin-3.3.2-r1/image/ SYSCONFDIR=/etc DATADIR=/usr/share/spamassassin ENABLE_SSL=yes PERL_BIN=/usr/bin/perl What email address or URL should be used in the suspected-spam report text for users who want more information on your filter installation? (In particular, ISPs should change this to a local Postmaster contact) default text: [the administrator of that system] the administrator of that system NOTE: settings for make test are now controlled using t/config.dist. See that file if you wish to customise what tests are run, and how. checking module dependencies and their versions... *** ERROR: the required HTML::Parser module is not installed, minimum required version is 3.43. HTML is used for an ever-increasing amount of email so this dependency is unavoidable. Run perldoc -q html for additional information. *** ERROR: the required Net::DNS module is not installed, minimum required version is 0.34. Used for all DNS-based tests (SBL, XBL, SpamCop, DSBL, etc.), perform MX checks, and is also used when manually reporting spam to SpamCop. You need to make sure the Net::DNS version is sufficiently up-to-date: - version 0.34 or higher on Unix systems - version 0.46 or higher on Windows systems *** ERROR: the required NetAddr::IP module is not installed, minimum required version is 4.000. Used in determining which DNS tests are to be done for each of the header's received fields, and used by AWL plugin for extracting network address from an IPv6 addresses (and from IPv4 address on nondefault mask). *** NOTE: the optional Digest::SHA1 module is not installed. The Digest::SHA1 module is required by the Razor2 plugin. *** NOTE: the optional Mail::SPF module is not installed. Used to check DNS Sender Policy Framework (SPF) records to fight email address forgery and make it easier to identify spams. *** NOTE: the optional IP::Country module is not installed. Used by the RelayCountry plugin (not enabled by default) to determine the domain country codes of each relay in the path of an email. *** NOTE: the optional Razor2 module is not installed, minimum required version is 2.61. Used to check message signatures against Vipul's Razor collaborative filtering network. Razor has a large number of dependencies on CPAN modules. Feel free to skip installing it, if this makes you nervous; SpamAssassin will still work well without it. More info on installing and using Razor can be found at http://wiki.apache.org/spamassassin/InstallingRazor . *** NOTE: the optional Net::Ident module is not installed. If you plan to use the --auth-ident option to spamd, you will need to install this module. *** NOTE: the optional IO::Socket::INET6 module is not installed. This is required if the first nameserver listed in your IP configuration or /etc/resolv.conf file is available only via an IPv6 address. Also used by a DCC plugin to access dccifd over network.
Re: [gentoo-user] Re: Grub2 and is the upgrade a tooth puller.
On Sat, Jun 30, 2012 at 07:05:31PM +0200, Hartmut Figge wrote And i am still happy with lilo. Am i the only one? ;) Me too. I have 2 kernels in the boot menu. Production and Experimental. Boot defaults to Production. New kernels are loaded as experimental. If it panics/dies consistently, I go back to square 1. After it works OK for a few weeks, I run a promote script that copies Experimental to Production, and the cycle can begin again. -- Walter Dnes waltd...@waltdnes.org
Re: [gentoo-user] Re: Gentoo install script
Very well done, reminded me of some code that I wrote (poorly, I might add) but, I dug it up and found some changes that you might be able to implement instead of lines and lines of static configs. That being said, take some of these changes into consideration. Dynamic detection of drives and partitions: # Get Existing Drives existing_drives=$(fdisk -l | grep /dev | grep -i disk | cut -c11-13) # Set default drive default_drive=$(fdisk -l | grep --max-count=1 /dev | cut -c11-13) echo -e What drive do you want to partition? [$existing_drives]: \c read drive and then creating the partition table later: # Make Drive Selection if [ $drive == ] then selected_drive=$default_drive else # Verify Drive Exists does_exist=$(fdisk -l | grep --max-count=1 -ci $drive) if [ $does_exist == 1 ] then selected_drive=$drive else echo -e The selected drive $drive does not exist. Using $default_drive instead. selected_drive=$default_drive fi fi num_partitions=$(fdisk -l | grep ^/dev | grep -ic $selected_drive) echo There are $num_partitions partitions on $selected_drive partitions=1 # Clear existing partition file rm -rf partition_table touch partition_table while [ $partitions -le $num_partitions ] do # Find partition numbers edit_partitions=$(fdisk -l | grep ^/dev/$selected_drive | cut -c9) # Parse out extra partitons if [ $partitions == 1 ] then work_partition=$(echo -e $edit_partitions | cut -c$partitions) # Write to partition_table file echo -e d\n$work_partition partition_table else if [ $partitions_cut == ] then # If First Partition after partition 1, cut off $partitions + 1 partitions_cut=$(($partitions+1)) else partitions_cut=$(($partitions_cut+1)) fi work_partition=$(echo -e $edit_partitions | cut -c$partitions_cut) # Write to partition_table file echo -e d\n$work_partition partition_table ((partitions_cut += 1)) fi ((partitions += 1)) done # build the rest of the table # Get Total System Memory total_mem=$(cat /proc/meminfo | grep -i memtotal | cut -c16- | sed s/\ // | sed s/kB//) swap_space=$(expr $(expr $total_mem + $total_mem) / 1024) # Write first partition to file echo -e n\np\n1\n\n+100M\n partition_table # Write Swap Space (double system memory) echo -e n\np\n2\n\n+$swap_spaceM\n partition_table # Write / partition to file echo -e n\np\n3\n\n\n partition_table # Write partition setting to file and drive write echo -e a\n1\nt\n2\n82\nw\n partition_table # Set drive number variables boot_drive=$(echo $selected_drive1) swap_drive=$(echo $selected_drive2) root_drive=$(echo $selected_drive3) # KEEP THIS COMMENTED OUT BELLOW HERE fdisk /dev/$selected_drive partition_table Mainly due to the fact that you statically set the UUIDs of the drive that you want to use. Cheers, Kad On Sun, Jul 1, 2012 at 5:28 PM, Michael Mol mike...@gmail.com wrote: On Wed, Jun 27, 2012 at 10:13 PM, Michael Mol mike...@gmail.com wrote: Very rough, and very much a works-for-me thing, but I thought I'd share. https://github.com/mikemol/gentoo-install I wrote it to ease the pain of the install-configure-build cycle I was going through to figure out what was breaking glibc. Just a bit of a followup. I've got most of the bugs worked out, and I'm very pleased with it. I've used it to get through most of the install sequence for inara, and it's currently on package 113/158 of its second pass of 'emerge -e @world'. If anyone else gets around to trying it, let me know. :) -- :wq
Re: [gentoo-user] Failed to emerge Spamassassin
You need to install required Perl modules I think. Please google it how, if there is no ebuild. 2012.07.04. 4:57, meino.cra...@gmx.de ezt írta: hi, I tried to emerge Spamassassin bit it failes due to missing dependencies, which I would exspect to be resolved by emerge itsself. I wanted, I will post the referenced logfiles also. How can I fix this? Best regards, mcc solfire:/home/usersudo emerge spamassassin Calculating dependencies... done! Verifying ebuild manifests Emerging (1 of 1) mail-filter/spamassassin-3.3.2-r1 * Mail-SpamAssassin-3.3.2.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] cfg-update-1.8.2-r1: Creating checksum index... Unpacking source... Unpacking Mail-SpamAssassin-3.3.2.tar.bz2 to /var/tmp/portage/mail-filter/spamassassin-3.3.2-r1/work Source unpacked in /var/tmp/portage/mail-filter/spamassassin-3.3.2-r1/work Preparing source in /var/tmp/portage/mail-filter/spamassassin-3.3.2-r1/work/Mail-SpamAssassin-3.3.2 ... * Applying spamassassin-3.3.2-mysql_count_rows.patch ... [ ok ] * Applying spamassassin-3.3.2-binary_token.patch ... [ ok ] * Applying spamassassin-3.3.2-innodb.patch ... [ ok ] Source prepared. Configuring source in /var/tmp/portage/mail-filter/spamassassin-3.3.2-r1/work/Mail-SpamAssassin-3.3.2 ... * Using ExtUtils::MakeMaker * perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor INSTALLMAN3DIR=none DESTDIR=/var/tmp/portage/mail-filter/spamassassin-3.3.2-r1/image/ SYSCONFDIR=/etc DATADIR=/usr/share/spamassassin ENABLE_SSL=yes PERL_BIN=/usr/bin/perl What email address or URL should be used in the suspected-spam report text for users who want more information on your filter installation? (In particular, ISPs should change this to a local Postmaster contact) default text: [the administrator of that system] the administrator of that system NOTE: settings for make test are now controlled using t/config.dist. See that file if you wish to customise what tests are run, and how. checking module dependencies and their versions... *** ERROR: the required HTML::Parser module is not installed, minimum required version is 3.43. HTML is used for an ever-increasing amount of email so this dependency is unavoidable. Run perldoc -q html for additional information. *** ERROR: the required Net::DNS module is not installed, minimum required version is 0.34. Used for all DNS-based tests (SBL, XBL, SpamCop, DSBL, etc.), perform MX checks, and is also used when manually reporting spam to SpamCop. You need to make sure the Net::DNS version is sufficiently up-to-date: - version 0.34 or higher on Unix systems - version 0.46 or higher on Windows systems *** ERROR: the required NetAddr::IP module is not installed, minimum required version is 4.000. Used in determining which DNS tests are to be done for each of the header's received fields, and used by AWL plugin for extracting network address from an IPv6 addresses (and from IPv4 address on nondefault mask). *** NOTE: the optional Digest::SHA1 module is not installed. The Digest::SHA1 module is required by the Razor2 plugin. *** NOTE: the optional Mail::SPF module is not installed. Used to check DNS Sender Policy Framework (SPF) records to fight email address forgery and make it easier to identify spams. *** NOTE: the optional IP::Country module is not installed. Used by the RelayCountry plugin (not enabled by default) to determine the domain country codes of each relay in the path of an email. *** NOTE: the optional Razor2 module is not installed, minimum required version is 2.61. Used to check message signatures against Vipul's Razor collaborative filtering network. Razor has a large number of dependencies on CPAN modules. Feel free to skip installing it, if this makes you nervous; SpamAssassin will still work well without it. More info on installing and using Razor can be found at http://wiki.apache.org/spamassassin/InstallingRazor . *** NOTE: the optional Net::Ident module is not installed. If you plan to use the --auth-ident option to spamd, you will need to install this module. *** NOTE: the optional IO::Socket::INET6 module is not installed. This is required if the first nameserver listed in