Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
I tried to put a new hdd in my Debian machine today, and even though I thought I did everything correctly it's not mounting properly. Can anyone point out my mistake(s)?
I created two partitions as showing here
Quote:
nix:/dev# fdisk -l /dev/hdc
Disk /dev/hdc: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 1 5000 40162468+ 83 Linux
/dev/hdc2 5001 19457 116125852+ 83 Linux
I ran mke2fs -j on them both, and both are showing as ext3 filesystem (matches the rest of my server). If I go into parted it shows both of them
Quote:
(parted) select /dev/hdc
Using /dev/hdc
(parted) print
Disk geometry for /dev/hdc: 0.000-152627.835 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 39221.191 primary ext3
2 39221.191 152625.344 primary ext3
Now that you have created the partitions, you have to mount them before you can cd into them.
You also should make sure you created the mount points. I.e.: cd to /, then su to root. Then mkdir /ftp and mkdir /backup to create the mount points named in /etc/fstab.
Last edited by bigrigdriver; 01-17-2006 at 06:21 PM.
If you added a new hard drive then you will have a new device name. You only told us about one device, /dev/hdc.Please send me what are the results if 'df' and 'sfdisk -l' at the command line.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.