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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
09-12-2011, 10:39 AM
|
#91
|
|
Member
Registered: Jan 2010
Location: Chicago, IL
Distribution: Linpus Linux Lite v1.0.3.E
Posts: 215
Original Poster
Rep:
|
Ok, entering "cp -Riv "$HOME" /media/Lexar" I get as output:
cp: cannot create directory `/media/Lexar': Permission denied
---------- Post added 09-12-11 at 10:40 AM ----------
If it makes any difference there isn't anything on this drive.
|
|
|
|
09-12-2011, 10:59 AM
|
#92
|
|
LQ 5k Club
Registered: Sep 2009
Distribution: Arch x86_64
Posts: 6,443
|
Quote:
Originally Posted by glenellynboy
Ok, entering "cp -Riv "$HOME" /media/Lexar" I get as output:
cp: cannot create directory `/media/Lexar': Permission denied
---------- Post added 09-12-11 at 10:40 AM ----------
If it makes any difference there isn't anything on this drive.
|
Try this then:
Code:
sudo cp -Riv "$HOME" /media/Lexar
|
|
|
|
09-12-2011, 11:08 AM
|
#93
|
|
Member
Registered: Jan 2010
Location: Chicago, IL
Distribution: Linpus Linux Lite v1.0.3.E
Posts: 215
Original Poster
Rep:
|
Wow--it produced a huge output. I recognize some of it as titles from my data.
I didn't have my drive inserted when I ran this last code.
Last edited by glenellynboy; 09-12-2011 at 11:11 AM.
|
|
|
|
09-12-2011, 11:25 AM
|
#94
|
|
Member
Registered: Jan 2010
Location: Chicago, IL
Distribution: Linpus Linux Lite v1.0.3.E
Posts: 215
Original Poster
Rep:
|
Big problem--
That last code filled up my hard drive and messaged me that it is running out of space. I looked at my files and there is no free space left on my disk. The flash drive is still empty.
Did it recopy my data onto the hard drive?
|
|
|
|
09-12-2011, 11:34 AM
|
#95
|
|
Member
Registered: Jan 2010
Location: Chicago, IL
Distribution: Linpus Linux Lite v1.0.3.E
Posts: 215
Original Poster
Rep:
|
Here is what I did:
After posting the results of entering "mount" and "/dev/sd*" with the stick first out then in for each, I extracted the stick. Then I ran
sudo cp -Riv "$HOME" /media/Lexar
|
|
|
|
09-12-2011, 11:37 AM
|
#96
|
|
LQ 5k Club
Registered: Sep 2009
Distribution: Arch x86_64
Posts: 6,443
|
Quote:
Originally Posted by glenellynboy
I didn't have my drive inserted when I ran this last code.
|
...
That was the command to copy the data to your backup drive! It was supposed to be inserted!
Try inserting the drive and running the command again.
Also, forget about all the commands except the "cp" one. They were to find out the name of the drive, which we already know.
Last edited by MTK358; 09-12-2011 at 11:41 AM.
|
|
|
|
09-12-2011, 11:48 AM
|
#97
|
|
Member
Registered: Jan 2010
Location: Chicago, IL
Distribution: Linpus Linux Lite v1.0.3.E
Posts: 215
Original Poster
Rep:
|
I can't seem to get rid of the recurring bubble that says "low disk space". It only gives me a button to "solve this problem." When I click on the button a pop-up gives me three alternatives:
close the pop-up
empty trash
expand with an SD card
After closing the pop-up, the bubble comes back in a short time.
|
|
|
|
09-12-2011, 11:50 AM
|
#98
|
|
Member
Registered: Jan 2010
Location: Chicago, IL
Distribution: Linpus Linux Lite v1.0.3.E
Posts: 215
Original Poster
Rep:
|
Here's an important point:
In taking the drive in and out of the socket I wasn't careful to be sure I always put it in the same socket. Now I'm not sure which one to use.
|
|
|
|
09-12-2011, 11:55 AM
|
#99
|
|
Member
Registered: Jan 2010
Location: Chicago, IL
Distribution: Linpus Linux Lite v1.0.3.E
Posts: 215
Original Poster
Rep:
|
How am I going to put my disk back in its original state?
|
|
|
|
09-12-2011, 12:01 PM
|
#100
|
|
LQ 5k Club
Registered: Sep 2009
Distribution: Arch x86_64
Posts: 6,443
|
Post the output of "ls -l /media/Lexar".
|
|
|
|
09-12-2011, 12:05 PM
|
#101
|
|
Member
Registered: Jan 2010
Location: Chicago, IL
Distribution: Linpus Linux Lite v1.0.3.E
Posts: 215
Original Poster
Rep:
|
It's a big text that went off-window and the scroll bar isn't working so I couldn't copy all of it. Here's what is showing:
drwxr-xr-x 8 root root 4096 2011-09-12 11:39 Documents
drwxr-xr-x 2 root root 4096 2011-09-12 11:41 Downloads
-rw-r--r-- 1 root root 0 2011-09-12 11:41 firefox-3.6.tar.bz2
lrwxrwxrwx 1 root root 22 2011-09-12 11:41 libfreebl3.so -> /usr/lib/libfreebl3.so
lrwxrwxrwx 1 root root 20 2011-09-12 11:41 libnspr4.so -> /usr/lib/libnspr4.so
lrwxrwxrwx 1 root root 19 2011-09-12 11:41 libnss3.so -> /usr/lib/libnss3.so
lrwxrwxrwx 1 root root 22 2011-09-12 11:41 libnssckbi.so -> /usr/lib/libnssckbi.so
lrwxrwxrwx 1 root root 19 2011-09-12 11:41 libplc4.so -> /usr/lib/libplc4.so
lrwxrwxrwx 1 root root 20 2011-09-12 11:41 libplds4.so -> /usr/lib/libplds4.so
lrwxrwxrwx 1 root root 21 2011-09-12 11:41 libsmime3.so -> /usr/lib/libsmime3.so
lrwxrwxrwx 1 root root 23 2011-09-12 11:41 libsoftokn3.so -> /usr/lib/libsoftokn3.so
lrwxrwxrwx 1 root root 19 2011-09-12 11:41 libssl3.so -> /usr/lib/libssl3.so
-rw-r--r-- 1 root root 0 2011-09-12 11:41 mozilla.pdf
drwxr-xr-x 2 root root 4096 2011-09-12 11:03 Music
drwxr-xr-x 3 root root 4096 2011-09-12 11:39 Pictures
drwxr-xr-x 21 root root 4096 2011-09-12 11:41 user
drwxr-xr-x 3 root root 4096 2011-09-12 11:21 Videos
|
|
|
|
09-12-2011, 12:14 PM
|
#102
|
|
LQ 5k Club
Registered: Sep 2009
Distribution: Arch x86_64
Posts: 6,443
|
Run:
Code:
sudo rm -rfv /media/Lexar
with the drive unplugged. This should remove the unwanted files.
Then, plug the drive back in, and run:
Code:
sudo cp -Riv "$HOME" /media/Lexar
Last edited by MTK358; 09-12-2011 at 12:15 PM.
|
|
|
1 members found this post helpful.
|
09-12-2011, 12:19 PM
|
#103
|
|
Member
Registered: Jan 2010
Location: Chicago, IL
Distribution: Linpus Linux Lite v1.0.3.E
Posts: 215
Original Poster
Rep:
|
Good!
My disk is back to its previous state.
Thanks!
Ok, now what about determining which slot to put my flash drive in? Does it matter? Did the "mount" et. al. commands determine this? Should I run them again? Because I don't recall which slot the drive was in when I ran "mount" et. al. I don't want to run this last code unless either it doesn't matter which slot I use, or I know which one to use.
Last edited by glenellynboy; 09-12-2011 at 12:25 PM.
|
|
|
|
09-12-2011, 12:24 PM
|
#104
|
|
LQ 5k Club
Registered: Sep 2009
Distribution: Arch x86_64
Posts: 6,443
|
Quote:
Originally Posted by glenellynboy
Ok, now what about determining which slot to put my flash drive in? Does it matter? Did the "mount" et. al. commands determine this? Should I run them again?
|
It looks like it automatically detects the name of the drive and uses that (why else would the directory it automatically mounts to ber named "Lexar"?), so I don't think it matters.
EDIT: If you want to be really sure, run this after plugging in the drive:
and make sure the output contains "Lexar".
Last edited by MTK358; 09-12-2011 at 12:28 PM.
|
|
|
|
09-12-2011, 12:26 PM
|
#105
|
|
Member
Registered: Jan 2010
Location: Chicago, IL
Distribution: Linpus Linux Lite v1.0.3.E
Posts: 215
Original Poster
Rep:
|
Yes, I was thinking the same thing about the name "Lexar". Ok, I'll try this last code again with the drive inserted.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:54 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|