Further question, using pipe with cat will change null data into zero, does this cause any other issues?
On Fri, May 17, 2013 at 10:37 AM, David Both < [email protected]> wrote: > > On 05/16/2013 10:21 PM, Gareth wrote: > > Thanks for your reply Scott [?] > > My problem is to install a system, Fedora or Centos, on a hard drive. I > have used rsync the data in ext3fs.img to a new hard drive, and find data > is right but I can't boot from the new drive. So I want to know how MBR is > set in livecd-tools. > > > # If your livecd is built correctly and you have a functioning anaconda > installer on it you can run, it should just automatically install the > bootloader. > You're right, but bootloader is installed correctly but the setting is not > my want (maybe I take some wrong steps). > > # If you want to manually install grub2, you can run grub2-install > /dev/{devicename}. That assumes you have a working grub2 environment. > I'm using this tool and testing now. I think it will solve my problems. > > BTW, the script 'livecd-iso-disk' use a 'strange' way to set MBR: cat > mbr.bin > /dev/sda. I'm now sure this way could work. I use the lastest > version script to copy content on /dev/sda, and it boot failed (seems like > finding some usb device?). > > This is not a strange way to do this at all. It is a trivial way to copy > the boot record to the first sector of the hard drive, /dev/sda as opposed > to a partition such as /dev/sda1. There are other methods that would > accomplish the same thing such as *dd if=mbr.bin of=/dev/sda*. This is > so very easy because in Unix/Linux, "everything is a file," including hard > drives and partitions on a hard drive. > > > Thx > > > > On Thu, May 16, 2013 at 11:30 PM, Scott Dowdle <[email protected]>wrote: > >> Greetings, >> >> ----- Original Message ----- >> > I'm now trying install a system on a disk, such as /dev/sda, in a >> > livecd environment. >> > I think I could just follow the steps of making a live cd without the >> > package step. It seems work, but I found there is no MBR settings >> > during making a livecd. >> > >> > >> > I also tried the 'iso-to-disk' script onto a disk. It's bootable, but >> > failed when finding a usb device. >> > >> > >> > I'm confused about the progress of setting correct MBR (to a grub, or >> > to a partition). Is there any clear steps to do that? >> >> I'm not really following you. You have a livecd you are booting from >> and wanting to install it to a hard drive? That's a typical install >> scenario. If your livecd is built correctly and you have a functioning >> anaconda installer on it you can run, it should just automatically install >> the bootloader. I've been building remixes since Fedora 9 or so (currently >> doing F17, F18, and F19) and I haven't had any problems with that. >> >> If you want to manually install grub2, you can run grub2-install >> /dev/{devicename}. That assumes you have a working grub2 environment. >> >> If I'm nowhere close to answering your questions... please explain a >> little more what the problem is. >> >> TYL, >> -- >> Scott Dowdle >> 704 Church Street >> Belgrade, MT 59714 >> (406)388-0827 [home] >> (406)994-3931 [work] >> -- >> livecd mailing list >> [email protected] >> https://admin.fedoraproject.org/mailman/listinfo/livecd > > > > > -- > Gareth > > *Cloud Computing, OpenStack, Fitness, Basketball* > *OpenStack contributor* > *Company: UnitedStack <http://www.ustack.com>* > *My promise: if you find any spelling or grammar mistakes in my email > from Mar 1 2013, notify me * > *and I'll donate $1 or ¥1 to an open organization you specify.* > > > -- > livecd mailing > [email protected]https://admin.fedoraproject.org/mailman/listinfo/livecd > > > -- > > > ********************************************************* > David P. Both, RHCE > Millennium Technology Consulting LLC > 919-389-8678 > [email protected] > www.millennium-technology.com www.databook.bz - Home of the DataBook for Linux > DataBook is a Registered Trademark of David Both > > > > -- > livecd mailing list > [email protected] > https://admin.fedoraproject.org/mailman/listinfo/livecd > -- Gareth *Cloud Computing, OpenStack, Fitness, Basketball* *OpenStack contributor* *Company: UnitedStack <http://www.ustack.com>* *My promise: if you find any spelling or grammar mistakes in my email from Mar 1 2013, notify me * *and I'll donate $1 or ¥1 to an open organization you specify.*
<<328.png>>
-- livecd mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/livecd
