LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


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

Rep: Reputation: 0
i DELETED A PARTITION


Hi,

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, 10:58 AM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
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, 11:41 AM   #3
mailnickykav
LQ Newbie
 
Registered: Feb 2005
Posts: 16

Original Poster
Rep: Reputation: 0
Hi,

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, 12:36 PM   #4
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
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, 02:56 AM   #5
misc
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.
 
  


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
Deleted linux partition (using partition magic) Geminias General 7 10-09-2005 04:14 PM
Deleted ntfs partition - added linux partition in its place - corrupt! eklhad Linux From Scratch 2 06-28-2005 01: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 04:53 PM
Data on Partition deleted rahulnsoni Linux - Newbie 5 05-01-2004 05:58 AM
help! deleted linux partition! andym Linux - General 5 01-28-2004 06:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 11:38 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