Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to expand linux partition?

Posted on 2000-02-24
7
Medium Priority
?
538 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 800 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

636 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