LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-12-2012, 08:45 PM   #1
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Rep: Reputation: 166Reputation: 166
I want to delete partitions on a drive but retain boot ability with a subsequent O/S


The fdisk read out is as follows:

fred@fred-desktop:~$ sudo fdisk -l
[sudo] password for fred:

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000bbec8

Device Boot Start End Blocks Id System
/dev/sda1 1 262 2103296 82 Linux swap / Solaris
Partition 1 does not end on cylinder boundary.
/dev/sda2 * 262 2873 20972544 83 Linux
/dev/sda3 2873 29983 217761583+ 83 Linux
/dev/sda4 29984 60802 247546881 5 Extended
/dev/sda5 29984 30047 512000 83 Linux
/dev/sda6 30048 60097 241376256 83 Linux
/dev/sda7 60098 60802 5656576 82 Linux swap / Solaris
fred@fred-desktop:~$

What I want to do is remove suse which is sda1,2+3 but retain the rest and keep it bootable. Should I start again? Perhaps there is a method to move the bootable bit and keep the extended partition?

Fred.

Fred.
 
Old 02-12-2012, 09:00 PM   #2
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636
When you install the new OS, I'm assuming it will be Linux, it will set up the boot sector for you. So, in other words, you can start fresh if you want to and let the installer do everything for you.

EDIT: the "bootable bit" is the MBR (Master Boot Record) it cannot be moved and is always at the beginning of the disc.

BTW, always back up anything you must not lose such as important personal files.

Last edited by k3lt01; 02-12-2012 at 09:02 PM.
 
Old 02-12-2012, 10:00 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,839

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
Where does the OP indicate a new system is to be installed (except if all else fails) ?.

Deleting partitions tends to rename the remaining ones - can be ugly unless you use UUID or similar in fstab.
Most distros offer a "boot disk install" on their install/live CD. Not many will find other than the first Linux - supergrubdisk is generally a good solution in that case to rebuild grub. If you use lilo, I can't help.
 
Old 02-12-2012, 10:20 PM   #4
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636
Quote:
Originally Posted by syg00 View Post
Where does the OP indicate a new system is to be installed (except if all else fails) ?..
In the title of the thread. The word subsequent indicates something else will be installed, it may not say when but it does mean it will be in the future.
 
Old 02-12-2012, 10:27 PM   #5
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Original Poster
Rep: Reputation: 166Reputation: 166
re-allocate

Yes, dropped a hairy one when I made swap the first partition (I think) but how do you change things in fstab? A redirection would do. Does it cause problems because suse use legacy grub and others use grub2?

Fred.
 
  


Reply


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
[SOLVED] use sed to find string pattern and delete subsequent characters jigg_fly Programming 16 10-10-2013 09:34 AM
dd command ...duplicated the extended partition but not subsequent partitions? lbrownne Linux - Newbie 11 12-09-2009 08:12 AM
turn off swap but retain ability to hibernate? Jaunty workforfood Ubuntu 2 08-27-2009 11:51 PM
i want to boot windows xp from grub loader and want to delete all linux partitions pankajd Linux - Software 1 05-30-2009 09:23 AM
I need a boot floppy that can delete linux partitions. Royle Linux - General 1 01-15-2005 10:31 PM


All times are GMT -5. The time now is 12:42 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration