Grub-hell, looking for the right way.

Hi
due to a problem with my hard disk (4 partitions and over 100Gig free space -> repartitioning needed to be able to use it) I wanted to get grub loaded from another partition, being the one arch resides on. So I used grub-install and I went through hell... Error 15, error 17, ... I used knoppix to restore everything and now I'm able to boot again.
But I kind of lost my confidence in my grub knowledge and wanted to know what the best way is to install grub. I've tried grub-install and the regular grub prompt root and setup approach but it just didn't work... It may have to do with the funky device names from the new pata driver...
Does those names influence the interpretation of devices.map or the "root=" flag in the kernel line?

insulae wrote:
Ok i have mi GNU/Linux installed in /dev/hda1 so i do:
1- boot with a liveCD
2- in a console i run :
mount /dev/hda1 /mnt/
mount -o bind /dev/ /mnt/dev/
mount -o bind /proc/ /mnt/proc/
then i do a chroot
chroot /mnt/ /bin/bash
then i run grub-install
grub-install --recheck /dev/hda
if you have a error:
in some case you must erase the info in you /etc/mtab or replace with the info of the "liveCD /etc/mtab" i don't remember but you can try .
And can't you do the same when you are already in arch? I am able to boot now but I just want to install the boot loader to another partition (being sda), so last time I just ran grub-install sda and made a menu.lst based on the previous one and the info in devices.map but everything went wrong and I needed to revert to the old situation...
It seems a little awkward to go download a live cd just to install grub, doesn't it?

