Solved

How to expand linux partition?

Posted on 2000-02-24
7
479 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
  • 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now