Bug #1001

mouting by UUID from fstab does not work

Added by Natanael Copa 3 months ago. Updated 11 days ago.

Status:Closed Start date:02/10/2012
Priority:Normal Due date:
Assignee:Natanael Copa % Done:

0%

Category:-
Target version:Alpine 2.4.0

Description

To reproduce, add something like this to /etc/fstab:

UUID="0bd52848-d2e7-40ec-9d19-d8e7d7923577" /var ext4 defaults 1 1

Then mount /var

# mount /var
mount: mounting UUID="0bd52848-d2e7-40ec-9d19-d8e7d7923577" on /var failed: No such file or directory

But using the UUID from command line works:

# mount UUID="0bd52848-d2e7-40ec-9d19-d8e7d7923577" /var

Smells like a busybox issue.

History

Updated by Jeff Bilyk 3 months ago

Just tried upgrading an edge box to latest edge and seem to have hit this issue. Both extlinux.conf and fstab reference the root partition by UUID on that box. On boot, get the following output:

Alpine Init 2.4.2-r1
Mounting root failed.

Followed by initramfs emergency shell.

Seems that extlinux.conf doesn't add "UUID=" before the UUID. Changing the root partition from a UUID reference to /dev/sda3 in /boot/extlinux.conf also allows boot.

Updated by Natanael Copa 11 days ago

Jeff Bilyk wrote:

Just tried upgrading an edge box to latest edge and seem to have hit this issue. Both extlinux.conf and fstab reference the root partition by UUID on that box. On boot, get the following output:

Alpine Init 2.4.2-r1
Mounting root failed.

Followed by initramfs emergency shell.

Seems that extlinux.conf doesn't add "UUID=" before the UUID. Changing the root partition from a UUID reference to /dev/sda3 in /boot/extlinux.conf also allows boot.

This is an other issue. Please create new bug for this.

Updated by Natanael Copa 11 days ago

  • Status changed from New to Closed

It works if no "" are in fstab.

UUID=0bd52848-d2e7-40ec-9d19-d8e7d7923577 /var ext4 defaults 1 1

I think we can close this.

Also available in: Atom PDF