Solved

How to expand linux partition?

Posted on 2000-02-24
7
500 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
Independent Software Vendors: 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!

 
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

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

691 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