General Haiku Discussion

Here you can talk about anything relating to Haiku.

Login system for Haiku

Forum thread started by Giova84 on Fri, 2013-05-10 20:45

Hi,
since i started to use Haiku i was feeling a lack of a system to protect Haiku with a login screen.
When i was using BeOS, there was a nice app called LockWorkstation, but unfortunately doesn't work anymore on Haiku. But now i have recompiled and improved this app (new graphic, support to high monitor resolution and a system to keep track of every access)

Maybe someone else can find useful this app:

http://haikuware.com/directory/view-details/utilities/system-system-info...

Login system for Haiku>

Haiku, MBR and formatting SSDs

Forum thread started by Earl Colby Pottinger on Sun, 2013-05-05 13:42

I just discovered a way to format a SSD properly in Haiku.

For those who don't know about SSDs, the most basic read/write internal operations work on 4K blocks. This causes two problems.

[Note: this is a simplified version of what really happens inside a SSD and it's controller.]

1) While reads are always really quick no matter how a partition is set-up on a SSD. If a partition is formatted with a sector/block size that is less than 4K in size then every write operation requires the SSD controller to read in the affected internal block, modify it with data to be written, then write out the changed block data. If instead the partition was formatted with 4K or 8K blocks as the sector size then all writes can be done directly for the affected blocks without any read/modify operations being needed. (This is of-course faster.)

However the above only works properly if the start of a partition is in alignment with the 4K blocks of the SSD.

2) So this bring us to the heart of the matter, and that is the MBR that is written to the start of the drive and then has the partitions written afterwards. Testing both Haiku and Windows 7 OSes, I found the MBR to be the standard 512 bytes in size. This means all sectors are offsetted by 512 bytes from being in alignment with 4K blocks. This is easy to see when you try to create your first partition, the dialog block clearly points out the starting offset of the partition is 512 bytes.

In the past where sector sizes of 256 and 512 bytes were in use then any writes would always fall inside a single 4k block, but Haiku uses 1k, 2k, 4k or 8k sectors for it's partitions. This means sectors will cross the 4K boundary (1 in 4 for 1K sectors, 1 in 2 for 2K ones, and every single time for 4K sectors and twice each time an 8K sector is written.)

Why is this so bad? Well, say we format a partition with 4K sectors, if the partition was aligned then every write would be just a single write operation, but since the MBR forces all the partitions to be out of alignment each write requires a read/modify/write operation and since there is still 512 bytes left over the drive needs to do another read/modify/write operation to write out that final chunk of data. See the problem?

The solution: What we need is some way to write out a 4K MBR. This turns out to be easy to do with the Haiku program "DriveSetup".

[Warning: The following procedure will wipe out *ALL DATA* off the drive. Do not do this to your boot drive unless you have another way to boot your system. And remember all data on the drive will be lost.]

First, delete any partitions or mapping that may be already installed on the drive until you have only the single entry for the drive itself in your DriveSetup window.

Select the drive to be partition/formatted.

Choose to format the entire drive as "Be File System".

Choose the sector size as 4K.

Agree to the formatting. Wait until finished.

Now "Initialize" the drive with "Intel partition mapping".

Now if you select the following "" entry and try to "Create" a partition you find that the offset is now at 4096 bytes. And since partitions sizes are multiples of 1 MByte all the following partitions are also aligned.

Good Luck everyone,

Questions?

Flattr donations

Forum thread started by dzaragoza on Tue, 2013-04-30 20:30

Hello

I think it would be great to be able to make donations to Haiku via flattr. Anyone thinks the same? Would it be possible to add a flattr button on the Haiku donations page?

Regards

Issue with Preferences > Appearances

Forum thread started by macsnafu on Tue, 2013-04-16 02:28

So I'm using alpha 4, and I thought I'd go into Preferences > Appearances and change the color of that most prominent feature, the title bars. I pick a color and...nothing happens. I close the Appearances window, and still nothing happens. The title bars are still the same color. So then I reopen Preferences > Appearances to check again, and lo and behold, this new window has the new color for its title bar. But all the other windows haven't changed. So I open some more new windows and programs, and yes, they all have the new color.

So apparently, changing colors in Appearances doesn't change any existing windows, just new windows opened after the change. While that in itself could lend itself to some creative displays (change colors, open a window, change colors, open another window, etc.), it's bad user design to not acknowledge the preferences change or at least confirm that the colors have, in fact, been changed.

Of course, I suppose this could already be a known issue, but I thought I'd mention it here, anyway.

Can anyone recommend the best laptop to enjoy Haiku

Forum thread started by lalit on Mon, 2013-04-15 22:38

I already got macbook pro second gen. But I likes Haiku a lot. I feel the picture and video qualities are more natural in Haiku. Can anyone recommend the best laptop to enjoy haiku's multimedia features. I have got a home theatre with bose 5.1 and sony projector. I wish to have a laptop with hdmi output which is fully compatible with haiku. At least the external display, overlays video and 5.1 sound output through hdmi should work.

I am eyeing on Sony T-series 15" laptop. If you have any better suggestion, please suggest.

Stack and Tile feature

Forum thread started by macsnafu on Sat, 2013-04-13 18:34

Hey, this stack and tile feature is pretty nifty! But this is something new with Haiku, right? I don't remember BeOS having this.

As the saying goes, when all else fails, read the manual. Or in this case, the Haiku User Guide. As easy as Haiku is to use, there are plenty of features that just aren't obvious if you don't know about them.

Building Haiku under windows

Forum thread started by fil on Thu, 2013-04-11 11:04

Hi all,

This is perhaps very stupid question, but can I build Haiku from within windows OS?
I don't need it to run...just to build it to know my changes are buildable before build it under Haiku itself.

I really hate to use other development environments other than MS VS.

10x

Syndicate content