You are not logged in.

#1 2016-10-07 20:57:58

Pomalo
Member
Registered: 2009-09-28
Posts: 17

[Solved] Separate boot partition and grub configuration

Hey!

I've been having an issue for a while now, and I haven't really found how to address it.

I have a separate /boot partition. It doesn't seem to be properly configured with grub.

When I update linux through pacman and reboot, it breaks my system because while a new version is installed, the system looks for module in the wrong directory (the one from the previous version).

I don't have an issue if after upgrading linux, I unmount my /boot partition and reapply the upgrade.

My fstab :

# 
# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>       <dump>  <pass>
# UUID=1e1ef087-2561-4900-8410-372353abf732
/dev/sda7               /               ext4            rw,relatime,data=ordered        0 1
/dev/sda8               none            swap            defaults                0 0
/dev/sda9               /home           ext4            defaults,noatime                0 2
tmpfs                   /tmp            tmpfs           nodev,nosuid,size=2G   0 0
/dev/sda5               /mnt/data       ntfs-3g         defaults                0 0
/dev/sda6               /boot           ext4                    defaults                0 0

My /etc/default/grub

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
GRUB_COLOR_NORMAL="light-blue/black"
GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

#GRUB_SAVEDEFAULT="true"

Last edited by Pomalo (2016-10-23 18:34:40)

Offline

#2 2016-10-07 21:47:30

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: [Solved] Separate boot partition and grub configuration

What are the output of lsblk and sudo parted -l


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2016-10-12 18:29:39

Pomalo
Member
Registered: 2009-09-28
Posts: 17

Re: [Solved] Separate boot partition and grub configuration

lsblk

  % lsblk                                                                                                     !1449
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 931,5G  0 disk 
├─sda1   8:1    0  39,2M  0 part 
├─sda2   8:2    0   752M  0 part 
├─sda3   8:3    0    44G  0 part 
├─sda4   8:4    0     1K  0 part 
├─sda5   8:5    0 634,8G  0 part /mnt/data
├─sda6   8:6    0    94M  0 part /boot
├─sda7   8:7    0    14G  0 part /
├─sda8   8:8    0   1,9G  0 part [SWAP]
└─sda9   8:9    0 187,3G  0 part /home
sdb      8:16   0 931,5G  0 disk 
├─sdb1   8:17   0   428M  0 part 
└─sdb2   8:18   0 931,1G  0 part 
sr0     11:0    1   1,4G  0 rom  

sudo parted -l

  % sudo parted -l                                                                                            !1450
[sudo] Mot de passe de ouardane : 
Modèle: ATA WDC WD10EZEX-75Z (scsi)
Disque /dev/sda : 1000GB
Taille des secteurs (logiques/physiques): 512B/4096B
Table de partitions : msdos
Disk Flags: 

Numéro  Début   Fin     Taille  Type      Système de fichiers  Fanions
 1      32,3kB  41,1MB  41,1MB  primary   fat16                diag
 2      41,9MB  830MB   789MB   primary   ntfs                 démarrage
 3      830MB   48,0GB  47,2GB  primary   ntfs
 4      48,0GB  1000GB  952GB   extended                       lba
 5      48,0GB  730GB   682GB   logical   ntfs
 6      730GB   730GB   98,6MB  logical   ext4                 démarrage
 7      782GB   797GB   15,0GB  logical   ext4
 8      797GB   799GB   1999MB  logical   linux-swap(v1)
 9      799GB   1000GB  201GB   logical   ext4

(démarrage = boot)



EDIT : I've removed the bootable flag on /dev/sda2
The system has booted, and my guess is that it solved the problem. Will test soon and report back.

Last edited by Pomalo (2016-10-12 19:14:57)

Offline

#4 2016-10-23 18:34:52

Pomalo
Member
Registered: 2009-09-28
Posts: 17

Re: [Solved] Separate boot partition and grub configuration

Yup, that did it!

Offline

Board footer

Powered by FluxBB