Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is there any way to install a second hard drive, partition it for linux and make sybolic links (or however you do it) so that my directories have more room to write to?
I really don't want to completely reinstall things... or have to change up the default install settings on future applications
I want to install...
1.Use cfdisk to partition.
2.format with mkfs.ext2 /dev/hdxx ( create swap with mkswap /dev/hdxx if required).
3.Convert the partition to ext3 by tune2fs /dev/hdxx.(if required)
4.Go into single user mode from consol by init 1.
5.mount the partition do mount -t ext3 /dev/hdxx /mnt.
6.Copy over the information – do rsync -avH /directory_name/ /mnt or cp -avx /directory_name/ /mnt.
7.Unmount the drive – do umount /dev/hdxx.
8. Re-name the old driectory do mv /directory_name /old_directory_name (in case of a problem.
9.Edit the fstab to reflect the new partition.
Yes, it's reasonably easy, even without symlinking.
Easiest way is if you have a bootable rescue CD,
or Knoppix or something the like...
From the actual system:
You do an init 1, partition the second hdd,
give it a filesystem, copy a directory you want
to move. Edit & save /etc/fstab to point to the new
partition with the copied directory for the
mountpoint ...
Shutdown, boot of CD (in case the old directory
that you moved contained system relevant libraries)
and delete it.
Originally posted by Tinkster Yes, it's reasonably easy, even without symlinking.
Easiest way is if you have a bootable rescue CD,
or Knoppix or something the like...
From the actual system:
You do an init 1, partition the second hdd,
give it a filesystem, copy a directory you want
to move. Edit & save /etc/fstab to point to the new
partition with the copied directory for the
mountpoint ...
Shutdown, boot of CD (in case the old directory
that you moved contained system relevant libraries)
and delete it.
Reboot box from HDD, all sweet :}
Cheers,
Tink
I've got knoppix... I guess I could do all of it from there?
Originally posted by TigerOC Here's the method I have used;
1.Use cfdisk to partition.
2.format with mkfs.ext2 /dev/hdxx ( create swap with mkswap /dev/hdxx if required).
3.Convert the partition to ext3 by tune2fs /dev/hdxx.(if required)
4.Go into single user mode from consol by init 1.
5.mount the partition do mount -t ext3 /dev/hdxx /mnt.
6.Copy over the information – do rsync -avH /directory_name/ /mnt or cp -avx /directory_name/ /mnt.
7.Unmount the drive – do umount /dev/hdxx.
8. Re-name the old driectory do mv /directory_name /old_directory_name (in case of a problem.
9.Edit the fstab to reflect the new partition.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.