LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Partition using CFDISK (https://www.linuxquestions.org/questions/linux-newbie-8/partition-using-cfdisk-571432/)

ic_torres 07-22-2007 04:15 PM

Partition using CFDISK
 
hello group, i would just like to seek help.

here is the situation :


1. i have this problem; here is the latter part of my entire 80G HD in linux (did not include the partitions that are not affected)

Quote:

hdc11 -- OCCUPIED by /home of my SW 12.0
logical FREE 14G
hdc12 -- OCCUPIED BY VL 5.1 SOHO



NOW, my problem IS. . EVERYTIME i try to make use of the FREE 14G of my disk it goes like this :

Quote:

hdc11 -- OCCUPIED by /home of my SW 12.0
hdc12 ---newly created partition 14G space
hdc13 -- OCCUPIED BY VL 5.1 SOHO



Since my free space is in between hdc11 and hdc12 when i tried making use of the free space... My partition of VL5.1 becomes hdc13. and the new created partition becomes the hdc12.


QUESTION :

if I WILL NOW do the "WRITE" option,(in cfdisk)
then I WILL CHANGE the partition of my VL 5.1 from hdc12 to hdc13 FROM my LILO. . .will i still be able to read/load my VL 5.1? ? :confused: :confused:



example :


FROM :

#VECTOR 5.1 SOHO
other= /dev/hdc12
label = VL5.1


TO :

#VECTOR 5.1 SOHO
other= /dev/hdc13
label = VL5.1


# /sbin/lilo -v


*** my fear is that since the partition of VL was moved to hdc13, I will loss my entire VL even I change it to hdc13. .please help. .thanks

kilgoretrout 07-22-2007 05:25 PM

You are not going to lose anything unless you have a problem with cfdisk but you won't be able to boot VL with just that change. What you did should take care of the needed changes in lilo but you have forgotten about your /etc/fstab in VL as well; it's still listing "/" as /dev/hdc12. You need to change that to /dev/hdc13 or you will get a kernel panic as soon as lilo tries to mount the root filesystem.
Also, for troubleshooting this type of situation, you should get yourself a good livecd; I'd recommend slax:

http://www.slax.org/

It's a small download and slackware based like VL. It allows you to access lilo.conf and fstab if you get into a noboot situation.

Finally for partitioning, take a look at gparted livecd:

http://gparted.sourceforge.net/

Its a Partition Magic clone and much easier to use than cfdisk.

saikee 07-22-2007 05:52 PM

Yep logical partitions must be continuous and that is exactly what should happen.

You can, like kilgoretrout already pointed out, revise /etc/lilo.conf and also /etc/fstab to change all hdc12 to hdc13.

You seem to have another Linux if that is the case just use it to restore Lilo. Any Live CD can do it too. Steps are as per Task B3 in the last link of my signature.

ic_torres 07-24-2007 05:40 AM

Quote:


Name Flags Part Type FS Type [Label] Size (MB)
---------------------------------------------------------------------------------------
hdc1 Primary OpenBSD 9999.88
hdc2 Primary Linux ReiserFS 9999.88
hdc3 Primary Linux ReiserFS 9999.88
hdc5 Logical Linux ReiserFS 1999.88
hdc6 Logical Linux ext3 100.13
hdc7 Logical Linux swap 1000.20
hdc8 Logical Linux ReiserFS 1000.20
hdc9 Logical Linux ReiserFS 1000.20
hdc10 Logical Linux ReiserFS 4999.94
hdc11 Logical Linux ReiserFS 9999.88
hdc13 Logical Linux 14926.53
hdc12 Logical Linux ReiserFS 14999.82



hey guys. . FDISK saves the day. . .the BOLD one is the newly created partition. .. my VL 5.1 SOHO in /dev/hdc12 was not moved or altered :)


All times are GMT -5. The time now is 07:21 AM.