[Bug 350539] New: yast2 repair remove fstab entries in error
https://bugzilla.novell.com/show_bug.cgi?id=350539 Summary: yast2 repair remove fstab entries in error Product: openSUSE 11.0 Version: unspecified Platform: x86 OS/Version: openSUSE 11.0 Status: NEW Severity: Major Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: casualprogrammer@yahoo.com QAContact: jsrain@novell.com Found By: Beta-Customer In the course of a yast2 repair session a point is reached where fstab entries are checked. It seems that the repair tool does not recognize the new format used recently. My disk has two Windows XP NTFS Partions, fstab entries created during installation and working perfectly well are complained about by yast2 repair. /dev/disk/by-id/scsi-SATA_FUJITSU_MHV2080_NW78T662BLKF-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0 /dev/disk/by-id/scsi-SATA_FUJITSU_MHV2080_NW78T662BLKF-part2 /windows/D ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0 Hardware: Notebook FSC Amilo Si1520 Graphics: Intel 945 GM, LCD 1280*800 Wireless: Intel ipw3945 Sound: Intel ICH7 Desktop: GNOME OS: openSUSE 11.0 (i586) Alpha0 VERSION = 11.0 Kernel: 2.6.24-rc5-git7-2-default rpm -qa | grep yast yast2-trans-wa-2.15.20-2 yast2-trans-cy-2.15.1-34 yast2-trans-pt-2.15.20-2 yast2-trans-zh_CN-2.15.13-2 yast2-control-center-gnome-2.13.2-127 yast2-trans-af-2.15.5-11 yast2-gtk-2.15.9-53 yast2-testsuite-2.16.0-13 yast2-ldap-2.15.1-108 yast2-autofs-2.15.2-95 yast2-control-center-qt-2.16.0-7 yast2-restore-2.16.0-15 yast2-sudo-2.15.3-118 yast2-slide-show-SuSELinux-2.15.16-2 yast2-trans-ar-2.15.4-15 yast2-trans-pot-2.15.2-25 yast2-core-2.16.16-2 yast2-ncurses-2.16.7-3 yast2-sshd-2.16.0-9 yast2-apparmor-2.1-54 yast2-samba-client-2.16.1-13 yast2-ldap-server-2.15.5-104 yast2-storage-evms-2.16.7-2 yast2-trans-bg-2.15.6-2 yast2-trans-hr-2.15.20-2 yast2-trans-vi-2.15.1-34 yast2-trans-pa-2.15.12-11 yast2-pkg-bindings-2.16.7-2 yast2-firewall-2.15.8-35 yast2-printer-2.16.6-7 yast2-kerberos-client-2.16.1-3 yast2-kerberos-server-2.16.0-11 yast2-inetd-2.15.1-72 yast2-printer-devel-doc-2.16.6-7 yast2-trans-xh-2.13.10-2 yast2-trans-zu-2.13.11-2 yast2-trans-stats-2.15.0-46 yast2-trans-ja-2.15.10-2 yast2-CASA-1.7.1461-41 yast2-iscsi-server-2.14.3-115 yast2-tv-2.16.0-27 yast2-dirinstall-2.16.0-13 yast2-installation-2.16.8-2 autoyast2-2.16.3-3 yast2-trans-en_US-2.15.5-19 yast2-trans-de-2.15.29-2 yast2-trans-it-2.15.13-2 yast2-trans-ka-2.15.1-31 yast2-transfer-2.16.0-4 yast2-x11-2.15.11-56 yast2-ldap-client-2.16.5-3 yast2-nfs-client-2.15.0-52 yast2-network-2.16.17-3 yast2-nis-server-devel-doc-2.16.0-31 yast2-casa-ats-1.7.1451-70 yast2-storage-devel-2.16.7-2 yast2-trans-tr-2.15.2-11 yast2-trans-zh_TW-2.15.13-2 yast2-trans-pl-2.15.14-2 yast2-trans-lt-2.15.12-2 yast2-trans-sr-2.15.3-2 yast2-trans-ko-2.15.5-2 yast2-trans-id-2.15.1-34 yast2-xml-2.16.0-10 yast2-add-on-creator-2.16.3-3 yast2-bluetooth-2.15.4-46 yast2-iscsi-client-2.16.2-9 yast2-repair-2.16.2-14 yast2-http-server-2.15.9-4 yast2-theme-openSUSE-2.16.2-2 yast2-trans-nb-2.15.12-2 yast2-trans-en_GB-2.15.6-2 yast2-trans-ta-2.15.5-11 yast2-country-data-2.16.4-3 yast2-trans-ro-2.15.26-2 yast2-trans-ru-2.15.26-2 yast2-trans-nl-2.15.12-2 yast2-trans-mr-2.15.5-11 yast2-trans-lo-2.15.1-31 yast2-core-devel-2.16.16-2 yast2-2.16.18-3 yast2-slp-server-2.15.0-70 yast2-runlevel-2.16.0-15 yast2-multipath-2.13.0-113 yast2-instserver-2.15.4-69 yast2-ntp-client-2.16.2-9 yast2-bootloader-2.16.3-3 yast2-tune-2.15.7-51 yast2-product-creator-2.16.6-4 yast2-samba-server-2.16.0-27 yast2-storage-2.16.7-2 yast2-metapackage-handler-0.7.3-13 yast2-trans-cs-2.15.14-2 yast2-network-devel-doc-2.16.17-3 yast2-trans-fi-2.15.22-2 yast2-trans-sk-2.15.14-2 yast2-trans-da-2.15.14-2 yast2-trans-bs-2.15.1-34 yast2-trans-et-2.15.12-2 yast2-tftp-server-2.14.0-132 yast2-security-2.15.1-52 yast2-ruby-bindings-0.2.0-29 yast2-python-bindings-2.16.2-5 yast2-drbd-2.13.1-78 yast2-scanner-2.15.5-70 yast2-control-center-2.16.0-7 yast2-mouse-2.16.0-13 yast2-update-2.16.1-15 yast2-update-FACTORY-2.16.1-15 yast2-mail-2.15.23-34 yast2-ftp-server-2.15.9-55 yast2-trans-fr-2.15.17-2 yast2-devtools-2.16.3-5 yast2-ca-management-2.16.4-3 yast2-sysconfig-2.15.3-85 yast2-fingerprint-reader-2.16.2-3 yast2-users-2.16.5-3 yast2-live-installer-2.16.1-13 yast2-storage-lib-2.16.7-2 yast2-trans-gu-2.13.6-11 yast2-trans-bn-2.15.7-11 yast2-trans-es-2.15.7-2 yast2-trans-pt_BR-2.15.15-2 yast2-trans-allpacks-2.15.0-48 yast2-country-2.16.4-3 yast2-squid-2.16.0-23 yast2-online-update-2.16.6-3 yast2-online-update-frontend-2.16.6-3 yast2-backup-2.16.1-3 yast2-firstboot-2.16.2-16 yast2-trans-km-2.15.28-2 yast2-trans-jv-2.15.1-31 yast2-trans-uk-2.15.23-2 yast2-trans-fa-2.15.1-31 yast2-irda-2.15.1-122 yast2-isns-1.0.4-34 yast2-registration-2.16.0-15 autoyast2-installation-2.16.3-3 yast2-dhcp-server-2.15.5-47 yast2-trans-sl-2.15.4-2 yast2-trans-el-2.15.14-2 yast2-trans-sv-2.15.12-2 yast2-trans-ca-2.15.4-11 yast2-slp-2.15.0-59 yast2-pkg-bindings-devel-doc-2.16.7-2 yast2-packager-2.16.12-3 yast2-support-2.15.3-42 yast2-mcs-plugin-0.1.0-64 yast2-kdump-2.16.8-3 yast2-profile-manager-2.16.0-14 yast2-qt-2.16.11-2 yast2-trans-gl-2.15.1-34 yast2-trans-si-2.15.2-34 yast2-trans-hi-2.15.6-11 yast2-trans-hu-2.15.18-2 yast2-perl-bindings-2.16.0-29 yast2-devel-doc-2.16.18-3 yast2-nfs-server-2.15.4-52 yast2-nis-server-2.16.0-31 yast2-phone-services-2.15.0-108 yast2-schema-2.15.0-156 yast2-trans-mk-2.15.2-2 yast2-mail-plugins-2.15.23-34 yast2-hardware-detection-2.16.0-7 yast2-sound-2.16.1-17 yast2-pam-2.16.0-24 yast2-nis-client-2.16.0-23 yast2-dns-server-2.16.1-3 yast2-add-on-2.16.0-22 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=350539
Cristian Rodriguez
https://bugzilla.novell.com/show_bug.cgi?id=350539
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c1
Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=350539
User casualprogrammer@yahoo.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c2
Casual J. Programmer
https://bugzilla.novell.com/show_bug.cgi?id=350539
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c3
--- Comment #3 from Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=350539
Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=350539
User casualprogrammer@yahoo.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c4
Casual J. Programmer
https://bugzilla.novell.com/show_bug.cgi?id=350539
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c5
--- Comment #5 from Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=350539
Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=350539
User casualprogrammer@yahoo.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c6
--- Comment #6 from Casual J. Programmer
https://bugzilla.novell.com/show_bug.cgi?id=350539
User casualprogrammer@yahoo.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c7
--- Comment #7 from Casual J. Programmer
https://bugzilla.novell.com/show_bug.cgi?id=350539
User casualprogrammer@yahoo.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c8
--- Comment #8 from Casual J. Programmer
https://bugzilla.novell.com/show_bug.cgi?id=350539
User casualprogrammer@yahoo.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c9
--- Comment #9 from Casual J. Programmer
https://bugzilla.novell.com/show_bug.cgi?id=350539
Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=350539
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c10
--- Comment #10 from Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=350539
Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=350539
User casualprogrammer@yahoo.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c11
Casual J. Programmer
https://bugzilla.novell.com/show_bug.cgi?id=350539
User casualprogrammer@yahoo.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c12
--- Comment #12 from Casual J. Programmer
https://bugzilla.novell.com/show_bug.cgi?id=350539
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c13
Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=350539
Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=350539
User casualprogrammer@yahoo.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c14
Casual J. Programmer
https://bugzilla.novell.com/show_bug.cgi?id=350539
User casualprogrammer@yahoo.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c15
--- Comment #15 from Casual J. Programmer
https://bugzilla.novell.com/show_bug.cgi?id=350539
User casualprogrammer@yahoo.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c16
--- Comment #16 from Casual J. Programmer
https://bugzilla.novell.com/show_bug.cgi?id=350539
User casualprogrammer@yahoo.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c17
--- Comment #17 from Casual J. Programmer
https://bugzilla.novell.com/show_bug.cgi?id=350539
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c18
Jiří Suchomel
I think this window needs a slider to enable visibility of the complete line.
I agree.
Obviously it complains about the user space ntfs ( which is favoured by install ) and suggests the kernel ntfs file system instead.
Thomas, why is this different? Technically, I call FileSystems::GetMountString with `ntfs parameter (= value of "detected_fs" key) and it returns the default value ("ntfs") instead of "ntfs-3g". The second issue is with mount options: FileSystems::CheckFstabOptions returns "fmask=133,dmask=022,locale=en_US.UTF-8" in the "unknown_options" entry. I assume they were generated during instalation, so I wonder why are they unknown now? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=350539
User casualprogrammer@yahoo.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c19
--- Comment #19 from Casual J. Programmer
https://bugzilla.novell.com/show_bug.cgi?id=350539
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c20
--- Comment #20 from Jiří Suchomel
Can you please eludicate on this topic from #14 also ?
"It now suggests /media as mountpoint for /dev/sdb1, I still don't see why it suggests putting up an fstab entry for a removable drive,please explain."
I was under the impression only permanent devices go into fstab.
I'll look into this as well, I hope after other issues are done. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=350539
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c21
--- Comment #21 from Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=350539
User casualprogrammer@yahoo.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c22
--- Comment #22 from Casual J. Programmer
https://bugzilla.novell.com/show_bug.cgi?id=350539
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c23
--- Comment #23 from Jiří Suchomel
re #21 Not sure if this is what you want:
hwinfo --disk | grep Features
That's why I'm asking Thomas Fehr to provide ycp API :-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=350539
User fehr@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c24
Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=350539
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c25
Jiří Suchomel
ad comment #18: - Due to the added ntfs-3g driver now there are more than on possibility to mount ntfs filesystems (both "mount -t ntfs" and "mount -t ntfs-3g" should work). I can change GetMountString to return ntfs-3g if you prefer that.
My problem with that GetMountString call is that it actually returns the default value, passed as seconf parameter. According to the function code, it looks like it _should_ return ntfs-3g so I wonder what's wrong here?
- The fact that some of the options show up under "Other Options" is because there are no UI-fields to set these options, all options without special UI fields show up under "Other Options", this is not new and was similar for older ntfs and vfat fstab options.
I only need the way to verify if current settings in /etc/fstab are somehow correct. That's why I'm using FileSystems::CheckFstabOptions and report an error where the key "all_known" in the return map is set to false. If this case is only that you offer no configuration for extra options but they are actually at correct place, please either change the return value of CheckFstabOptions or giv e me other way to verify such fact.
ad comment #21: The property of hotplugability is not a property of a partition, but of a disk. So the key is contained in the map describing the disk, not a partition of the disk. You can get the map of a certain disk with e.g.
map disk = Storage::GetDisk( Storage::GetTargetMap(), "/dev/sda" ); boolean pluggable = disk["hotpluggable"]:false;
In the time when I need this information, I only ave the data shown in comment 21. But the map Storage::GetDisk (Storage::GetTargetMap(), part["device"]:"") (where "device" is /dev/sdd1) doesn't have hotpluggable key at all. I'm testing it on 10.3 is it some new feature? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=350539
User fehr@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c26
Thomas Fehr
My problem with that GetMountString call is that it actually returns the default value, passed as seconf parameter. According to the function code, it looks like it _should_ return ntfs-3g so I wonder what's wrong here?
Just try with newest SVN code, it should return "ntfs-3g" now. If not I need y2log file.
I only need the way to verify if current settings in /etc/fstab are somehow correct. That's why I'm using FileSystems::CheckFstabOptions and report an error where the key "all_known" in the return map is set to false. If this case is only that you offer no configuration for extra options but they are actually at correct place, please either change the return value of CheckFstabOptions or give me other way to verify such fact.
Ah, now I see. Forgot to add "locale=", "fmask=", "dmask=" to FstabOptionRegex. Please retry with newest SVN version of FileSystems.ycp.
In the time when I need this information, I only ave the data shown in comment 21. But the map Storage::GetDisk (Storage::GetTargetMap(), part["device"]:"") (where "device" is /dev/sdd1) doesn't have hotpluggable key at all. I'm testing it on 10.3 is it some new feature?
Calling GetDisk with a partition as device argument will of course not do what you want since the device name of the disk is "/dev/sdd", not "/dev/sdd1". If you want to use a partition device name you need to call Storage::GetDiskPartititon which accepts partition devices and searches and returns the corresponding disk map from Storage BTW: The "hotpluggable" key is only present if it is true. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=350539
User fehr@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c27
--- Comment #27 from Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=350539
User fehr@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c28
--- Comment #28 from Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=350539
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c29
Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=350539
User fehr@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c30
Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=350539
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350539#c31
Jiří Suchomel
participants (1)
-
bugzilla_noreply@novell.com