After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 341686 - Adding an option to add/remove lines from fstab
Adding an option to add/remove lines from fstab
Status: RESOLVED OBSOLETE
Product: gparted
Classification: Other
Component: application
GIT HEAD
Other Linux
: Normal enhancement
: ---
Assigned To: gparted maintainers alias
gparted maintainers alias
: 584628 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-05-13 22:07 UTC by Carles Pina i Estany
Modified: 2020-11-13 10:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to add "edit fstab" option (13.32 KB, patch)
2006-05-13 22:09 UTC, Carles Pina i Estany
none Details | Review

Description Carles Pina i Estany 2006-05-13 22:07:13 UTC
Patching gparted will add an option to popup menu to add partitions to /etc/fstab, or to change options and mountpoint values. 

I have seen lot of Linux new users with same problem: "how to add my Windows partition to fstab". Then they have to install some "rare" programs or to edit manually /etc/fstab, which is problematic for new user (change user to root, edit, etc.)

This patch tries to "fix" it.

Problems with the patch: probably only for Linux operating system (I don't know if gparted is working in other architectures). Maybe this option should be disabled in other architectures (at configure time).
Comment 1 Carles Pina i Estany 2006-05-13 22:09:21 UTC
Created attachment 65404 [details] [review]
Patch to add "edit fstab" option

Patch is in first stage, a kind of "proof of concept".

Will save the changes to /etc/fstab2

If we really want to incorporate to gparted, it is fine to improve some things, and add some checks (or change the behaviour of patch and apply changes with other changes from gparted queue changes, etc.)
Comment 2 Carles Pina i Estany 2006-05-15 19:20:27 UTC
I would like to add something. The patch that I sent 2 days ago allows you to edit or delete lines from fstab, but not to add. And edit lines should be clever: if user changes the filesystem, should adapt there too (or allow user to edit file system field).

In some days I will add this features to new patch. But we should think if this is interesting for gparted or no :-)
Comment 3 Mantas Kriaučiūnas 2006-07-26 15:35:08 UTC
Nice work, why add/remove lines from fstab patch isn't included in GParted CVS ?
Comment 4 Plors (Bart H) 2006-07-26 16:44:00 UTC
because (IMHO) it doesn't really belong in a partitioner. I will consider adding it when including ubuntu's installerpatch in the official gpartedtree.
Comment 5 Carles Pina i Estany 2006-07-26 19:56:43 UTC
plors: if you want to add the patch, tell me and I will do some more test. I think that the patch will not work for some partition that is not in /etc/fstab (easy to fix it, I can do it in the middle of next week).

When I made the patch I was thinking with Ubuntu users :-) (I am Debian user, but I have helped some Ubuntu users... and it should be fine to be able to change /etc/fstab from Gparted, IMHO)
Comment 6 Mike Williamson 2006-11-17 17:24:23 UTC
I think that this is an excellent idea, especially considering that there are currently few applications that can do this - for a point of reference, you could look at DiskDrake [1], which already works pretty well but appears to be part of the Mandriva Control Center.
Comment 7 Carles Pina i Estany 2006-11-17 17:54:27 UTC
Hi Mike!

Just this week I wanted to ping it (as now I have a few free time to improve it, if the idea likes and there is any chance to have in the mainstream program).
The actual implementation if I remmeber good has some problems...

So, pinging it again, to know if there is interest...
Comment 8 Curtis Gedak 2010-03-09 18:29:54 UTC
*** Bug 584628 has been marked as a duplicate of this bug. ***
Comment 9 Leslie Satenstein 2014-01-26 16:51:41 UTC
(In reply to comment #0)
> Patching gparted will add an option to popup menu to add partitions to
> /etc/fstab, or to change options and mountpoint values. 
> 
> I have seen lot of Linux new users with same problem: "how to add my Windows
> partition to fstab". Then they have to install some "rare" programs or to edit
> manually /etc/fstab, which is problematic for new user (change user to root,
> edit, etc.)
> 
> This patch tries to "fix" it.
> 
> Problems with the patch: probably only for Linux operating system (I don't know
> if gparted is working in other architectures). Maybe this option should be
> disabled in other architectures (at configure time).


I am definitely opposed to this request.  I have three different linux distributions on one hard disk. They all share a single swap file.

Will gparted know how to update the non active distributions?
Comment 10 André Klapper 2020-11-13 10:41:18 UTC
bugzilla.gnome.org is being replaced by gitlab.gnome.org. We are closing all old bug reports and feature requests in GNOME Bugzilla which have not seen updates for a long time.

If you still use gparted and if you still see this bug / want this feature in a recent and currently supported version, then please feel free to report it at
https://gitlab.gnome.org/GNOME/gparted/-/issues/
by following the guidelines at
https://wiki.gnome.org/Community/GettingInTouch/BugReportingGuidelines

Thank you for creating this report and we are sorry it could not be implemented so far (volunteer workforce and time is limited).