So I've been running Ubuntu alongside Windows 7 for a year or so.
Is there a way to remove Windows 7 from my system without having to reinstall Ubuntu from scratch so I can use all the disk space?
Or would it be faster just to reinstall Ubuntu?
Off topic, but anyway:
The simplest way is to
get rid of the windows installation (just reformat the related partition)
run sudo update-grub
Done. Alternatively, you could hand edit the grub config (/etc/grub.d/*) but I don't recommend it.
Edit You COULD leave everything as is, and edit the default in /etc/default/grub
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=1
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=3
(assuming Ubuntu is the first in the grub menu). This will prevent the boot selection menu from showing up, without actually changing the dual boot config
blkid
to spot the partition, mkfs.ext4 /dev/sdXY
(where sdXY is the partition found earlier).
/dev/sda
and /dev/sdb
. /dev/sda
contains 2 partions /media/sytem reserved
and /host
in /dev/sda1
/dev/sda2
. /dev/sdb
contains an unallocated partition. my questions is how do i find out which one is my windows partion or does it mean i have 2 hdd in this pc?
It depends how you want to use the space that your old operating system used; if you want to make it another filesystem that you mount via /etc/fstab
, then you can simply reformat it with mkfs(8)
, add the appropriate mount(8)
options to your fstab(5)
, and go for it.
If you want it to be part of your /home
or /
partition transparently -- which is nice for not having to manage your storage explicitly -- then a complete re-install is the easier approach.
My suggestion is to use it as a /movies
or /home
or something until it is time to buy a new drive -- but that's primarily because I'm lazy.