LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-17-2013, 06:23 AM   #1
army1959
Member
 
Registered: Mar 2013
Location: dallas tx
Distribution: zorin
Posts: 35

Rep: Reputation: 1
Unhappy really fuc#d it up


so i am 6 day linux user and still trying to figure it out so to the point my grand daughter was downloading a video and she did not like it so she deleted the video folder under the home files so all i have there now is
desktop documents downloads music pictures file system trash so how do i restore the video file ?
next problem is for what ever reason i can not get in to the administration folder or files i click on it and it is blank i tried to use the disk but no luck tried the sudo f disk-1 but it says the f is not recognized as a command i am using zorin ubuntu so any help would be great thanks
 
Old 03-17-2013, 06:46 AM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 981
Blog Entries: 2

Rep: Reputation: 235Reputation: 235Reputation: 235
The command I think you were trying is
Code:
sudo  fdisk  -l
but that's not the way to recover deleted files. People normally suggest photorec for recovery.
 
Old 03-17-2013, 06:53 AM   #3
rabirk
Member
 
Registered: Dec 2012
Location: Maryland, US
Distribution: Debian
Posts: 87
Blog Entries: 8

Rep: Reputation: Disabled
You can re-create the video file, but I don't know of any way to restore any videos that were in it. From your console command line, type

mkdir videos

If you'd rather videos have a capital V, type it that way,

mkdir Videos

It seems like you might still be unfamiliar with Linux commands. You can learn more about them from printed books or online resources. Have a look at the tutorials here, for starters:
http://www.ee.surrey.ac.uk/Teaching/Unix/

For use of sudo, I'd recommend reading this:
https://help.ubuntu.com/community/RootSudo

Since Zorin is based on Ubuntu, that link should provide some needed information.
 
1 members found this post helpful.
Old 03-17-2013, 07:01 AM   #4
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,308

Rep: Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294
Anything that was in Videos has gone, I'm afraid. There are some file recovery tools, but in my experience they don't work well.

You don't need to mess with the command line. Run the file manager and click on Files, then on Create folder.
 
Old 03-17-2013, 07:15 AM   #5
Doug Huffman
LQ Newbie
 
Registered: Jan 2008
Location: Through Death's Door on Washington Island, Wisconsin in Lake Michigan
Distribution: Fedora
Posts: 28

Rep: Reputation: 6
Good newbie answer I think. I thought mkdir too. OP, did it work, did it do what you wanted it to do?

RABIRK, I followed your tutorial/books links and found for Dummies that I use. I'll look for a Fedora for Non-geeks. Thanks. ETA: Reading the reviews I see that Linux for Non-Geeks is based on a Fedora Core

Last edited by Doug Huffman; 03-17-2013 at 07:24 AM.
 
Old 03-17-2013, 07:22 AM   #6
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Back to Debian, and only Debian.
Posts: 1,158
Blog Entries: 7

Rep: Reputation: 327Reputation: 327Reputation: 327Reputation: 327
If you have home on a separate partition, you may have some luck with photorec, but the most important thing whenever suffering such data loss is to stop using that partition. Or better yet, reboot to a live distribution, and run photorec from there. Be warned, you will get a lot of files recovered and MUST save them to a separate partition.
 
Old 03-17-2013, 11:43 AM   #7
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,397

Rep: Reputation: 1759Reputation: 1759Reputation: 1759Reputation: 1759Reputation: 1759Reputation: 1759Reputation: 1759Reputation: 1759Reputation: 1759Reputation: 1759Reputation: 1759
Isn't there a "trash" folder on Ubuntu-based distributions? Would it be worth looking in "trash" for the folder/files?
 
Old 03-17-2013, 04:59 PM   #8
army1959
Member
 
Registered: Mar 2013
Location: dallas tx
Distribution: zorin
Posts: 35

Original Poster
Rep: Reputation: 1
this is what i get when i use the mkdir p M61PME-S2P:~$ mkdir -p
mkdir: missing operand and using the v gives no response

and i really don't care about the videos all i want is the folder back and i did recreate a video folder but the problem with that is when i save a video i can not save directly to that folder i have to save it some where else and then copy it to that folder

thanks for all the replies

Last edited by army1959; 03-17-2013 at 05:01 PM. Reason: spelling
 
Old 03-17-2013, 06:04 PM   #9
rabirk
Member
 
Registered: Dec 2012
Location: Maryland, US
Distribution: Debian
Posts: 87
Blog Entries: 8

Rep: Reputation: Disabled
Quote:
this is what i get when i use the mkdir p M61PME-S2P:~$ mkdir -p
mkdir: missing operand and using the v gives no response
I don't understand what's going on there. Are you using -p with the mkdir command? You don't need to. If you're in your user's directory, /home/army1959 or whatever, you should only have to type

mkdir Videos

You should then be able to use 'ls' and see the other directories -- Documents, Downloads, etc -- along with Videos. When you download something, the download probably defaults to the Downloads folder, but you should be able to navigate to the Videos folder to change that.

Alternatively, follow DavidMcCann's advice:
Quote:
You don't need to mess with the command line. Run the file manager and click on Files, then on Create folder.
 
Old 03-17-2013, 06:08 PM   #10
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 608

Rep: Reputation: 130Reputation: 130
Hi, this is very distro dependent but...I am using Fedora 18. I create a folder via the file manager (I am using thunar) and then delete the folder using the delete key.

Back to the command line and "ls /home/me/.local/share/Trash/files". Lo and behold the deleted folder is there. IE. it isn't removed until you remove it from trash. Now, I don't know how this works in Ubuntu But for the army1959:

bring up a terminal window
type "ls -a" this shows hidden folders
is there a .local or .Trash?

or

bring up a terminal window
type "locate Trash" and see whether a folder is located

if either of these finds anything then do an "ls" of that directory. You may have to dig down a level and you may see your deleted Videos folder.

Regarding storage location. A number of programs allow you to specify the storage folder. EG. In firefox go edit->options->General Tab and there is a Downloads section where you can specify a folder.
 
1 members found this post helpful.
Old 03-17-2013, 07:16 PM   #11
army1959
Member
 
Registered: Mar 2013
Location: dallas tx
Distribution: zorin
Posts: 35

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by rabirk View Post
I don't understand what's going on there. Are you using -p with the mkdir command? You don't need to. If you're in your user's directory, /home/army1959 or whatever, you should only have to type

mkdir Videos

You should then be able to use 'ls' and see the other directories -- Documents, Downloads, etc -- along with Videos. When you download something, the download probably defaults to the Downloads folder, but you should be able to navigate to the Videos folder to change that.

Alternatively, follow DavidMcCann's advice:

what i did was open a terminal and then typed mkdir -p and i am sure i am doing it wrong so like i said very new to this and i don't know $hit
 
Old 03-17-2013, 09:02 PM   #12
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,054

Rep: Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313
When you open your terminal, you should be in your /home/username directory. If you type: mkdir p you will create a directory named p in your /home/username directory. If you put a dash - in front of it, another operand will be expected so don't do that. If you want a Videos file, do as suggested above: mkdir Videos. That's it.

Also, you should be able to select where to download. The standard is to the user Downloads directory but when I download videos, they usually go to the Videos directory. You can set where it is downloaded in your browser.
 
1 members found this post helpful.
Old 03-17-2013, 09:04 PM   #13
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 11,811
Blog Entries: 13

Rep: Reputation: 2950Reputation: 2950Reputation: 2950Reputation: 2950Reputation: 2950Reputation: 2950Reputation: 2950Reputation: 2950Reputation: 2950Reputation: 2950Reputation: 2950
You can use photorec to try to recover the deleted videos. Read the instructions carefully. I've never had to use it, but I've heard many positive reports about it.

http://www.cgsecurity.org/wiki/PhotoRec

We were all newbies once.

I'm going to recommend the About dot Com Linux pages to you. Start with the "Linux 101" section. It's sort of oriented to Ubuntu, but the information is solid for just about any distro.

http://linux.about.com/

There are many many excellent Linux resources out there, but I think that's a good place for you to start because it's specifically oriented to new and intermediate users.

Last edited by frankbell; 03-17-2013 at 09:06 PM.
 
1 members found this post helpful.
Old 03-17-2013, 09:06 PM   #14
army1959
Member
 
Registered: Mar 2013
Location: dallas tx
Distribution: zorin
Posts: 35

Original Poster
Rep: Reputation: 1
Question

Quote:
Originally Posted by yancek View Post
When you open your terminal, you should be in your /home/username directory. If you type: mkdir p you will create a directory named p in your /home/username directory. If you put a dash - in front of it, another operand will be expected so don't do that. If you want a Videos file, do as suggested above: mkdir Videos. That's it.

Also, you should be able to select where to download. The standard is to the user Downloads directory but when I download videos, they usually go to the Videos directory. You can set where it is downloaded in your browser.
this is what happens when i follow you're commands

ravenhawk@ravenhawk-M61PME-S2P:~$ mkdir p
ravenhawk@ravenhawk-M61PME-S2P:~$ mkdir Videos
ravenhawk@ravenhawk-M61PME-S2P:~$

nothing
 
Old 03-17-2013, 09:17 PM   #15
army1959
Member
 
Registered: Mar 2013
Location: dallas tx
Distribution: zorin
Posts: 35

Original Poster
Rep: Reputation: 1
and now things just seam to be getting worse so i tried to re load the operating system from disk and it tells me kernel panic not syncing vfs unable to mont root wm-block 20 i have tried the following commands tab live enter same tab install enter same uname -arv same uname -r and this is from the same disk i used to install and its a brand new western digital hd 1 tb virgin out of the box so i don't know whats going on with it ? i all so tried this

sudo apt-get update

sudo apt-get dist-upgrade and i get this ravenhawk@ravenhawk-M61PME-S2P:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded so i am lost
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Nouveau GeForce 600 "Kepler" Support Gets FUC'ed LXer Syndicated Linux News 0 09-11-2012 04:50 AM
fuc*ed up with rpm neovious Linux - Software 2 10-29-2004 01:42 PM


All times are GMT -5. The time now is 03:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration