LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 08-27-2005, 03:22 PM   #1
bishoptf
LQ Newbie
 
Registered: Aug 2005
Posts: 2

Rep: Reputation: 0
How to move to larger drive....


OK, I been down this path before trying to move an installation to a Serial drive from a PATA drive and didn't have any luck....so now I am trying to do it with an IDE drive only larger, here's what I tried to no avail....the old drive is 12gb and the new one is 80gb. I'm using suse 9.2 and want to move it to a new 80gb drive.


Booted up with mepis livecd, partioned the new drive the same as the orginal (only bigger), 1st as swap and then the second as the native file system (reiser). Created an image file of the original drive partition using partition image (mepis) and restored image to new drive. I have done this several waysn (partition image, tar, haven't tried cpio), the plan is to remove the old drive and substitute the new drive. Currently my old drive looks like this:

/dev/hda1 - swap
/dev/hda2 - native, primary with all the files

so I booted in mepis using a livecd and partitioned and formated my new drive similar (only larger partitions) and them restore the image file to the new partition. Now I realize that I have fstab settings and grub, but shouldn't these settings be the same since the new drive should also be /dev/hda???

I have tried to fix grub but to no avail, any steps that I may have missed or suggestions would be great...Thanks.
 
Old 08-27-2005, 03:58 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,536

Rep: Reputation: 178Reputation: 178
"Created an image file of the original drive partition using partition image (mepis) and restored image to new drive."

Image copies between drives with different geometries often create flakey errors.

"Now I realize that I have fstab settings and grub, but shouldn't these settings be the same since the new drive should also be /dev/hda???"

Bootloaders are very prone to flakey errors induced by an image copy.

I suggest that you start over and don't use dd in your new conversion plan. I use tar or cp to do this sort of copy. It is easier to preserve ownership with tar.

grub is the last thing to set up. After everything else is done boot into your system using a rescue CD and run grub-install.

-------------------------
Steve Stites

Last edited by jailbait; 08-27-2005 at 04:03 PM.
 
Old 08-27-2005, 04:37 PM   #3
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
What I do is make partitions. Then reboot. Next format the partitions and use a command like 'cp -av'. Fourth, edit fstab to relate to the new change. SATA is /dev/sda...sdz. Depending on your kernel config, you may need to include the SATA module (driver) in the ramdisk file. You then have to install the boot loader.
 
  


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
One flash drive mounts, the larger doesn't matrim Linux - Hardware 3 11-29-2005 01:52 AM
Need to replace HDD with a larger drive gvi Linux - Hardware 7 01-20-2004 10:20 AM
boot error after using Copy Commander to copy debian system onto larger new drive Interceptor Linux - Hardware 7 05-04-2003 12:40 PM
Does anyone run RH8 off a drive larger than 32gigs? infamous41md Linux - Newbie 2 04-02-2003 08:35 PM
Upgrading to a larger drive madcrutch Linux - Software 3 04-30-2002 02:19 AM


All times are GMT -5. The time now is 03:38 AM.

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