Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-19-2002, 01:41 AM
|
#1
|
LQ Newbie
Registered: Apr 2001
Location: India
Distribution: Red Hat 7.1, Mandrake 8.2, Debian - Potato
Posts: 8
Rep:
|
How to add new partition before Linux partition in an existing Linux box?
Dear Sirs,
I have a 40 GB HDD with following partitions :
PRIMARY
/dev/hda1 - 24 MB - XOSL dedicated
/dev/hda2 - 02 GB - Windows NT Worksataion 4.0
/dev/hda3 - 03 GB - Windows 98 SE
EXTENDED LOGICAL
/dev/hda5 - 04 GB - Shared Data FAT
/dev/hda6 - 14 GB - Shared Data FAT32
/dev/hda7 - 500 MB - Linux Swap
/dev/hda8 - 10 GB - Red Hat 7.1 Linux Native
I am multi booting NT,98,Linux from XOSL.
When I created 1 GB partition out of /dev/hda6 and installed BeOS I can multi boot NT,98,BeOS. Linux boots but gives the message "VFS Kernel Panic could not load etx2 fs".
However if I delete BeOS (or any partition before Linux, for that matter) from MBR by Ranish Partion then I am able to boot LInux without any problem.
It appears to me that inserting new partition before existing Linux partition is creating problem. I even tried to edit /etc/fstab but nothing happened.
DO I HAVE TO RE-INSTALL LINUX EVERY TIME I INSERT/ADD/DELETE ANY PARTITION BEFORE EXISTING LINUX PARTITION?
Let me know if there is any way out?
Ash
|
|
|
04-19-2002, 08:28 AM
|
#2
|
Member
Registered: Mar 2002
Location: Elyria, Ohio
Distribution: Debian, Nothing else required
Posts: 141
Rep:
|
It only causes problems if hda7 and hda8 change to different partition numbers. If you know in advance that, with the addition of a BEOS partition causes hda7 and hda8 to be shifted to hda8 and hda9, respectively, then make these changes to /etc/fstab and /etc/lilo.conf or whatever conf file xosl uses, before you shutdown Linux and create the new partition.
Yes, you have to do this every time your Linux partition numbers change. It might be a bit inconvient, but it does kind of point out that you should have some idea on how you are going to use your platform before you set it up to eliminate these kind of problems. -mk
|
|
|
04-23-2002, 02:40 AM
|
#3
|
LQ Newbie
Registered: Apr 2001
Location: India
Distribution: Red Hat 7.1, Mandrake 8.2, Debian - Potato
Posts: 8
Original Poster
Rep:
|
Thanks for reply. I created new partition from Linux cfdisk and made changes in /etc/lilo.conf and /etc/fstab and now my box is working.
:-)
|
|
|
04-23-2002, 04:26 AM
|
#4
|
LQ Addict
Registered: Jun 2001
Posts: 1,183
Rep:
|
There is a way to make things a little easier when you add or remove partitions. Use ' LABEL= ' in your fstab file. Just give your partitions names. Like ' / ' for the root partition and ' swap ' for the swap partition. Then do this:
Old fstab file:
/dev/hda7 swap swap defaults 0 0
/dev/hda8 / ext2 defaults 1 1
New fstab file:
LABEL=swap swap swap defaults 0 0
LABEL=/ / ext2 defaults 1 1
Whenever the partition numbers change because of adding or removing a partition, linux will be able to find the right partition because it will look for the partition names instead of their number. You'll still have to edit the lilo.conf file to point to the new location of the root ' / ' partition.
|
|
|
All times are GMT -5. The time now is 02:44 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|