LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
LinkBack Search this Thread
Old 07-20-2006, 06:28 PM   #1
Joan Murt
LQ Newbie
 
Registered: Jul 2006
Posts: 14

Rep: Reputation: 0
how to add a hard disk with data?


Hello,

It's late night in my country and tomorrow, here in the enterprise, people will come in order to work with their computers.

this night the operating system hard disk of the server computer has broken down, so I've installed a new one and installed rhel as4.

I've installed the OS only with the OS hard disk connected (just in order to avoid destroying all data this is my first week in linux).

now that I've got the OS ready (samba, postfix, dovecot, vnc... ready) I need to connect the hard disk that had all the data of the enterprise.

well, I've shut down the computer, connected the cables, started it again and tried to mount that file system.

(I need to mount it as /home_1).

Well the problem is that I receive a message telling me that the device is busy or something like that.

Any idea on how to solve that?

PS: note an important thing: I need to mount that old hard disk forever (I mean that I don't want to do the same job each time that I'll shut down the machine).

THANK YOU IN ADVANCE.
 
Old 07-20-2006, 07:15 PM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 121Reputation: 121
Please issue:
mount
fdisk -l (as root)
df -h
cat /etc/fstab

and post the output. Use [_code_] without the underscores before your
output, and [_/code_] without the underscores after your output, so it
is easier to read.

Though not familiar with RH, it might be automounting that disk.
 
Old 07-21-2006, 01:20 PM   #3
Joan Murt
LQ Newbie
 
Registered: Jul 2006
Posts: 14

Original Poster
Rep: Reputation: 0
more info.

More information:

after restarting with the old OS, I've seen that it seems that the old redhat thinks that the hard disks are scsi!

I suppose that as that OS is inside a proliant server that included a very new ATA raid controller, and the driver was very new, it is possible that the driver is using the hard disks emulating scsi hard disks...

<b>THIS IS INFORMATION RELATED TO THE OLD OS RH9:</b>

Well, looking at what calling mount returns:
Code:
/dev/sda2 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdefs (rw)
/dev/sda1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda5 on /home type ext3 (rw)
/dev/sdb1 on /home_1 type ext3 (rw)
/dev/sda7 on /tmp type ext3 (rw)
/dev/sda3 on /var type ext3 (rw)
Also, the fstab file reads:
Code:
LABEL=/        /            ext3          defaults                1 1
LABEL=/boot    /boot        ext3          defaults                1 2
none           /dev/pts     devpts        gid=5, mode=620         0 0
LABEL=/home    /home        ext3          defaults                1 2
LABEL=/home_1  /home_1      ext3          defaults                1 2  <--- THE DATA HDD
none           /proc        proc          defaults                0 0
none           /dev/shm     tmpfs         defaults                0 0
LABEL=/tmp     /tmp         ext3          defaults                1 2
LABEL=/var     /var         ext3          defaults                1 2
/dev/sda6      /swap        swap          defaults                0 0
/dev/cdrom     /mnt/cdrom   udf,iso9660   noauto,owner,kudzu,ro   0 0
/dev/fd0       /mnt/floppy  auto          noauto,owner,kudzu      0 0

If I execute fdisk -l /dev/sdb:
Code:
Disk /dev/sdb: 80.0 GB, 80024240640 bytes
255 heads...
Units = cylinders ...
Device          Boot        Start       End      Blocks    Id   System
/dev/sdb1         *           1         9729    78148161   83   Linux

That's all, thank you in advance.

Last edited by Joan Murt; 07-21-2006 at 01:21 PM.
 
Old 07-21-2006, 01:47 PM   #4
Sören Schneider
Member
 
Registered: Apr 2005
Location: Brazil
Distribution: SUSE 9.0 Pro, SUSE OSS 10.0, KDE 3.4.2
Posts: 156

Rep: Reputation: 30
So you need a mountpoint for /home_1 on your new HDD?
 
Old 07-21-2006, 09:46 PM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 121Reputation: 121
Joan Murt,

You've got me somewhat confused.

In your first post you stated:
Quote:
originally posted by Joan Murt
the operating system hard disk of the server computer has broken down
Then in your second post you stated:
Quote:
originally posted by Joan Murt
after restarting with the old OS
Therefore, please explain what you mean by this, and how you can restart
an OS / hard drive that has "broken down"? What does "broken down" mean?

Quote:
originally posted by Joan Murt
it seems that the old redhat thinks that the hard disks are scsi!
Perhaps the OS thinks the disks are S-ATA? What are they? Please issue and
post the output of "dmesg | grep -i ata".

Quote:
originally posted by Joan Murt
I've installed the OS only with the OS hard disk connected (just in order to avoid destroying all data this is my first week in linux).

now that I've got the OS ready (samba, postfix, dovecot, vnc... ready) I need to connect the hard disk that had all the data of the enterprise.

well, I've shut down the computer, connected the cables, started it again and tried to mount that file system.

(I need to mount it as /home_1).

Well the problem is that I receive a message telling me that the device is busy or something like that.
I read this to mean you removed the old hard drive, put a new
hard drive in, and installed RHEL AS4 on the new hard drive.
Is this correct or not?

If so, then how and why did you "restarting with the old OS?"

Where did you "connect the hard disk that had all the data of the enterprise"?

Post the exact command used and output when you "tried to mount that file system"
and you "receive a message telling me that the device is busy or something like that."
We cannot help you investigate "something like that," only exact output.

Are you wanting to run the new RHEL AS4 OS, or the old RedHat 9 OS?

Quote:
originally posted by Joan Murt
Well, looking at what calling mount returns:
Code:
/dev/sdb1 on /home_1 type ext3 (rw)
fstab file reads:
Code:
LABEL=/home_1  /home_1      ext3          defaults                1 2  <--- THE DATA HDD
fdisk -l /dev/sdb:
Code:
Device          Boot        Start       End      Blocks    Id   System
/dev/sdb1         *           1         9729    78148161   83   Linux
That's the strangest fstab output I've ever seen. Must be some
type of RedHat specific format. But it shows that your drive
labeled home_1 is already mounted at mount point /home_1.

I can't understand the fdisk output. You have an entire 80GB
drive with only one partition. So /dev/sdb1 is data only, and
/dev/sda has two operating systems?

Now I don't see your problem at all. You want to mount the data
drive, at home_1, but according to your output it's mounted now.
Please issue "ls -alh /home_1" and see if your data is there.
 
Old 07-22-2006, 03:35 AM   #6
Joan Murt
LQ Newbie
 
Registered: Jul 2006
Posts: 14

Original Poster
Rep: Reputation: 0
QUOTED:
Therefore, please explain what you mean by this, and how you can restart
an OS / hard drive that has "broken down"? What does "broken down" mean?


The old hard disk corrupted some data but red hat 9 was still able to run, I don't want to leave all the enterprise data in the other hard disk, being managed by a corrupted OS.


Try to explain the rest:
The hard disk A has the operating system [RED HAT 9.0].
The hard disk B has all the data.

Somehow the first hard disk has corrupted some data and now the OS makes strange things. (icons that disappear...).

I don't want to leave all the data depending on a "broken" OS.

I've thought on getting other hard disk (hard diks C) from other computer and try to install there RHEL AS4 just in order to see if it works and to improve the performance of the PC at the same time.

As I'm very novice in linux I've thought on maintaining the Hard disk A just in case.

What I've done is:
Disconnect the Hard disks A and B, connect the hard disk C (bus cable and power cable), install the RHELAS4 into the HDD C.

After configuring everything (samba, vnc, postfix, dovecot...) I've shut down that computer and plugged again the Hard disk B in order to add to the existing brand new installation.

When I've tried to mount that new hard disk I've not been able to mount it as I've explained in this forum.

I want to use RHELAS 4 from now.

The exact command used to mount that hard disk has been:
mount /dev/hde1 /home_1


Speaking about the output of the FSTAB file, this is what is seen from the old OS, hard disk A and hard disk B working.

Understand that I'm shutting down the computer and plugging and unplugging hard disks just to be able to see how is everything working and to be able to compare the two OS's.

the problem then is that with the old OS (RH9) the data can be seen without problems, but with the new one it is impossible to do it.

That's all.
 
Old 07-22-2006, 06:53 AM   #7
Sören Schneider
Member
 
Registered: Apr 2005
Location: Brazil
Distribution: SUSE 9.0 Pro, SUSE OSS 10.0, KDE 3.4.2
Posts: 156

Rep: Reputation: 30
Quote:
The exact command used to mount that hard disk has been:
mount /dev/hde1 /home_1
HDE1?

I thought that
IDE0 HDA the first disc and HDB1 the second disc
IDE1 HDC the first disc and HDD1 the second disc

Didn't you tell that your drives are SDAs an SDBs?
 
Old 07-22-2006, 06:58 AM   #8
Sören Schneider
Member
 
Registered: Apr 2005
Location: Brazil
Distribution: SUSE 9.0 Pro, SUSE OSS 10.0, KDE 3.4.2
Posts: 156

Rep: Reputation: 30
Quote:
What I've done is:
Disconnect the Hard disks A and B, connect the hard disk C (bus cable and power cable), install the RHELAS4 into the HDD C.
That's cool.
You disconnect HDD A and B, connect HDD C and want to mount HDD B on C.

How???
 
Old 07-22-2006, 07:03 AM   #9
Sören Schneider
Member
 
Registered: Apr 2005
Location: Brazil
Distribution: SUSE 9.0 Pro, SUSE OSS 10.0, KDE 3.4.2
Posts: 156

Rep: Reputation: 30
You told that you can access /home_1 with HDD A, right?
Why don't you copy the fstab on a floppy and copy it to HDD B?
 
Old 07-24-2006, 03:24 AM   #10
Joan Murt
LQ Newbie
 
Registered: Jul 2006
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Sören Schneider
HDE1?

I thought that
IDE0 HDA the first disc and HDB1 the second disc
IDE1 HDC the first disc and HDD1 the second disc

Didn't you tell that your drives are SDAs an SDBs?
In RH9 the driver of the ata raid controller emulated somehow the scsi hard disks even if the real plugged hdd's are ata.

If we talk about my configuration, you'll understand that:

hda : a cdrom
hdb : a ait tape drive
hdc : a hard disk in a ata raid
hdd : a empty slot in the primary ata raid bus
hde : a hard disk in the second ata raid
hdf : a empty slot in the secondary ata raid bus

at least this is how RHELAS4 has detected it.

Quote:
Originally Posted by Sören Schneider
That's cool.
You disconnect HDD A and B, connect HDD C and want to mount HDD B on C.

How???
OK, if you read what you've quoted you'll see that you has not understood what I've written:
I've disconnected all the hard disks and plugged in the new one. Then I've installed RHELAS4 into the newly plugged hdd.
After configuring the OS, I've connected the hard disk B (the one that has all the data) and tried to detect it.

In fact, a couple of lines ahead, you would be able to read:
Quote:
Originally Posted by Joan Murt
After configuring everything (samba, vnc, postfix, dovecot...) I've shut down that computer and plugged again the Hard disk B in order to add to the existing brand new installation.
I have a big problem here, if you want to help, you are welcome, but please leave the sarcasm for others... at least try to read what the other user has written down please.
 
Old 07-24-2006, 03:36 AM   #11
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 121Reputation: 121
Joan Murt,

You've jumped around a little bit. Please decide which operating system you desire to use, then keep that drive connected. Then have your data drive connected. Then give the output of:

mount
fdisk -l (as root)
df -h
cat /etc/fstab
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add another Hard Disk Drive? RHLinuxGUY Linux - Hardware 2 02-12-2006 12:33 AM
How to recover data from hard disk dongyan_liu Linux - Newbie 1 12-01-2005 05:56 PM
Add a second hard disk manoj142 Linux - Hardware 3 10-25-2005 12:48 PM
recovering data from hard disk planctus Linux - Hardware 4 10-10-2005 04:02 PM
Moving data to another hard disk. wenberg Slackware 10 06-20-2004 11:17 PM


All times are GMT -5. The time now is 04:25 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration