* retrieval @ 2004-12-31 4:55 Ankit Jain 2004-12-31 5:06 ` retrieval Amit Dang 2005-01-01 6:06 ` retrieval Peter 0 siblings, 2 replies; 12+ messages in thread From: Ankit Jain @ 2004-12-31 4:55 UTC (permalink / raw) To: newbie 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 ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: retrieval 2004-12-31 4:55 retrieval Ankit Jain @ 2004-12-31 5:06 ` Amit Dang 2005-01-07 8:58 ` retrieval Ankit Jain 2005-01-01 6:06 ` retrieval Peter 1 sibling, 1 reply; 12+ messages in thread From: Amit Dang @ 2004-12-31 5:06 UTC (permalink / raw) To: Ankit Jain, newbie 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" <ankitjain1580@yahoo.com> To: "newbie" <linux-newbie@vger.kernel.org> 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 ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: retrieval 2004-12-31 5:06 ` retrieval Amit Dang @ 2005-01-07 8:58 ` Ankit Jain 2005-01-07 14:13 ` retrieval chuck gelm 0 siblings, 1 reply; 12+ messages in thread From: Ankit Jain @ 2005-01-07 8:58 UTC (permalink / raw) To: Amit Dang, newbie 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 <amit_dang@intersolutions.stpn.soft.net> 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" <ankitjain1580@yahoo.com> > To: "newbie" <linux-newbie@vger.kernel.org> > 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 ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: retrieval 2005-01-07 8:58 ` retrieval Ankit Jain @ 2005-01-07 14:13 ` chuck gelm 0 siblings, 0 replies; 12+ messages in thread From: chuck gelm @ 2005-01-07 14:13 UTC (permalink / raw) To: Ankit Jain; +Cc: newbie 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 ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: retrieval 2004-12-31 4:55 retrieval Ankit Jain 2004-12-31 5:06 ` retrieval Amit Dang @ 2005-01-01 6:06 ` Peter 2005-01-01 13:59 ` retrieval Ohadi, Hamid 1 sibling, 1 reply; 12+ messages in thread From: Peter @ 2005-01-01 6:06 UTC (permalink / raw) To: linux-newbie 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 ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: retrieval 2005-01-01 6:06 ` retrieval Peter @ 2005-01-01 13:59 ` Ohadi, Hamid 2005-01-02 8:01 ` retrieval joy merwin monteiro 0 siblings, 1 reply; 12+ messages in thread From: Ohadi, Hamid @ 2005-01-01 13:59 UTC (permalink / raw) To: linux-newbie 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 ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: retrieval 2005-01-01 13:59 ` retrieval Ohadi, Hamid @ 2005-01-02 8:01 ` joy merwin monteiro 2005-01-02 8:32 ` Do not delete files by mistake (was Re: retrieval) Ulrich Fürst 0 siblings, 1 reply; 12+ messages in thread From: joy merwin monteiro @ 2005-01-02 8:01 UTC (permalink / raw) To: linux-newbie 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 <hamid.ohadi@imperial.ac.uk> 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 ^ permalink raw reply [flat|nested] 12+ messages in thread
* Do not delete files by mistake (was Re: retrieval) 2005-01-02 8:01 ` retrieval joy merwin monteiro @ 2005-01-02 8:32 ` Ulrich Fürst 2005-01-03 6:33 ` Richard Adams 0 siblings, 1 reply; 12+ messages in thread From: Ulrich Fürst @ 2005-01-02 8:32 UTC (permalink / raw) To: linux-newbie joy merwin monteiro <joy.merwin@gmail.com> 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 ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Do not delete files by mistake (was Re: retrieval) 2005-01-02 8:32 ` Do not delete files by mistake (was Re: retrieval) Ulrich Fürst @ 2005-01-03 6:33 ` Richard Adams 2005-01-03 18:14 ` Ulrich Fürst 2005-01-04 17:53 ` 'ssh' uses port 20 only? chuck gelm 0 siblings, 2 replies; 12+ messages in thread From: Richard Adams @ 2005-01-03 6:33 UTC (permalink / raw) To: Ulrich Fürst; +Cc: linux-newbie On Sunday 02 January 2005 09:32, Ulrich Fürst wrote: > joy merwin monteiro <joy.merwin@gmail.com> 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 ' 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. > 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 -- 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 ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Do not delete files by mistake (was Re: retrieval) 2005-01-03 6:33 ` Richard Adams @ 2005-01-03 18:14 ` Ulrich Fürst 2005-01-04 17:53 ` 'ssh' uses port 20 only? chuck gelm 1 sibling, 0 replies; 12+ messages in thread From: Ulrich Fürst @ 2005-01-03 18:14 UTC (permalink / raw) To: linux-newbie Richard Adams <pa3gcu@zeelandnet.nl> wrote: > On Sunday 02 January 2005 09:32, Ulrich Fürst wrote: > > 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. > > 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 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 ^ permalink raw reply [flat|nested] 12+ messages in thread
* 'ssh' uses port 20 only? 2005-01-03 6:33 ` Richard Adams 2005-01-03 18:14 ` Ulrich Fürst @ 2005-01-04 17:53 ` chuck gelm 2005-01-04 18:53 ` Ray Olszewski 1 sibling, 1 reply; 12+ messages in thread From: chuck gelm @ 2005-01-04 17:53 UTC (permalink / raw) To: linux-newbie 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 ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: 'ssh' uses port 20 only? 2005-01-04 17:53 ` 'ssh' uses port 20 only? chuck gelm @ 2005-01-04 18:53 ` Ray Olszewski 0 siblings, 0 replies; 12+ messages in thread From: Ray Olszewski @ 2005-01-04 18:53 UTC (permalink / raw) To: chuck, linux-newbie 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 ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2005-01-07 14:13 UTC | newest] Thread overview: 12+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2004-12-31 4:55 retrieval Ankit Jain 2004-12-31 5:06 ` retrieval Amit Dang 2005-01-07 8:58 ` retrieval Ankit Jain 2005-01-07 14:13 ` retrieval chuck gelm 2005-01-01 6:06 ` retrieval Peter 2005-01-01 13:59 ` retrieval Ohadi, Hamid 2005-01-02 8:01 ` retrieval joy merwin monteiro 2005-01-02 8:32 ` Do not delete files by mistake (was Re: retrieval) Ulrich Fürst 2005-01-03 6:33 ` Richard Adams 2005-01-03 18:14 ` Ulrich Fürst 2005-01-04 17:53 ` 'ssh' uses port 20 only? chuck gelm 2005-01-04 18:53 ` Ray Olszewski
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox