LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-30-2010, 08:46 AM   #1
steveh1
LQ Newbie
 
Registered: Dec 2007
Posts: 7

Rep: Reputation: 0
Question Need to move to a new, larger, laptop HD


I have a new hard drive about 150% larger than the current one. I have both Vista and Ubuntu on the current drive, along with a shared partition to allow me to move data to and from.

When I first partitioned the original drive, I used only 10GB for the Linux root partition, and now I have plenty of room and want to grow it on the new drive. Since the inode table is part of the partition (I believe,) I don't think that I can just dd the old partition over to the new one.

What do you think I can do to solve my problem?

Thanks,
Steve
 
Old 03-30-2010, 08:54 AM   #2
troop
Member
 
Registered: Feb 2010
Distribution: gentoo, arch, fedora, freebsd
Posts: 379

Rep: Reputation: 97
http://www.linuxquestions.org/questi...-drive-793442/
 
Old 03-31-2010, 08:44 AM   #3
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
You may also want to look into using clonezilla to clone the old hard drive to the new hard drive:
http://www.clonezilla.org/
There is a clonezilla live CD available:
http://www.clonezilla.org/clonezilla-live/
 
Old 04-10-2010, 12:56 AM   #4
steveh1
LQ Newbie
 
Registered: Dec 2007
Posts: 7

Original Poster
Rep: Reputation: 0
I finally had a chance to d/l clonezilla and use it to move things around. Unfortunately, what I was afraid would happen, did happen.

Here is the fdisk output after the use of clonezilla and then moving the drive into my laptop and booting:

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xef859dce

Device Boot Start End Blocks Id System
/dev/sda1 * 1 12004 96421763 7 HPFS/NTFS
/dev/sda2 12004 13309 10482748 c W95 FAT32 (LBA)
/dev/sda3 13310 14224 7349737+ 7 HPFS/NTFS
/dev/sda4 14225 30401 129941752+ 5 Extended
/dev/sda5 14225 14617 3156741 82 Linux swap / Solaris
/dev/sda6 14618 18534 31463271 83 Linux
/dev/sda7 18535 22451 31463271 83 Linux
/dev/sda8 22452 26368 31463271 7 HPFS/NTFS

I cloned the first partition and the third (the OEM Vista install) and thought that my cloning of the second partition (10Gb originally, and I set up the new drive to have 30 Gb. After creating the various new partitions, Linux, MSDOS and VFAT, I wrote the partition table, then figured that it wouldn't hurt to mkfs all of the new partitions.

I'm surprised that partitions 2, 3 and 6 don't seem to reflect what I set up. Here is the df output:

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda6 10412484 9767044 116504 99% /
udev 1026060 284 1025776 1% /dev
none 1026060 376 1025684 1% /dev/shm
none 1026060 336 1025724 1% /var/run
none 1026060 0 1026060 0% /var/lock
none 1026060 0 1026060 0% /lib/init/rw
/dev/sda2 1044480 1024820 19660 99% /media/NewVolume
/dev/mmcblk0p1 7899664 2181500 5718164 28% /media/8GB2
/dev/sda8 31447888 16 31447872 1% /media/holding

sda6 OUGHT to be 30Gb, sda2 OUGHT to be 3 GB.

I used clonezilla thinking that it could move the contents of a smaller partition to a larger one, and would have used dd, except I thought that the inode table would transfer over and cause the same symptoms as I am seeing.

Can anyone see what I am overlooking?

Steve
 
Old 04-10-2010, 01:14 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Let's see what parted thinks
Code:
parted /dev/sda "print"
 
Old 04-10-2010, 05:03 AM   #6
steveh1
LQ Newbie
 
Registered: Dec 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Here 'tis:

(parted) print
Model: ATA WDC WD2500BEVT-1 (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 32.3kB 98.7GB 98.7GB primary ntfs boot
2 98.7GB 109GB 10.7GB primary fat32 lba
3 109GB 117GB 7526MB primary ntfs
4 117GB 250GB 133GB extended
5 117GB 120GB 3233MB logical
6 120GB 152GB 32.2GB logical ext3
7 152GB 185GB 32.2GB logical ext3
8 185GB 217GB 32.2GB logical fat32
9 217GB 249GB 32.2GB logical ext2

(parted) check 9
Warning: Partition 2 is 10.7GB, but the file system is 1074MB.
Ignore/Cancel? i
Warning: Partition 3 is 7526MB, but the file system is 7337MB.
Ignore/Cancel? i
Warning: Partition 6 is 32.2GB, but the file system is 10.8GB.
Ignore/Cancel? i
Information: The ext2 file system passed a basic check.

Steve
 
Old 04-25-2010, 10:35 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Just found this again - is it still an issue ?.
 
Old 04-28-2010, 02:12 PM   #8
steveh1
LQ Newbie
 
Registered: Dec 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Eventually,I stumbled into a solution, but I'd be damned if I can remember exactly how I solved it.

I THINK that I created the larger partitions, formatted them, then rsync'ed everything into them. The Vista partition wouldn't boot, and having an HP with only a "remake the original, as-sold, OS DVD", I was stumped as to how to fix it. But I eventually found a Vista restore disk via Google, downloaded it, and I'm now (as of last night) in a much larger "home".

Steve
 
  


Reply



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
cannot using FTP move command to move files adrianmak Linux - Networking 4 04-21-2009 12:01 PM
i want to use 2 or more isp's on one laptop wirelessly for larger bandwith people Linux - Newbie 1 01-16-2009 08:36 PM
using linux to move xp to larger drive? babag Linux - General 6 05-14-2007 06:17 PM
how to move root parition to a larger partition miner49er Linux - General 2 04-23-2006 03:38 AM
How to move to larger drive.... bishoptf Linux - Hardware 2 08-27-2005 04:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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