Advertisement
barjac

file -s

Oct 21st, 2010
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. Install legacy :-
  2.  
  3. [root@localhost baz]# grub-install --root-directory=/maingrub /dev/sda1
  4. Installation finished. No error reported.
  5. This is the contents of the device map /maingrub/boot/grub/device.map.
  6. Check if this is correct or not. If any of the lines is incorrect,
  7. fix it and re-run the script `grub-install'.
  8.  
  9. (fd0) /dev/fd0
  10. (hd0) /dev/sda
  11. (hd1) /dev/sdb
  12. (hd2) /dev/sdc
  13.  
  14. [root@localhost baz]# file -s /dev/sda
  15. /dev/sda: x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, stage2 address 0x2000, stage2 segment 0x200; partition 1: ID=0x83, active, starthead 1, startsector 63, 6143697 sectors; partition 2: ID=0x5, starthead 15, startsector 6143760, 1470798000 sectors, code offset 0x63
  16.  
  17. Install grub2 :-
  18.  
  19. [root@localhost baz]# grub2-install --root-directory=/maingrub /dev/sda
  20. Installation finished. No error reported.
  21.  
  22. [root@localhost baz]# file -s /dev/sda
  23. /dev/sda: x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, stage2 address 0x2000, stage2 segment 0x200; partition 1: ID=0x83, active, starthead 1, startsector 63, 6143697 sectors; partition 2: ID=0x5, starthead 15, startsector 6143760, 1470798000 sectors, code offset 0x63
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement