LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-23-2009, 02:12 AM   #1
eosoro
LQ Newbie
 
Registered: Jul 2009
Posts: 7

Rep: Reputation: 0
partition won't mount after using cfdisk


hi guys

i tried making a Linux window shared swap partition using cfdisk and printed the result to the partition table and then immediately restarted my machine but the boot loader showed me there was an error it could not mount the boot partition, i use mepis what could be the problem? anyone, i would appreciate your help.

Last edited by eosoro; 08-23-2009 at 02:21 AM. Reason: to be more presice
 
Old 08-23-2009, 08:28 AM   #2
kofucii
Member
 
Registered: May 2007
Location: Bulgaria
Distribution: Slackware, SCO Unix
Posts: 62

Rep: Reputation: 20
Well, if the boot manager gives an error, so obviously there is an error. Boot from some LiveCD and see what's going on. Try to format swap partition again.
 
Old 08-23-2009, 08:43 AM   #3
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by eosoro View Post
hi guys
... the boot loader showed me there was an error it could not mount the boot partition, i use mepis what could be the problem?
What was the error given by the boot manager?? (Mepis uses grub as the boot manager btw).
When you boot from a live CD (I assume Mepis has the ability to boot as a live CD) post the output of:
Code:
# fdisk -l
This will list your partition table. Tell us if you can:
Which partition is your boot partition?
Which partition did you try to format with cfdisk to be a swap partition?

You may want to try a Super Grub Disc to boot Mepis. This can restore the grub boot loader also:
http://www.supergrubdisk.org/
 
Old 08-24-2009, 03:19 PM   #4
eosoro
LQ Newbie
 
Registered: Jul 2009
Posts: 7

Original Poster
Rep: Reputation: 0
hi guys

thanks for your contribution, I have another Linux installation fedora 10 which has the boot loader that tried to boot the mepis installation but it could not be mounted so what i did as tommcd said was to confirm the output off

fdisk -l

which part of is

Device Boot Start End Blocks Id System

/dev/sda9 7184 7841 5285353+ 83 Linux
/dev/sda10 4989 6274 10329763+ 7 HPFS/NTFS
/dev/sda11 6275 6404 1044193+ b W95 FAT32

and i also confirmed the content of fstab for mepis

which part was

# Pluggable devices are handled by uDev, they are not in fstab
/dev/sda11 / auto defaults,noatime 1 1
proc /proc proc defaults 0 0
devpts /dev/pts devpts mode=0622 0 0
/dev/sda9 swap swap sw,pri=1 0 0

but i realised that after i had deleted the Linux swap partition (/dev/sda13) to create a Linux - Window shared swap partition (fat32) all the partitions numbers changed i.e mepis went from /dev/sda11 to /dev/sda9 because i had deleted the original linux swap (/dev/sda13)

so when i used cfdisk to create the shared swap it dint edit the fstab for mepis whose static devices still read

/dev/sda11 / auto defaults,noatime 1 1, instead of /dev/sda9 / auto defaults,noatime 1 1

so i logged in as root in fedora and edited the mepis fstab to read the correct static partition device for mepis which is currently /dev/sda9 and it mounted properly. But i still wonder why cfdisk could not edit the entire fstab file with the current partitions after i had made some changes to the partition table?

Last edited by eosoro; 08-24-2009 at 03:20 PM. Reason: spelling check
 
Old 08-25-2009, 05:20 AM   #5
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by eosoro View Post
... But i still wonder why cfdisk could not edit the entire fstab file with the current partitions after i had made some changes to the partition table?
Cfdisk (as you know) is a tool for creating, deleting, or modifying linux partitions. It does not do anything with fstab, grub's menu.lst or any other configuration file.
The situation you experienced is normal. If you have, for example, partitions /dev/sda1 to /dev/sda7, and lets say you delete /dev/sda5, then /dev/sda6 now becomes /dev/sda5, and /dev/sda7 becomes /dev/sda6. It is up to you to edit fstab, grub, or any other configuration files if you need to.

Some distros, like Ubuntu for example, list partitions in fstab and grub by their UUIDs instead of using /dev/sdan. The UUID for a prtition does not change if partitions are deleted or moved. This (at least in theory) avoids the problems you had. See this about UUIDs:
https://help.ubuntu.com/community/UsingUUID
Glad you figured it out and got it fixed. The next time you change your partitions you will know what to do.

Last edited by tommcd; 08-25-2009 at 05:22 AM.
 
Old 08-26-2009, 03:08 PM   #6
eosoro
LQ Newbie
 
Registered: Jul 2009
Posts: 7

Original Poster
Rep: Reputation: 0
thanks Tommcd and Kofucii 4 your insights and participation i now know what 2 do incase i encounter the same problem next time.

all the best.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Partition using CFDISK ic_torres Linux - Newbie 3 07-24-2007 05:40 AM
Creating a partition using cfdisk lel800 Linux - Newbie 4 11-27-2006 12:21 PM
Error in cfdisk? Cant partition! bobthebear Linux - General 6 07-05-2004 09:14 AM
CFDISK Partition Manager tycapel7 Linux - Software 1 06-07-2004 06:31 PM
partition w/cfdisk problem smitty Linux From Scratch 7 10-18-2002 02:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration