With a few adjustments, what you are proposing will work. The problem
is that when you use dd, it will copy your filesystem and inode maps
perfectly, so your new larger partition will still appear to be the same
size as before.
More traditional alternatives...
Format /dev/hda4, copy either /usr or /home (whichever one is causing
you to run out of room, or is larger), blow away the old data (making
room on the drive), and mount it. I'll assume it's /home.
### DO THIS IN SINGLE USER MODE ###
# log in as root
mke2fs -j /dev/hda1
echo "/dev/hda1 /home ext3 defaults,noatime 1 1" >> /etc/fstab
mount /dev/hda1 /mnt
cp -pR /home/* /mnt
# At this point, verify /home and /mnt are identical.
ls -la /home
ls -la /mnt
du -sk /home
du -sk /mnt
# should be within 1K - if not investigate
mv /home /deleteme
mkdir /home
umount /mnt
mount /home
df -k
ls -l /home
init 6
Use the system for a while. When you are certain everything is OK:
rm -rf /deleteme
and now you have more room.
The more modern method would be to rebuild the system using a /boot
partition for your kernels, and set up the rest of the disk using LVM.
This way, you could reformat the windows partition and add it to your
root volume using a GUI - voila - you are done. Point click click click
done.
Regards,
George Toft, CISSP, MSIS
AGD,LLC
www.agdllc.com
623-203-1760
Mikey Haven s wrote:
> bmike1@1[bmike1]$ cat /etc/fstab
> /dev/hda2 / ext3 defaults,noatime 1 1
> /dev/sda1 swap swap sw,pri=1 0 0
> proc /proc proc defaults 0 0
> devpts /dev/pts devpts mode=0622 0 0
> # Dynamic entries
> /dev/hda1 /mnt/hda1 vfat noauto,users,exec,umask=000 0 0
> /dev/hda3 /mnt/hda3 ext3 noauto,users,exec 0 0
> /dev/hda4 /mnt/hda4 ext3 noauto,users,exec 0 0
> bmike1@1[bmike1]$
>
>
> On Thursday 09 December 2004 06:13 am, George Toft wrote:
>
>>Hi Mike,
>>
>>I'm pretty sure what you are proposing will result in a dead system.
>>
>>We need more info. What are your partition assignments (ie, cat
>>/etc/fstab and e-mail it). How do you boot now? GRUB or LILO?
>>
>>George Toft, CISSP, MSIS
>>AGD,LLC
>>www.agdllc.com
>>623-203-1760
>>
>>Mikey Haven s wrote:
>>
>>>Well, I am finally going to do it. Ii'm going to delete my windows
>>>partition! However, I need to confirm the steps to take before I procede.
>>>
>>>1- dd /hda2 /hda4/<dir> (my linux partition is running out...
>>>2- fdisk (combine hda1&2 into one partition)
>>>3- dd /hda4/<dir> /hda2
>>>
>>>Well GOOOOLEEEEE, if I am right this is easier than I thought it would
>>>be. THings always seem to be harder when you talk about them.... if I'm
>>>right! What do I need to do to make it bootable? Just run lilo right
>>>away, I think. What if I wanted to use grub instead?
>>
>>---------------------------------------------------
>>PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
>>To subscribe, unsubscribe, or to change you mail settings:
>>http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
>
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss