LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-19-2009, 01:05 PM   #1
nhbob
LQ Newbie
 
Registered: Dec 2009
Location: New Hampshire
Distribution: Ubuntu
Posts: 4

Rep: Reputation: 0
Unhappy want to copy an inode folder from acdrom to a home directory (folder).


I aam TRYING to move from Thunderbird under Windows XP to Thunderbird under Ubuntu. I have copied the thunderbird profiles (I think) to a disk. Now I want to copy or load these files into the Thunderbird home directory under Ubuntu. I have opened the cdrom and see the inode id. I have tried to copy that to the umbuntu file but wwith little success. Can you tell me exact language. I have tries several times using the console but with no success. Apparently my syntax is wrong.
 
Old 12-19-2009, 01:22 PM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
I don't know what you mean by "inode folder" or "inode id".. can you be a bit more specific? I mean, be more specific about what you're actually doing, e.g. how have you "opened the cdrom"?

Using the console, you should just be able to do "cp -R source destination", where source and destination are to be replaced with the relevant directories. If you're getting error messages, you need to be specific about what those are - not doing so makes it more difficult to help you.

Last edited by Nylex; 12-19-2009 at 01:26 PM.
 
Old 12-20-2009, 09:46 AM   #3
nhbob
LQ Newbie
 
Registered: Dec 2009
Location: New Hampshire
Distribution: Ubuntu
Posts: 4

Original Poster
Rep: Reputation: 0
I have created a cdrom copy of the Thunderbird profile from Windows XP.

I then load the disk and click on it and it gives me a folder called "iyz2403k.default". I want to copy this folder to the Thunderbird/Ubuntu profile " /home/bob/.mozilla-thunderbird/tfyu90gh.default/Mail/Local Folders ".

I do not know how to correctly syntax the copy command, particularly where the folder is on another device. I understand that linux does not need locations like "D" or "E" for cdroms but that is where I get confused.
 
Old 12-20-2009, 10:00 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by nhbob View Post
I have created a cdrom copy of the Thunderbird profile from Windows XP.

I then load the disk and click on it and it gives me a folder called "iyz2403k.default". I want to copy this folder to the Thunderbird/Ubuntu profile " /home/bob/.mozilla-thunderbird/tfyu90gh.default/Mail/Local Folders ".
Since you're already using the GUI, why can't you just use that to copy the directory to where you want it?Does something happen when you try to do that? If so, what? Again, please give error messages if any occur.

Quote:
I do not know how to correctly syntax the copy command, particularly where the folder is on another device. I understand that linux does not need locations like "D" or "E" for cdroms but that is where I get confused.
OK. The filesystem is like a tree, with the directory / being the root of the tree. CD-ROMs, USB disks, etc. are accessed by mounting them. This means to attach the filesystem on them to the main filesystem, so you can access them as if they really were part of the main filesystem. So, you need to find out where the CD-ROM is mounted.

Two ways to do this are

1. Looking in the /etc/fstab file (run "man fstab" in a terminal to learn about this file) and looking for a line that starts /dev/cdrom (or something similar). The entry on that line in the second column tells you where the CD-ROM is mounted, e.g. in my fstab file, I have

Code:
/dev/cdrom      /mnt/cdrom       auto        noauto,users,ro  0   0
which tells me the CD-ROM is mounted on /mnt/cdrom.

2. Run "mount" in a terminal and see where it's mounted. Here's one line of output from running mount on my machine:

/dev/sda1 on / type ext3 (rw,errors=continue,data=ordered)

This is not my CD-ROM (because I don't have one), but it tells me that my hard disk (/dev/sda1) is mounted on / (i.e. that's my main filesystem).

So, if I had a directory "stuff" on the CD-ROM that was mounted on /mnt/cdrom and I wanted to copy it to my home directory (/home/nick), I would do

cp -R /mnt/cdrom/stuff /home/nick

Hope this helps.

Last edited by Nylex; 12-20-2009 at 10:02 AM.
 
Old 12-20-2009, 10:22 AM   #5
nhbob
LQ Newbie
 
Registered: Dec 2009
Location: New Hampshire
Distribution: Ubuntu
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the quick reply.

in ubunti I believe when you load the cd it is automatically mounted. That is why I can read the file id.

I just tried a "cp -r" (disk folder id) (destination id). I then hit enter and I now have a flashing cursor but no prompt. I see and hear no other sign of any activity. Seems to be waiting.
 
Old 12-20-2009, 10:28 AM   #6
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by nhbob View Post
Thanks for the quick reply.

in ubunti I believe when you load the cd it is automatically mounted.
Yes, but you still need to know where it's mounted.

Quote:
That is why I can read the file id.
What exactly do you mean by "file id"?

Quote:
I just tried a "cp -r" (disk folder id) (destination id). I then hit enter and I now have a flashing cursor but no prompt. I see and hear no other sign of any activity. Seems to be waiting.
Perhaps it is doing something. I should have said to add a v to the options (i.e. "cp -rv source destination") - the v option gives you more verbose output.

Edit: also, what was the exact command line you used?

Last edited by Nylex; 12-20-2009 at 10:29 AM.
 
Old 12-20-2009, 11:02 AM   #7
nhbob
LQ Newbie
 
Registered: Dec 2009
Location: New Hampshire
Distribution: Ubuntu
Posts: 4

Original Poster
Rep: Reputation: 0
cp iyz2403k.default home/bob/.mozilla-thunderbird/tfyu90gh.default

Then I got this:
cp: cannot stat `iyz2403k.default': No such file or directory
 
Old 12-20-2009, 11:08 AM   #8
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by nhbob View Post
cp iyz2403k.default home/bob/.mozilla-thunderbird/tfyu90gh.default

Then I got this:
cp: cannot stat `iyz2403k.default': No such file or directory
Three things:

1. That error message is likely generated because you're not in the directory in which the directory you want to copy resides. So, you either need to change to that directory (with the cd command, e.g. "cd /mnt/cdrom" will take you to /mnt/cdrom) or use the full path to the directory (e.g. if it's in /mnt/cdrom, then you need to use /mnt/cdrom/iyz2403k.default).

2. Your destination argument to cp is slightly wrong - it should start /home/bob - note the slash (/). By default, cp will look in the current directory for the directory called "home" and of course, home is in the root directory, /. The error you get from cp about the directory not existing is exactly this problem - cp is looking in the current directory.

3. You need -R to copy directories, otherwise you'll get a "directory omitted" message.

Edit: also, you probably don't want to put your other profile in your existing profile directory - just copy it to /home/bob/.mozilla-thunderbird.

Last edited by Nylex; 12-20-2009 at 11:10 AM.
 
Old 12-20-2009, 11:12 AM   #9
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by nhbob View Post
cp iyz2403k.default home/bob/.mozilla-thunderbird/tfyu90gh.default

Then I got this:
cp: cannot stat `iyz2403k.default': No such file or directory
You need to cd to the directory containing iyz2403k.default for that command to work -- and you need a leading / on /home.
 
  


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
mixed mounting of automount and fstab in one folder? &different home folder using NIS herofmm Linux - Software 0 04-06-2009 11:00 AM
Copy a file into another directory and keep its folder hierarchy? Zebe Linux - General 2 11-25-2008 04:47 PM
Copy Home Folder seashell11 Ubuntu 3 08-11-2006 12:39 PM
I can not open the user folder in home and write in a shared folder jorge_ivan Linux - General 8 08-02-2006 11:28 AM
Folder Max Size and Limiting SSH access to home folder. Mefistofeles Linux - General 4 11-26-2005 02:09 PM

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

All times are GMT -5. The time now is 09:00 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
Open Source Consulting | Domain Registration