unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Unrecognized mount options to an ext4 filesystem.
@ 2023-06-06 15:03 Alexandros Prekates
  2023-06-06 15:49 ` Oleg Pykhalov
  0 siblings, 1 reply; 7+ messages in thread
From: Alexandros Prekates @ 2023-06-06 15:03 UTC (permalink / raw)
  To: help-guix@gnu.org



-------------------------------------------------- /etc/config.scm
 (file-system
	(mount-point "/home/chomwitt/MyCalibreLibrary-SSD") 
        (device  (uuid "ae0661f6-0d22-4e0a-9a9c-fba7c17af6a4" 'ext4))
		 (type "ext4")(options "rw,relatime,nofail 0 2"))
------------------------------------------------------------------

In config.scm trying to provide options to an ext4 fs mount  (options
"rw,relatime,nofail 0 2") the filesystem wont get mounted and i see in
dmesg :

[41.794560] shepherd[1]: Service
file-system-/home/chomwitt/MyCalibreLibrary-SSD failed to start. [
41.795059] shepherd[1]: Starting service
file-system-/home/chomwitt/MyCalibreLibrary-SSD... [   41.825342] ext4:
Unknown parameter 'relatime' [   41.825682] shepherd[1]: Exception
caught while starting #<<service> 7fc35b4eed80>: (system-error "mount"
"mount ~S on ~S: ~A" ("/dev/sdd1"
"///home/chomwitt/MyCalibreLibrary-SSD" "Invalid argument") (22)) [
41.825863] shepherd[1]: Service
file-system-/home/chomwitt/MyCalibreLibrary-SSD failed to start. [
41.826665] shepherd[1]: Service file-systems depends on #<<service>
7fc35b4eed80>[  41.826843] shepherd[1]: Starting service syslogd...
7fc35b4eed80>[   41.828933] shepherd[1]: Service file-systems depends
7fc35b4eed80>on #<<service> 7fc35b4eed80>. [   41.829231] shepherd[1]:
7fc35b4eed80>Starting service
7fc35b4eed80>file-system-/home/chomwitt/MyCalibreLibrary-SSD... [
7fc35b4eed80>41.863301] ext4: Unknown parameter 'relatime' [
7fc35b4eed80>41.894816] ext4: Unknown parameter 'relatime' [
7fc35b4eed80>41.928441] ext4: Unknown parameter 'relatime'
[   41.962552] ext4: Unknown parameter 'relatime'
[   41.994449] ext4: Unknown parameter 'relatime'
[   42.025599] ext4: Unknown parameter 'relatime'
[   42.057061] ext4: Unknown parameter 'relatime'
[   42.091580] ext4: Unknown parameter 'relatime'
[   42.123539] ext4: Unknown parameter 'relatime'
[   42.155367] ext4: Unknown parameter 'relatime'

strangely if i dont supply any options then the 'defaults' will be
added to my fstab and the filesystem will be mounted ok with
rw,relatime 

But wanting my system to not hang during booting if my
external storage is not connected i made a couple of tests with
'nofail' but with no luck.

Alexandros


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unrecognized mount options to an ext4 filesystem.
  2023-06-06 15:03 Unrecognized mount options to an ext4 filesystem Alexandros Prekates
@ 2023-06-06 15:49 ` Oleg Pykhalov
  2023-06-06 16:28   ` Alexandros Prekates
  0 siblings, 1 reply; 7+ messages in thread
From: Oleg Pykhalov @ 2023-06-06 15:49 UTC (permalink / raw)
  To: Alexandros Prekates; +Cc: help-guix@gnu.org

[-- Attachment #1: Type: text/plain, Size: 382 bytes --]

Hi,

Alexandros Prekates <aprekates@posteo.net> writes:

> /etc/config.scm
>  (file-system
> 	(mount-point "/home/chomwitt/MyCalibreLibrary-SSD") 
>         (device  (uuid "ae0661f6-0d22-4e0a-9a9c-fba7c17af6a4" 'ext4))
> 		 (type "ext4")(options "rw,relatime,nofail 0 2"))
                                                          ^^^^

I guess ‘ 0 2’ is a problem.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unrecognized mount options to an ext4 filesystem.
  2023-06-06 15:49 ` Oleg Pykhalov
@ 2023-06-06 16:28   ` Alexandros Prekates
  2023-06-06 16:38     ` Alexandros Prekates
  0 siblings, 1 reply; 7+ messages in thread
From: Alexandros Prekates @ 2023-06-06 16:28 UTC (permalink / raw)
  To: Oleg Pykhalov; +Cc: help-guix@gnu.org

On Tue, 06 Jun 2023 18:49:34 +0300
Oleg Pykhalov <go.wigust@gmail.com> wrote:

> Hi,
> 
> Alexandros Prekates <aprekates@posteo.net> writes:
> 
> > /etc/config.scm
> >  (file-system
> > 	(mount-point "/home/chomwitt/MyCalibreLibrary-SSD") 
> >         (device  (uuid "ae0661f6-0d22-4e0a-9a9c-fba7c17af6a4"
> > 'ext4)) (type "ext4")(options "rw,relatime,nofail 0 2"))  
>                                                           ^^^^
> 
> I guess ‘ 0 2’ is a problem.


I tried (options "nofail") but this time i was more carefull and i
noticed the error messages from guix system reconfigure :
$  sudo guix system reconfigure /etc/config.scm
guix system: warning: exception caught while executing 'start' on
service 'file-system-/home/chomwitt/MyCalibreLibrary-SSD': In procedure
mount: mount "/dev/sdd1" on "///home/chomwitt/MyCalibreLibrary-SSD":
Invalid argument


Also i tried (options "defaults,nofail")
$  sudo guix system reconfigure /etc/config.scm
guix system: warning: excep$  sudo guix system reconfigure /etc/config.scmtion caught while executing 'start' on
service 'file-system-/home/chomwitt/MyCalibreLibrary-SSD': In procedure
mount: mount "/dev/sdd1" on "///home/chomwitt/MyCalibreLibrary-SSD":
Invalid argument


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unrecognized mount options to an ext4 filesystem.
  2023-06-06 16:28   ` Alexandros Prekates
@ 2023-06-06 16:38     ` Alexandros Prekates
  2023-06-06 20:40       ` Alexandros Prekates
  0 siblings, 1 reply; 7+ messages in thread
From: Alexandros Prekates @ 2023-06-06 16:38 UTC (permalink / raw)
  Cc: help-guix@gnu.org

On Tue,  6 Jun 2023 16:28:11 +0000
Alexandros Prekates <aprekates@posteo.net> wrote:


I found in the doc something that i had missed:

Run man 8 mount for options for various file systems, but beware that
what it lists as file-system-independent “mount options” are in fact
flags, and belong in the flags field described above. 

So could i will try to make a flags list and see if i have any lack.

Alexandros.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unrecognized mount options to an ext4 filesystem.
  2023-06-06 16:38     ` Alexandros Prekates
@ 2023-06-06 20:40       ` Alexandros Prekates
  2023-06-07  7:26         ` Efraim Flashner
  0 siblings, 1 reply; 7+ messages in thread
From: Alexandros Prekates @ 2023-06-06 20:40 UTC (permalink / raw)
  Cc: help-guix@gnu.org

On Tue,  6 Jun 2023 16:38:07 +0000
Alexandros Prekates <aprekates@posteo.net> wrote:

> On Tue,  6 Jun 2023 16:28:11 +0000
> Alexandros Prekates <aprekates@posteo.net> wrote:
> 
> 
> I found in the doc something that i had missed:
> 
> Run man 8 mount for options for various file systems, but beware that
> what it lists as file-system-independent “mount options” are in fact
> flags, and belong in the flags field described above. 
> 
> So could i will try to make a flags list and see if i have any lack.
> 
> Alexandros.
> 


I tried  (flags '(read-only exec))  and  (flags '(read-only nofail))

but /etc/config.scm:93:23: error: invalid file system mount flag: nofail

/etc/config.scm:93:23: error: invalid file system mount flag: exec

So i dont understand how do we pass those FILESYSTEM-INDEPENDENT MOUNT
OPTIONS to guix system reconfigure ?


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unrecognized mount options to an ext4 filesystem.
  2023-06-06 20:40       ` Alexandros Prekates
@ 2023-06-07  7:26         ` Efraim Flashner
  2023-06-09  7:54           ` Alexandros Prekates
  0 siblings, 1 reply; 7+ messages in thread
From: Efraim Flashner @ 2023-06-07  7:26 UTC (permalink / raw)
  To: Alexandros Prekates; +Cc: help-guix@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1646 bytes --]

On Tue, Jun 06, 2023 at 08:40:09PM +0000, Alexandros Prekates wrote:
> On Tue,  6 Jun 2023 16:38:07 +0000
> Alexandros Prekates <aprekates@posteo.net> wrote:
> 
> > On Tue,  6 Jun 2023 16:28:11 +0000
> > Alexandros Prekates <aprekates@posteo.net> wrote:
> > 
> > 
> > I found in the doc something that i had missed:
> > 
> > Run man 8 mount for options for various file systems, but beware that
> > what it lists as file-system-independent “mount options” are in fact
> > flags, and belong in the flags field described above. 
> > 
> > So could i will try to make a flags list and see if i have any lack.
> > 
> > Alexandros.
> > 
> 
> 
> I tried  (flags '(read-only exec))  and  (flags '(read-only nofail))
> 
> but /etc/config.scm:93:23: error: invalid file system mount flag: nofail
> 
> /etc/config.scm:93:23: error: invalid file system mount flag: exec
> 
> So i dont understand how do we pass those FILESYSTEM-INDEPENDENT MOUNT
> OPTIONS to guix system reconfigure ?

For your nofail option you way want the mount-may-fail? option¹. If you
want to check the source for what mount options are supported, its in
(gnu system file-systems), and the list is

(known-flags '(read-only
               bind-mount no-suid no-dev no-exec
               no-atime no-diratime strict-atime lazy-time
               shared))

¹ https://guix.gnu.org/en/manual/devel/en/html_node/File-Systems.html

-- 
Efraim Flashner   <efraim@flashner.co.il>   רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unrecognized mount options to an ext4 filesystem.
  2023-06-07  7:26         ` Efraim Flashner
@ 2023-06-09  7:54           ` Alexandros Prekates
  0 siblings, 0 replies; 7+ messages in thread
From: Alexandros Prekates @ 2023-06-09  7:54 UTC (permalink / raw)
  To: Efraim Flashner; +Cc: help-guix@gnu.org

On Wed, 7 Jun 2023 10:26:47 +0300
Efraim Flashner <efraim@flashner.co.il> wrote:

> On Tue, Jun 06, 2023 at 08:40:09PM +0000, Alexandros Prekates wrote:
> > On Tue,  6 Jun 2023 16:38:07 +0000
> > Alexandros Prekates <aprekates@posteo.net> wrote:
> >   
> > > On Tue,  6 Jun 2023 16:28:11 +0000
> > > Alexandros Prekates <aprekates@posteo.net> wrote:
> > > 
> > > 
> > > I found in the doc something that i had missed:
> > > 
> > > Run man 8 mount for options for various file systems, but beware
> > > that what it lists as file-system-independent “mount options” are
> > > in fact flags, and belong in the flags field described above. 
> > > 
> > > So could i will try to make a flags list and see if i have any
> > > lack.
> > > 
> > > Alexandros.
> > >   
> > 
> > 
> > I tried  (flags '(read-only exec))  and  (flags '(read-only nofail))
> > 
> > but /etc/config.scm:93:23: error: invalid file system mount flag:
> > nofail
> > 
> > /etc/config.scm:93:23: error: invalid file system mount flag: exec
> > 
> > So i dont understand how do we pass those FILESYSTEM-INDEPENDENT
> > MOUNT OPTIONS to guix system reconfigure ?  
> 
> For your nofail option you way want the mount-may-fail? option¹. If
> you want to check the source for what mount options are supported,
> its in (gnu system file-systems), and the list is
> 
> (known-flags '(read-only
>                bind-mount no-suid no-dev no-exec
>                no-atime no-diratime strict-atime lazy-time
>                shared))
> 
> ¹ https://guix.gnu.org/en/manual/devel/en/html_node/File-Systems.html
> 

Efrail thanks for looking into the source.


I tried :
  (file-system
     (mount-point "/home/chomwitt/MyCalibreLibrary-SSD") 
     (device (uuid "ae0661f6-0d22-3e0a-aa9c-fba7c17af6a4" 'ext4))
			(type "ext4")
			;;(mount? #f)
			(mount-may-fail? #t)
			(flags '())
		        )

But if i disconect my external ssd then guix wont boot to my login tty.
While i wait in a blank screen if i connect my usb ssd back then the
boot proceeds ok.

As you see i previously tried (mount? #f) an alternative
fallback solution propoped to me in irc #guix by jpoiret.
The idea is to boot my system with my internal storage's filesystems
and after boot to mount external fs by a script for example.

 


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-06-09  7:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-06 15:03 Unrecognized mount options to an ext4 filesystem Alexandros Prekates
2023-06-06 15:49 ` Oleg Pykhalov
2023-06-06 16:28   ` Alexandros Prekates
2023-06-06 16:38     ` Alexandros Prekates
2023-06-06 20:40       ` Alexandros Prekates
2023-06-07  7:26         ` Efraim Flashner
2023-06-09  7:54           ` Alexandros Prekates

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).