LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-21-2008, 01:04 PM   #1
kakil
Member
 
Registered: Jan 2008
Posts: 30

Rep: Reputation: 0
copy dev/hda7 to the tape


hi guys
I have two redhat linux server one is running properly and the other
its file corrupted in the path /dev/hda7
can any one tell me how I copy the dev/hda7 from running
computer to the other computer by using tape drive and tape
 
Old 01-21-2008, 01:42 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 256Reputation: 256Reputation: 256
Well hda7 is most likely a partition mounted elsewhere. What mounts or is using hda7? You simply just can't not mount it in most cases and still have a functional filesystem. Also, is this the same question you have about backups you've already posted and getting replies? If so, don't double post, it's against our rules and pointless.
 
Old 01-21-2008, 02:03 PM   #3
kakil
Member
 
Registered: Jan 2008
Posts: 30

Original Poster
Rep: Reputation: 0
dev/hda7

this not like backup!

yes this path contain file system ,so I want to copy dev/hda7 from
running computer to the other one .is it,possible? or not ,can you give me the commands
 
Old 01-21-2008, 02:06 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 256Reputation: 256Reputation: 256
Well, what's corrupt? You do realize if you copy a corrupt file or filesystem to another system, it's going to be corrupt there as well?
 
Old 01-21-2008, 02:22 PM   #5
kakil
Member
 
Registered: Jan 2008
Posts: 30

Original Poster
Rep: Reputation: 0
file system

dear sir

during the boot of the one server it tells me there is a file system
in dev/hda7 crush so it stopped from running .
but I have same server its running now properly
so I want to copy the all dev/hda7 to the other server that contain error
in the dev/hda7
thats all .how can I make this?
 
Old 01-21-2008, 02:29 PM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 256Reputation: 256Reputation: 256
Quote:
Originally Posted by kakil View Post
dear sir

during the boot of the one server it tells me there is a file system
in dev/hda7 crush so it stopped from running .
but I have same server its running now properly
so I want to copy the all dev/hda7 to the other server that contain error
in the dev/hda7
thats all .how can I make this?
Okay, what is mounted on /dev/hda7? You can't just simply copy files from one server to another and expect it to work. Why is your filesystem corrupt? What is the exact error? You might not even need to restore or reinstall or copy from another system. Just because it was setup the same doesn't necessarily mean it will work.

Be more detailed and stop being vague. It's like beating around the bush to get anything out of you. What is on /dev/hda7? Should I ask again? What is on /dev/hda7 or what is mounted to this partition?
 
Old 01-21-2008, 10:21 PM   #7
kakil
Member
 
Registered: Jan 2008
Posts: 30

Original Poster
Rep: Reputation: 0
I dont know ,so I want to copy all from one server to another.
 
Old 01-22-2008, 10:36 AM   #8
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 256Reputation: 256Reputation: 256
Quote:
Originally Posted by kakil View Post
I dont know ,so I want to copy all from one server to another.
If you don't know, how do you know you're copying the correct data then? /dev/hda7 on the broken server could be mounted as /tmp and /dev/hda7 on the new server could be /var. If you don't really know and you can't find out, perhaps you should ask someone with physical access to the machine to verify before doing something very stupid. I'm not going to tell you squat until you can find this information and I don't expect anyone else to either. Don't make us tell you how to do something if you can't even find out what /dev/hda7 is mounted as. I think you need to re-evaluate your issue before making any drastic conclusions of what needs to be done.
 
Old 01-22-2008, 10:44 AM   #9
kakil
Member
 
Registered: Jan 2008
Posts: 30

Original Poster
Rep: Reputation: 0
solution

trickykid ,hi

both servers are same 100%
so what is the problem if you give the commands
 
Old 01-22-2008, 11:05 AM   #10
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 256Reputation: 256Reputation: 256
Quote:
Originally Posted by kakil View Post
trickykid ,hi

both servers are same 100%
so what is the problem if you give the commands
Show proof then? How can you say they're the same if you don't or can't tell me what's on /dev/hda7 on each system? Also take into account that the broken /dev/hda7 could be a drive issue causing corruption, copying data to it won't fix the issue. You need to dig a little deeper to find out why files are corrupt on this /dev/hda7
 
Old 01-22-2008, 11:15 AM   #11
kakil
Member
 
Registered: Jan 2008
Posts: 30

Original Poster
Rep: Reputation: 0
solution

durning the booting it checks all the partitions
in sequence but when it reach the partition /dev/hda7 it stop

and tell me you can login on root for maintenace or
press ctl+d for restart thats all.
I don't know how I make maintenance so I want to make copy from other
server to solve this problem
 
Old 01-22-2008, 11:39 AM   #12
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 256Reputation: 256Reputation: 256
Sounds to me you just need to run fsck on the partition, not copy data to it. See, now we're getting somewhere. When you provide details, it might prevent unnecessary actions.

Enter maintenance mode and run:

fsck -a /dev/hda7
 
  


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
Copy files to tape helpmhost Linux - General 2 01-23-2007 01:22 PM
cmd to install GRUB to /dev/hda7? kenyon Linux - Software 1 08-03-2006 04:25 PM
Unable to copy onto the tape sachinh Linux - General 5 05-25-2006 02:27 AM
reiserfsck questions - have bad block on /dev/hda7 appleg8 Linux - Newbie 0 02-20-2005 04:43 PM
How to copy a VHS tape to hardrive? Blue1K Linux - General 5 02-06-2005 04:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration