Edit fstab or grub b4 deleting partition/OS?

Forum rules
Before you post please read this
Post Reply
mover47
Level 1
Level 1
Posts: 10
Joined: Fri Jan 12, 2007 3:58 am

Edit fstab or grub b4 deleting partition/OS?

Post by mover47 » Thu Jan 25, 2007 6:02 am

Hello,

I'm just getting Mint to how I like it and I don't want to mess anything up. I want to delete a partition on a spare HD that has a Fedora installation on it. Right now that OS shows up in grub and Mint mounts it to the desktop. I'm going to make the whole disk NTFS, since I can access it with Mintdisk (That is, I'm deleting Fedora and the whole Linux partition).

Question: Do I have to make any changes to grub or fstab before I delete the partition? I'm wondering if Mint will complain if the partition/OS is suddenly not there upon reboot.

Sorry if it's a silly question. I want to avoid a reinstall. Thank you!

Note that there is no entry for the NTFS partition because I deleted it when I installed Mintdisk (which is AWESOME, by the way).

Code: Select all

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/hdc6
UUID=bf747b17-ca58-4ab0-a54c-88523a37a281 /               ext3    defaults,errors=remount-ro 0       1

UUID=6763b7a4-f7d0-4ed3-9a8d-b4c6c491cff3 /media/hdd5     ext3    defaults        0       2
# /dev/hdc5
UUID=a35b3df1-b1fc-46b3-bbc3-afc8c70d8a74 none            swap    sw              0       0
/dev/hdb        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/hda        /media/cdrom1   udf,iso9660 user,noauto     0       0

Code: Select all

title		Ubuntu, kernel 2.6.17-10-generic
root		(hd0,5)
kernel		/boot/vmlinuz-2.6.17-10-generic root=/dev/hdc6 ro quiet splash
initrd		/boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot

title		Ubuntu, kernel 2.6.17-10-generic (recovery mode)
root		(hd0,5)
kernel		/boot/vmlinuz-2.6.17-10-generic root=/dev/hdc6 ro single
initrd		/boot/initrd.img-2.6.17-10-generic
boot

title		Ubuntu, memtest86+
root		(hd0,5)
kernel		/boot/memtest86+.bin
quiet
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title		Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hdc1
title		Microsoft Windows XP Professional
root		(hd0,0)
savedefault
makeactive
chainloader	+1


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hdd5.
title		Fedora Core 6 (on /dev/hdd5)
root		(hd1,4)
kernel		/boot/vmlinuz-2.6.18-1.2798.fc6 ro root=LABEL=/ acpi=off apm=on 
initrd		/boot/initrd-2.6.18-1.2798.fc6.img
savedefault
boot

User avatar
clem
Level 12
Level 12
Posts: 4125
Joined: Wed Nov 15, 2006 8:34 am
Contact:

Post by clem » Thu Jan 25, 2007 8:21 pm

It shouldn't affect your system. And if you're not mentioning this partition in /etc/fstab, then yes.. mintDisk will pick it up. :)

PS: Fedora is awesome as well... I hope you're not replacing it with Windows.. :)

Clem

mover47
Level 1
Level 1
Posts: 10
Joined: Fri Jan 12, 2007 3:58 am

Post by mover47 » Thu Jan 25, 2007 11:44 pm

Thanks Clem,

Actually, I got impatient (bad, bad) and deleted references to the partition and Fedora in fstab and grub. Then I expanded the NTFS partition to the entire drive. It all went smoothly: Now grub is better organized and I don't have an essentially useless partition showing up on the desktop. I dual boot Mint and XP on one drive and have a big drive for storage.

Maybe if I had just done my partition changes, without messing with grub or fstab, Mint would have recognized the changes. I wasn't and still am not sure. Seems like I would have had to edit grub anyway.

To answer your question, it was FC4 that I got rid of, and while I'll probably return to Fedora one day, I'm having too much fun with Bea. In the meanwhile, I needed more space on that hard drive for music and stuff. I still need XP for some apps (Photoshop especially, and clients want track changes MS word style), but I'm spending most of my day with Bea!

Thanks again!

Code: Select all

## ## End Default Options ##

title		Ubuntu, kernel 2.6.17-10-generic
root		(hd0,5)
kernel		/boot/vmlinuz-2.6.17-10-generic root=/dev/hdc6 ro quiet splash
initrd		/boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot


title		Microsoft Windows XP Professional
root		(hd0,0)
savedefault
makeactive
chainloader	+1





title		Options:
root


title		Ubuntu, kernel 2.6.17-10-generic (recovery mode)
root		(hd0,5)
kernel		/boot/vmlinuz-2.6.17-10-generic root=/dev/hdc6 ro single
initrd		/boot/initrd.img-2.6.17-10-generic
boot

title		Ubuntu, memtest86+
root		(hd0,5)
kernel		/boot/memtest86+.bin
quiet
boot


Post Reply

Return to “Mounting Partitions”