Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
Hi, im been working with linux for a while, and my small hardrive has almost reached its limit, so im probably going to go buy another one, to be used with my existing one.
I've never done this befor and would like some insight into what I would have to do, like if a can just add a new one without having to re-install,
or any problems im might encounter.
I would like to get this new hardrive soon, maybe even tomorow, so if you have any knowledge on the subject, please don't be afraid to reply.
I'm running slackware 10, and use lilo on a floppy, if that makes any difference.
nope its simple, just install it, boot up format it, make a folder to mount it in, and then add it to /etc/fstab and mount it (assuming you don't have any funkey hardware issues like i'm having)
What edman said. You might want to put your home directories on the new drive. This is what I did when I was running out of space. I moved my /home directories to the new drive. My fstab file now looks like this:
So my second drive (hdb) the first partition contains my home directories. On my first drive (hda), the second partition has my filesystem root (/).
In order to move your home directories, you'll have to first mount your new drive, then copy over the data, then edit fstab like the above. Make sure the copy worked, then delete the old /home data from your hda. Then reboot.
Note that you do not need to have a directory named '/home' on you new hdb for this example. If you currently have /home/user1 and /home/user2 on your hda, when you move them to hbd, you'll just need to have /user1 and /user2 directories. When they are mounted, they will look to the users like /home/user1 and /home/user2 because /home will then be a mount point.
Oh yeah, and don't forget that you have to make a filesystem after you format and partition. I used mke2fs to make an ext2 filesystem. You'll probably want to use a more modern filesytem, but I'm an old timer and go with what I know and trust.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.