LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-23-2006, 08:22 AM   #31
hammam12
Member
 
Registered: Jun 2006
Posts: 160

Original Poster
Rep: Reputation: 30

when I tried to copy /home to hdc5
cp -R /home /mnt/hdc5
it response :
invalid argument + operation not permitted

I want to dir /etc page by page to see config file
 
Old 06-23-2006, 08:31 AM   #32
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Actually, you should probably be trying to copy your user's home directory, i.e. /home/username (obviously where username is the username you use). What was the exact error message?

Which config files are you most likely to need?
 
Old 06-23-2006, 09:26 AM   #33
hammam12
Member
 
Registered: Jun 2006
Posts: 160

Original Poster
Rep: Reputation: 30
cp-R /home/hammam /mnt/hdc5
the exact error message it replies :
cannot create symbolic link + invalid argument + operation not permitted

my coniguration of my username=hammam
I want to dir /etc page by page to see config file

by the way after I took the backup, how to reinstall, is by put the cd no.1 in cd rom and restart ?
 
Old 06-23-2006, 09:45 AM   #34
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
why are u copying all of the /home directory. if you have more than one user whose home dir needs to be backed up by all means do so but be the root user first by login in as root. then try
cp -rf /home /mnt/hdc5
which will copy whole of your /home to /mnt/hdc5.
 
Old 06-23-2006, 09:45 AM   #35
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Are you trying this as root? Is the partition you want to use (presumably /dev/hdc5) mounted on /mnt/hdc5? Doesn't it tell you what the invalid argument is? Do those plus signs really appear in the output??

Don't know about scrolling with the ouput of ls (or dir). Maybe the mouse wheel just works.

Yeah, you just put in CD 1 and boot from it. It's the same thing you probably did when you installed in the first place.

Edit: when you do reinstall, make sure not to format the partition you're using to back up your data on! If you do, all that data will be lost. This should be common sense though, really.

Last edited by Nylex; 06-23-2006 at 09:53 AM.
 
Old 06-23-2006, 10:02 AM   #36
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
yes hammam12 you should know we are trying to help you get out of your trouble, but we can never hold your hands forever and tell you what to do. you will have to learn something's for yourself, for keeps. however much we may try you must understand we too have our own lives to live. so build your confidence and start digging.
 
Old 06-23-2006, 10:21 AM   #37
hammam12
Member
 
Registered: Jun 2006
Posts: 160

Original Poster
Rep: Reputation: 30
I would like to know what error I did when I was did format to the partition hdc7 and cause me to reinstall, I was lake in spaces so I did that format to have more spaces to move /usr to it to get more spaces.

Here are the steps I did :
Format a partition

1 - umount /dev/hdc7
then format
2 - mke2fs /dev/hdc7 ========= ext2
3 - tune2fs -j /dev/hdc7 ========= ext3
4 - mount /dev/hdc7 /usr
5 - mount /dev/hdc7 /mnt
6 - cp -advf /usr/ /mnt/
7 - vi /etc/fstab
change the line to /dev/hdc7 /usr ext3 defaults 1 1
8 - reboot the computer

Could you pls review it and correct anything you see it is wrong.

... thanx
Mohammed Hammam
 
Old 06-23-2006, 10:33 AM   #38
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by hammam12
4 - mount /dev/hdc7 /usr
5 - mount /dev/hdc7 /mnt
6 - cp -advf /usr/ /mnt/
If you really did this then you should have had problems. Firstly if you mounted /dev/hdc7 to /usr you shouldn't have been able to mount it again to /mnt (you should have had an error message like "/dev/hdc7 is already mounted", though perhaps not with the same wording). Secondly, if you did manage to mount /dev/hdc7 on /usr and then on /mnt, the copying step wouldn't have had anything to copy, since /dev/hdc7 was newly formatted.
 
Old 06-23-2006, 11:07 AM   #39
hammam12
Member
 
Registered: Jun 2006
Posts: 160

Original Poster
Rep: Reputation: 30
Here is the steps after correction :

Format a partition

1 - umount /dev/hdc7
then format
2 - mke2fs /dev/hdc7 ========= ext2
3 - tune2fs -j /dev/hdc7 ========= ext3
4 - mount /dev/hdc7 /mnt
5 - cp -advf /usr/ /mnt
6 - vi /etc/fstab
change the line to /dev/hdc7 /usr ext3 defaults 1 1
7 - reboot the computer

pls review it
 
Old 06-26-2006, 07:05 AM   #40
hammam12
Member
 
Registered: Jun 2006
Posts: 160

Original Poster
Rep: Reputation: 30
Thank you prozac and Nylex
the issue has been resolved
Mohammed Hammam
 
  


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
Change from GUI mode to text mode alexr186 Linux - Software 4 01-08-2009 06:56 AM
Remote desktop software to control desktop GUI? Phaethar Linux - Software 3 06-27-2008 09:30 AM
How do i swith from GUI mode to CLI mode in fedora core 3 tinfocoms Fedora 5 09-08-2005 07:23 AM
cannot login to gui mode.. aaru_ali Linux - Newbie 3 11-08-2004 08:23 AM
Graphical mode to GUI Mode mikeshn Linux - General 5 04-10-2002 01:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:57 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