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.
I installed ubuntu on one of my old hard drives, but decided I wanted to upgrade it a little, bought a new hard drive, reinstalled it, and now I'm trying to copy all my documents over to my new hard drive.
I set my old hard drive to Slave, and plugged it into my computer, with my new hard drive (set as master) booting up.
I've looked in every folder I can find in '/' that I think could have my second hard drive listed, and I can't find it anywhere.
I've read in other forums while I looked through google for help with this, that they're named hda, hdb, hdc, and so on. So I searched for hda and hdb (using the search tool) and still can't find it.
I wondered if anyone could tell me an easy way to view my second hard drive, and copy the documents over.
Disk /dev/hda: 300.0 GB, 300069052416 bytes
255 heads, 63 sectors/track, 36481 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 36198 290760403+ 83 Linux
/dev/hda2 36199 36481 2273197+ 5 Extended
/dev/hda5 36199 36481 2273166 82 Linux swap / Solaris
Disk /dev/hdb: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 9729 78148161 83 Linux
/dev/hdb2 9730 10011 2265165 5 Extended
/dev/hdb5 9730 10011 2265133+ 82 Linux swap / Solaris
tony@beng:~$
It looks like you want to mount /dev/hdb1. Make a directory to mount your drive, with mkdir, e.g. "mkdir /mnt/old" (you may need to use sudo, depending on where you're trying to create the directory). Then, mount the device with "sudo mount -t ext3 /dev/hdb1 /mnt/old" (replacing "/mnt/old" with whatever directory you've chosen). You should now be able to cd into that directory and access the files.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.