public inbox for gentoo-user-br@lists.gentoo.org
 help / color / mirror / Atom feed
From: Naira Kaieski <naira@faccat.br>
To: gentoo-user-br@lists.gentoo.org
Subject: Re: [gentoo-user-br] Cópia de um sistema para outro HD
Date: Sun, 07 Aug 2011 18:45:14 -0300	[thread overview]
Message-ID: <4E3F076A.6030407@faccat.br> (raw)
In-Reply-To: <1312743855.39383.YahooMailClassic@web36706.mail.mud.yahoo.com>

Boa noite,

Inicializa a máquina com o LiveCD, faz um chroot no hd que tem o SO e a 
partição /boot e grava o grub novamente na MBR deste disco.

-----------------------> chroot na partição do SO, CUIDADO os comando 
abaixo vão variar de acordo com o seu particionamento.
	mount /dev/sda3 /mnt/gentoo
	mount /dev/sda2 /mnt/gentoo/boot/
	mount -t proc none /mnt/gentoo/proc
	mount -o bind /dev /mnt/gentoo/dev
	chroot /mnt/gentoo /bin/bash
	env-update
	source /etc/profile
	export PS1="(chroot) $PS1"

-----------------------> Gravar grub na mbr
- Ajustar grub.conf
- Gravar o grub na mbr dos discos, executar o comando "grub" no shell
	grub>
	grub> find /boot/grub/stage1
  		(hd0,0)
	grub> root (hd0,0)
	grub> setup (hd0)

Depois basta desmontar as partições montadas e reiniciar a máquina.

Atenciosamente,
Naira Kaieski
Nucleo de Internet/Redes - Faccat
Linux Professional Institute - LPI000223834

Em 7/8/2011 16:04, Raphael MD escreveu:
> Caros!
>
> Fiz como a maioria recomendou, efetuei a cópia do hd utilizando o comando rsync, funcionou bem, consegui manter meu diretório /home.
>
> Mas estou com um outro problema muito estranho.
>
> O GRUB, da o erro 15, durante o boot.
>
> Mas não há motivos para isso, pois na minha partição de boot, dev/sdb1 está tuda certa, há o arquivo da kernel, há o arquivo do grub.
>
> Eu já formatei esta partição, ja instalei o grub de novo, compilei o kernel, e sempre da o erro 15, conferi no device.map a ordem dos hd's e está tudo correto.
>
> Chequei no fdisk, se o dev/sdb1 era de boot e ele é.
>
> Este erro me pegou. Abs
>



  parent reply	other threads:[~2011-08-07 21:45 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-07 19:04 [gentoo-user-br] Cópia de um sistema para outro HD Raphael MD
2011-08-07 19:33 ` Leonardo Guilherme
2011-08-07 21:45 ` Naira Kaieski [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-08-05 21:50 Raphael MD
2011-08-06  1:36 ` Leonardo Guilherme
2011-08-02  3:39 Raphael MD
2011-08-02 12:03 ` Fernando Boaglio
2011-08-02 12:21   ` Anlinx Soluções na Internet
2011-08-02 13:18     ` Raphael MD
2011-08-02 13:31 ` Naira Kaieski
2011-08-02 13:35   ` Naira Kaieski
2011-08-02 13:56     ` Raphael MD
2011-08-02 14:54       ` Daniel da Veiga
2011-08-05 11:32 ` Zhu Sha Zang
2011-08-05 13:29   ` André
2011-08-05 14:22     ` Raphael Bastos
2011-08-05 14:41       ` Daniel da Veiga
2011-08-05 14:45         ` Raphael Bastos
2011-08-05 14:58           ` Daniel da Veiga
2011-08-05 14:57         ` Fernando Boaglio
2011-08-05 14:59           ` Daniel da Veiga
2011-08-05 15:04           ` Raphael Bastos
2011-08-05 15:48             ` Daniel da Veiga
2011-08-05 16:23               ` Raphael Bastos
2011-08-05 15:54             ` Raphael MD
2011-08-05 16:06               ` Daniel da Veiga
2011-08-05 16:15                 ` Leonardo Guilherme

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E3F076A.6030407@faccat.br \
    --to=naira@faccat.br \
    --cc=gentoo-user-br@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox