Remove partition sda5 from disk& edit fstab without losing boot capabilities
Sda 5 /home/previous_os is partition that existed from a previous install,which I backed up to my home partition, I recently deleted it & found my system unbootable.
I tried grub rescue from live-cd & found that I couldn't chroot to make necessary changes, nor, make changes from the grub prompt (inaddiquacies on my part), so, I recently installed anothe debian os & saved home to recover data after retrieving data I would like to remove the new sda5 & maintain my bootable system. My intentions are to make all necessary changes to fstab &, or grub my google searches have not given me any light upon this matterm (making necessary changes before deleting partition on bootable linux system). http://www.google.com/search?q=makin...a7a5ae9431d5a8 I have however found this thread but it's for a non-bootable system http://www.kubuntuforums.net/showthr...-Grub2-related Any hints as to which way I can proceed with partition removal? |
My first guess is that your root-system was on a partition after sda5.
Thing is, logical volumes (as all "partitions" above 4 are) change number if you add / remove partitions in front. Primary partitions don't, they always keep their number. So if you have let's say sda5, sda6, sda7 and then remove partition sda5 - you end up with partitions sda5, sda6 (being the old sda6 & sda7). If I'm right, all you need to do is to change a line in grub - could be done during boot. You change "root=/dev/sda6" (or whatever number it was) to "root=/dev/sda5" (that is, one number lower than before). If I'm not correct then please give complete partition layout, with info also about actice partition - which partition you boot from. |
Quote:
Quote:
Quote:
I tried this 1 & command failed at Quote:
I 'm attaching my fstab as I plan on doing it again. Code:
# / was on /dev/sda6 during installation |
/sbin/blkid (without any options or arguments) lists /dev/sd* with their UUID strings.
EDIT: including any not listed in fstab |
Ok after getting data off home partition & deleting again I was able to delete the partition & rescue from the grub prompt using these 2 posts.
http://ubuntuforums.org/showpost.php...12&postcount=3 |
This thread is solved.
After using the above post & especially this 1, the last answer http://superuser.com/questions/18173...hout-a-live-cd I was able to recover & edit my /etc/fstab then do a Quote:
Next item on my list of to do's is to learn how to recover from busy box |
All times are GMT -5. The time now is 02:42 PM. |