i have a Linux Redhat 7.1 machine up & running, when i installed RH i used half the harddisk.. now i want to add the othre half which is still a Windows partition, how can i add that part of the harddisk so Linux sees & uses it.
Do you want to be able to read your windows stuff or to delete it and use it for Linux??
In the first case:
mkdir /mnt/windows
mount /dev/hda1 /mnt/windows (/dev/hda1 migth be different on your system. Find it with fdisk -l)
In the second case you need to reformat the partition and mount it somewhere where you need the space.
fdisk /dev/hda and change the type to Linux (83 I think)
mkfs.ext2 /dev/hda1 (or other but don't know how to format reiserfs)
You then need to mount it somewhere. If you want to use it as an existing directory fx /home, you need to backup your /home and add the new filesystem to /etc/fstab and mount it.
Then restore you files.
Cheers Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
thanks sofar guys.. but, it ain't going as i want.. at this point i don't really mind losing the data on that Windows disk, this is what "fdisk -l" reports:
Disk /dev/hde: 255 heads, 63 sectors, 2481 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hde1 * 1 7 56196 83 Linux
/dev/hde2 8 2481 19872405 5 Extended
/dev/hde5 8 1074 8570646 83 Linux
/dev/hde6 1075 2141 8570646 83 Linux
/dev/hde7 2142 2174 265041 83 Linux
/dev/hde8 2175 2207 265041 83 Linux
/dev/hde9 2208 2240 265041 82 Linux swap
--
i'm assuming /dev/hde2 is the Windows disk.. how do i format that one for use with Linux ??
danielhozac, i don't have Windows installed on thet partition.. it's a DOS formatted partition, i have a 4gig harddisk in that machine and only 2 used by Linux.
show us the content of /etc/fstab file.
maybe you did'nt mount all partitions.
in any case, as Morsing said, the /dev/hda2 is an Extended Partition.
And in fact the (logical) partitions from 5 to 9 are in that partition.
Looks like you have some unused space:
from cylinder 2241 - to 2481.
so, try to use
fdisk /dev/hda
create a nu partition of type Linux
`m' is for help.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.