Partition table woes, the bain of my existence. I was, once again (and finally) trying to rearrange my small (4 GB) hard drive so that it only had root and /usr on it. Here was my plan:
1) Tar all /usr subdirectories to preserve symbolic links and store on SAMBA connected Windoze XP machine which has plenty of disk space. OK
2) Test retrieve tar file from WinXP with /usr unmounted to make sure I could get the files back. OK
3) Run cfdisk to delete /usr partition and reallocate it using the slack space (700 MB) between the end of root and the beginning of /usr. The result would be a new /usr partition which would go to the end of the drive and have an extra 700 MB free space. Got the usual message about partition table re-write failed, must reboot. OK (sort of, so far).
4) Run tune2fs to make new /usr partition ext3 with journal_data and dir_index. This failed because the new /dev/hda2 starting point was not reflected yet so I had to reboot and this is where the trouble started.
At this point I wanted to do the EXT3 stuff and start copying the /usr subdirectory tars back over the LAN and extracting the files to repopulate /usr.
5) Reboot and of course SAMBA FAILS TO COME UP (as well as other daemons) because /usr/lib/libldap.* etc. are not there. I had the foresight to copy the /usr/bin and /usr/sbin tar files to root and extract them before I blew away the original /usr, anticipating there would be some executables needed to get the basic system and some daemons up. But I didn't have enough slack space to copy /usr/lib back so
I didn't. I thought at the time that was going to lead to trouble, and it did.
6) EXT3 enabling stuff worked, so I had that going for me lol
7) Backup plan formulated: Try and get an FTP client going on the limp-noodle system and then FTP the tar files from the Windoze machine but IFCONFIG is missing and so is /usr/bin/ftp. Route is where it should be (/sbin/route) but ifconfig is inexplicably not. Neither is /usr/bin/ftp there.
This is killing me. I need to somehow get IFCONFIG and FTP from the Debian Installer diskettes (I don't have a working CDROM), which will load but seem to want to do a whole install including the dreaded "Partition Hard Drive" which I WILL NOT DO AGAIN. I am able to exit to a shell prompt and find ifconfig from the installer "fake root" system but don't know how to mount my real root file system to put things where they need to be.
I am using SARGE on top of kernel 2.4.27-2-686 and am on the verge of a psychotic break. Please advise, your expertise is sorely needed and greatly appreciated.
Thank you.