Olá pessoal! Alguém aqui já teve sucesso com isso?
Depois de reinstalar o windows 2003 na primeira partição o setor de boot do grub foi apagado, eu sei como recuperar com disquete, mas não tive sucesso o pendrive, segui alguns tutoriais encontrados na internet: http://forum.clubedohardware.com.br/como-instalar-grub/380522 http://gentoo-wiki.com/HOWTO_Install_grub_on_a_usb_pendrive Consegui fazer a instalação, o pendrive deu boot no entanto ele detecta a partição hd0 como sendo ele mesmo e não a partição da instalação do linux, criei o device.map para apontar o hd0 para /dev/sda mas sem sucesso. O estranho é que criando um floppy com o grub ele funciona sem sem problemas detectando as partições corretamente. Esse foi o procedimento que fiz. # Backup dd if=/dev/sdc of=pendrive_backup.img # Format mkfs.ext3 -v /dev/sdc # Particionamento fdisk /dev/sdc Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel with disk identifier 0x6011d2ff. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) Command (m for help): p Disk /dev/sdc: 2028 MB, 2028994560 bytes 63 heads, 62 sectors/track, 1014 cylinders Units = cylinders of 3906 * 512 = 1999872 bytes Disk identifier: 0x6011d2ff Device Boot Start End Blocks Id System Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-1014, default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-1014, default 1014): +2018M Command (m for help): p Disk /dev/sdc: 2028 MB, 2028994560 bytes 63 heads, 62 sectors/track, 1014 cylinders Units = cylinders of 3906 * 512 = 1999872 bytes Disk identifier: 0x6011d2ff Device Boot Start End Blocks Id System /dev/sdc1 1 1010 1972499 83 Linux Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 2 First cylinder (1011-1014, default 1011): Using default value 1011 Last cylinder or +size or +sizeM or +sizeK (1011-1014, default 1014): Using default value 1014 Command (m for help): p Disk /dev/sdc: 2028 MB, 2028994560 bytes 63 heads, 62 sectors/track, 1014 cylinders Units = cylinders of 3906 * 512 = 1999872 bytes Disk identifier: 0x6011d2ff Device Boot Start End Blocks Id System /dev/sdc1 1 1010 1972499 83 Linux /dev/sdc2 1011 1014 7812 83 Linux Command (m for help): t Partition number (1-4): 1 Hex code (type L to list codes): 6 Changed system type of partition 1 to 6 (FAT16) Command (m for help): p Disk /dev/sdc: 2028 MB, 2028994560 bytes 63 heads, 62 sectors/track, 1014 cylinders Units = cylinders of 3906 * 512 = 1999872 bytes Disk identifier: 0x6011d2ff Device Boot Start End Blocks Id System /dev/sdc1 1 1010 1972499 6 FAT16 /dev/sdc2 1011 1014 7812 83 Linux Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. WARNING: If you have created or modified any DOS 6.x partitions, please see the fdisk manual page for additional information. Syncing disks. # Seguindo a recomendação do fdisk acima dd if=/dev/zero of=/dev/sdc1 bs=512 count=1 1+0 records in 1+0 records out 512 bytes (512 B) copied, 0.0121442 s, 42.2 kB/s # Criando o file system para cada partição. mkdosfs -F 16 -n "WTUPEN" /dev/sdc1 mke2fs -L "GRUBPEN" /dev/sdc2 # Criando diretórios e copiando arquivos do grub mkdir -p /media/GRUBPEN/boot/grub cp stage1 stage2 menu.lst grub.conf /media/GRUBPEN/boot/grub # Criando um arquivo teste para identificar a partição no grub touch /media/GRUBPEN/boot/grub/teste # Instalando o Grub grub-install --no-floppy --root-directory=/media/GRUBPEN /dev/sdc2 Probing devices to guess BIOS drives. This may take a long time. Installation finished. No error reported. This is the contents of the device map /media/GRUBPEN/boot/grub/device.map. Check if this is correct or not. If any of the lines is incorrect, fix it and re-run the script `grub-install'. (hd0)/dev/sda (hd1) /dev/sdb (hd2) /dev/sdc # Listagem do diretório ls -all /media/GRUBPEN/boot/grub total 254 drwxr-xr-x 2 root root 1024 2008-07-10 13:15 . drwxr-xr-x 3 root root 1024 2008-07-10 13:04 .. -rw-r--r-- 1 root root 45 2008-07-10 13:13 device.map -rw-r--r-- 1 root root 11768 2008-07-10 13:15 e2fs_stage1_5 -rw-r--r-- 1 root root 11528 2008-07-10 13:15 fat_stage1_5 -rw-r--r-- 1 root root 10776 2008-07-10 13:15 ffs_stage1_5 lrwxrwxrwx 1 root root 10 2008-07-10 13:13 grub.conf -> ./menu.lst -rw-r--r-- 1 root root 10768 2008-07-10 13:15 iso9660_stage1_5 -rw-r--r-- 1 root root 12440 2008-07-10 13:15 jfs_stage1_5 -rw------- 1 root root 885 2008-07-10 13:05 menu.lst -rw-r--r-- 1 root root 11000 2008-07-10 13:15 minix_stage1_5 -rw-r--r-- 1 root root 13376 2008-07-10 13:15 reiserfs_stage1_5 -rw-r--r-- 1 root root 512 2008-07-10 13:15 stage1 -rw-r--r-- 1 root root 110516 2008-07-10 13:15 stage2 -rw-r--r-- 1 root root 0 2008-07-10 13:06 teste -rw-r--r-- 1 root root 11040 2008-07-10 13:15 ufs2_stage1_5 -rw-r--r-- 1 root root 10376 2008-07-10 13:15 vstafs_stage1_5 -rw-r--r-- 1 root root 13016 2008-07-10 13:15 xfs_stage1_5 Depois de reiniciar o computador aparece o grub e o menu mas ele entende hd0 como sendo ele mesmo e não detecta os HDD's. Alguém teria outra dica? Obrigado --------------------------------------------------------------------------- Esta lista é patrocinada pela Conectiva S.A. Visite http://www.conectiva.com.br Arquivo: http://bazar2.conectiva.com.br/mailman/listinfo/linux-br Regras de utilização da lista: http://linux-br.conectiva.com.br FAQ: http://www.zago.eti.br/menu.html
