LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 02-27-2010, 04:43 AM   #76
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297

Quote:
Originally Posted by elishac View Post
So what is the difference between /dev/sdb1 and /media/CORSAIR/ ?
The /dev/sdb1 is the device itself as discovered and assigned by the operating system. It's a 'special file'. On the other hand /media/CORSAIR/ is just a directory nothing more. But using the mount command (Ubuntu did this for you) the device /dev/sdb1 got connected to the directory (in this case also called mountpoint) so that the contents of the device are available to system and users.

Kind regards,

Eric
 
Old 02-27-2010, 04:45 AM   #77
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
oh, so -R is really important, because otherwise the contents of a directory aren't copied ?
If so, maybe that's why I didn't get all these errors when I copied the directory the first time around.
It may sound crazy to you, because I'm the one using the computer, but I think you're better suited than I am to know if I've got all the files I need on my computer.
I mean, it's quite difficult for me to list everything I made in the last months. I'm not 100% sure whether I've only used the $home directory. Where do you feel like there might be files/preferences/softwares/.../ I didn't save yet?
 
Old 02-27-2010, 04:46 AM   #78
lupusarcanus
Senior Member
 
Registered: Mar 2009
Location: USA
Distribution: Arch
Posts: 1,022
Blog Entries: 19

Rep: Reputation: 146Reputation: 146
Quote:
Originally Posted by elishac View Post
oh, so -R is really important, because otherwise the contents of a directory aren't copied ?
If so, maybe that's why I didn't get all these errors when I copied the directory the first time around.
It may sound crazy to you, because I'm the one using the computer, but I think you're better suited than I am to know if I've got all the files I need on my computer.
I mean, it's quite difficult for me to list everything I made in the last months. I'm not 100% sure whether I've only used the $home directory. Where do you feel like there might be files/preferences/softwares/.../ I didn't save yet?
Are you fscking your partition?

Type into the Terminal, "sudo fsck.ext4 -p /dev/sda5" (without the quotes)
 
Old 02-27-2010, 04:46 AM   #79
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
leopard, is it normal that you deleted the f option as well ?
anyway, I wrote it and the output was :
/dev/sda5 is mounted.
WARNING !! Running e2fsck on a mounted filesystem may cause SEVERE filesystem damage.
Do you really want to conitnue (y,n) ?
 
Old 02-27-2010, 04:48 AM   #80
lupusarcanus
Senior Member
 
Registered: Mar 2009
Location: USA
Distribution: Arch
Posts: 1,022
Blog Entries: 19

Rep: Reputation: 146Reputation: 146
Verify you have backed up your data, and proceed by pressing y.
Make sure you unmount it first.

Last edited by lupusarcanus; 02-27-2010 at 04:49 AM.
 
Old 02-27-2010, 04:49 AM   #81
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
Let's sum up the situtation, because leopard seems lost.
I'm about to try what you, leopard, asked as a last resort before reinstalling the whole system.
Yet I think I already made that procedure (e2fsck), which didn't work, so at the same time I'm being helped by Eric who is helping me to save everything I have so that I can safely reinstall the whole system, which seems unstable anyway.
 
Old 02-27-2010, 04:50 AM   #82
lupusarcanus
Senior Member
 
Registered: Mar 2009
Location: USA
Distribution: Arch
Posts: 1,022
Blog Entries: 19

Rep: Reputation: 146Reputation: 146
You seem lost. Unmount the FS and run the automatic repair. Not hard.
 
Old 02-27-2010, 04:51 AM   #83
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
I pressed Y, the repair is being done.
 
Old 02-27-2010, 04:52 AM   #84
lupusarcanus
Senior Member
 
Registered: Mar 2009
Location: USA
Distribution: Arch
Posts: 1,022
Blog Entries: 19

Rep: Reputation: 146Reputation: 146
Let it finish and pray to God it goes well.
 
Old 02-27-2010, 04:56 AM   #85
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
leopard you've got to understand this situation has been unsolved for weeks, and I already did that, so I have little hope honestly. But let's try it nonetheless one last time before reinstalling everything, it can't get worse than it is right now.

Eric, post 77 is adressed to you.
 
Old 02-27-2010, 04:58 AM   #86
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
Well the function has exited. The output was :
/dev/sda5 was not cleanly unmounted, check forced.
/dev/sda5: 3451584/5146542 files (2% non contiguous), 2584624/5120000 blocks.

What should I do now ?
 
Old 02-27-2010, 05:00 AM   #87
lupusarcanus
Senior Member
 
Registered: Mar 2009
Location: USA
Distribution: Arch
Posts: 1,022
Blog Entries: 19

Rep: Reputation: 146Reputation: 146
Quote:
Originally Posted by elishac View Post
Well the function has exited. The output was :
/dev/sda5 was not cleanly unmounted, check forced.
/dev/sda5: 3451584/5146542 files (2% non contiguous), 2584624/5120000 blocks.

What should I do now ?
thats the problem. Try restarting, if the command has completely finished
 
Old 02-27-2010, 05:00 AM   #88
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Quote:
Originally Posted by elishac View Post
oh, so -R is really important, because otherwise the contents of a directory aren't copied ?
If so, maybe that's why I didn't get all these errors when I copied the directory the first time around.
It may sound crazy to you, because I'm the one using the computer, but I think you're better suited than I am to know if I've got all the files I need on my computer.
I mean, it's quite difficult for me to list everything I made in the last months. I'm not 100% sure whether I've only used the $home directory. Where do you feel like there might be files/preferences/softwares/.../ I didn't save yet?
Yes, the -R (or -r or --recursive) are important if you want to copy subdirectories and their contents also. Have a look at the man page of cp:
Code:
man cp
. You'll see there are a lot more options you could use.

Your personal files are normally saved in the /home/<yourusername> directory. That is, your FILES, not the programs you installed. User preferences and such also get saved in the same directory but in 'hidden' subdirectories, like .gnome2 and others (the leading . indicates it's a hidden directory).

Programs normally get installed below the /usr directory, with program preferences and configurations in the /etc directory. Where depends on the installation script that came with the package you installed. Some install in /usr/local, others in /usr/bin, /usr/sbin, and so on.

It's pretty hard to get everything back up and running the same way if you have no reference point whatsoever, meaning, if you don't remember what you have installed then it's hard to find the config files for it.

When you get your system up and running again I'll give you some pointers what to save/backup in order to almost automatically restore your system.

Kind regards,

Eric
 
Old 02-27-2010, 05:02 AM   #89
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Quote:
Originally Posted by elishac View Post
Eric, post 77 is adressed to you.
77 answered in 88

Kind regards,

Eric
 
Old 02-27-2010, 05:03 AM   #90
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
What do you mean by restarting ?
Just hitting the reboot option, or shutting the computer down, getting the cd off, and booting as linux ?
 
  


Reply



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
I want to start developing for linux - where to start itsbrad212 Linux - Software 15 12-01-2009 11:11 PM
How to start application when linux(ubuntu/debian) start ersek Linux - General 4 05-28-2009 12:19 PM
i have installed linux but dont know were 2 start 4m n have a gud hold on linux jovel_allalone Linux - Newbie 4 05-19-2009 10:14 AM
after i installed linux and tried start linux it hangs at the message (in post) adamshreves Linux - General 5 10-30-2003 01:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:21 PM.

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
Open Source Consulting | Domain Registration