Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can not run grub?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Fri Aug 12, 2016 9:07 am    Post subject: Can not run grub? Reply with quote

Hope it is the right forum to ask: I have a machine with gentoo and it is working ok.
On the same machine I installed win7 on a separate Hard Drive. During win installation I disconnected gentoo Hard Drive.
Then I reconnected gentoo HD and gentoo booting ok. Then I wanted to run grub in order to have multiboot with win,
however I get strange outputs:
Code:
grub-mkconfig -o /boot/grub/grub.cfg
-su: grub-mkconfig: command not found

Code:
grub-install /dev/sda
-su: grub-install: command not found

I get the same outputs even after re-emerge grub:
Code:
emerge --ask sys-boot/grub:2

Please advise!
_________________
“You can take our property, our sweet homes, even our cloths...
But don't touch the streets, Ah, That's NO, NO, NO!
The streets are our @world's compilable kernel ...”
Back to top
View user's profile Send private message
guitou
Guru
Guru


Joined: 02 Oct 2003
Posts: 400
Location: France

PostPosted: Fri Aug 12, 2016 9:11 am    Post subject: Reply with quote

Hello.
If you installed grub 2, the command prefix is grub2

++
Gi)
Back to top
View user's profile Send private message
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Fri Aug 12, 2016 9:36 am    Post subject: Reply with quote

guitou,

Oops I did not notice... :( I just copy/paste from Handbook - So need to correct here - right?
https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Bootloader#Default: Using GRUB2

Now grub running but get an error on win OS:
Here fdsik:
Code:
fdisk -l
Disk /dev/sda: 153.4 GiB, 164696555520 bytes, 321672960 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xe41fdb4a

Device     Boot   Start       End   Sectors   Size Id Type
/dev/sda1          2048      6143      4096     2M ef EFI (FAT-12/16/32)
/dev/sda2  *       6144    268287    262144   128M 83 Linux
/dev/sda3        268288   4462591   4194304     2G 82 Linux swap / Solaris
/dev/sda4       4462592 321672959 317210368 151.3G 83 Linux


Disk /dev/sdb: 232.9 GiB, 250058268160 bytes, 488395055 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x804fa679

Device     Boot     Start       End   Sectors  Size Id Type
/dev/sdb1  *         2048    206847    204800  100M  7 HPFS/NTFS/exFAT
/dev/sdb2          206848 102402047 102195200 48.7G  6 FAT16
/dev/sdb3       102402048 204802047 102400000 48.8G  7 HPFS/NTFS/exFAT

I installed sys-fs/ntfs3g and here os-prober:
Code:
os-prober
  /dev/sdb2: read failed after 0 of 4096 at 0: Input/output error
/dev/sdb1:Windows Vista (loader):Windows:chain

Still issue with win:
Code:
grub2-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.6-gentoo
Found linux image: /boot/vmlinuz-4.4.6-gentoo.old
Found linux image: /boot/vmlinuz-4.1.15-gentoo-r1
Found linux image: /boot/vmlinuz-4.0.5-gentoo
Found linux image: /boot/vmlinuz-4.0.5-gentoo.old
Found linux image: /boot/vmlinuz-3.18.11-gentoo
  /dev/sdb2: read failed after 0 of 4096 at 0: Input/output error
error: cannot read `/dev/sdb': Input/output error.
error: cannot read `/dev/sdb': Input/output error.

Maybe Hard Drive sdb has some harware failure...

Thanks
_________________
“You can take our property, our sweet homes, even our cloths...
But don't touch the streets, Ah, That's NO, NO, NO!
The streets are our @world's compilable kernel ...”
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21779
Location: here

PostPosted: Fri Aug 12, 2016 9:58 am    Post subject: Reply with quote

pmam wrote:
Maybe Hard Drive sdb has some harware failure...

Normally in/out error is cause of hardware failure
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum