Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

fstab problem

2 views
Skip to first unread message

ghe2001

unread,
May 8, 2022, 3:40:06 PM5/8/22
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Supermicro workstation, Debian Buster

Mounting disks isn't working with UUIDs. At boot or manually mounting:

UUID=301d6d6d-6782-4be3-b979-0cb595ef1a48 /backupDisk ext4 default 1 1

says:

mount: /backupDisk: wrong fs type, bad option, bad superblock on /dev/sde1, missing codepage or helper program, or other error.

Both mountings work fine with:

/dev/sde1 /backupDisk ext4 default 0 0

The UUID line was copied from "https://wiki.debian.org/fstab" -- and changed a little (the 1s in the line are from the website). The sd line is what I've been using for years.

The fstab:

# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/md0p1 during installation
# root drive (RAID /dev/sda1 and /dev/sdc1)
/dev/md0p1 / ext4 errors=remount-ro 0 1
# misc
# UUID=2e7a5901-597e-4ea2-92fb-614d07280b20 /blackHole ext4 default 0 0
# UUID=4e88a5ab-0a0a-491c-ac00-e9d20b66fba7 /mnt ext4 default 0 0
# backup disk
UUID=301d6d6d-6782-4be3-b979-0cb595ef1a48 /backupDisk ext4 default 1 1
### /dev/sde1 /backupDisk ext4 default 0 0
# cd drive
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0

The manual 'mount /backupDisk' works with the sd version. It gives the same error using the UUID id.

I've used the UUID version before, on Buster, and I swear it worked. Any ideas??

--
Glenn English
-----BEGIN PGP SIGNATURE-----
Version: ProtonMail

wsBzBAEBCAAGBQJieBYmACEJEObKK1bRaqt3FiEExEbtoeXBeE9fruv35sor
VtFqq3dxEwgAsp4gX6MgzAB+d+oR3fD/ncp/uvmxykZ/7xCP8eCu2srqxRHx
hubVEB2lDnztK8N7vbpfoK/aE3bQZQ1IY+lRxyELJjrJYWv/gSfMwlJ2uFAS
azCmNj5lDcaHFLFWNyJA5qF1NBBH21GsUbCIqnmHNZIVXQbxe4SNXkaXK3QY
LqBQfA7IThqy20K7lbXmDpVDEd/Ve+c4bzeMMzw9z7hdpIKp3j+LL+zgc7qI
C0CkXqh0724hJYm6CxonmWakAdNu8bpr5+AoK+DzFwAgCzIbXRIoDuDDlUWQ
W587ziD17HO1ASMsU/YEbQxpuTIrv1l1/QqDDZhT6Cxzv1/98H9Lkg==
=D/AT
-----END PGP SIGNATURE-----

Felix Miata

unread,
May 8, 2022, 3:50:06 PM5/8/22
to
ghe2001 composed on 2022-05-08 19:13 (UTC):

> # <file system> <mount point> <type> <options> <dump> <pass>
...
> Any ideas??

The only fstab line where 1 belongs in the pass column is the / filesystem. The
rest should be 0 or 2. The dump column should be 0 unless you need that filesystem
dumped. Most configurations don't need dumped.
--
Evolution as taught in public schools is, like religion,
based on faith, not based on science.

Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata

Kamil Jońca

unread,
May 8, 2022, 4:30:05 PM5/8/22
to
ghe2001 <ghe...@pm.me> writes:

> Supermicro workstation, Debian Buster
>
> Mounting disks isn't working with UUIDs. At boot or manually mounting:
SOA#1

--8<---------------cut here---------------start------------->8---
$ grep UUID /etc/fstab
UUID=a967fe27-9c42-4442-b71a-74b2c43c68be /boot ext4 defaults,errors=remount-ro 0 2
$sudo mount /boot/
$mount |grep boot
/dev/md2 on /boot type ext4 (rw,relatime,errors=remount-ro)
--8<---------------cut here---------------end--------------->8---

I have this for a quite long time.
>
> UUID=301d6d6d-6782-4be3-b979-0cb595ef1a48 /backupDisk ext4 default 1 1

Are you sure you have good uuid here?

>
> says:
>
> mount: /backupDisk: wrong fs type, bad option, bad superblock on /dev/sde1, missing codepage or helper program, or other error.
>
> Both mountings work fine with:
>
> /dev/sde1 /backupDisk ext4 default 0 0
>
> The UUID line was copied from "https://wiki.debian.org/fstab" -- and
I would check if you have proper white characters in line - sometimes
when copying from web pages I got "unicode spaces" (different from 0x9
and 0x20)

KJ


--
http://stopstopnop.pl/stop_stopnop.pl_o_nas.html

David Wright

unread,
May 8, 2022, 4:40:05 PM5/8/22
to
On Sun 08 May 2022 at 15:46:39 (-0400), Felix Miata wrote:
> ghe2001 composed on 2022-05-08 19:13 (UTC):
>
> > # <file system> <mount point> <type> <options> <dump> <pass>
> ...
> > Any ideas??
>
> The only fstab line where 1 belongs in the pass column is the / filesystem. The
> rest should be 0 or 2. The dump column should be 0 unless you need that filesystem
> dumped. Most configurations don't need dumped.

I don't see any effect of having the extra "1" fields on mounting.
BTW I trim off any 0 in the last field, which basically means that
a final 0 0 can be omitted, as it's the default. Less cluttered.

But I would like to see the output from:

$ ls -l /dev/disk/*/301d6d6d-6782-4be3-b979-0cb595ef1a48

If nothing is produced, then try the following:

$ ls -lR /dev/disk | grep sde1

Some people might like to obfuscate (or remove) the line that
contains the model name and serial number of the disk.

Cheers,
David.

ghe2001

unread,
May 8, 2022, 5:10:05 PM5/8/22
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256





------- Original Message -------
On Sunday, May 8th, 2022 at 2:35 PM, David Wright <deb...@lionunicorn.co.uk> wrote:


> On Sun 08 May 2022 at 15:46:39 (-0400), Felix Miata wrote:
>
> > ghe2001 composed on 2022-05-08 19:13 (UTC):
> >
> > > # <file system> <mount point> <type> <options> <dump> <pass>
> > > ...
> > > Any ideas??
> >

> I don't see any effect of having the extra "1" fields on mounting.

I don't either, which is why I didn't remove them. I just changed them to zeros, just so there'll be something there ... I just tried 'mount /backupDisk' again (with the zeros), and there's no difference.

> But I would like to see the output from:
>
> $ ls -l /dev/disk/*/301d6d6d-6782-4be3-b979-0cb595ef1a48

lrwxrwxrwx 1 root root 10 May 8 12:10 /dev/disk/by-uuid/301d6d6d-6782-4be3-b979-0cb595ef1a48 -> ../../sde1

(The UUID's the same as in fstab.)

--
Glenn English

-----BEGIN PGP SIGNATURE-----
Version: ProtonMail

wsBzBAEBCAAGBQJieDCiACEJEJ/XhjGCrIwyFiEELKJzD0JScCVjQA2Xn9eG
MYKsjDIyPAf+K5NUFTx7xkNHwzbC1/CgmAfO/KBqWqsz7aO/P4mEX9aYyEE/
/pOC9fP+V8uD4a5Pt7nrlo+kUoqqJej+ZVFgKa5DcgOIN/p3aWThhfWZ0Es4
8ub8sVTk1lBA6Tpad+HMJcwD3HtjHFOmwzcsr1wtR8jirNbOTDaiaygtA2Wx
2x2Xif6Wfw3sUBV/U7MWgtZdGRunYd1ZawFOmMjvNG+0JCfj7oRzhgRgpYRo
8+1mrlYtXGMLHvwu7dE+W01yl28XrZj1K4vD4/123uWlkmsq4beuK8zpEofQ
R9DN5RZ059hWnpGwK7yY0SuoVzj9+fDueUxtePmFRgqqnDLCTJmpIQ==
=zrtp
-----END PGP SIGNATURE-----

David Christensen

unread,
May 8, 2022, 5:20:05 PM5/8/22
to
On 5/8/22 12:13, ghe2001 wrote:
> Supermicro workstation, Debian Buster
>
> Mounting disks isn't working with UUIDs. At boot or manually mounting:
>
> UUID=301d6d6d-6782-4be3-b979-0cb595ef1a48 /backupDisk ext4 default 1 1
>
> says:
>
> mount: /backupDisk: wrong fs type, bad option, bad superblock on /dev/sde1, missing codepage or helper program, or other error.


What happens if you put the following into /etc/fstab?

UUID=301d6d6d-6782-4be3-b979-0cb595ef1a48 /backupDisk ext4 default 0 0


David

ghe2001

unread,
May 8, 2022, 5:20:05 PM5/8/22
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256






------- Original Message -------
On Sunday, May 8th, 2022 at 2:09 PM, Kamil Jońca <kjo...@o2.pl> wrote:



> > UUID=301d6d6d-6782-4be3-b979-0cb595ef1a48 /backupDisk ext4 default 1 1
>
>
> Are you sure you have good uuid here?

Yes. Read it a few times.

> I would check if you have proper white characters in line - sometimes
> when copying from web pages I got "unicode spaces" (different from 0x9
> and 0x20)

Done and all OK. hexedit showed a few spaces that should have been tabs -- fixed. Thanks for the hint, but no Unicode found.

--
Glenn English

-----BEGIN PGP SIGNATURE-----
Version: ProtonMail

wsBzBAEBCAAGBQJieDJaACEJEJ/XhjGCrIwyFiEELKJzD0JScCVjQA2Xn9eG
MYKsjDIYnQf5AOjicanp69bXLoJP1dXIgM0I7lXEApyFZW0C/nD80P9xzkeQ
W3Bz6U4INag+ZZFPaxOj4uZ3s0M6WUTp4V54DL4CFgVcQjxs7iDnAAPhv1WB
gZB61Xhr71EFJ1vIQ7wrlq9uRP6gelgxR3h6EQrVOHeWHmgAm3bsIPB4JAvw
mDTjjp5sAMMnOB3OJ1gdjjbWmFrOLearZEdcLIxdvRsbmRKsn69D2iTz0CWS
ZlGRTCd6Ekg8hTD5CakRmgewUZbcSb6y926/4nuPgPvXMHyfOQVIAk7rFfwE
KGlI/8qaBwGnBwhFVT1DWYvCz47g4xuwDRVWKx/bbbcEmZbld8BLLA==
=5ajd
-----END PGP SIGNATURE-----

ghe2001

unread,
May 8, 2022, 5:30:05 PM5/8/22
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256




------- Original Message -------
On Sunday, May 8th, 2022 at 3:11 PM, David Christensen <dpch...@holgerdanske.com> wrote:

> What happens if you put the following into /etc/fstab?
>
> UUID=301d6d6d-6782-4be3-b979-0cb595ef1a48 /backupDisk ext4 default 0 0

"wrong fs type..." Like before when it was tabs instead of spaces.

--
Glenn English

-----BEGIN PGP SIGNATURE-----
Version: ProtonMail

wsBzBAEBCAAGBQJieDUpACEJEJ/XhjGCrIwyFiEELKJzD0JScCVjQA2Xn9eG
MYKsjDKQ4Qf7BQAH6R2neo0nq+M2V9YhTIrahGzOJAHFUWzHtAsjjLfgIi7B
j0HglzBE+2nJcaq0Md+BWHhv98tc5AV24HV2SEp3mlmB69TgfmMitOfSmlkB
0KVPfQxytj2wOjpamGGGXE0j57PpJuAJlnj50bbDNyTdsIX2PWxnERISwlsm
d6zPgyrg4H1SYq50TIDiFzWTk38KHRy3G/ugahbrBJPWT7OGrxgj7xwrGQW/
yb0uiUQ+efaJ1qJ3hSzVImlzmMmTke20t0K66v9kTKXfUyl/4xrOAcsmxBZ7
Qk6/umXZARA+BlKJF0olP5r2F1KhIt4DdyMhXDGhFy9Whd41Hp980A==
=GtWf
-----END PGP SIGNATURE-----

Greg Wooledge

unread,
May 8, 2022, 5:40:04 PM5/8/22
to
On Sun, May 08, 2022 at 09:25:21PM +0000, ghe2001 wrote:
> On Sunday, May 8th, 2022 at 3:11 PM, David Christensen <dpch...@holgerdanske.com> wrote:
>
> > What happens if you put the following into /etc/fstab?
> >
> > UUID=301d6d6d-6782-4be3-b979-0cb595ef1a48 /backupDisk ext4 default 0 0
>
> "wrong fs type..." Like before when it was tabs instead of spaces.

Is it possible that ext4 is the wrong file system type for that partition?

David Christensen

unread,
May 8, 2022, 6:00:05 PM5/8/22
to
On 5/8/22 14:25, ghe2001 wrote:
>
>
>
> ------- Original Message -------
> On Sunday, May 8th, 2022 at 3:11 PM, David Christensen <dpch...@holgerdanske.com> wrote:
>
>> What happens if you put the following into /etc/fstab?
>
>> UUID=301d6d6d-6782-4be3-b979-0cb595ef1a48 /backupDisk ext4 default 0 0
>
> "wrong fs type..." Like before when it was tabs instead of spaces.


My bad -- default options is spelled 'defaults'.

UUID=301d6d6d-6782-4be3-b979-0cb595ef1a48 /backupDisk ext4 defaults 0 0


David

ghe2001

unread,
May 8, 2022, 6:00:05 PM5/8/22
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256





------- Original Message -------
On Sunday, May 8th, 2022 at 3:31 PM, Greg Wooledge <gr...@wooledge.org> wrote:

> Is it possible that ext4 is the wrong file system type for that partition?

Nope, unless gparted is bent -- just looked.

--
Glenn English

-----BEGIN PGP SIGNATURE-----
Version: ProtonMail

wsBzBAEBCAAGBQJieDr1ACEJEJ/XhjGCrIwyFiEELKJzD0JScCVjQA2Xn9eG
MYKsjDLCMwf9FVIJdjEQ6tF7H7cBP+GLhTpNNETKWQX5XwSZbdCFvY3H2Jea
qChqkIGvcpbnu6wgCc85yLQZv03f8uM/nHkPt4ncgCckUTUaOMmXktrZKHmZ
Fd9ikLKg/dkSsmEmJZlX1nQYdgT3ccdENdOD7KtVuhjzGbFkcJMhdgFoFoZD
ObGJefkinpCSIWxjuJcmOlp0vL+vipdFaz5px+18IFzFH2XtX+7OiVwXR20J
jIvk14D/6or0/S+fgn26q+Yq6+9til0P1dP6oA6j6J8cBTH0Oc7mjQxOWKSG
GeoVGNBhnSJ4EGS68VXri+RcX1agdpFYwlPgaubCh2OjcTWodDNB8w==
=lwFM
-----END PGP SIGNATURE-----
0 new messages