|
I used the Windows Restore on the drive and it built a new MBR. It still doesn't show up since there is no drive letter assigned to it. So I'm doing a partition scan on it. Ugh.....
|
|
|
|
|
On a slightly different note, that's quite a concidence! I'm currently writing a bootloader for drive MBR's
See if you can crack this: b749f6c269a746243debc6488046e33f (This one is much easier than the last one!)
The unofficial awesome history of Code Project's Bob!
"People demand freedom of speech to make up for the freedom of thought which they avoid."
|
|
|
|
|
The partition table describes where on disk the partition is. MBR (master boot record) is a piece of executable code that (IIRC) lives in that same disk sector and allows you to boot from the drive. DOS (or Linux) fdisk (among other tools) will create a partition table and allow you to create partitions. Fixmbr exists to recreate the boot record, and it may recreate an empty partition table along the way if it sees you don't have one. All you need is a partition table. An MBR isn't needed, but won't hurt either. You can (in theory) recreate the partition table without altering the data in the partition.. which is what you need to do.
Perhaps use fdisk from a Linux live CD to create a new partition table and add a partition that includes the entire disk? Then perhaps use fsck in a non-destrucive mode to validate that the file system isn't corrupt and that you got the partition settings right?
Good luck.. whatever trashed the partition table may have trashed the partition data too.
patbob
|
|
|
|
|
Went for a job interview today after the basic question on .net Framework he asked some question on memory management. I answered the question like GC and others…Then he went on to ask “How does .net framework allocate memory” and my answer was…
If I wanted to know that I would have learned C or C++ and not C# and If I remember correctly I am here for C# interview and .NET framework does the memory management for me(Well most of the time). 
|
|
|
|
|
Q: “How does .net framework allocate memory?”
A: "Very well: it fits my needs, thank you .NET !"
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
|
CS2011 wrote: LOL....This would have got me the job for sure...
Yes, it would have.
You could have said "I don't give a flying ****, so long as it ain't broken", and it would have got you the job, because it's honest, and shows, in a minor way, that you are not so likely to waste time on things that don't need time spent on them.
But it's a bad idea to give someone an "I'm smarter than you!" answer, especially if you don't get their reasons for asking the question -- i.e. they probably wanted to weed out candidates who would give an "I'm smarter than you!" answer, because they're looking for a team player.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Mark Wallace wrote: But it's a bad idea to give someone an "I'm smarter than you!"
could not agree more on this. but some time it's just Irritating.
|
|
|
|
|
Well that is better than my answer.
People are more violently opposed to fur than leather because it's safer to harass rich women than motorcycle gangs
|
|
|
|
|
CPallini wrote: Q: “How does .net framework allocate memory?”
A: "I don't need to know that in most cases, so .NET has executed Garbage Collection on that piece of allocated information."
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
Good answer, could you give me, please, any reference?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
As soon as i find a FREE Position
|
|
|
|
|
Sorry, but if a reference existed, GC wouldn't have taken action.
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
I'll try to malloc the time.
|
|
|
|
|
Well, someone here will surely pointer you in the right direction.
|
|
|
|
|
I don't know right now. I have a heap of other matters to take care of. If you really need to know, I can give you an entire stack of books on the subject.
"I just exchanged opinions with my boss. I went in with mine and came out with his." - me, 2011
|
|
|
|
|
CPallini wrote: A: "Very well: it fits my needs, thank you .NET !"
That's the right answer. I'll often ask the same kind of question myself, just to see if I'll get an "I'm a God, so I don't need to play nicely with others!" reply.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Its one thing to know how to use a library. It's another to understand what it does and why. I suspect they were looking for the latter type of person.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Mark Nischalke wrote: Its one thing to know how to use a library. It's another to understand what it does and why.
It is true. And I knew the answer of the question (it does based on the Metadata and yes I can go in depth) but my point was do we actually need to know that how does .net framework allocate memory and if yes why do we need to know that and how it’s going to help me in write better C# program
|
|
|
|
|
While I give your response a 5 and it is accurate for most .net developers (I hope) I'm reminded of the person that was hired at a place I worked at didn't know why a DVD wouldn't read in a CD drive.
People are more violently opposed to fur than leather because it's safer to harass rich women than motorcycle gangs
|
|
|
|
|
That reminds me of once when I called support because my CD drive wasn't working. I had a DVD in it.
I know why that wouldn't work though, I just failed to check whether said disk was CD or DVD.
|
|
|
|
|
CS2011 wrote: why do we need to know that and how it’s going to help me in write better C# program
I think the question answers itself.
The more you know and understand how it works the better decisions you will make in constructing your applications. In a web application, ViewState, Session state and Application state can all store objects and data. Why use one over the other? Without the knowledge and understanding how they function your application could have serious performance or security issues.
The attitude of just let the framework handle it is fine for a junior level developer. If you want your career to progress, then learn what the framework actually does.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I don't think knowing how does .net frame work allocate memory is going to help me writing more efficient program in C#(ya in C++ and all it's different story) because you can not control it any way. If you can i would definitely like to learn that.
|
|
|
|
|
Its not a matter of being able to control it or not. It's a matter of understanding how and why it works. If I've encountered a problem I want to know why it was a problem and how the method works so I can avoid the issue in the future or take other mitigation.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
CS2011 wrote: I don't think knowing how does .net frame work allocate memory is going to help me writing more efficient program in C#
Read my Tip[^].
I'd blame it on the Brain farts.. But let's be honest, it really is more like a Methane factory between my ears some days then it is anything else...
-----
"The conversations he was having with himself were becoming ominous."-.. On the radio...
|
|
|
|