LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 12-03-2006, 10:58 AM   #1
flatstan
Member
 
Registered: Jul 2006
Location: London UK.
Distribution: Linux MINT, UBUNTU.
Posts: 150

Rep: Reputation: 15
Installing Slave Hard Disk


I am running SuSE 10.1 on one machine & win XP on another, I would like to use a spare HDD on both machines, to store & transfer files etc, from one to the other. Setting up the HDD on Windows was no Prob', partitioned with fdisk, Fat 32, formatted etc. Setting up & accessing on SuSE prob's, I can't get it to work. Using SUSE 10 Bible, with the spare HDD in as a Slave, I made a folder on /dev/slave, in a root user terminal did mount -tvfat /dev/hdb1/mnt, this did not seem to do anything, & on looking at /dev/slave it shows the folder with a red cross & a padlock sign, on trying to access it it says that I don't have the required permissions, on trying to access it as root exactly the same. Looking at similar threads here somebody says that an entry should be made in fstab, but I don't know how to do this. I would like help on how to install & use the slave HDD, full details from start to finish would be good if possible. thanks.
 
Old 12-03-2006, 02:09 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
AS root, delete /dev/slave. That's wrong. It won't work as you expect.

Then do this:
1) create a proper mount point to mount the slave drive. as root, mkdir /mnt/slave. That's the mount point.

2) now edit /etc/fstab. notice how the other partitions are entered in fstab, and make a similar entry for the salve drive. But, the first drive is probably /dev/hda, with partitions numbered starting with number 1. The slave drive will be hdb. If there is only one partition on hdb, then the fstab entry would start with: /dev/hdb1 /mnt/slave. At this point you haven't formatted the new drive yet. So, decide which filesystem type you want; ext2, ext3, reiserFS, etc. Add the appropriate filesystem type to fstab: '/dev/hdb1 /mnt/slave ext2 defaults 0 0' would be a complete entry for the new device.

3) now you have to create the partition on the drive. You may use YaST to do that, or command-line tools such as cfdisk. With Yast, you can create and format in one operation. With command-line tools, you will probably create the partition with one tool, then format with another, such as mke2fs.

4) at this point, you should have a disk which is partitioned and formatted, just waiting to be used.

5) mount /dev/hdb1 /mnt/slave.
 
Old 12-03-2006, 04:57 PM   #3
crazibri
Member
 
Registered: Mar 2004
Location: Orange County, CA
Distribution: OS X, SuSE, RH, Debian, XP
Posts: 377

Rep: Reputation: 31
You mentioned you already formatted the new drive in windows so you already know its Fat32.

Bigrigdriver was trying to tell you that when you add a new drive you dont need to create a folder in /dev. Those devices (called "block devices") are automatically managed by the system. They're named to make it easy for everyone. HDA (A for first drive), HDB (B for second drive), etc. Numbers are used for partitions. "fdisk -l" will show you your partitions.

You just need to create a mount point and then mount the device to the mount point.

You can create a mount point anywhere. /mnt /media /mount are the most common folders people use for mount points (even though you can have a mount point anywhere).

Suse 10.0-10.1 mounts windows partitions in /windows folder so I would do

mkdir /windows/D (I'm assuming your new drive is the D Drive in windows)

then you can just do "mount /dev/hdb1 /windows/D"
then just "cd /windows/D" and "ls -l" and u should be able to see your files.

Side notes:

You can type "mount" at any time to see ALL of your active mounts

/etc/fstab is the file read at boot-up to mount everything at startup. So soon as you add an entry to fstab, it'll automatically mount everytime you boot up.
 
Old 12-04-2006, 11:49 AM   #4
flatstan
Member
 
Registered: Jul 2006
Location: London UK.
Distribution: Linux MINT, UBUNTU.
Posts: 150

Original Poster
Rep: Reputation: 15
Re - installing slave hard drive

Thanks for this, I will try again using your info.
 
Old 12-04-2006, 03:06 PM   #5
flatstan
Member
 
Registered: Jul 2006
Location: London UK.
Distribution: Linux MINT, UBUNTU.
Posts: 150

Original Poster
Rep: Reputation: 15
Re Installing Slave HDD.

I followed your instructions & all was well.
Cept I found that fdisk did not work, but cfdisk did.
I can only add/remove/etc files on my new slave when "root",
is there a way that I can do this as user ?
Great, Thanks very much bigrigdriver & crazibri, regards.
 
Old 12-05-2006, 10:44 AM   #6
galliar
Member
 
Registered: Jan 2005
Location: Vancouver, WA
Distribution: Suse 10.2, FreeBSD 6.2
Posts: 175

Rep: Reputation: 32
Change the privs

You need to set the mount point, or any files below with the proper privs for the user show is accessing the drive. I do this:

chown -R 'user':'group' 'dir on drive (/mnt/backups, etc.)

; the -R will set all files and subdirectories. I normally make the users group be the group who has access to the files on the drive, but then security is no biggy to me since it is my system.

chmod -R 666 'dir on drive'

; this will give the user, group, and everybody full access.

Regards,

Randy.


Quote:
Originally Posted by flatstan
I followed your instructions & all was well.
Cept I found that fdisk did not work, but cfdisk did.
I can only add/remove/etc files on my new slave when "root",
is there a way that I can do this as user ?
Great, Thanks very much bigrigdriver & crazibri, regards.
 
Old 12-08-2006, 12:07 PM   #7
flatstan
Member
 
Registered: Jul 2006
Location: London UK.
Distribution: Linux MINT, UBUNTU.
Posts: 150

Original Poster
Rep: Reputation: 15
RE Slave HDD

Thamks, regards.
 
  


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
Help with partitioning/formatting new slave IDE hard disk scape279 Linux - Hardware 2 03-09-2006 01:54 AM
How to boot from Slave hard disk? TigerLinux Linux - General 10 10-08-2005 01:44 AM
Mounting hard Disk (Slave) amer_58 Linux - Newbie 2 03-17-2005 05:35 PM
slave hard disk no longer detected by bios mikeybsae Linux - Hardware 1 10-22-2003 09:11 PM
installing Linux on slave hard drive Creightin Linux - Software 2 03-12-2001 09:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 03:52 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