Message from discussion
Re (5): 40 LinuxPartitions to USB external HDD?
Received: by 10.68.251.136 with SMTP id zk8mr4726952pbc.1.1352644669506;
Sun, 11 Nov 2012 06:37:49 -0800 (PST)
MIME-Version: 1.0
Path: s9ni5146pbb.0!nntp.google.com!news.glorb.com!us.feeder.erje.net!2.us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From: Avoid9...@gmail.com
Newsgroups: alt.os.linux.slackware
Subject: Re (5): 40 LinuxPartitions to USB external HDD?
Date: Sun, 11 Nov 2012 14:37:49 +0000 (UTC)
Organization: A noiseless patient Spider
Lines: 103
Message-ID: <k7od7r$eoe$1@dont-email.me>
References: <877gpsmp46.fld@pix.apaflo.com>
Injection-Date: Sun, 11 Nov 2012 14:37:49 +0000 (UTC)
Injection-Info: mx04.eternal-september.org; posting-host="8ff6469096085642735cb3dfc81ecaff";
logging-data="15118"; mail-complaints-to="ab...@eternal-september.org"; posting-account="U2FsdGVkX19wSulfEQZs9phNzKmdLpN074SHzy4J3Uc="
X-Mailer: Oberon Mail (ejz) on ETH Oberon (2.4.3) for Linux x86
Cancel-Lock: sha1:hTZ4ekmNlNfk3rzpK74oML8KELk=
In article <877gpsmp46....@pix.apaflo.com>, fl...@apaflo.com (Floyd L. Davidson) wrote:
> Avoid9...@gmail.com wrote:
> >
> >-> cd /mnt
> >-> mount /dev/sda1 /mnt/sda1 ==
> >mount USBstik sda1
> >[ 716.286203] NTFS driver 2.1.29 [Flags: R/W MODULE].
> >[ 716.877715] NTFS volume version 3.1.
> >[ 716.886281] NTFS-fs error (device sda1): load_system_files(): Volume is dirty.
> > Mounting read-only. Run chkdsk and mount in Windows.
>
> Okay, there is the problem, and the solution.
>
That's only one of 4 'opinions'. See below.
> >-> df == Toshiba LED flashing 100 secs ? to initialise ?
> >...
> >/dev/sda1 488384532 109524 488275008 1% /mnt/sda1
> >
> >-> ls /mnt/sda1/CRGlog -l ==
> >-r-------- 1 root root 5296 2012-11-09 21:14 /mnt/sda1/CRGlog <-- read-only!
> >
> >-> umount /dev/sda1
> >==> fsck - check and repair a Linux file system
> >-> fsck /dev/sda1 ==
> >fsck 1.41.3 (12-Oct-2008)
> >fsck: fsck.ntfs: not found
> >fsck: Error 2 while executing fsck.ntfs for /dev/sda1
>
> Note that there simply is no fsck option to work on an
> NTFS file system. Given that we are lucky that people
> could even figure out enough of how it works to write
> code to mount it, that isn't surprising. Unfortunate
> though...
>
Apparently Android is BIG. Can't they blow this M$loth
out-of-the-water?
> It isn't being mounted RO. It is corrupted, and that
> is causing the problems you see.
>
Well no, not if *I* can see my text that I wrote with kogi.
> The error message says that CHKDSK, on a Windows system,
> should be used to correct the problem.
>
I'm pre-biased by extra knowledge of the particular circumstances:
Of the 4 krnl 2.6* installations: slak13, kogi, debLenny, debEtch;
the Debs are pointing to WINDOWS.
Perhaps, by the time that I got to test with the 2 Debs, I had already
bumped the bad-connector. But when I initially started, I was very
careful, and slak13 didn't mount it.
To retest if kogi can still R/W, which I expect, I need to swap one
IDE for the CD, and then I'll report back.
-------------
But since I've got a well informed user of `Gnus` from the
diagonally oposite side of the globe, if you also use emacs, you
may be able to advise on this more difficult problem:
I've got a tested/working awk script, which does:
<deleteFromInFile allFurther TextBlocks WhichRegexMatch dFile>,
which I call by:
`gawk -f awk.code dFile inFile > cleanedFile`
And then I check how the inFile has been cleaned of repeated
garbage, by comparing:
`cat inFile | wc -l`
`cat cleaned | wc -l`
As you know, these days, if you accumulate 6 pages from a
'knowledge site', by appending the http-ed text to a file,
using eg. lynx, like building a book, you get each 'page',
having the same repeated <header material>...etc.
These repeats is what the awk-script deletes.
Normal editors CAN <search & replace> all further text,
but usually only one line - max.
emacs can <RegexSearch & replace> all further text of
multi-line size/buffer.
As a previous emacs-slight-experimenter I checked
IF/HOW emacs would do it.
There seems to be problems with multiple RE-syntax in emacs?
So I need to use the already proven awk-script.
Presently, it's very AWKward, since I need to cycle the text
between 2 files, copying the <RepeatingTextBlocks> to dFile.
Obviously, you'd rather have it like a normal editor , where
the deletions, become visible on the single file being edited.
Do you think emacs can use the awk-script to repeatedly
update the 'view' of the same text-file while it's changing,
repeatedly, like a normal editor would show the search
and replaceAll?
== TIA.
PS. when I do a `df` now the Toshiba LED starts flashing for
about 100secs, which is hardly surprising, given the 4-line USB2?
And now the LED is ON. Probably it was previously not rotating?
Oh no, it's started flashing for 30secs, and 'waiting' the command.