Home_greyopenFATE - openSUSE feature tracking > #306321
Dashboard | Search | Sign up | Login

Please login or register to be able to edit or vote this feature.

Disk id change in fstab

Feature state

openSUSE-11.2
Rejected Information

Description

That basic request is that one or more simple tools be provided to allow a fstab to be automatically converted from /dev/sdaX nomenclature to one of the preferred methods.

In other words, its now necessary to use YaST partitioner to change the fstab entry from /dev/sdx to the veeeeeeeeery long disk identification. This is very scary and is now nearly mandatory for updates.
So it would be important to have some utility to make only this change in fstab and no other. If possible add the choice to use and set on the fly disk ID.

Discussion


icons/user_comment.png G. F. wrote: (9 years ago)

I believe as part of this a method/tool will have to be found that will allow a swap partition to be labeled while in use.

I tried this via the yast-partitioner and it failed (See bugzilla
490817 )
I also attempted from the CLI via mkswap -L. Not too surprised that this failed and I doubt it is a bug, but merely the way it works.
I am unaware of any tool/app that is specifically designed to allow the label to be set with the swap partition in use.

icons/user_comment.png G. F. wrote: (9 years ago)

Also, the new feature should be available to at least 11.1 users, so that the 11.2 upgrade process can tell users to perform the fstab restructure via a specific tool. Currently it just says something like:

Warning

Some partitions on /dev/sda/ are mounted by kernel-device name.
This is not reliable for the update since kernel device names are not persistent.
It is strongly recommended to start the old system and change the mount-by method to any other method for all partitions.

icons/user_comment.png G. F. wrote: (9 years ago)

Currently, the fstab could be switched to /dev/disk/by_uuid/ with little effort other than the swap partition as I mentioned before.

If the tool were to need to support mount by_label for filesystems, then labeling various mounted filesystems would be needed. I tested doing this via the yast-partitioner and found that ext3 and xfs can be labeled and the fstab updated on the fly.

reiserfs failed for me. So online label support would need to be developed for it as well.

icons/user_comment.png R. M. wrote: (9 years ago)

As this is about adding tools to handle partitions, there is yet another for workflow in YaST Partitioner that will allow to label partition without including it in static configuration file /etc/fstab . External drives, USB sticks, memory cards, as devices that are dynamically mounted under /media most of the time, and don't need to be in fstab.

Current setup allows to Edit partition information, but after that partition is listed in fstab, and user have to mount it by hand.

icons/user_comment.png R. S. wrote: (9 years ago)

An upgrade to 11.2 is a harrowing exercise. The hard disk designations are changed and no labels or designations are available or possible to set duringĀ  the upgrade. A separate tool or access to the expert partioner is needed. One cannot set labels or verify partions to be used in the upgrade

icons/user_comment.png A. J. wrote: (8 years ago)

Arvin, does this make sense? Is it easy possible to write such a script for you?

Is anybody else willing to contribute such a script?

icons/user_comment.png A. S. wrote: (8 years ago)

Mount-by ID has been the default for a long time so I don't think the problem
affects many systems. But appart from that the request make sense since the
hard-disk-rename-tracking of hwinfo fails sometimes.

Also note that not all systems provide information for mount-by ID, e.g. in
VMware this is missing.

Writing a script should be straightforward but I cannot comment on the
bootloader config. For 11.2 the script could use python with the new
libstorage-python bindings, for 11.1 C++ or YCP are the only ways.

Also see Fate #305621 (internal only).

Last change: 7 years ago
Voting
Score: 7
  • Negative: 0
  • Neutral: 0
  • Positive: 7
Feature Export
Application-xmlXML   Text-x-logPlaintext   PrinterPrint