Similar Messages

  • Looking for the right application.

    What is the equivalent of the Notepad on the Macbook Air?

    I am supposing you are looking for a text editor, and NOT a word processor.
    I was one looking for an equivalent, and found some difficulty in finding one. IMHO, Apple devastated TextEdit with the advent of Lion. They added "features" which removed its ability to act as a simple text editor. For a while, I simply installed a copy of the Snow Leopard version, but was on the lookout for a super-simple editor for editing txt files, and not adding any formatting, paragragh styles and other features which can ruin batch and text files. I also did not want anything which littered the disk with "versions".
    If you are truly looking for the closest equivalent to "Notepad", I have found an app in the Mac App Store, curiously called "Notepad", a simple TXT Editor By Kupon.BG Ltd. It is even better than Apple's old editor.
    Just do a search within the app store for "notepad", and select the first entry...the one by Kupon. Or use this link.

  • Looking for the right List...

    Hi there!
    I want to use a List class to hold a potentially large number of elements. I don't care about randomly accessing elements; only Iterators will be used to iterate through the List. What I mostly care about is storage overhead and garbage collection.
    ArrayList and Vector have the problem of re-allocating memory and copying their internal array as you add elements - in case you don't know the exact number beforehand, which is my case.
    On the other hand, LinkedList creates a new object for each element you put in the List. All these objects will have to be garbage collected at some time, and this takes resources. In my case, I could have 10s or 100s of objects, each creating its own List with 10s or 100s of objects.
    So, essentially, I'm looking for the best trade-off. Anybody done some stress-testing?
    Thanks a lot!
    Vagelis

    Well... it depends.
    If you know up front how many entries there are going to be in each list and the lists are fairly stable then you'd be best off going with an ArrayList. If there's a lot of addition and removal of items in the list and you have no clue how many objects there are going to be in each list, then you might be better with a LinkedList. It may also depend on how you remove entries from the list (by index or by object value) or whether you just throw a whole list away and start again.
    Personally I've used ArrayLists of ArrayLists containing 10s or 10000s of objects and "been okay", by which I mean this has never been the performance bottleneck in my system.
    In extremis (particularly if performance is really critical and you know quite a lot about how your objects are to be organised) it might be more sensible to roll your own implementation (for example, if an object appears only in one list at a time then it could be made "Listable" and hold its own forward and backward references to aid in its insertion in a linked list).
    If you can give some more information on the exact required behaviour then people can help more.
    In the meantime my recommendation is to use an ArrayList and if performance becomes a problem, profile the execution later and consider switching.

  • Looking For the Right Lens

    Hello, I am a casual photographer and really just learning this great hobby. I got into it trying to get good pictures of my daughters during their ballet performances. Each step I've taken has got me a little closer to getting good pictures of them but I'm quickly running out of time. My last step was to purchase a T4i. I mainly use the kit lens 18-55 for most of the shots of them and sometimes the 55-250 if I want to get close in. I generally crank up the ISO so I can use a faster shutter speed. I find that ISO 6400 with a shutter speed of 1/400 in general is giving me the best results but not anywhere near perfect. I've pinballed around looking at lenses and my head is swimming and frankly I don't know enough to make a great desicision. The current lens I'm looking at is the Canon EF 24-105 f/4 IS USM. The other two lenses I own both go to 5.6 and I was hoping the fixed f/4 would let in more light letting me reduce the ISO for a less grainy picture. Going back and looking at most of my shots I'm usually in the 30-50mm range but that can change depending on where I get to sit at each show so a zoom lens is mandatory for me. I really want to stay around $500 to $600 if at all possible and think I can get that lens at that price range.
    My second use for the camera is to film my younger daughter singing at different school or social events with an occasional picture thrown in. Would the above lens work well for that? The current  lens choices I have suck. They are noisy and hunt for focus. I've heard rave reviews of the kit lens 18-135 STM for it's fluidity of movement in almost comeplete silence. I got to play with the lens a few weeks ago at a party when someone asked me to take some pics with their camera. I marveled at the speed and silence of the focus motor. I believe the f stops on it are the exact same as my current lenses though. So If I get it as well I'm guessing I'd be in the same boat as above but with better video. If I do get this STM lens would I get the same quality pics as the kit lens I have now or is it a little better than my current  set up? The person who's camera I borrowed loved it but they aren't a photographer by any means. Any recomendations here are appreciated as well.

    OK let's give this s go.
    If you are shooting a f5.6 at ISO 6400 and you decide to get an f4 lens, you will be able to shoot the same scene at ISO 3200. That lens is one stop faster.  Not a big deal.   But, on-the-other hand if you got a f2.8 lens you are talking another stop off.  The ISO would now be 1600.  Pretty good, I'd say.
    Unfortunaltely an f2.8 lens isn't going to be cheap. Sigma has a 17-50mm f2.8 and even better a 18-35mm f1.8.  The f1.8 will allow you to drop more than another stop off your ISO to around 640.  Generally speaking the lower the ISO, the less noise in the photo and the better it will look.  But these are a little short of the mm (focal length) you say you need.
    Any of these lenses, and the outstanding EF 24-105mm f4 will make way better pictures than your current kit lenses do. Tamron also has some choices in this area, too.
    The ideal choice would be a 24-70mm f2.8 but they are going to be way more expensive.  The Sigma being the cheapest in this bunch, again.  The Canon EF 24-70 f2.8 L IS being the best lens there is, period, and a price tag to prove it.
    The EF-S 18-135mm is a better lens than what you have but is not going to help the ISO problem.  You need, one, more light on the subject or, two, a faster lens.
    Another idea!
    If you can live with a fixed focal lemgth, or prime, lens, you could get the EF 50mm f1.8 or better yet the EF 50mm f1.4.. Now were're taling. f1.4 is four stops faster and your ISO would drop to 400.  Around $110 bucks and $350 respectively.  Sound good?
    There are some more prime lens choices for you.  Get on the Canon web site and gaze at the primes and see if one or two might just fill the bill.  The primes also have the advantage of being outstandingly sharp.  Light years ahead of your kit lenses.
    Sigma has some great primes, too.
    EOS 1Ds Mk III, EOS 1D Mk IV EF 50mm f1.2 L, EF 24-70mm f2.8 L,
    EF 70-200mm f2.8 L IS II, Sigma 120-300mm f2.8 EX APO
    Photoshop CS6, ACR 8.7, Lightroom 5.7

  • I am looking for the cheapest way to sample simultaneo​usly 4 or more channels at 2Ms/s (ore more).

    it's very important for my application both sample simultaneously and rapidly (more than 2 MHz).
    I know that I can use a digital oscilloscope but it's limitate to 2 channels and to much expensive.
    I'am looking for a smart and cheapest way to perform my application, if it's possible.

    Timmy,
    Your best solution is to use a PCI-6110 simultaneous sampling board which can sample each channel at a rate up to 5 MS/s.
    If you are using the PXI platform, you can use the PXI-6115 which can sample each channel up to 10 MS/s simultaneously.
    Both of these boards can be found in the National Instruments catalog available online at www.ni.com

  • Looking for the best way to upgrade OS

    Ok I have just reinstalled the old OS X 10.3.9 onto my 14" ibook g4 1.33 and I have 768gb of Ram with a 60 gb hdd. I was running OS X 10.5.8 the reason that I did this was I bought the laptop at a pawn shop and everything on it had the other person user name to it. I wanted this to be mine so I re did the whole thing. Now I need to know which way to upgrade the OS should i get 10.4(tiger) first then go to 10.5, or would be going straight into 10.5 be a better route. I am wondering this because I am new to this platform, and I do not want to do things the wrong way. If you guys and gals have any Ideas on which is the best course of action to take it would be huge welcome.
    Thanks again Beny

    what is it specifically you wish to do? Right now, the widest support is going to be for 10.4 & 10.5. The 10.4 disc are so hard to come by & copies of leopard are drying up fast.
    Now, not to lower expectations, but with your iBook, but most online video streaming is going to have studder & you won't be able to play HD content. iMovie 09 won't install without a hack.
    With that said, your iBook should work fine with iPhoto, DVD playback & files which are non HD - h.264 codec based, Firefox, lots of printers & scanners, media & file sharing over a local network, wireless connections (with good routers like linksys or the aiport bases).
    when I take a machine & install fresh, my core list of apps include firefox, camino (mozilla based browser, runs lighter than ff or safari), VLC, perian, flip4mac, Cyberduck ftp, and some office suite (iWork - Neo Office - MS Office).
    anything else you would like to do? hope this helps

  • Looking for the right forum

    I have a question about a web application I am working on using ASP.Net, MVC and Razor. I can't find the right forum. When I looked at the .Net forums none of the questions asked there looked even remotely like what I needed.
    I have classes in C#, Views and Controllers and have HTML 5 mixed with Razor to get the views to work.
    Scott

    Thanks for the reply. I use that forum. I thought it was different from the rest of the MS forums. Unfortunately sometimes someone will answer a question with a meaningless response, but it appears to have been answered by others and is ignored from that
    moment on even when you ask for clarification. MikesDotNet is the only one I have had respond in a clear and concise manner, but I imagine he works too and can't be counted on for every question. The Microsoft information is sometimes helpful, but many times
    does not address the actual issue for which we ask for help. In this particular case I need info on entering time in hours and minutes for an Int64 property. If you try to find it on Microsoft your eyes cross because nothing is said about hours and minutes
    except as a part of the DateTime. If there is some correlation then it escapes me and that means Microsoft's information is unclear or incomplete.
    Oh well, back to ASP.Net. Thanks again.
    Scott

  • Looking for the right agenda

    hi people, I'm looking for an agenda where i can put more people in at once fore my business and when one of my jobs falls out that the agenda adapts. Can anyone help me? grts Johan

    Okay installed Microsoft office 2013 and then used that to make a sync and it workt
    but i lost loads of events whille syncing the calander :'( any way to get them back ?

  • Looking for the right collection for a specific problem

    Hi guys,
    Just wanted to say great work you guys are doing here. the forum has definitely helped me a lot in the past.
    I am currently having a problem selecting a collection for this specific application that i have to do for my final year project. I am looking for a way to store a bunch of strings a collection that uses the actual string as its key and stores the number of times that the string have been added to the collection as its value.
    so for e.g
    String a = "a";
    String b = "b";
    String a2 = "a";
    String c = "c";
    /**Here is where i create my collection */
    // Collection mycollection = new collection
    // mycollection.add(a);
    // mycollection.add(b);
    // mycollection.add(a2);
    // mycollection.add(c);
    /**if you request for the string a or a2 the collection should return the number of times that string appead e.g */
    // System.out.println(mycollection.get(a));
    //this should print 2
    Does such a collection exist? I remember using something similar when i was learning c++ but i havent been able to find what i am looking for in the API documentation. Please help.
    Frank

    I think what the OP is looking for is probably a Bag. Unfortunately the default collections framework does not provide a Bag interface or implementation. You could look into using the Jakarta Commons Collection, they do provide those (look at the API[url] as well.

  • Looking for the right container

    I hope I can describe this accurately. I am looking for a
    container similar to a panel, but with its right border
    transparent. The appearance I hope to achieve is something like a
    sidebar which will slide from the side of the parent control panel
    on creationComplete.
    Any ideas of a possible container would be
    appreciated.

    Or if you like it quick and dirty you could mess up a Panel
    by adding a mask to it; something like this:
    <mx:Canvas id="mySliderThingy" left="50" top="20">
    <mx:Panel height="120" title="Something panel-ish"
    mask="{themask}">
    <mx:Label text="Perhaps not the best idea of all times,
    but still..." />
    </mx:Panel>
    <mx:Canvas id="themask" left="10" height="100%"
    width="100%" backgroundColor="#123456" />
    </mx:Canvas>
    Probably not a very GOOD idea, but it is an idea... ;-)
    hth / Culme

  • Looking for the right adobe solution

    I'm looking for a solution I'm sure resides in the Adobe suite of products but am not sure of the best program(s) to use. I want to create a cross platform GUI menu for content CDs. The content is not active multimedia content, but mostly PDFs of print publications. Most users will be on Windows, but the result should, in good conscience, be cross platform. Since many of the users will be on computers that prohibit autorun (i.e., gov't), I want to also configure it to not leave the user in the lurch because they can't autorun. I hate it when that happens--staring at an explorer/finder window full of unintelligible files, not knowing where to start.
    An interactive PDF, built in InDesign, with links established to source PDFs in a designated folder? Any prospective user is going to have Acrobat, if only Reader. I'm a print designer and when I step off into the multimedia, interactive thing, I lose my bearings. There are so many great tools in Adobe, I want to go down the right trail and not off a cliff.
    Thanks.

    Thanks. I will look into that. In fact, my portfolio is an interactive PDF. Wth the increased interactive components in CS5, I thought there MUST be an Adobe solution. I supposed one might be able to create links from a menu design to the many PDF-publications in a folder like a TOC link would do. The folks, very nice I might add, who work in IT where I work are on the Windows/Sharepoint kool-aid diet. I do not think they see Adobe as a solution for ANYTHING. All I want to do is help produce a functional, professional product. I not sure it's necessary to the Encore-level product, especially if the content is not active DVD content.
    Thanks very much. I really appreciate your response.

  • Looking for the Right Apple for me (a dumb Windows guy ;) )

    Yeah, I'm a Windows person, but I'm looking to do some filming. Macs, I know, are the best at this.
    I came into this particular board because I'm looking for a decent mac, but I'm a little broke (About to spend 1500 on a camcorder...so yeah).
    I saw the G4 powerbook and thought that it'd be perfect. Now, my friends, I have a few questions for you.
    I'm looking at errr...a site to buy a used mac(not sure if that is taboo on this site, so ignore what I said if it is) for a used mac.
    I am either going to get a Sony DCR-VX2000 or a Pana
    AG-DVC30, both are MiniDV. A) Is a G4 powerful enough (in your opinion ) and B) Do Macs have external DVD burners? Seriously, I looked and found nothing. Do they just come with them or something? Completely confused on that.
    Yeah, I know I probably used wrong terminology, etc. and I apologize. I'm just tryin' to find a good computer to do video editting, etc.
    Errr...okay that's all I can think of. Thank you in advance.
    Not yet   Mac OS X (10.4)  

    You could do that, but when you want to do some
    actual editing, it is better if you do it on the
    internal.
    I disagree. The internal hard drive is only a 2.5" and is limited in throughput compared to an external 3.5" drive. Second, while the video-editing software is trying to read footage off the disk while editing, it will fight with the OS and the application over access to the disk heads. If there is insufficient RAM, then all three will additionaly fight with virtual memory transfers.
    Whether the internal has the room or not, you'll probably get better performance by letting the internal drive handle system, vm, and application tasks, and leave the footage on a fast external disk like a 7200RPM FireWire drive. Then, if you are using Final Cut Pro for instance, you also set your scratch disk to the fast external (or preferably a completely different fast external).
    It's fine to edit on the internal if you have the room and you must be very mobile, but I think that top performance will come from reading/writing footage and renders to external drives, probably hanging off both your built-in FireWire port and a PC slot FireWire card. You will then be able to take advantage of parallel read/write streams, and prevent your entire operation from being bottlenecked by a single, slow laptop hard drive. Note that the 160GB notebook drive is only 5400RPM. You will also extend the life of your internal drive by not hammering it so hard.
    In a computer like the G4 which is so constrained by its low CPU and RAM ceilings, using fast external hard disks is one of the cheapest/easiest ways to maximize performance. I love my PowerBook but if I was going into video editing for a living I would go get myself a dual-core MacBook Pro immediately.

  • Prosumer looking for the right desktop to edit hd footage...

    Hi Everybody,
    I have a question for all of you, but before I ask the question I have searched high and low for an answer to my question and although I've found people in similar situations, I need to find an answer for my specific needs. Okay here it goes, I have an had camera Sony Sr11 and I want to edit the footage, somewhat flawlessly, I want it to run as smooth as possible b/cuz my current laptop (dell 1520 2.4 Ghz, 4GB Ram, non-dedicated graphics) isn't cutting it. I'm not a film student or anything I just like to make movies it's a hobby and I do it for family and friends that sort of thing. I intend on using final cut express to get that particular job done, I also have thousands of photos..and I don't plan on putting them on the hard drive of my computer, they're kept in an external hard drive. I like to edit those as well I wanted to use aperture for that. So the two main programs I want to use are final cut express hd and aperture...now for the third thing...I do a little gaming and I mean a little..I play sims 2 and I want to eventually play sims 3...so I want a computer that can run those games at the highest settings...compared to other games I don't think that's asking much but I don't want medium settings I want high settings...
    So those are my main concerns...running final cut express, aperture, sims 2 and eventually sims 3...should I get the new Imac 24" 3.06 Ghz or should I bite the bullet save a little longer and get the mac pro with an external screen maybe hp or dell...oh and one more question do you have to be a "computer major" to get the adc discount b/cuz I'm a pharmacy student???
    Again thanks for your help everybody

    hey there VXII,
    the discount is available to any one who's a registered student w/ a valid ID- check w/ your school bookstore, take your ID to an Apple Store or check out the Education Store here on apple.com for the requirements. the current iMacs are so new, there may not be anyone who has used it for gaming.... but you might want to check MacWorld in a few days to see if they have new Benchmark tests or Reviews that may help you decide about gaming or just keep the Dell for gaming. to edit the HDD, AVCHD, any not tape-based video over Firewire, you will need an Intel Mac & i suggest you get as much RAM as you can afford, try Crucial or OWC to get it for way less than Apple.
    good luck.

  • Looking for the right preset

    Greetings -
    I just recently purchased CS5 Production Premium and I want to use Premiere to create slideshows with still camera shots.
    My source is RAW images (.NEF). I process them in Lightroom 3 and I export them in .Tif or .Psd formats ranging in size from 1920x1080 to 4288x2412 for use in Premiere.
    The goal is to produce mpeg2 files that can be played on a Western Digital TV Live HD Media Player on rather large HD 1080p TVs (52” – 55”). The mpeg2 files that I have produced with other programs are either 24 or 29.97 frames per second with data rates of 30mbps and appear very good on the equipment described above.
    I do a lot of zoom and pans and add sound to these slideshows.
    I am looking to produce the slideshows with the highest clarity and smoothness possible.
    The question I have is: What Premiere sequence preset is the best choice for this kind of application?
    Any thoughts, suggestions or tips would be greatly appreciated.
    Thanks!

    Thanks for the fast response.
    The WD will handle 1920x1080p which matches my HD TVs.
    Looking at the choices presented for presets I see that the following have 1920x1080p settings:
    AVCHD
    Canon XF Mpeg2
    Digital SLR
    Red R3D
    XDCam EX
    XDCam HD422
    In respect to video is there one of the above that is more suited for stills?
    Thank you Bill for all of your help.

  • Password encrypt - looking for the simplest way

    I�m implementing a web application which needs to encrypt the user password and store it in a database... (the classic scenario).
    what is the simplest way to encrypt the user password?
    I need only the encryption method..

    There are several ways: You do a secure hash of the password and store that. Then, when you want to verify the password, you do the same hash of the proposed password and if they match, you call it macaroni. Alternately, you can encrypt the password using DES or some other private key encryption technique. The technique for authentication is the same: encrypt the proposed password and if the cipertext matches that stored in your DB, the user is authenticated.
    You can do an SHA-1 hash or DES encryption using the JCE.
    See here:
    http://www.ja.net/CERT/Belgers/UNIX-password-security.html
    http://www.itworld.com/nl/unix_sec/12062001/

Maybe you are looking for

  • Oddity in Preview re scan files from CanoScan

    I've come upon some strange behavior in Preview. When I scan a page on my Canon LIDE 25 scanner (via the CanoScan software), the resulting saved file is a .tiff (the default). When I try to open it in Preview, Preview starts, and says that file is th

  • Log4j async appender and line number output

    Hello, I am trying to implement log4j in my application, and would like to log the caller class and the line number of the call. When I do not use async appender, the caller class and the line number are logged. However when I add the same appenders

  • How do I set Firefox to ALWAYS open with my selected home page, and never show the page trying to reopen a previously opened site?

    Frequently when I reopen Firefox, I am greeted with a page that wants to reopen a previously viewed site. I '''never''' want this page to come up when I open Firefox. I only want the home page to open. If I want to revisit a site, I will personally g

  • How to get NI veristand option in LabVIEW tools menu

    HI All I have developed a code in LabVIEW for which I want to develop Veristand model. but for creating the model , the procedure which i followed on this forum is from LabVIEW tools go to NI Veristand and then create the model. BUt in my LV2013 and

  • Debug/trace info from .c program.....

    Is there a way to capture debug info from a c file that was executed by teststand (dll adapter)? To be more clear....I have a dll that has a lot print to screen statements all over the place. I would like to be able to see those prints in somekind of