Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 03-01-2005, 11:43 AM   #1
LQ Newbie
Registered: Feb 2005
Posts: 16

Rep: Reputation: 0


on my linux server i had 15 partitions on /dev/sdb
i was no longer requiring partition9 (sdb9) hence i deleted it using fdisk. after that when i did a 'p' is showed me 14 partitions sdb1 to sdb14. This means after deleting sdb9, the original sdb10 has now automatically become sdb9. After this i created a new partition of 30 GB which now shows as sdb15 and i exited fdisk with option 'w'. Now althought the partition table has altered i need to reboot the machine before i can get the changes to take place.

My problem is, now that there is an upward shift in the partition numbers (sbd10 became sdb9 and so on until sdb15 became sdb14 and i created a new sdb15), the /etc/fstab still shows the old partition numbers mounting the old filesystems. If i reboot the machine wont i loose all my data with the filesystems being mounted on the wrong partitions?

please advice how i can go about rectifying this?
Old 03-01-2005, 11:58 AM   #2
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 125Reputation: 125
Well, usually, partitions would not be renumbered in this case... but supposing they were, you should be able to just update fstab and other partition-based references to reflect the new partitioning scheme.
Old 03-01-2005, 12:41 PM   #3
LQ Newbie
Registered: Feb 2005
Posts: 16

Original Poster
Rep: Reputation: 0

Thas what i thought i would do, but i am little nervous abt doing that and i want to be absolutely sure that i wont be loosing any data by doing that.

Any advice.
Old 03-01-2005, 01:36 PM   #4
Senior Member
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
You won't lose any data. Depending on the details you might get a kernel panic on boot if / was relabeled. Things may not work if the references to them are now wrong. You might want to boot Knoppix and fix up fstab from there.
Old 03-02-2005, 03:56 AM   #5
Senior Member
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54
fdisk can fix the partition order by renumbering them based on their track start/end positions.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Deleted linux partition (using partition magic) Geminias General 7 10-09-2005 05:14 PM
Deleted ntfs partition - added linux partition in its place - corrupt! eklhad Linux From Scratch 2 06-28-2005 02:31 AM
deleted linux partition adn the boot loader was deleted also,now i have only gnu grub boris199 Linux - Laptop and Netbook 2 01-29-2005 05:53 PM
Data on Partition deleted rahulnsoni Linux - Newbie 5 05-01-2004 06:58 AM
help! deleted linux partition! andym Linux - General 5 01-28-2004 07:01 PM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 04:46 AM.

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