Solved

How to expand linux partition?

Posted on 2000-02-24
7
499 Views
Last Modified: 2013-12-15
I want to delete Win NT from its partition and give this partition to linux. Is it possible to do this without causing linux problem?

Win NT is installed in /dev/hdb1 and its partition type is FAT32. /dev/hda is FAT32.
Linux /root is in /dev/hdb5.

Linux loader is in Master boot record.

Another question:
If I want to sell my computer and buy a new one, how hard is it to migrate linux from one disk to another one without changing the setting of the hardware much? Is it possible to do this?


0
Comment
Question by:screwdriver
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 1

Accepted Solution

by:
kartebi earned 200 total points
ID: 2556258
Its easy for you to delete the NT partition without causing no problems to Linux.
You can use Linux or dos fdisk in order to delete the fat32 partition.(i suggest use the linux fdisk)
Then create a partition (Linux native,ext2) using linux fdisk.Then ,in linux, format it.Then add a line to "etc/fstab" like this:
/dev/hdb1  /mnt ext2
in order to automaticaly mount /dev/hdb1 to /mnt every time the linux boots.You can choose whatever directory you want.
About the second question:
If you want to "copy" your excisting Linux to another hard disk, i don't think its possible.
If you use the old hard disk to the new computer its possible to do it without much trouble.Before "migrating" the hard disk make sure to use an "ordinary" kernel configuration, just like the kernel used when you install linux.Then you can boot your new computer without much trouble.After that:
"Enjoy!!!!!!"
0
 

Author Comment

by:screwdriver
ID: 2556309
If I have a partition magic 5.0, can I delete the nt partition and regrow the linux partition (for example, the /usr or /home) partition without causing problem?
0
 
LVL 1

Expert Comment

by:kartebi
ID: 2556328
I'm not sure but i think its possible.
(i have used a demo version of partition magic once)
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 1

Expert Comment

by:kartebi
ID: 2556331
But be carefull doing that because your linux is installed on logical partitions
and i'm not sure what you can do in that case.Give me a full list of your partitions so that i can think better.
0
 

Author Comment

by:screwdriver
ID: 2556591
I am not sure if this format looks ok on the screen....

Disk /dev/hda: 15 heads, 56 sectors, 989 cylinders
Units = cylinders of 840 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1       989    415352    6  FAT16

Disk /dev/hdb: 64 heads, 63 sectors, 787 cylinders
Units = cylinders of 4032 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdb1   *         1       279    562432+   6  FAT16
/dev/hdb2           280       787   1024128    5  Extended
/dev/hdb5           755       787     66496+  82  Linux swap
/dev/hdb6           723       748     52384+  83  Linux
/dev/hdb7           280       696    840609   83  Linux
/dev/hdb8           697       722     52384+  83  Linux
/dev/hdb9           749       754     12064+  83  Linux
0
 

Author Comment

by:screwdriver
ID: 2558545
thanks! I just tried with fdisk, then mke2fs, and mount the new partition to /opt
Finally I'm 100% Microsoft free :)
0
 
LVL 1

Expert Comment

by:kartebi
ID: 2559707
ok good!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
AWS EC2 HTTP & HTTPS 2 115
Moving from Mcrypt to OpenSSL 18 74
plsql job on oracle 18 107
Install XRDP on Ubuntu Server 16.10 x64 3 115
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question