Jump to content

Netaro

Netaro

Member Since 08 Jun 2009
Offline Last Active Dec 27 2012 07:51 PM
-----

Topics I've Started

How to copy a disk using dd command?

14 June 2010 - 10:37 AM

Although i'm using mac os x, it's rather a Linux/BSD question, so it goes there... I think.

So, as I noticed, MacOS X's Disk Utlity doesn't allow to make a copy of the whole disk, only it's partitions (which sucks, as bootloader won't be copied then.). As both my laptop's hard disk and my spare external hard disk are both seagates 320gb (one is 7200rpm, second is 5400rpm), I've decided to make a copy of my disk onto my external, as it's doing nothing at the moment. So, I'm going to use dd command. However, I've had some... bad times with dd, so I'm little paranoiac now.

As now, I'll try to do this -
dd if=/dev/disk0 of=/dev/disk1
.
But then, I don't know whether it's correct. I don't know what's the difference between /dev/diskNumber and /dev/rdiskNumber, and google found me nothing. so which one should I use? Also, what should i set as block size? Leave it blank, or set bs=512? Calculate the count value or leave it blank?

Samsung q210 - problems with retail installation

01 November 2009 - 09:53 PM

I've posted that topic already in 10.6 installation section, but i think that was a wrong place to post the thread, so i'd like to repost the questions there, as maybe it's the more suitable place.

So, i currently have samsung q210 laptop (specifications - Here), that is currently running 10.5.7.
Everything works : I use CoreVidia injector, voodooPS2 with trackpad and VoodooHDA.

So, i bought 10.6, and i've prepared the external drive. Installation works ok. I install OHR, PlatformUUID, fakeSMC, and NCPUPM kexts, and chmod and chown them appropriately. I also install modified DSDT.aml. I also install chameleon RC3.

And there the problems begin.

I search this forum for appropriate kexts for PS2 and HDA. First question: What shall i do with those prefPanes that are in downloaded packages? Where to put them?

Ok, anyway, so i install VoodooPS2 with the apple ps2 nub in the package and HDA. I also create an EFI string for my video card.

And here's another problem - the setup hangs when booting with efi string, or with GraphicsEnabler - Yes in boot.plist. WIthout them, it can start. So, how do i make an EFI string, or what's the newest NVidia injector for my card for SL?

Next problem - looooong boot time. It takes two to three minutes to boot it. What's the problem?
Next problem - No sound during the startup. So, SL's VoodooHDA is not working on my ALC226. But it works on my leopard. What to do?
Next problem - Keyboard is detected. But my touchpad doesn't work, so i can't get past through the initial setup. I don't have any mouse ATM, and even if, i'd be more than unwilling to use it, because that's a laptop that's often used in places where it's impossible to use the mouse. What to do?

Samsung q210 - problems with retail installation

31 October 2009 - 11:07 AM

So, i currently have samsung q210 laptop (specifications - Here), that is currently running 10.5.7.
Everything works : I use CoreVidia injector, voodooPS2 with trackpad and VoodooHDA.

So, i bought 10.6, and i've prepared the external drive. Installation works ok. I install OHR, PlatformUUID, fakeSMC, and NCPUPM kexts, and chmod and chown them appropriately. I also install modified DSDT.aml. I also install chameleon RC3.

And there the problems begin.

I search this forum for appropriate kexts for PS2 and HDA. First question: What shall i do with those prefPanes that are in downloaded packages? Where to put them?

Ok, anyway, so i install VoodooPS2 with the apple ps2 nub in the package and HDA. I also create an EFI string for my video card.

And here's another problem - the setup hangs when booting with efi string, or with GraphicsEnabler - Yes in boot.plist. WIthout them, it can start. So, how do i make an EFI string, or what's the newest NVidia injector for my card for SL?

Next problem - looooong boot time. It takes two to three minutes to boot it. What's the problem?
Next problem - No sound during the startup. So, SL's VoodooHDA is not working on my ALC226. But it works on my leopard. What to do?
Next problem - Keyboard is detected. But my touchpad doesn't work, so i can't get past through the initial setup. I don't have any mouse ATM, and even if, i'd be more than unwilling to use it, because that's a laptop that's often used in places where it's impossible to use the mouse. What to do?

How to refresh a window?

19 October 2009 - 09:49 AM

So, I'm doing Hillegass book, and i'm stuck on chapter 13 challenge.
The I've done it 90%, but then, one thing still remains: "Don't forget to update the window to reflect the new defaults"

So, how do i do that? How do i refresh a NSWindowController window? Because when i click the "reset settings" button, the state of the objects on the window (in this case, a ColorWell and a checkbox) stay the same until i manually reopen the window.

A small problem with Key Path

10 September 2009 - 11:39 AM

So, I've began learning how to program in obj-c.

As for now, it goes well, but I'm stuck at the moment. The problem is, i have a NSMutableArray that contains NSNumber. I want to use @avg, @min and like.

My code doesn't work. It shows 0. So, what's the problem here?

srand(time(NULL));
	
	for(int i=0;i<10;i++){
		NSNumber* number = [[NSNumber alloc] initWithInt:(rand()%80)];
		NSLog(@"%d",[number intValue]);
		[array addObject:number];
	}
	
	NSNumber* avg = [array valueForKeyPath:@"@avg"];
	NSLog(@"%s:%d","AverageValue",avg);
	NSNumber* count = [array valueForKeyPath:@"@count.intValue"]; 
	NSLog(@"%s:%d","Count",count);

I've used two different syntaxes for this. First, i tried the count.intValue, and then i tried only avg, without anything (how's that supposed to work, i do not know, it was nothing but wild guessing on my side here. Idiotic, i know.).

So, how it should look like here?
© 2017 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy