LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-31-2005, 06:19 PM   #1
canyon289
Member
 
Registered: Sep 2004
Posts: 125

Rep: Reputation: 15
new harddrive


Hi, I am running Fc4 on a 2 harddrive machine. I have a 120 master Seagate and a 40 slave quantam. I installed Fc4 while both drives were in the computer. When I try to replace the 40 gig slave with a 120 western digital init panics and refuses to boot Linux. But when I plug the 40 gig drive it boots like normal. How can I replace the old 40 gig hdd with the new 120 gig without init refusing to boot because it cant find the old harddrive?
 
Old 10-31-2005, 06:34 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 64
Rem out the lines in /etc/fstab with # that are related to the 40gig drive. Another issue depends on what partitions you have on it and what they are doing. Post your /etc/fstab so as to see what is what to help. Might as well as post /boot/grub/grub.conf to check something else. Depending on where some items are installed you may have to install all 3 hardrives and copy paritions from drive 2 to drive 3.

Brian1
 
Old 10-31-2005, 07:58 PM   #3
canyon289
Member
 
Registered: Sep 2004
Posts: 125

Original Poster
Rep: Reputation: 15
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
/dev/devpts /dev/pts devpts gid=5,mode=620 0 0
/dev/shm /dev/shm tmpfs defaults 0 0
/dev/proc /proc proc defaults 0 0
/dev/sys /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/fd0 /media/floppy auto pamconsole,exec,noauto,managed 0 0
/dev/hdd /media/cdrom auto pamconsole,exec,noauto,managed 0 0
/dev/hdc /media/cdrecorder auto pamconsole,exec,noauto,managed 0 0








and grub

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hda
default=4
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.12-1.1390_FC4smp)
root (hd0,0)
kernel /vmlinuz-2.6.12-1.1390_FC4smp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.12-1.1390_FC4smp.img
title Fedora Core (2.6.12-1.1390_FC4)
root (hd0,0)
kernel /vmlinuz-2.6.12-1.1390_FC4 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.12-1.1390_FC4.img
title Fedora Core (2.6.11-1.1369_FC4smp)
root (hd0,0)
kernel /vmlinuz-2.6.11-1.1369_FC4smp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.11-1.1369_FC4smp.img
title Fedora Core-up (2.6.11-1.1369_FC4)
root (hd0,0)
kernel /vmlinuz-2.6.11-1.1369_FC4 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.11-1.1369_FC4.img

title Media Kernel
root (hd0,0)
kernel /bzImage-2.6.12.5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.12.5.img
 
Old 10-31-2005, 08:09 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 64
I really don't see no linking to /dev/hdb* in there. Only thing is the using of logical volumes. Never like that scheme becuase of moving data can be complicated. Been a while since trying them and forgottten alot about it. Grub says root is in the fisrt drive. Not really sure how to precede from here.

Post output also from the file /etc/mtab and the command ' /sbin/fdisk -l '. fdisk requires root to run.

Brian1
 
Old 11-01-2005, 07:36 PM   #5
canyon289
Member
 
Registered: Sep 2004
Posts: 125

Original Poster
Rep: Reputation: 15
mtab
/dev/mapper/VolGroup00-LogVol00 / ext3 rw 0 0
/dev/proc /proc proc rw 0 0
/dev/sys /sys sysfs rw 0 0
/dev/devpts /dev/pts devpts rw,gid=5,mode=620 0 0
/dev/hda1 /boot ext3 rw 0 0
/dev/shm /dev/shm tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
automount(pid2166) /misc autofs rw,fd=4,pgrp=2166,minproto=2,maxproto=4 0 0
automount(pid2207) /net autofs rw,fd=4,pgrp=2207,minproto=2,maxproto=4 0 0



[root@localhost ravin]# fdisk -l '. fdisk
>

There no output on that command
 
Old 11-01-2005, 08:22 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,780

Rep: Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803
The command is just
fdisk -l (make sure it is a small L)
 
Old 11-02-2005, 12:19 AM   #7
canyon289
Member
 
Registered: Sep 2004
Posts: 125

Original Poster
Rep: Reputation: 15
[root@localhost ravin]# fdisk -l

Disk /dev/hda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 14593 117113850 8e Linux LVM

Disk /dev/hdb: 40.0 GB, 40027029504 bytes
255 heads, 63 sectors/track, 4866 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 4866 39086113+ 8e Linux LVM


Im trying to repalce hdb

Last edited by canyon289; 11-02-2005 at 12:21 AM.
 
Old 11-02-2005, 10:22 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,780

Rep: Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803
At first glance:
/dev/VolGroup00/LogVol00 looks like hda2 and is your /
/dev/VolGroup00/LogVol01 looks like hdb1 and is your swap.
hda1 is /boot

I did not expect that linux would not to boot due to bad swap (missing in your case) but it also could be due to the fact that it is a LVM

What is the output of the pvdisplay -m command

I have limited experience with using LVM and I've never tried to remove swap using LVM but here is a link:
http://www.centos.org/docs/4/html/rh...-removing.html

Once the swap is disabled you should be able to remove the old drive. You have enough memory that not having swap should not be a problem until you get the new drive up and running.

Last edited by michaelk; 11-02-2005 at 10:24 PM.
 
Old 11-03-2005, 08:24 AM   #9
canyon289
Member
 
Registered: Sep 2004
Posts: 125

Original Poster
Rep: Reputation: 15
[root@localhost ravin]# pvdisplay -m
/dev/cdrom: open failed: No medium found
--- Physical volume ---
PV Name /dev/hda2
VG Name VolGroup00
PV Size 111.69 GB / not usable 0
Allocatable yes (but full)
PE Size (KByte) 32768
Total PE 3574
Free PE 0
Allocated PE 3574
PV UUID Mq5Hpk-ttYE-gjKN-n392-i0oR-0sfX-lDYXsq

--- Physical volume ---
PV Name /dev/hdb1
VG Name VolGroup00
PV Size 37.25 GB / not usable 0
Allocatable yes
PE Size (KByte) 32768
Total PE 1192
Free PE 2
Allocated PE 1190
PV UUID lXnTBd-z1UW-gjX3-x7Pu-iWJ8-Zh6p-3h9llz



Alright, That should help. Correct me if im wrong but lvm stands for Logical volume management?
My comp has 512*3 +256 megs of ram
 
Old 11-03-2005, 05:01 PM   #10
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 64
From others here I would rem out this line in /etc/fstab.
# /dev/VolGroup00/LogVol01 swap swap defaults 0 0

You will not have a swap partition but should be no big deal till harddrive is installed. Then create a new swap partition and add to it. From what I see you have a 40 gig swap which is way to big for and average system. It used to be defined as twice the size of the computers memory. But in those days 32 meg was tops. Today even with 512mb of ram, 256 meg swap is more than enough for average systems. So kep this in mine when partition the new drive.

If still having issues. You need to unplug one of the cd devices and then plug the new drive onto that interface. With all three harddrives installed you could copy the 40 gig swap over to the thrid drive and then resize it down. Shutdown and swap the 3rd drive to the 2nd drive connector and remove the 2nd 40 gig drive. Startup and partition as you like.

Hope this helps.
Brian1
 
  


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
Need Harddrive help goobn68 Linux - Hardware 1 07-31-2005 09:35 PM
My second harddrive stefane321 Linux - Hardware 7 12-14-2004 11:09 PM
Installing linux on 2nd harddrive(dual boot) windows on seperate harddrive lysol Linux - Software 25 08-03-2004 09:33 AM
Need to replace full harddrive with new, larger harddrive pearlr Linux - Newbie 1 01-02-2004 12:59 PM
Harddrive JTD Linux - Hardware 1 11-11-2003 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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