Re: [gentoo-user] Hanging mount

2012-06-28 Thread Alex Schuster
Alex Schuster writes:

> Helmut Jarausch writes:
> 
> > On 06/27/2012 04:44:34 AM, meino.cra...@gmx.de wrote:

> > > i accidentally tried to mount the extended partition /dev/sda4
> > > from this disk:
> [...]
> > > which results in a hanging mount process, which cannot be killed.

> > I cannot tell you if kernel hanging in this case is normal.
> > 
> > But, if there is any problem during mount, the kernel seems to hang.
> > As far as I remember, it only has a very long time out, but it will
> > 'kill' that mount request some time.
> 
> Let's see how long 'very long' is, it's hanging for over one hour now. I
> will wait some more hours, but that would be one really long timeout.

All I can say now is that the timeout, if there is one, must be larger
than 24 hours.

Isn't this weird?

Wonko



Re: [gentoo-user] Hanging mount

2012-06-28 Thread Paul Hartman
On Thu, Jun 28, 2012 at 8:45 AM, Alex Schuster  wrote:
> Alex Schuster writes:
>
>> Helmut Jarausch writes:
>>
>> > On 06/27/2012 04:44:34 AM, meino.cra...@gmx.de wrote:
>
>> > > i accidentally tried to mount the extended partition /dev/sda4
>> > > from this disk:
>> [...]
>> > > which results in a hanging mount process, which cannot be killed.
>
>> > I cannot tell you if kernel hanging in this case is normal.
>> >
>> > But, if there is any problem during mount, the kernel seems to hang.
>> > As far as I remember, it only has a very long time out, but it will
>> > 'kill' that mount request some time.
>>
>> Let's see how long 'very long' is, it's hanging for over one hour now. I
>> will wait some more hours, but that would be one really long timeout.
>
> All I can say now is that the timeout, if there is one, must be larger
> than 24 hours.
>
> Isn't this weird?

Almost all cases of linux hangs I've ever experienced have been from either:

1) mount/unmount
2) insmod/rmmod

and they usually last forever. Sometimes prevent proper shutdown,
requiring SysRq magic or usually hard power-off...



[gentoo-user] [OT] Computer security

2012-06-28 Thread walt
I really enjoyed reading this:

http://research.microsoft.com/pubs/167719/WhyFromNigeria.pdf




Re: [gentoo-user] Grub2 and is the upgrade a tooth puller.

2012-06-28 Thread Paul Hartman
On Mon, Jun 25, 2012 at 12:05 AM, Dale  wrote:
> It appears that grub2 is coming soon.

grub 2.00 has been released!

https://www.gnu.org/software/grub/



Re: [gentoo-user] USE="jpeg" not part of hardened/linux/x86 profile

2012-06-28 Thread Jorge Martínez López
Thanks Klondike for the tips!

2012/6/27 Francisco Blas Izquierdo Riera (klondike) :
[...]
> Finally regarding Gwibber and Hotot make sure you don't have the jit USE
> flag set, jit code and hardened match just as well as a bobcat and a
> pitbull in a small closed box with a lit firecracker to startle them.
> Worst case try choqok it works well for me.

I will test disabling the jit USE flag as soon as I can access my
machine (I am moving).

Does anyone know the performance impact of disabling "jit". Is it noticeable?

Cheers,
-- 
Jorge Martínez López  http://www.jorgeml.net



Re: [gentoo-user] Grub2 and is the upgrade a tooth puller.

2012-06-28 Thread Dale
Paul Hartman wrote:
> On Mon, Jun 25, 2012 at 12:05 AM, Dale  wrote:
>> It appears that grub2 is coming soon.
> grub 2.00 has been released!
>
> https://www.gnu.org/software/grub/
>
>


I wasn't expecting it to be that soon.  I guess it will hit the tree
pretty soon then.  Well, we all need to think about the goods and bads
of upgrading or staying with the old.  I'm thinking about using the new
one pretty soon.  Heck, they ticked me off pretty bad with the /usr and
init thingy so I may as well jump off the cliff I was pushed up to.  :/ 

1/4 of the way down, all is good so far.  1/2 way down and all is good
so far.  3/4 way down and all is good so far.  I'm worried about that
sudden stop now.  O_O 

Dale

:-)  :-) 

-- 
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!




[gentoo-user] Re: Grub2 and is the upgrade a tooth puller.

2012-06-28 Thread walt
On 06/28/2012 03:41 PM, Dale wrote:
> Paul Hartman wrote:
>> On Mon, Jun 25, 2012 at 12:05 AM, Dale  wrote:
>>> It appears that grub2 is coming soon.
>> grub 2.00 has been released!
>>
>> https://www.gnu.org/software/grub/

> 
> I wasn't expecting it to be that soon.  I guess it will hit the tree
> pretty soon then.  Well, we all need to think about the goods and bads
> of upgrading or staying with the old.  I'm thinking about using the new
> one pretty soon.  Heck, they ticked me off pretty bad with the /usr and
> init thingy so I may as well jump off the cliff I was pushed up to.  :/ 
> 
> 1/4 of the way down, all is good so far.  1/2 way down and all is good
> so far.  3/4 way down and all is good so far.  I'm worried about that
> sudden stop now.  O_O 

Well said :)  

I've heard a rumor that Windows doesn't like GUID partition tables, so
I haven't yet installed grub2 on my one machine that still multiboots
between operating systems.  (That's my one remaining machine with a
legal install of Windows.)  I confess I'm not interested enough to
confirm the rumor, so I continue to wait because there is no incentive
for me to make the change.




Re: [gentoo-user] Re: Grub2 and is the upgrade a tooth puller.

2012-06-28 Thread Alecks Gates
On Thu, Jun 28, 2012 at 7:12 PM, walt  wrote:
>
> On 06/28/2012 03:41 PM, Dale wrote:
> > Paul Hartman wrote:
> >> On Mon, Jun 25, 2012 at 12:05 AM, Dale  wrote:
> >>> It appears that grub2 is coming soon.
> >> grub 2.00 has been released!
> >>
> >> https://www.gnu.org/software/grub/
>
> >
> > I wasn't expecting it to be that soon.  I guess it will hit the tree
> > pretty soon then.  Well, we all need to think about the goods and bads
> > of upgrading or staying with the old.  I'm thinking about using the new
> > one pretty soon.  Heck, they ticked me off pretty bad with the /usr and
> > init thingy so I may as well jump off the cliff I was pushed up to.  :/
> >
> > 1/4 of the way down, all is good so far.  1/2 way down and all is good
> > so far.  3/4 way down and all is good so far.  I'm worried about that
> > sudden stop now.  O_O
>
> Well said :)
>
> I've heard a rumor that Windows doesn't like GUID partition tables, so
> I haven't yet installed grub2 on my one machine that still multiboots
> between operating systems.  (That's my one remaining machine with a
> legal install of Windows.)  I confess I'm not interested enough to
> confirm the rumor, so I continue to wait because there is no incentive
> for me to make the change.
>
>
I've never had a problem with Grub 2 + Windows (XP, Vista, 7, still
haven't had the will to sacrifice myself for 8).  Although sometimes
it seems, with all the complaining some linux users like to do about
new software, I must be a wee bit lucky.  Been using Grub 2 alpha/beta
for years with much success!  I've so far enjoyed the configuration
more than legacy Grub.



[gentoo-user] Re: Grub2 and is the upgrade a tooth puller.

2012-06-28 Thread walt
On 06/28/2012 05:19 PM, Alecks Gates wrote:
> On Thu, Jun 28, 2012 at 7:12 PM, walt  wrote:
>>
>> On 06/28/2012 03:41 PM, Dale wrote:
>>> Paul Hartman wrote:
 On Mon, Jun 25, 2012 at 12:05 AM, Dale  wrote:
> It appears that grub2 is coming soon.
 grub 2.00 has been released!

 https://www.gnu.org/software/grub/
>>
>>>
>>> I wasn't expecting it to be that soon.  I guess it will hit the tree
>>> pretty soon then.  Well, we all need to think about the goods and bads
>>> of upgrading or staying with the old.  I'm thinking about using the new
>>> one pretty soon.  Heck, they ticked me off pretty bad with the /usr and
>>> init thingy so I may as well jump off the cliff I was pushed up to.  :/
>>>
>>> 1/4 of the way down, all is good so far.  1/2 way down and all is good
>>> so far.  3/4 way down and all is good so far.  I'm worried about that
>>> sudden stop now.  O_O
>>
>> Well said :)
>>
>> I've heard a rumor that Windows doesn't like GUID partition tables, so
>> I haven't yet installed grub2 on my one machine that still multiboots
>> between operating systems.  (That's my one remaining machine with a
>> legal install of Windows.)  I confess I'm not interested enough to
>> confirm the rumor, so I continue to wait because there is no incentive
>> for me to make the change.
>>
>>
> I've never had a problem with Grub 2 + Windows (XP, Vista, 7, still
> haven't had the will to sacrifice myself for 8).  Although sometimes
> it seems, with all the complaining some linux users like to do about
> new software, I must be a wee bit lucky.  Been using Grub 2 alpha/beta
> for years with much success!  I've so far enjoyed the configuration
> more than legacy Grub.

Just to confirm, my reservations are not about Windows, but about GUID
partitions.  Are you using GUID partition tables?







Re: [gentoo-user] Grub2 and is the upgrade a tooth puller.

2012-06-28 Thread Michael Mol
On Thu, Jun 28, 2012 at 6:41 PM, Dale  wrote:
> Paul Hartman wrote:
>> On Mon, Jun 25, 2012 at 12:05 AM, Dale  wrote:
>>> It appears that grub2 is coming soon.
>> grub 2.00 has been released!
>>
>> https://www.gnu.org/software/grub/
>>
>>
>
>
> I wasn't expecting it to be that soon.  I guess it will hit the tree
> pretty soon then.  Well, we all need to think about the goods and bads
> of upgrading or staying with the old.  I'm thinking about using the new
> one pretty soon.  Heck, they ticked me off pretty bad with the /usr and
> init thingy so I may as well jump off the cliff I was pushed up to.  :/
>
> 1/4 of the way down, all is good so far.  1/2 way down and all is good
> so far.  3/4 way down and all is good so far.  I'm worried about that
> sudden stop now.  O_O
>
> Dale

*shuffles his feet*

I've started using genkernel. Once I discovered I can specify my own
kernel configuration, it got a lot less ugly to me. The initramfs
thing hasn't gotten in my way...yet. And it helped me recover an
install process once so far, so I can't complain _to_ much. My only
complaint thus far is its terrible error reporting. And since I'm
using an initramfs, I went ahead and dropped my / on top of a raid5
volume.

But even before I started using genkernel...grub2 sounded like a good
thing. One of the previous threads in here described how you assemble
its configuration, and it made a *lot* of sense, from an architectural
standpoint.


-- 
:wq



Re: [gentoo-user] Re: Grub2 and is the upgrade a tooth puller.

2012-06-28 Thread Alecks Gates
On Thu, Jun 28, 2012 at 7:36 PM, walt  wrote:
> On 06/28/2012 05:19 PM, Alecks Gates wrote:
>> On Thu, Jun 28, 2012 at 7:12 PM, walt  wrote:
>>>
>>> On 06/28/2012 03:41 PM, Dale wrote:
 Paul Hartman wrote:
> On Mon, Jun 25, 2012 at 12:05 AM, Dale  wrote:
>> It appears that grub2 is coming soon.
> grub 2.00 has been released!
>
> https://www.gnu.org/software/grub/
>>>

 I wasn't expecting it to be that soon.  I guess it will hit the tree
 pretty soon then.  Well, we all need to think about the goods and bads
 of upgrading or staying with the old.  I'm thinking about using the new
 one pretty soon.  Heck, they ticked me off pretty bad with the /usr and
 init thingy so I may as well jump off the cliff I was pushed up to.  :/

 1/4 of the way down, all is good so far.  1/2 way down and all is good
 so far.  3/4 way down and all is good so far.  I'm worried about that
 sudden stop now.  O_O
>>>
>>> Well said :)
>>>
>>> I've heard a rumor that Windows doesn't like GUID partition tables, so
>>> I haven't yet installed grub2 on my one machine that still multiboots
>>> between operating systems.  (That's my one remaining machine with a
>>> legal install of Windows.)  I confess I'm not interested enough to
>>> confirm the rumor, so I continue to wait because there is no incentive
>>> for me to make the change.
>>>
>>>
>> I've never had a problem with Grub 2 + Windows (XP, Vista, 7, still
>> haven't had the will to sacrifice myself for 8).  Although sometimes
>> it seems, with all the complaining some linux users like to do about
>> new software, I must be a wee bit lucky.  Been using Grub 2 alpha/beta
>> for years with much success!  I've so far enjoyed the configuration
>> more than legacy Grub.
>
> Just to confirm, my reservations are not about Windows, but about GUID
> partitions.  Are you using GUID partition tables?
>
No, I'm not using GUID right now.  But I don't believe this has
anything to do with Grub 2 itself and from what I can tell you don't
actually use GPT on your dual-boot machine anyway.  Though that would
take away the main reason to upgrade.  Doing a quick DDG search, I see
more positive than negative about Windows + GTP.  I think we should
promote a greater sense of adventure.



Re: [gentoo-user] Grub2 and is the upgrade a tooth puller.

2012-06-28 Thread Bill Kenworthy
On Thu, 2012-06-28 at 20:36 -0400, Michael Mol wrote:
> On Thu, Jun 28, 2012 at 6:41 PM, Dale  wrote:
> > Paul Hartman wrote:
> >> On Mon, Jun 25, 2012 at 12:05 AM, Dale  wrote:
> >>> It appears that grub2 is coming soon.
> >> grub 2.00 has been released!
> >>
> >> https://www.gnu.org/software/grub/
> >>
> >>
> >
> >
> > I wasn't expecting it to be that soon.  I guess it will hit the tree
> > pretty soon then.  Well, we all need to think about the goods and bads
> > of upgrading or staying with the old.  I'm thinking about using the new
> > one pretty soon.  Heck, they ticked me off pretty bad with the /usr and
> > init thingy so I may as well jump off the cliff I was pushed up to.  :/
> >
> > 1/4 of the way down, all is good so far.  1/2 way down and all is good
> > so far.  3/4 way down and all is good so far.  I'm worried about that
> > sudden stop now.  O_O
> >
> > Dale
> 
> *shuffles his feet*
> 
> I've started using genkernel. Once I discovered I can specify my own
> kernel configuration, it got a lot less ugly to me. The initramfs
> thing hasn't gotten in my way...yet. And it helped me recover an
> install process once so far, so I can't complain _to_ much. My only
> complaint thus far is its terrible error reporting. And since I'm
> using an initramfs, I went ahead and dropped my / on top of a raid5
> volume.
> 
> But even before I started using genkernel...grub2 sounded like a good
> thing. One of the previous threads in here described how you assemble
> its configuration, and it made a *lot* of sense, from an architectural
> standpoint.
> 
> 

genkernel error reporting can be improved no end by editing the script
(/usr/share/genkernel/defaults/linuxrc) and sprinkling with echo,
good_msg and bad_msg statements ...

Unfortunately it cant log to a file (or at least I have not tried) so
sleep statements may help so you read the messages.

Copy the above script to a new name and run genkernel as "genkernel
--color --linuxrc=/usr/share/genkernel/defaults/linuxrc.uswsusp
--initramfs-overlay=/var/lib/genkernel/overlay --lvm --menuconfig all "

The overlay is a some extra stuff I wanted in the initramfs for suspend
to disk.

BillK




BillK





[gentoo-user] Re: Is wrong 4k sector alignment still an issue?

2012-06-28 Thread Nikos Chantziaras

On 27/06/12 01:22, Neil Bothwick wrote:

On Wed, 27 Jun 2012 01:06:53 +0300, Nikos Chantziaras wrote:


I'm getting a 2TB drive which uses 4kB sectors instead of 512 byte
ones. I suppose by now everything will "just work" and the various
tools will now by default create correctly aligned partitions?


Thanks everyone for the comments.  I'm using cfdisk, since I find it's
the easiest CLI partitioner (fdisk and parted don't offer menus but you
need to type commands; I hate that).


If you use a GPT partition table, you can use cgdisk and banish the
abominations of extended and logical partitions at the same time.


OK, I now have the new disk.  Unfortunately, it turns out that GPT is 
not an option, since Grub can't dual boot an UEFI/GPT installed Windows 
7 (you can't install Windows on a GPT disk if you don't perform a UEFI 
install of Windows.)  And if Grub can do it, then it's much more 
difficult to set up compared to a BIOS boot.  I surely don't have a clue 
as to how to do that.


So using MS-DOS partition tables in 2012 is still needed.  Hooray!

PS:
And don't get me started on the fact that moving my Gentoo install to 
the new disk is as simple as "rsync -a -x / /mnt/targetpartition" and 
only takes 10 minutes, while Windows has to be cloned using partition 
imaging and modifying partition position offsets so installing it from 
scratch is actually easier.  Sigh...





Re: [gentoo-user] Re: Is wrong 4k sector alignment still an issue?

2012-06-28 Thread David Haller
Hello,

On Fri, 29 Jun 2012, Nikos Chantziaras wrote:
>OK, I now have the new disk.  Unfortunately, it turns out that GPT is
>not an option, since Grub can't dual boot an UEFI/GPT installed
>Windows 7 (you can't install Windows on a GPT disk if you don't
>perform a UEFI install of Windows.)

You need to boot Windows directly via EFI, and linux via an EFI
elilo or grub-efi or grub2 loader (elilo.efi/grub.efi/grubx64.efi in
the EFI-boot-partition).

See: http://www.rodsbooks.com/efi-bootloaders/index.html

>And if Grub can do it, then it's much more difficult to set up
>compared to a BIOS boot.  I surely don't have a clue as to how to do
>that.

http://rodsbooks.com/gdisk/

http://rodsbooks.com/gdisk/booting.html (Section 
"Booting from GPT on BIOS-Based Computers", esp. subsection "Windows"
and "Hybrid MBR Issues").

http://rodsbooks.com/gdisk/hybrid.html
(titled: "Hybrid MBRs: The Good, the Bad, and the So Ugly You'll Tear
Your Eyes Out" ;)

HTH,
-dnh

-- 
Okay, I hate my brain now.  I'm going to take it out back and
pummel some sense into it.-- Mark C. Langston



[gentoo-user] Rebooted and now I only see the word GRUB

2012-06-28 Thread Paul Hartman
Hi,

Tonight I rebooted and only see the text "GRUB" followed by a blinking
cursor, never the grub menu. I'm using grub legacy and ~amd64. Of
course my recovery options depend on GRUB actually working, so I'm
downloading the latest gentoo minimal CD for now so I can hopefully
get in and see what's going wrong and fix it, or reinstall grub at
least.

Anyone run into this problem or have any idea what's causing it? I'm
not sure if GRUB 0.xx was updated recently, I don't remember seeing it
emerged...



[gentoo-user] Re: Rebooted and now I only see the word GRUB [FIXED]

2012-06-28 Thread Paul Hartman
On Thu, Jun 28, 2012 at 11:38 PM, Paul Hartman
 wrote:
> Hi,
>
> Tonight I rebooted and only see the text "GRUB" followed by a blinking
> cursor, never the grub menu. I'm using grub legacy and ~amd64. Of
> course my recovery options depend on GRUB actually working, so I'm
> downloading the latest gentoo minimal CD for now so I can hopefully
> get in and see what's going wrong and fix it, or reinstall grub at
> least.
>
> Anyone run into this problem or have any idea what's causing it? I'm
> not sure if GRUB 0.xx was updated recently, I don't remember seeing it
> emerged...

After booting from gentoo minimal livecd, chrooting into my hard
drive, re-emerging grub:0 (just in case it has to be built against my
latest kernel) and then running grub and doing:

root (hd0,0)
setup (hd0)

it booted normally again. I guess I failed to reinstall grub like this
after a portage update at some point... logs show I last instlaled it
in May, and have rebooted since then without problem, maybe it was
something else. Weird. :)