retrieval

retrieval

am 31.12.2004 05:55:12 von ankitjain1580

Hi

i want to know if somebody can help me directly or
indirectly on this topic by providing some source
material to read etc.

i want to retireve the lost file/files from my system
which are removed by rm command

i dont have any backup for them

tell me any way i.e if i want to retirive the file
immediately after removal

thanks in advance

ankit jain



__________________________________
Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: retrieval

am 31.12.2004 06:06:42 von Amit Dang

Hi Ankit, following link will guide you how to undelete files on linux. Its
easy to undelete small files, I have tried and it works. Never tried with a
long file.
http://www.tldp.org/HOWTO/Ext2fs-Undeletion.html

Hope this solves your problem.
Enjoy
Amit Dang

----- Original Message -----
From: "Ankit Jain"
To: "newbie"
Sent: Friday, December 31, 2004 10:25 AM
Subject: retrieval


> Hi
>
> i want to know if somebody can help me directly or
> indirectly on this topic by providing some source
> material to read etc.
>
> i want to retireve the lost file/files from my system
> which are removed by rm command
>
> i dont have any backup for them
>
> tell me any way i.e if i want to retirive the file
> immediately after removal
>
> thanks in advance
>
> ankit jain
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - Easier than ever with enhanced search. Learn more.
> http://info.mail.yahoo.com/mail_250
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: retrieval

am 01.01.2005 07:06:53 von heisspf

Do a google for safedelete.

DESCRIPTION
safedelete provides a way to safely delete files so they
can be undeleted on demand. safedelete `deletes' files by
copying them to a safedelete directory which is specified
at install time. Files processed by safedelete are given
a new unique filename after they are placed in the
safedelete directory. This allows multiple copies of the
same file to be safedeleted without having to worry about
collisions with existing files.

Regards
--
Peter

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: retrieval

am 01.01.2005 14:59:11 von hamid.ohadi

I've noticed that some distributions have the --interactive option
switched on by default and therefore the less would be the chance of
removing a file by mistake. I was wondering if it's possible to do
that in SuSE as well or not.

On 01-01-05 14:06, Peter wrote:
> Do a google for safedelete.
>
> DESCRIPTION
> safedelete provides a way to safely delete files so they
> can be undeleted on demand. safedelete `deletes' files by
> copying them to a safedelete directory which is specified
> at install time. Files processed by safedelete are given
> a new unique filename after they are placed in the
> safedelete directory. This allows multiple copies of the
> same file to be safedeleted without having to worry about
> collisions with existing files.
>
> Regards
> --
> Peter
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs

--
Monday is an awful way to spend one seventh of your life.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: retrieval

am 02.01.2005 09:01:28 von joy merwin monteiro

its really a trivial thing..... just alias rm to rm -i in your
..bashrc

if you have deleted it one bruteforce method to retrieve it (if it was
a text file)
is to run 'strings' on the partition that had the file, catch all output
and sift through it to find your data (might be possible, a friend of
mine had tried it...)

regards,
Joy.M.Monteiro


On Sat, 1 Jan 2005 13:59:11 +0000, Ohadi, Hamid
wrote:
> I've noticed that some distributions have the --interactive option
> switched on by default and therefore the less would be the chance of
> removing a file by mistake. I was wondering if it's possible to do
> that in SuSE as well or not.
>
> On 01-01-05 14:06, Peter wrote:
> > Do a google for safedelete.
> >
> > DESCRIPTION
> > safedelete provides a way to safely delete files so they
> > can be undeleted on demand. safedelete `deletes' files by
> > copying them to a safedelete directory which is specified
> > at install time. Files processed by safedelete are given
> > a new unique filename after they are placed in the
> > safedelete directory. This allows multiple copies of the
> > same file to be safedeleted without having to worry about
> > collisions with existing files.
> >
> > Regards
> > --
> > Peter
> >
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
> > Please read the FAQ at http://www.linux-learn.org/faqs
>
> --
> Monday is an awful way to spend one seventh of your life.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
>


--
people always turn away,
from the eyes of a stranger...
Afraid to know
what lies behind the stare.......
--QueensRyche
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Do not delete files by mistake (was Re: retrieval)

am 02.01.2005 09:32:40 von heimwill

joy merwin monteiro wrote:
> its really a trivial thing..... just alias rm to rm -i in your
> .bashrc
>
or you can put the following into your .bashrc
alias rm='mv --target-directory=/root/Desktop/Trash $1 '

Ulrich
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: Do not delete files by mistake (was Re: retrieval)

am 03.01.2005 07:33:09 von Richard Adams

On Sunday 02 January 2005 09:32, Ulrich Fürst wrote:
> joy merwin monteiro wrote:
> > its really a trivial thing..... just alias rm to rm -i in your
> > .bashrc
>
> or you can put the following into your .bashrc
> alias rm=3D'mv --target-directory=3D/root/Desktop/Trash $1 '

I dont have the origanal message anymore to check, but i thought the th=
read=20
was about a "user" deleting files, if that is correct then the above wi=
ll not=20
work as a normal user cannot write to /root (s) directory.

It is a good idea to do the same for root and users tho'.
On another note many distro's dont have a trash directory, so the need =
to=20
create one arises as well.


> Ulrich
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbi=
e" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs

--=20
If the Linux community is a bunch of thieves because they
try to imitate windows programs, then the Windows community
is built on organized crime.

Regards Richard
pa3gcu@zeelandnet.nl
http://people.zeelandnet.nl/pa3gcu/

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie"=
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: Do not delete files by mistake (was Re: retrieval)

am 03.01.2005 19:14:36 von heimwill

Richard Adams wrote:=20
> On Sunday 02 January 2005 09:32, Ulrich Fürst wrote:
> > or you can put the following into your .bashrc
> > alias rm=3D'mv --target-directory=3D/root/Desktop/Trash $1 '
>=20
> I dont have the origanal message anymore to check, but i thought the
> thread was about a "user" deleting files, if that is correct then the
> above will not work as a normal user cannot write to /root (s)
> directory.
He didn't write about user or root. And I took the example out of root'=
s
bashrc by random. I've got the same in the bashrc of each user.
>=20
> It is a good idea to do the same for root and users tho'.
> On another note many distro's dont have a trash directory, so the nee=
d
> to create one arises as well.
But that's no problem. You can take $HOME/.trash or whatever. I also
created a script running as cron job to keep the size of the directory
(it's contents) below a defined size.

Ulrich

By the way: You could also tell KDE to use any directory as a trash
directory.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie"=
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

"ssh" uses port 20 only?

am 04.01.2005 18:53:54 von chuck gelm net

Howdy, Y'all:

My brother and I are on separate networks
(I am in Ohio and he is in Oklamoma, ~1600 miles apart).
I am trying to allow my brother to 'ssh' with a host inside my LAN.
On my router I am NAT'ing only port 22; via IPTABLES thusly:

# forward ssh (22) to 'server'
/usr/sbin/iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 22 -j
DNAT --to 192.168.0.84
/usr/sbin/iptables -t nat -A PREROUTING -i eth1 -p udp --dport 22 -j
DNAT --to 192.168.0.84

I can 'ssh' into my brother's host inside his LAN, but he is
NAT'ing ports 20 through 23 (ftp, ssh, & telnet). Does 'ssh'
also use ports 20,21, and/or 23 ?
Do I need to NAT more ports?

Here is my brother's portion of IPTABLES, which works remotely for me:

# forward ftp,ssh,telnet
/usr/sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 20:23 -j
DNAT --to 192.168.0.48
/usr/sbin/iptables -t nat -A PREROUTING -i eth0 -p udp --dport 20:23 -j
DNAT --to 192.168.0.48

'man ssh' did not indicate any port numbers.

I can 'ssh' with my host via eth0, so 'ssh' is working on the
intended host.
Regards, Chuck



-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: "ssh" uses port 20 only?

am 04.01.2005 19:53:53 von Ray Olszewski

At 12:53 PM 1/4/2005 -0500, chuck gelm wrote:

>Howdy, Y'all:
>
> My brother and I are on separate networks
>(I am in Ohio and he is in Oklamoma, ~1600 miles apart).
>I am trying to allow my brother to 'ssh' with a host inside my LAN.
>On my router I am NAT'ing only port 22; via IPTABLES thusly:
>
># forward ssh (22) to 'server'
>/usr/sbin/iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 22 -j DNAT
>--to 192.168.0.84
>/usr/sbin/iptables -t nat -A PREROUTING -i eth1 -p udp --dport 22 -j DNAT
>--to 192.168.0.84
>
> I can 'ssh' into my brother's host inside his LAN, but he is
>NAT'ing ports 20 through 23 (ftp, ssh, & telnet). Does 'ssh'
>also use ports 20,21, and/or 23 ?

No. 20 and 21 are ftp. 23 is telnet. ssh uses none of them.

>Do I need to NAT more ports?

No.

But you *do* (probably; actually, it depends on the rest of the ruleset)
need to add an entry to the FORWARD table, one something like this:

iptables -A FORWARD -i eth1 -p tcp --dport 22 -j ACCEPT

(I infer from your DNAT rule that eth1 is your external interface.) You
*probably* have a FORWARD-table rule or policy blocking all originating
connections from the outside, and this rule needs to precede that one so
port 22 will be an exception to it.

Were I you, I would consider modifying this rule so it only ACCEPTed ssh
traffic originating from your brother's source IP address ... but you need
to make your own security decisions, so I offer that only as a suggestion.

>Here is my brother's portion of IPTABLES, which works remotely for me:
>
># forward ftp,ssh,telnet
>/usr/sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 20:23 -j
>DNAT --to 192.168.0.48
>/usr/sbin/iptables -t nat -A PREROUTING -i eth0 -p udp --dport 20:23 -j
>DNAT --to 192.168.0.48
>
>'man ssh' did not indicate any port numbers.
>
>I can 'ssh' with my host via eth0, so 'ssh' is working on the
>intended host.
>Regards, Chuck





--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.6.7 - Release Date: 12/30/2004


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: retrieval

am 07.01.2005 09:58:06 von ankitjain1580

hi

sorry but i could not understand by unmounting the
partition. i dont use floppy drive or something like
that. if i am using hard disk then i cant unmopunt the
whole partition

so what to do

thanks

ankit jain
--- Amit Dang
wrote:

> Hi Ankit, following link will guide you how to
> undelete files on linux. Its
> easy to undelete small files, I have tried and it
> works. Never tried with a
> long file.
> http://www.tldp.org/HOWTO/Ext2fs-Undeletion.html
>
> Hope this solves your problem.
> Enjoy
> Amit Dang
>
> ----- Original Message -----
> From: "Ankit Jain"
> To: "newbie"
> Sent: Friday, December 31, 2004 10:25 AM
> Subject: retrieval
>
>
> > Hi
> >
> > i want to know if somebody can help me directly or
> > indirectly on this topic by providing some source
> > material to read etc.
> >
> > i want to retireve the lost file/files from my
> system
> > which are removed by rm command
> >
> > i dont have any backup for them
> >
> > tell me any way i.e if i want to retirive the file
> > immediately after removal
> >
> > thanks in advance
> >
> > ankit jain
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Mail - Easier than ever with enhanced
> search. Learn more.
> > http://info.mail.yahoo.com/mail_250
> > -
> > To unsubscribe from this list: send the line
> "unsubscribe linux-newbie" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at
> http://vger.kernel.org/majordomo-info.html
> > Please read the FAQ at
> http://www.linux-learn.org/faqs
>
> -
> To unsubscribe from this list: send the line
> "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at
> http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at
> http://www.linux-learn.org/faqs
>




__________________________________
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: retrieval

am 07.01.2005 15:13:11 von chuck gelm net

Ankit Jain wrote:
> hi
>
> sorry but i could not understand by unmounting the
> partition. i dont use floppy drive or something like
> that. if i am using hard disk then i cant unmopunt the
> whole partition
>
> so what to do
>
> thanks
>
> ankit jain

Hi, ankit jain:

The syntax of the command is 'umount' rather than 'unmount'.
Yes, you can 'umount' an entire partition and, actually,
you must 'mount' and 'umount' entire partitions.

If the partition where the deleted files existed was '/',
then you can (restart the system and) change the mount of
the partition to be 'ro'; read only. This will keep the data
area from being written over. I think that there is a
command to "re-mount ro" a partition, so you man not need
to restart your system.

You may choose to shut down the system and reboot using
your distribution install or a recovery CD-ROM disk or any
other recovery media. Using a boot media created from a
KNOPPIX.iso is a popular way to recover data from many a
operating system and distribution; even M$-Windoze.

Perhaps,
if your '/' partition contained the deleted file and
it was mounted as partition /dev/hda1 and
its type of filesystem was second extended:

mount -t ext2 -o remount,ro /dev/hda1 /

would be syntactically correct.

I hope this helps, Chuck

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs