LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 06-03-2005, 01:47 AM   #1
blainehilton
Member
 
Registered: Dec 2002
Location: Portage, IN, USA
Distribution: Fedora
Posts: 34

Rep: Reputation: 15
Hard Drive Upgrade Oddities (fstab/fdisk)


I am trying to install a new hard drive in a Fedora Core 1 system, but have ran into some odd stuff here. First some background. I installed FC1 on a system with two IDE drives awhile back (before FC2 came out) and did a basic install. Everything went fine and I have been using the system since then. I only ever used the single hard drive though which is /dev/hdb1.

Now I want to remove the two hard drives and duplicate the data from the drive with the data and clone it onto a larger drive. I thought it would be straight forward because I never used the 2nd hard drive, it was just there from a previous application.

When I do a df hT though it shows:

Code:
Filesystem	Type	Mounted On
--------------------------------------
/dev/hdb1	ext3	/
/dev/hda1	ext3	/boot
none		tmpfs	/dev/shm
So this leads me to believe that during the install the boot partition was loaded onto the second hard drive. So what I need to do (I think) is create a new partition on the /dev/hdb1 for boot and then delete the one on /dev/hda1. Then Im not sure where /dev/shm is since the Filesystem says none, but it must be somewhere right? Or is it none because that is the RAM?


So then I did a fdisk /dev/hda1 to see what it said. This is where it took another turn. The message fdisk says is:

Code:
Device contains neither a valid DOS partition table, nor Sun, SGI, or OSF disklabel
Building a new DOS disklabel.  Changes will remain in memory only,
 until you decide to write them.
After that, of course, the previous content wont be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be correct by w(rite)

Not understanding this since the system has been running fine for quite some time I enter p to view the partition table. When I do this it is blank for both drivers. Another strange thing though is when p is entered it shows the header information, but shows only a 195meg drive instead of a 40gig hard drive. For the /hdb1 it says 40.0 GB, but for the /hda1 it says 106 MB.

When I was trying the fdisk message on Google one site said that the jumpers may be on cable select instead of master/slave. I will check this tomorrow, but I dont think that is it.

Then I thought there may be errors on the drive so I ran a smartctl a /dev/hda1 and that came back passed with no errors. However the hdb1 drive said passed, but it also had 3 errors. So Im not sure if that has anything to do with anything.

I have been playing around with another FC1 and a FC3 machine and I also tried using the fdisk command there and received the same error. So it seems like this is something common and I may not need to worry about it.


Any suggestions/pointers/words of widom?

Then to summarize what I would like to do is make sure all data is being stored on a single hard drive (the /dev/hdb1) so I can take the other drive out. I would then clone that drive to a larger drive and get rid of both small drives. So I need to move the /boot partition from the one drive to the other, plus deal with any of the other problems like I mentioned above. Then lastly I believe before /boot can be moved I need to shrink the size of the / partition so there is enough room for the /boot.


Thanks in advance
 
Old 06-03-2005, 04:27 PM   #2
verzonnen
Member
 
Registered: Aug 2003
Posts: 31

Rep: Reputation: 15
mm I would just make a backup of all the data and config filesto hard drive, than reinstall FC1 on one the other drive While the one where the backup is disconnected, If you realy wanted to you could backup to CD even....

I think this will be saver then trying to shrink a partition
 
Old 06-04-2005, 11:28 AM   #3
blainehilton
Member
 
Registered: Dec 2002
Location: Portage, IN, USA
Distribution: Fedora
Posts: 34

Original Poster
Rep: Reputation: 15
Thanks for you response.

I have two 40 gig drives in there now and would like to replace with something like a single 200gig hard drive. So should I clone the hard drive with the / partition to the larger drive and leave room during the cloning process for another partition. Then with that extra room simply copy the /boot partition from the other drive.

What do you make of the errors Im receiving though? Are they safe to ignore or do they mean something is going on?
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
did I kill my hard drive using FDISK? jodansmif Linux - Hardware 1 02-24-2004 06:27 PM
Slackware 9.1 fdisk doesnt find hard drive lazyday Linux - Laptop and Netbook 5 02-04-2004 09:57 PM
fdisk unable to read hard drive scottie Linux - Hardware 1 01-10-2004 02:11 PM
fdisk and cfdisk won't detect hard drive Akcel Slackware 9 07-12-2003 01:37 PM
How do I Fdisk my Linux Hard drive Bodyshop40 Linux - Newbie 1 05-19-2003 01:12 AM


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