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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
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" <[email protected]>
To: "newbie" <[email protected]>
Sent: Friday, December 31, 2004 10:25 AM
Subject: retrieval
Quoted 20 lines
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
Quoted 9 lines
__________________________________
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 [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
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 <[email protected]>
Quoted 53 lines · 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.htmlHope this solves your problem.
Enjoy
Amit Dang----- Original Message -----
From: "Ankit Jain" <[email protected]>
To: "newbie" <[email protected]>
Sent: Friday, December 31, 2004 10:25 AM
Subject: retrievalQuoted 7 lines
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
Quoted 9 lines
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
Quoted 7 lines
ankit jain
__________________________________
Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhancedsearch. Learn more.
Quoted 3 lines
http://info.mail.yahoo.com/mail_250
-
To unsubscribe from this list: send the line"unsubscribe linux-newbie" in
Quoted 2 lines
the body of a message to [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html
Quoted 1 line
Please read the FAQ at
Quoted 9 lines
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected] 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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 7 lines · Ankit Jain
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
Quoted 5 lines
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
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
Signature · 7 lines
Peter - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
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.
Quoted 21 lines · Peter
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
Signature · 7 lines
Peter - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
Signature · 6 lines
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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
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
Quoted 36 lines · Hamid
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.
Quoted 16 lines · Peter
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
--
PeterQuoted 5 lines
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Signature · 10 lines
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqsDo not delete files by mistake (was Re: retrieval)
Quoted 3 lines · joy merwin monteiro
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 [email protected]
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)
Quoted 6 lines · Ulrich Fürst
Quoted 2 lines · joy merwin monteiro
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 '
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.
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 create one arises as well.
Quoted 6 lines
Ulrich
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Signature · 13 lines
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 [email protected] http://people.zeelandnet.nl/pa3gcu/ - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] 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)
Quoted 8 lines · Richard Adams
Quoted 2 lines · Ulrich Fürst
or you can put the following into your .bashrc alias rm='mv --target-directory=/root/Desktop/Trash $1 '
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.
Quoted 4 lines
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 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 [email protected]
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?
In reply to Richard AdamsHowdy, 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 [email protected]
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?
Quoted 13 lines · chuck gelm
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
Quoted 3 lines
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.
Quoted 1 line
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.
Quoted 11 lines
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
Signature · 10 lines
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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs