I want to delete partitions on a drive but retain boot ability with a subsequent O/S
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900
Rep:
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.
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.
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900
Rep:
Quote:
Originally Posted by syg00
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.