Skip to contentSkip to conversation

howto apply supermount patch only....

DISCUSSION Marián Tomko 3 participants 3 messages Aug 9, 2004

lore
Share & tools
lore
#0 lore raw

Hello

I have 2.6.7 kernel and I want only apply supermount patch. I downloaded supermount-ng204.diff from ck6 splitout. I copied it into /usr/src. Here I cd linux-2.6.7. From linux-2.6.7 I run patch -p1 < ../supermount-ng204.diff

And I got this:
patch unexpectedly ends in middle of line
patch: **** Only garbage was found in the patch input.

What is the problem here? How to cerrectly applied this patch?

Thanx

Marian Tomko

PS - I am new in this... So please if it is trivial correct me.

#1 lore raw
Quoted 1 line

patch: **** Only garbage was found in the patch input.

Usually this means that your patch file, supermount-ng204.diff in the case you describe, doesn't contain an actual, correctly formatted, patch.

The most common format for patch files has some commentary in free form text, followed by one or more patches, which are the output of a diff command such as "diff -Naurp". If you look on this lkml email list for posts that have a Subject starting with "[PATCH]" or "[patch]", you will find many examples of such.

If your supermount-ng204.diff file is not of this format, then the 'patch' command will complain in ways such as you report. When that happens, you have to figure out why your patch file is bad - perhaps it got mangled during your download and copy operations, or perhaps it isn't a proper patch to begin with. You will have to trace that down.

Signature · 3 lines
                          I won't rest till it's the best ...
                          Programmer, Linux Scalability
                          Paul Jackson <[email protected]> 1.650.933.1373
#2 lore raw
Quoted 5 lines · Paul Jackson
Quoted 1 line

patch: **** Only garbage was found in the patch input.

Usually this means that your patch file, supermount-ng204.diff in the case you describe, doesn't contain an actual, correctly formatted, patch.

Maybe your patch is gzipped? Some browsers strip the .gz extension but forget to decompress the file, or vice versa.

Try "zcat ../supermount-ng204.diff | patch -p1"

Eric