Solved

How to expand linux partition?

Posted on 2000-02-24
7
498 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

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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CentOS 7 Linux for HP DL380 G4 32Bits 7 77
RHEL 6.7 Gnome Desktop on VMware 6 VM 9 112
Ubuntu don’t allow SU command in terminal 7 63
IMAP copying tool 14 45
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

749 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