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 have installed debian on a Pentium 2 350 mhz computer. I installed debian on the first hd (master) 4, 6 gig. I have another hd (slave) of 40 gig . Debian sees this disk. I can partition it with fdisk in root terminal, but i cannot mount it. something like mount /dev/hdb1 doesn't work if i type /dev/hdb1 i get the message: acces denied. I'm logged in as root. Can someone tell me how to get to this hd? I'ts a western digital.
you firstly need to format it, so as root use "mke2fs -j /dev/hdb1" for an ext3 file system. then also as root mount it: "mount /dev/hdb1 /mnt/slave" for example. if that works then add an /etc/fstab entry to do it automatically: "/dev/hdb1 /mnt/slave ext3 defaults 1 2"
i formatted the disk like you told me, but the command mount /dev/hdb1 /mnt/slave doesn't work i get the message "mount point mnt/slave does not exist"
Originally posted by inus i formatted the disk like you told me, but the command mount /dev/hdb1 /mnt/slave doesn't work i get the message "mount point mnt/slave does not exist"
in order to mount and to use your slave disk you must create a directory where your /dev/hdb1 will be mounted. you need to create (for example) /mnt/slave
Code:
mkdir /mnt/slave
then you run as root:
Code:
mount -t FS_TYPE /dev/hdb1 /mnt/slave
normally you could see your 40gigs drive in the /mnt/slave directory.
If you don't want to do the "mount -t ...." command every time you boot, you can just put it into fstab as acid_kewpie said.
you go in your fstab and you add this line:
Code:
/dev/hdb1 /mnt/slave FS_TYPE defaults 1 2
my fstab looks like this and I have the same config as yours. One master hard disk and a slave; check it out:
Okay, Here is what i did
fdisk /dev/hdb
I made a primary partition from the whole disk (40gig)
mkfs.ext3 /dev/hdb1
mkdir /workspace
mount -t ext3 dev/hdb1 /workspace
so far it went ok
I tried the last step /dev/hdb1 /workspace ext3 defaults 1 2 but it says: no acces permission, what can i do?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.