View previous topic :: View next topic |
Author |
Message |
Adrien Advocate
Joined: 13 Jul 2004 Posts: 2311 Location: Bretagne
|
Posted: Sat Apr 27, 2024 7:33 pm Post subject: [solved] Fresh-install RO file-system |
|
|
Dearest gentooers,
After a new install my root filesystem gets mounted readonly making part of the system unworkable.
Unfortunately, I can't seem to solve the issue.
Here's my fstab:
Code: | # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
# nvme0n1 <=> WD SSD NVME 500Gb
/dev/nvme0n1p1 /boot/efi vfat noauto,noatime 1 2
/dev/nvme0n1p2 none swap sw 0 0
/dev/nvme0n1p3 / xfs noatime 0 1 |
My grub.cfg (wich mentions the ro option on each kernel command line... for whatever reasons:
Code: | ### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod xfs
search --no-floppy --fs-uuid --set=root 26944552-5352-4a12-a5c0-70b055743a91
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=30
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=30
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-26944552-5352-4a12-a5c0-70b055743a91' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod xfs
search --no-floppy --fs-uuid --set=root 26944552-5352-4a12-a5c0-70b055743a91
echo 'Loading Linux 6.6.21-gentoo-x86_64 ...'
linux /boot/vmlinuz-6.6.21-gentoo-x86_64 root=UUID=26944552-5352-4a12-a5c0-70b055743a91 ro
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-6.6.21-gentoo-x86_64.img
}
submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-26944552-5352-4a12-a5c0-70b055743a91' {
menuentry 'Gentoo GNU/Linux, with Linux 6.6.21-gentoo-x86_64' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.21-gentoo-x86_64-advanced-26944552-5352-4a12-a5c0-70b055743a91' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod xfs
search --no-floppy --fs-uuid --set=root 26944552-5352-4a12-a5c0-70b055743a91
echo 'Loading Linux 6.6.21-gentoo-x86_64 ...'
linux /boot/vmlinuz-6.6.21-gentoo-x86_64 root=UUID=26944552-5352-4a12-a5c0-70b055743a91 ro
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-6.6.21-gentoo-x86_64.img
}
menuentry 'Gentoo GNU/Linux, with Linux 6.6.21-gentoo-x86_64 (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.21-gentoo-x86_64-recovery-26944552-5352-4a12-a5c0-70b055743a91' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod xfs
search --no-floppy --fs-uuid --set=root 26944552-5352-4a12-a5c0-70b055743a91
echo 'Loading Linux 6.6.21-gentoo-x86_64 ...'
linux /boot/vmlinuz-6.6.21-gentoo-x86_64 root=UUID=26944552-5352-4a12-a5c0-70b055743a91 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-6.6.21-gentoo-x86_64.img
}
menuentry 'Gentoo GNU/Linux, with Linux 6.6.21-gentoo-dist' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.21-gentoo-dist-advanced-26944552-5352-4a12-a5c0-70b055743a91' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod xfs
search --no-floppy --fs-uuid --set=root 26944552-5352-4a12-a5c0-70b055743a91
echo 'Loading Linux 6.6.21-gentoo-dist ...'
linux /boot/vmlinuz-6.6.21-gentoo-dist root=UUID=26944552-5352-4a12-a5c0-70b055743a91 ro
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-6.6.21-gentoo-dist.img
}
menuentry 'Gentoo GNU/Linux, with Linux 6.6.21-gentoo-dist (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.21-gentoo-dist-recovery-26944552-5352-4a12-a5c0-70b055743a91' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod xfs
search --no-floppy --fs-uuid --set=root 26944552-5352-4a12-a5c0-70b055743a91
echo 'Loading Linux 6.6.21-gentoo-dist ...'
linux /boot/vmlinuz-6.6.21-gentoo-dist root=UUID=26944552-5352-4a12-a5c0-70b055743a91 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-6.6.21-gentoo-dist.img
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/25_bli ###
if [ "$grub_platform" = "efi" ]; then
insmod bli
fi
### END /etc/grub.d/25_bli ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Linux Mint 18.3 Sylvia (18.3) (on /dev/sda2)' --class linuxmint --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-9d4b8a7f-708f-42b5-aed4-83fb6a0a31aa' {
insmod part_msdos
insmod jfs
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 9d4b8a7f-708f-42b5-aed4-83fb6a0a31aa
else
search --no-floppy --fs-uuid --set=root 9d4b8a7f-708f-42b5-aed4-83fb6a0a31aa
fi
linux /boot/vmlinuz-4.15.0-142-generic root=UUID=9d4b8a7f-708f-42b5-aed4-83fb6a0a31aa ro quiet splash $vt_handoff
initrd /boot/initrd.img-4.15.0-142-generic
}
submenu 'Advanced options for Linux Mint 18.3 Sylvia (18.3) (on /dev/sda2)' $menuentry_id_option 'osprober-gnulinux-advanced-9d4b8a7f-708f-42b5-aed4-83fb6a0a31aa' {
menuentry 'Linux Mint 18.3 Cinnamon 64-bit (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.15.0-142-generic--9d4b8a7f-708f-42b5-aed4-83fb6a0a31aa' {
insmod part_msdos
insmod jfs
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 9d4b8a7f-708f-42b5-aed4-83fb6a0a31aa
else
search --no-floppy --fs-uuid --set=root 9d4b8a7f-708f-42b5-aed4-83fb6a0a31aa
fi
linux /boot/vmlinuz-4.15.0-142-generic root=UUID=9d4b8a7f-708f-42b5-aed4-83fb6a0a31aa ro quiet splash $vt_handoff
initrd /boot/initrd.img-4.15.0-142-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, avec Linux 4.15.0-142-generic (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.15.0-142-generic--9d4b8a7f-708f-42b5-aed4-83fb6a0a31aa' {
insmod part_msdos
insmod jfs
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 9d4b8a7f-708f-42b5-aed4-83fb6a0a31aa
else
search --no-floppy --fs-uuid --set=root 9d4b8a7f-708f-42b5-aed4-83fb6a0a31aa
fi
linux /boot/vmlinuz-4.15.0-142-generic root=UUID=9d4b8a7f-708f-42b5-aed4-83fb6a0a31aa ro quiet splash $vt_handoff
initrd /boot/initrd.img-4.15.0-142-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.15.0-142-generic (upstart) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.15.0-142-generic--9d4b8a7f-708f-42b5-aed4-83fb6a0a31aa' {
insmod part_msdos
insmod jfs
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 9d4b8a7f-708f-42b5-aed4-83fb6a0a31aa
else
search --no-floppy --fs-uuid --set=root 9d4b8a7f-708f-42b5-aed4-83fb6a0a31aa
fi
linux /boot/vmlinuz-4.15.0-142-generic root=UUID=9d4b8a7f-708f-42b5-aed4-83fb6a0a31aa ro quiet splash $vt_handoff init=/sbin/upstart
initrd /boot/initrd.img-4.15.0-142-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.15.0-142-generic (recovery mode) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.15.0-142-generic--9d4b8a7f-708f-42b5-aed4-83fb6a0a31aa' {
insmod part_msdos
insmod jfs
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 9d4b8a7f-708f-42b5-aed4-83fb6a0a31aa
else
search --no-floppy --fs-uuid --set=root 9d4b8a7f-708f-42b5-aed4-83fb6a0a31aa
fi
linux /boot/vmlinuz-4.15.0-142-generic root=UUID=9d4b8a7f-708f-42b5-aed4-83fb6a0a31aa ro recovery nomodeset dis_ucode_ldr
initrd /boot/initrd.img-4.15.0-142-generic
}
menuentry 'Memory test (memtest86+, serial console 115200) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/memtest86+.bin--9d4b8a7f-708f-42b5-aed4-83fb6a0a31aa' {
insmod part_msdos
insmod jfs
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 9d4b8a7f-708f-42b5-aed4-83fb6a0a31aa
else
search --no-floppy --fs-uuid --set=root 9d4b8a7f-708f-42b5-aed4-83fb6a0a31aa
fi
linux /boot/memtest86+.bin console=ttyS0,115200n8
}
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
if [ "$grub_platform" = "efi" ]; then
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
fi
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ### |
My /etc/default/grub:
Code: | GRUB_DISTRIBUTOR="Gentoo"
# Default menu entry
#GRUB_DEFAULT=0
# Boot the default entry this many seconds after the menu is displayed
GRUB_TIMEOUT=30
GRUB_DISABLE_OS_PROBER=false
#GRUB_OS_PROBER_SKIP_LIST=2024-04-01-17-57-21-00@/dev/sde1
#GRUB_TIMEOUT_STYLE=menu
# Append parameters to the linux kernel command line
#GRUB_CMDLINE_LINUX=""
#
# Examples:
#
# Boot with network interface renaming disabled
# GRUB_CMDLINE_LINUX="net.ifnames=0"
#
# Boot with systemd instead of sysvinit (openrc)
# GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd"
# Append parameters to the linux kernel command line for non-recovery entries
#GRUB_CMDLINE_LINUX_DEFAULT=""
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# 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=640x480
# Set to 'text' to force the Linux kernel to boot in normal text
# mode, 'keep' to preserve the graphics mode set using
# 'GRUB_GFXMODE', 'WIDTHxHEIGHT'['xDEPTH'] to set a particular
# graphics mode, or a sequence of these separated by commas or
# semicolons to try several modes in sequence.
#GRUB_GFXPAYLOAD_LINUX=
# Path to theme spec txt file.
# The starfield is by default provided with use truetype.
# NOTE: when enabling custom theme, ensure you have required font/etc.
#GRUB_THEME="/boot/grub/themes/starfield/theme.txt"
# Background image used on graphical terminal.
# Can be in various bitmap formats.
#GRUB_BACKGROUND="/boot/grub/mybackground.png"
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to kernel
#GRUB_DISABLE_LINUX_UUID=true
# Comment if you don't want GRUB to pass "root=PARTUUID=xxx" parameter to kernel
GRUB_DISABLE_LINUX_PARTUUID=false
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY=true
# Uncomment to disable generation of the submenu and put all choices on
# the top-level menu.
# Besides the visual affect of no sub menu, this makes navigation of the
# menu easier for a user who can't see the screen.
#GRUB_DISABLE_SUBMENU=y
# Uncomment to play a tone when the main menu is displayed.
# This is useful, for example, to allow users who can't see the screen
# to know when they can make a choice on the menu.
#GRUB_INIT_TUNE="60 800 1" |
A df -hT output (which seems fine to me):
Code: | Filesystem Type Size Used Avail Use% Mounted on
devtmpfs devtmpfs 10M 0 10M 0% /dev
tmpfs tmpfs 12G 0 12G 0% /dev/shm
tmpfs tmpfs 12G 1.4M 12G 1% /run
/dev/nvme0n1p3 xfs 449G 10G 439G 3% /
efivarfs efivarfs 256K 120K 132K 48% /sys/firmware/efi/efivars
/dev/sda1 fuseblk 15G 731M 14G 5% /files |
And I'd be happy to provide you with any further details
Thank you very much for your time and kind assistance
PS: I hereby invoke Neddy Seagoon
Last edited by Adrien on Sun Apr 28, 2024 6:59 am; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54577 Location: 56N 3W
|
Posted: Sat Apr 27, 2024 7:42 pm Post subject: |
|
|
Adrien,
:)
What is supposed to happen is that root is mounted read only, then rootfsck runs a limited filesystem check before root is remounted read/write.
It sounds like rootfsck fails.
Do you have installed?
There may be more in dmesg _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3426
|
Posted: Sat Apr 27, 2024 7:46 pm Post subject: |
|
|
1) Does dmesg report any errors regarding that FS that would kick it onto readonly mode?
2) Does mount -o remount,rw / help? (Root is typically mounted ro first, and then remounted rw later in the boot sequence, perhaps this step is missing?)
Which init system do you use? Is the respective service enabled? _________________ Make Computing Fun Again |
|
Back to top |
|
|
Adrien Advocate
Joined: 13 Jul 2004 Posts: 2311 Location: Bretagne
|
Posted: Sat Apr 27, 2024 8:02 pm Post subject: |
|
|
Dear Sirs,
@NeddySeagoon: glad to see old spells are still working great
So, xfsprogs is on board, for sure and there's something in dmesg:
Code: | [ 1.857269] nvme nvme0: pci function 0000:02:00.0
[ 1.892144] nvme nvme0: allocated 64 MiB host memory buffer.
[ 1.943378] nvme nvme0: 4/0/0 default/read/poll queues
[ 1.944893] nvme0n1: p1 p2 p3
[ 3.062824] XFS (nvme0n1p3): Mounting V5 Filesystem 26944552-5352-4a12-a5c0-70b055743a91
[ 3.070600] XFS (nvme0n1p3): Ending clean mount
[b][ 3.113426] dracut: Mounted root filesystem /dev/nvme0n1p3
[ 113.340841] nvme0n1p3: Can't mount, would change RO state[/b]
|
Full dmesg is here (I still have to read it through, though...)
@Szatox: I'm on openrc
The mount remount worked but trying to start rc-services fsck still does not want to start, complaining about not being able to open other hard drives (/dev/sdaX) |
|
Back to top |
|
|
Adrien Advocate
Joined: 13 Jul 2004 Posts: 2311 Location: Bretagne
|
Posted: Sat Apr 27, 2024 8:09 pm Post subject: |
|
|
szatox wrote: |
2) (Root is typically mounted ro first, and then remounted rw later in the boot sequence, perhaps this step is missing?) |
Thank you for tip. The thing is I'm confused about this "ro" option in the kernel line, is this supposed to be a proper Grub job?
szatox wrote: | Is the respective service enabled? |
They're all enabled, I checked with rc-update before posting |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1912
|
Posted: Sat Apr 27, 2024 8:17 pm Post subject: |
|
|
Adrien wrote: | They're all enabled, I checked with rc-update before posting |
Please show the output of rc-status -a when booted as ro only. |
|
Back to top |
|
|
Adrien Advocate
Joined: 13 Jul 2004 Posts: 2311 Location: Bretagne
|
Posted: Sat Apr 27, 2024 8:38 pm Post subject: |
|
|
grknight wrote: | Adrien wrote: | They're all enabled, I checked with rc-update before posting |
Please show the output of rc-status -a when booted as ro only. |
I mean, I enabled them all at install time but as you can see loads of them won't start:
Code: | Runlevel: sysinit
devfs [ started ]
kmod-static-nodes [ started ]
systemd-tmpfiles-setup-dev [ started ]
sysfs [ started ]
udev [ started ]
dmesg [ started ]
udev-trigger [ started ]
cgroups [ started ]
Runlevel: boot
hwclock [ started ]
modules [ started ]
fsck [ stopped ]
root [ stopped ]
mtab [ stopped ]
swap [ stopped ]
localmount [ stopped ]
systemd-tmpfiles-setup [ stopped ]
procfs [ started ]
binfmt [ started ]
sysctl [ stopped ]
bootmisc [ stopped ]
hostname [ stopped ]
termencoding [ stopped ]
keymaps [ stopped ]
loopback [ stopped ]
save-keymaps [ stopped ]
save-termencoding [ stopped ]
seedrng [ stopped ]
Runlevel: shutdown
killprocs [ stopped ]
savecache [ stopped ]
mount-ro [ stopped ]
Runlevel: nonetwork
local [ stopped ]
Runlevel: default
chronyd [ started ]
cronie [ stopped ]
dbus [ stopped ]
wpa_supplicant [ stopped ]
dhcpcd [ stopped ]
net.ra0 [ stopped ]
netmount [ stopped ]
local [ stopped ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed/wanted
Dynamic Runlevel: manual |
|
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3426
|
Posted: Sat Apr 27, 2024 9:33 pm Post subject: |
|
|
So, localmount didn't start on your system. Looks like a good starting point for investigation. AFAIR this is what remounts root rw, so the error happens before this point.
Root and fsck are stopped too.
At the first glance it looks like fsck is the service that fails first, and being a dependency for the others, blocks them.
It is a bit weird that swap doesn't start either... Though this may or may not be related; lets' leave it out for now:
Code: | # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
# nvme0n1 <=> WD SSD NVME 500Gb
/dev/nvme0n1p1 /boot/efi vfat noauto,noatime 1 2
/dev/nvme0n1p2 none swap sw 0 0
/dev/nvme0n1p3 / xfs noatime 0 1 | You have enabled fsck for /boot/efi
Are you able to fsck it manually? _________________ Make Computing Fun Again |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1912
|
Posted: Sat Apr 27, 2024 9:38 pm Post subject: |
|
|
What is the output of: rc-service fsck start? (or "restart' instead of 'start' if it complains 'already started') |
|
Back to top |
|
|
Adrien Advocate
Joined: 13 Jul 2004 Posts: 2311 Location: Bretagne
|
Posted: Sun Apr 28, 2024 6:41 am Post subject: |
|
|
Thanks again for your help!
I need to provide more details here first, here's my full fstab:
Code: |
# nvme0n1 <=> WD SSD NVME 500Gb
/dev/nvme0n1p1 /boot/efi vfat noauto,noatime 1 2
/dev/nvme0n1p2 none swap sw 0 0
/dev/nvme0n1p3 / xfs noatime 0 1
# sda <=> MAXTOR 320Gb - Old Mint
/dev/sda2 / jfs noauto,noatime 0 1
/dev/sda3 none swap sw 0 0
/dev/sda5 /home/user jfs noatime 0 2 |
On sda is an old Linux Mint installation but I'd still need to mount my old home on the new gentoo system (/dev/sda5)
Fsck works fine manually on /boot/efi but complains about not being able to open /dev/sda:
Code: | #rc-service fsck start
* Checking local filesystems ...fsck.fat 4.2 (2021-01-31)
/dev/nvme0n1p1: 3 files, 38/261628 clusters
fsck.jfs version 1.1.15, 04-Mar-2011
processing started: 4/28/2024 6:21:48
Error: Cannot open device /dev/sda5
Usage: fsck.jfs [-afnpvV] [-j journal_device] [--omit_journal_replay] [--replay_journal_only] device
Emergency help:
-a Automatic repair.
-f Force check even if file system is marked clean.
-j journal_device Specify external journal device.
-n Check read only, make no changes to the file system.
-p Automatic repair.
-v Be verbose.
-V Print version information only.
--omit_journal_replay Omit transaction log replay.
--replay_journal_only Only replay the transaction log. |
There's a good reason for this as the new system seems not to see any of my hard drives apart from the nvme:
Code: | NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 1 14.6G 0 disk
└─sda1 8:1 1 14.6G 0 part /files
nbd0 43:0 0 0B 0 disk
nbd1 43:32 0 0B 0 disk
nbd2 43:64 0 0B 0 disk
nbd3 43:96 0 0B 0 disk
nbd4 43:128 0 0B 0 disk
nbd5 43:160 0 0B 0 disk
nbd6 43:192 0 0B 0 disk
nbd7 43:224 0 0B 0 disk
nvme0n1 259:0 0 465.8G 0 disk
├─nvme0n1p1 259:1 0 1G 0 part
├─nvme0n1p2 259:2 0 16G 0 part
└─nvme0n1p3 259:3 0 448.8G 0 part /
nbd8 43:256 0 0B 0 disk
nbd9 43:288 0 0B 0 disk
nbd10 43:320 0 0B 0 disk
nbd11 43:352 0 0B 0 disk
nbd12 43:384 0 0B 0 disk
nbd13 43:416 0 0B 0 disk
nbd14 43:448 0 0B 0 disk
nbd15 43:480 0 0B 0 disk |
Note: the "sda and sda1" you can see upper is a USB drive that I use to transfer outputs and paste in forums. It is not my sata drive called sda in fstab, which does not appear at all.
Edit: Oh men, how silly! I forgot the AHCI Sata support in kernel I'll remake the kernel, reboot and see what happens later today.
Edit 2 Solved, thanks boyz! I'll probably open more threads soon for other various hassles |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3426
|
Posted: Sun Apr 28, 2024 10:37 am Post subject: |
|
|
Glad you solved the problem.
Is it a single fstab, or 2 fstabs from different systems pasted into a single code block?
Quote: |
# nvme0n1 <=> WD SSD NVME 500Gb
/dev/nvme0n1p1 /boot/efi vfat noauto,noatime 1 2
/dev/nvme0n1p2 none swap sw 0 0
/dev/nvme0n1p3 / xfs noatime 0 1
# sda <=> MAXTOR 320Gb - Old Mint
/dev/sda2 / jfs noauto,noatime 0 1
/dev/sda3 none swap sw 0 0
/dev/sda5 /home/user jfs noatime 0 2 |
You really shouldn't have 2 different devices mounted as system root. _________________ Make Computing Fun Again |
|
Back to top |
|
|
Adrien Advocate
Joined: 13 Jul 2004 Posts: 2311 Location: Bretagne
|
Posted: Sun Apr 28, 2024 11:23 am Post subject: |
|
|
Yeah, thanks for your support szatox!
Is is a single fstab but sda2 won't mount ever on this system (noauto option) .
Actually, it was to have things clear in my mind while installing and planning partition table but right, I should remove the useless lines now. |
|
Back to top |
|
|
|
|
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
|
|