[opensuse] lost fstab ??
I just discovered that my fstab is empty and I know not why, only that *I* did not remove/edit it. The timestamp is two days ago... I see a google entry that claims that "MountManager killed my fstab" and that may be what happened to me. "cat /proc/mounts " was suggested and is very similar but by drive name rather than by id. "cp /etc/mtab /etc/fstab was also offered but is also by disk name rather than id. Is there a way to regenerate fstab w/o editing it completely by hand? I ask because I have five internal disks and two external and the editing would be tedious and the disks are identified by id. Note that "yast disk" entries all show the correct mountpoints. Would copying mtab or /proc/mounts to /etc/fstab and then opening "yast disk" and accepting current parameters correct /etc/fstab? (I will try this in the mean time). tks -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Patrick Shanahan
Would copying mtab or /proc/mounts to /etc/fstab and then opening "yast disk" and accepting current parameters correct /etc/fstab? (I will try this in the mean time).
this does *not* work :^( -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 05 July 2009 05:02:57 Patrick Shanahan wrote:
I just discovered that my fstab is empty and I know not why, only that *I* did not remove/edit it. The timestamp is two days ago...
Hm. I seem to recall that you're using an older version of suse - and I also seem to recall that there was a bug in an older version of yast, where under certain circumstances it would clear out fstab, if the fstab file had some small problem that the parser couldn't handle (can't remember the details, this was a long time ago) So, did you recently use yast, round about the time when fstab went away?
Is there a way to regenerate fstab w/o editing it completely by hand? I ask because I have five internal disks and two external and the editing would be tedious and the disks are identified by id. Note that "yast disk" entries all show the correct mountpoints.
I don't think there is a way - but you can save yourself some typing by simply copy/pasting the disk IDs from /dev/disk/by-id/ Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 05 July 2009 05:29:31 Anders Johansson wrote:
On Sunday 05 July 2009 05:02:57 Patrick Shanahan wrote:
I just discovered that my fstab is empty and I know not why, only that *I* did not remove/edit it. The timestamp is two days ago...
Hm. I seem to recall that you're using an older version of suse - and I also seem to recall that there was a bug in an older version of yast, where under certain circumstances it would clear out fstab, if the fstab file had some small problem that the parser couldn't handle (can't remember the details, this was a long time ago)
Found the bug. It was roughly around 10.2 or 10.3, where if you had an extra whitespace at the start or end of a line, everything after the whitespace was deleted, but only if you ran the yast nfs module. Did you run that module? Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Anders Johansson
Found the bug. It was roughly around 10.2 or 10.3, where if you had an extra whitespace at the start or end of a line, everything after the whitespace was deleted, but only if you ran the yast nfs module.
Did you run that module?
No, but thanks for the efforts. It *definitely* was mountmaster. -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Anders Johansson
Hm. I seem to recall that you're using an older version of suse - and I also seem to recall that there was a bug in an older version of yast, where under certain circumstances it would clear out fstab, if the fstab file had some small problem that the parser couldn't handle (can't remember the details, this was a long time ago)
Ah, old-timer's.... But I tend to wander. I developed a rather unique problem which I could not solve with SLED 10 (somewhat bastardized) and installed 11.2 which is current according to zypper dup.
So, did you recently use yast, round about the time when fstab went away?
No, mountmanager was the problem, tested and confirmed. It leaves fstab as a 0 length file :^(. Immediately removed mountmaster and gave bug report to author. Will also file one in bugzilla.
I don't think there is a way - but you can save yourself some typing by simply copy/pasting the disk IDs from /dev/disk/by-id/
Yes, came to the same conclusion, just starting. tks, -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hello, On Sun, 05 Jul 2009, Patrick Shanahan wrote:
Ah, old-timer's.... But I tend to wander. I developed a rather unique problem which I could not solve with SLED 10 (somewhat bastardized) and installed 11.2 which is current according to zypper dup.
You talk about bastardized? You should see my "6.2". *scnr*
I don't think there is a way - but you can save yourself some typing by simply copy/pasting the disk IDs from /dev/disk/by-id/
Yes, came to the same conclusion, just starting.
If you still have the connection /dev/[hs]d* device" <-> mountpoint <-> options, and "just" need to replace the [hs]d* with the corresponding /dev/disk/by-id/ then try the following and if the result suits you ... ==== #!/usr/bin/perl -w use strict; # you will need to check these defaults: my $defaults = qr/rw|errors=continue|barrier=1|data=ordered/; # you might want to check this output format: my $fmt = "/dev/disk/by-id/%- 42s\t%- 10s\t%- 10s %- 20s\t% 3s % 3s"; #### no user servicable stuff below this, theoretically ;) #### my %ids; chdir("/dev/disk/by-id/") or die "$!\n"; opendir(IDS, ".") or die "$!\n"; map { my $d = readlink() or die "$!\n"; $d =~ s@.*/(s\S+)@/dev/$1@; $ids{$d} = $_ unless defined($ids{$d}) && $ids{$d} =~ /^ata/; } grep {!/^.{1,2}$/} readdir(IDS); closedir(IDS); open(PM, "<", "/proc/mounts") or die "$!\n"; while(<PM>) { if( /^\/dev\// ) { my ($dev, $mnt, $fst, $opt, $dmp, $chk) = split(); # replace default options $opt =~ s/$defaults/defaults/g; if( $opt =~ /defaults/) { $opt =~ s/defaults(,|$)//g; $opt = "defaults,$opt"; $opt =~ s/,$//; } if( $mnt eq "/" ) { $chk = 1; } ## we want '/'-partition checked printf "$fmt\n", $ids{$dev}, $mnt, $fst, $opt, $dmp, $chk; } } close(PM) or die; ==== You may need to adjust the dump/fsck fields and replace (more) superfluous default-options (like rw,errors=continue...) in the output. HTH, -dnh PS: I've got 10 internal drives with (only!) 12 partitions on my new box ... I might think about extending above script to use labels or UUIDs or plain devs via option if prodded ;) -- | Ceci n'est pas une pipe -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday, 2009-07-05 at 00:00 -0400, Patrick Shanahan wrote:
Ah, old-timer's.... But I tend to wander. I developed a rather unique problem which I could not solve with SLED 10 (somewhat bastardized) and installed 11.2 which is current according to zypper dup.
11.2, factory? You replaced your normal system with factory? :-O - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkpQip0ACgkQtTMYHG2NR9UkBQCdGKoAHL4mtzMhRKD5rfJOrWV5 fGAAnjnW16ciT2vaxMKlpHQD0HBboZGh =LDX7 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Carlos E. R.
11.2, factory? You replaced your normal system with factory? :-O
Yep, sure did :^) And having very few problems past some experimentation, such as mountmaster which I had no experience, but... I have one problem, php5 doesn't display: <? phpinfo(); ?> I get a blank page, you can try yourself: http://wahoo.no-ip.org/p.php perms are: -rw-r--r-- 1 root root And, ldap is borked. Never used it and know nothing about it, but it is filling my email logs: Jul 5 09:59:50 wahoo postfix/proxymap[6960]: nss_ldap: could not search LDAP server - Server is unavailable xterm *was* opening in ~/Documents, but no longer. Desktop crashed on file transactions, but no longer. gallery2 does not recognize mod_rewrite which is supplied by apache2_worker. I believe all solvable, just need more knowledge :^). mail server working fine. New firefox (3.5) appears fine. Like the desktop effects, but not playing with compiz *yet*. Do "zypper ref;zypper dup" every morning and drive on..... System appears as responsive if not more so that SLED 10++ and working photographs just as before with more software, digikam, new gimp, ... Over all, pretty happy camper. -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 05 July 2009, Patrick Shanahan wrote:
I get a blank page, you can try yourself: http://wahoo.no-ip.org/p.php
Just for fun, I went to your site. The wahoo.no-ip.org works fine. But clicking on the link to the photo album doesn't work. I hover over it, and it shows http://wahoo.no-ip.org/gallery2/index.php. So I click on it and it comes up as not found http://localhost/gallery2/main.php . Same thing happens from your link at the bottom of the message. Maybe it's me. Using FF 3.0.11 on 11.0 Mike -- Powered by SuSE 11.0 Kernel 2.6.25 KDE 3.5 Kmail 1.9 4:56pm up 12 days 19:14, 3 users, load average: 2.01, 2.08, 2.16 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday, 2009-07-05 at 10:06 -0400, Patrick Shanahan wrote:
* Carlos E. R. <> [07-05-09 07:15]:
11.2, factory? You replaced your normal system with factory? :-O
Yep, sure did :^)
...
Do "zypper ref;zypper dup" every morning and drive on.....
You sure like living dangerously ;-) Factory is broken at the moment, or so they said on the list. I never use factory for my main install, just an auxiliary one.
System appears as responsive if not more so that SLED 10++ and working photographs just as before with more software, digikam, new gimp, ...
Over all, pretty happy camper.
:-) - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkpQyO4ACgkQtTMYHG2NR9VKYACgjvf51gBSp6TN+tpzByHxczkt 0/sAn3htjT54NeBwoEY3wimn6ULUSpeW =jryR -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Carlos E. R.
On Sunday, 2009-07-05 at 10:06 -0400, Patrick Shanahan wrote:
* Carlos E. R. <> [07-05-09 07:15]:
11.2, factory? You replaced your normal system with factory? :-O
Yep, sure did :^)
...
Do "zypper ref;zypper dup" every morning and drive on.....
You sure like living dangerously ;-)
yes, 68 years and counting. Haven't missed too much. Still ride my Harley.
Factory is broken at the moment, or so they said on the list. I never use factory for my main install, just an auxiliary one.
Don't see broken, but zypper ref shows all aready up so it may be. Did just get updates of mozilla-xulrunner190 mozilla-xulrunner190-gnomevfs mozilla-xulrunner191 mozilla-xulrunner191-gnomevfs. about to file a bug-report, kwin from this morning is using 100% of one cpu, seems excessive. Will try init 3 -> 5 first. -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 05 July 2009 00:00:10 Patrick Shanahan wrote:
* Anders Johansson
[07-04-09 23:32]: Hm. I seem to recall that you're using an older version of suse - and I also seem to recall that there was a bug in an older version of yast, where under certain circumstances it would clear out fstab, if the fstab file had some small problem that the parser couldn't handle (can't remember the details, this was a long time ago)
Ah, old-timer's.... But I tend to wander. I developed a rather unique problem which I could not solve with SLED 10 (somewhat bastardized) and installed 11.2 which is current according to zypper dup.
So, did you recently use yast, round about the time when fstab went away?
No, mountmanager was the problem, tested and confirmed. It leaves fstab as a 0 length file :^(. Immediately removed mountmaster and gave bug report to author. Will also file one in bugzilla.
I don't think there is a way - but you can save yourself some typing by simply copy/pasting the disk IDs from /dev/disk/by-id/
Yes, came to the same conclusion, just starting.
tks,
Patrick, You could also open the partitioner and go down the partitions adding in the fstab entries to each one you want. Bob S -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Bob S <911@sanctum.com> [07-05-09 21:32]:
You could also open the partitioner and go down the partitions adding in the fstab entries to each one you want.
Tks, I have already recovered. I opened 'yast disk' and changed *each* partition to 'read only' and then exited the fstab screen, returned and removed the 'read only' entry for each partiion. Then told partitioner to finish. I did have to write the proc, udev, etc back by hand, but it was available in /etc/mtab. mountmanager *is* gone from my system forevermore.... -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (6)
-
Anders Johansson
-
Bob S
-
Carlos E. R.
-
David Haller
-
Mike
-
Patrick Shanahan