Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grub2 problems with multiple hdds...
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
bigbanana69
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jul 2017
Posts: 141
Location: Skopje

PostPosted: Wed Apr 03, 2019 9:17 am    Post subject: grub2 problems with multiple hdds... Reply with quote

Hi,

I'm often exeriencing problems with grub2 with multiple hdds on the pc and usb drives.
I use 1TB Sata3 as primary hdd and additional 4 hdds of 2TB sata3 with multiple partitions per hdd plus I have a DVD-RW drive.

Often when I mount/unmount partiton from hdd or from usb drive, on the next boot, gentoo doesn't starts.

I'm fixing this by booting from gentoo cd then chrooting and run 'grub-mkconfig -o /boot/grub/grub.cfg'

The /boot partiton is ext2, others are jfs.
_________________
You are not using computers if you are not using Gentoo.
Back to top
View user's profile Send private message
Kosmas
Apprentice
Apprentice


Joined: 14 Sep 2006
Posts: 276
Location: Greece

PostPosted: Wed Apr 03, 2019 9:26 pm    Post subject: Reply with quote

Hi bigbanana69,

One nice way to fix it is to label your partitions and use root=LABEL=xxxx
This way, grub will find the right partition by the partition label.
Also you should edit your /etc/fstab to do the same thing (LABEL=xxxx / ....)

Hope it helps.
Back to top
View user's profile Send private message
bigbanana69
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jul 2017
Posts: 141
Location: Skopje

PostPosted: Wed Apr 03, 2019 11:07 pm    Post subject: Reply with quote

How do I do that?

I usually use fdisk... What should I write to LABEL the partitions in fstab and else?
_________________
You are not using computers if you are not using Gentoo.
Back to top
View user's profile Send private message
Kosmas
Apprentice
Apprentice


Joined: 14 Sep 2006
Posts: 276
Location: Greece

PostPosted: Thu Apr 04, 2019 9:09 am    Post subject: Reply with quote

Hi bigbanana69,

The commands e2label or tune2fs used for changing label of ext2, ext3 and ext4 type partitions.
The reiserfstune command used for labeling reiserFS formatted partitions.

And finally xfs_admin -L name /dev/partition can be used for xfs partitions.

I hope I helped.
Back to top
View user's profile Send private message
bigbanana69
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jul 2017
Posts: 141
Location: Skopje

PostPosted: Thu Apr 04, 2019 12:08 pm    Post subject: Reply with quote

Ok, thanks.

Additionally, I had found some articles related to partitions labeling.
_________________
You are not using computers if you are not using Gentoo.
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