hi, On an old Suse, I have 2 disks, one small 300 Mb, and one larger 2Gb... The very small is way too short, and does not have room anymore... Is it possible to move the /usr/lib directory to the second disk ?... the way i wanted to do it was this one : (the syntax may not be correct... it's just the method...) cp /usr/lib/ /new_usr/lib -R ln /new_usr/lib/ /usr/lib rm /usr/lib/* does it seem right, is it "clever" ?.... what troubles am i heading for ? Regards stephane
I would do this tar cvf lib.tar /usr/lib then make a partition on your new drive (or old drive) as big as you need and mount it at /usr/lib, then untar your archive onto this new partion. do all this while in single user mode though On Mon, 27 Aug 2001, stephane parenton wrote:
hi,
On an old Suse, I have 2 disks, one small 300 Mb, and one larger 2Gb... The very small is way too short, and does not have room anymore... Is it possible to move the /usr/lib directory to the second disk ?... the way i wanted to do it was this one :
(the syntax may not be correct... it's just the method...)
cp /usr/lib/ /new_usr/lib -R ln /new_usr/lib/ /usr/lib rm /usr/lib/*
does it seem right, is it "clever" ?.... what troubles am i heading for ?
Regards stephane
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
Chad Whitten Network/Systems Administrator Nexband Communications chadwick@nexband.com
On Monday 27 August 2001 3:04 pm, stephane parenton wrote:
hi,
On an old Suse, I have 2 disks, one small 300 Mb, and one larger 2Gb... The very small is way too short, and does not have room anymore... Is it possible to move the /usr/lib directory to the second disk ?... the way i wanted to do it was this one :
(the syntax may not be correct... it's just the method...)
cp /usr/lib/ /new_usr/lib -R ln /new_usr/lib/ /usr/lib rm /usr/lib/*
does it seem right, is it "clever" ?.... what troubles am i heading for ?
Regards stephane
From an earlier post (example is for creating new /home) http://www.geocrawler.com/archives/3/292/2000/4/0/3564270/:
Hope someone can help.
I have existing debian running but i need to add more disk space to /home. The system was installed in one disk without partition. I was instructed to add a new harddisk. But i don`t know how.
Moving /home is fairly easy. Check man pages on every command. In particular I might have option switches lower-case that need to be upper-case. 1. Log in as root. 2. Partition the new drive as you see fit, using fdisk. Format the partitions using, probably, mkext2fs 3. Mount the partition that is to become /home, at some temporary mount point, say /mnt/newhome 4. Copy the existing contents of /home to it: cp -rf /home/* /mnt/newhome 5. Umount it, and remount it as /home. 6. Verify that everything got copied. 7. Umount ./home. Then clean out /home: rm -rf /home/* 8. Edit /etc/fstab and add a line to mount that partition as /home Now some other stuff is much more difficult to move. Things like, oh, /bin or /sbin. Not that it`s really more complicated, but rather, that if there is any mess-up at all you might end up reinstalling linux. M
participants (3)
-
dog@intop.net
-
Martin Webster
-
stephane parenton