LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-11-2005, 08:40 AM   #1
inus
LQ Newbie
 
Registered: Sep 2005
Posts: 4

Rep: Reputation: 0
install/mount second hd in debian


Hi

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.

thanks, Inus
 
Old 09-11-2005, 08:44 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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"
 
Old 09-11-2005, 08:46 AM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Welcome to LQ.

Once you partitioned it, did you put a filesystem on it with mkfs?
 
Old 09-11-2005, 09:00 AM   #4
inus
LQ Newbie
 
Registered: Sep 2005
Posts: 4

Original Poster
Rep: Reputation: 0
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"
 
Old 09-11-2005, 09:02 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
that was just an example directory, make your own wherever you feel like.
 
Old 09-11-2005, 09:39 AM   #6
piva.francesco
Member
 
Registered: Feb 2005
Distribution: Slackware 10.1, Gentoo
Posts: 64

Rep: Reputation: 15
Quote:
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:

Code:
/dev/hda1		/		reiserfs	noatime			1 1
/dev/hda4		none		swap		sw			0 0
/dev/hdc		/mnt/cdrom	iso9660		noauto,user,ro		0 0
/dev/hdb1		/mnt/dd2	reiserfs	defaults		0 0
none			/proc		proc		defaults		0 0
 
Old 09-11-2005, 09:51 AM   #7
inus
LQ Newbie
 
Registered: Sep 2005
Posts: 4

Original Poster
Rep: Reputation: 0
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?
 
Old 09-11-2005, 09:52 AM   #8
inus
LQ Newbie
 
Registered: Sep 2005
Posts: 4

Original Poster
Rep: Reputation: 0
...and i see the workspace in computer/workspace, but it says it has 34,8 gig available
 
Old 09-11-2005, 10:30 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
that "last step" is not a command, but an example line you would add to /etc/fstab.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount Debian Partition from FreeBSD halfpower Debian 3 11-26-2005 08:13 PM
modem & mount trouble after debian install Daveb3 Debian 3 07-05-2005 08:10 PM
Howto mount external CD to install debian packages tt2uang Debian 4 03-24-2005 01:39 AM
DVD mount problems w/Debian asphyxiant Linux - Hardware 6 09-17-2003 11:49 AM
New Debian install: HOWTO mount old mandrake harddrive? kabads Linux - Hardware 1 09-04-2003 07:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration