LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 03-29-2005, 02:35 AM   #1
Greebo
LQ Newbie
 
Registered: Feb 2004
Posts: 19

Rep: Reputation: 0
Mounting Hard Drives


Hi,

I'm having a few problems accessing Hard Disks under Suse Linux 9.1, and would be grateful for a few pointers.

First my system :

Dual boot windows XP / Suse Linux 9.1 Pro
2x IDE Drives (1x 80Gb - (40Gb Windows, 40Gb Linux); 1x 160Gb NTFS Partition)
1x SATA Drive (160Gb NTFS)
1x CD Reader
1x DVD/CD Burner
1Gb Ram

Linux will not see the 2x 160Gb drives.

My Background : I'm quite new to Linux, and have a very, very basic understanding/experience with Unix. I'm a long time Windows user trying to switch completely to Linux.

I've searched extensively through YaST, and cannot find anything that looks like it will mount new drives. I know about the /etc/fstab file, but i've heard that manually editing this file can cause problems for YaST.

What i would really like to find is a step by step guide on how to use YaST to find and install these drives.

Any help is appreciated.

Cheers,

Greebo.
 
Old 03-29-2005, 02:42 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

Maybe I misunderstand, but I see 6 devices (4 HD's, a CD and a DVD).
Normally a PC can only handle a maximum of 4 devices (2 on either ide channel)

Are you using an IDE extension card or are you actually talking about partitions instead of devices?

Tell us a bit more.
 
Old 03-29-2005, 02:47 AM   #3
Greebo
LQ Newbie
 
Registered: Feb 2004
Posts: 19

Original Poster
Rep: Reputation: 0
Hi,

Sorry if i wasn't clear.

1x 80Gb IDE Hard drive, paritioned as 40Gb (Windows) and 40Gb Linux
1x 160Gb IDE Hard Drive NTFS
1x 160Gb SATA Hard Drive NTFS.

So only 3 HD's. Then of course the CD and DVD are IDE devices, so that makes 4 IDE devices, and 1 SATA.

Linux sees everything *except* the two 160Gb drives.

Trying to use YaST after the brain washing Windows gives you is not easy for me, but i'm getting there slowly.

Anyway, hope this clarifies things, and thanks for the quick reply!

Cheers,

Greebo
 
Old 03-29-2005, 02:59 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

There are still 5 devices, which still is one too many But besides that.

The 2 HD's that don't show up have a NTFS filesystem. Don't know if this type of filesystem is included (kernel) by default for SuSe 9.1 Pro (I think it is, but I'm not 100% sure).

The problem could also be related to your fstab file (could you post it?). And although it's supposed to be 'unsafe' to edit this file when using Yast: You migth need to.

Also, does yast show the 2 hd's? (yast -> hardware -> hardware information)
 
Old 03-29-2005, 03:05 AM   #5
Greebo
LQ Newbie
 
Registered: Feb 2004
Posts: 19

Original Poster
Rep: Reputation: 0
Hi,

Yes, there are still 5 devices, but my motherboard will support 4x IDE and 2x SATA devices, along with 2 other connectors for a RAID0/1 array, which isn't used.... yet (I have plans, but no cash!)

I'm at work at the moment, so i can't post the fstab file, but i will do when i get home later.

When i do yast -> hardware -> hardware information it does show the drives. I think! I need to check this when i get home as well, but i'm sure i found this yesterday in my cruise through YaST!

I'm also fairly sure NTSF is supported under 9.1 Pro.

Cheers,

Greebo
 
Old 03-29-2005, 03:16 AM   #6
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 46
There's no problem with there being five devices. You'll need SCSI support enabled for the SATA drive tho.

When you say it's not seeing them, do you mean it's not mounting them for you on bootup, or that they're completely not there?

If you want them auto-mounted on boot, you HAVE to edit the fstab - that's all there is to it.

If not, run 'dmesg' and look for the hard drive information. I suspect it's found them all, just hasn't mounted them anywhere.
 
Old 03-29-2005, 03:25 AM   #7
Greebo
LQ Newbie
 
Registered: Feb 2004
Posts: 19

Original Poster
Rep: Reputation: 0
Hi,

This is where my knowledge of linux/unix starts to get thin.

>You'll need SCSI support enabled for the SATA drive tho.

ok. Makes sense, but how do i do this? Is there an option in YaST somewhere?

> If you want them auto-mounted on boot, you HAVE to edit the fstab

ok. I can understand that as well, and i can edit the file no problem. My only concern was upsetting YaST and breaking something else. I also would have thought you could do this through YaST?

> If not, run 'dmesg' and look for the hard drive information. I suspect it's found them all, just hasn't mounted them anywhere.

I suspect that as well, since yast -> hardware -> hardware information seemed to show all the drives. I'm just not sure how to do this. fstab makes sense though.

At least i've got plenty to keep me busy tonight Linux is fun, and forums like this are so much help.

Thanks,

Greebo
 
Old 03-29-2005, 04:23 AM   #8
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 46
SCSI support is a kernel issue. If you have a generic kernel, it probably has it already. Especially since you appear able to detect the drive.

I believe YaST can be used to update the fstab, but I don't use it, so can't give you any specifics I'm afraid. . .
 
Old 03-29-2005, 04:47 AM   #9
mozetti
Member
 
Registered: Jun 2004
Location: Germany
Distribution: Slack 10.1
Posts: 37

Rep: Reputation: 15
FYI, and you probably know, but Linux doesn't handle NTFS well. It can read it, but any attempts at adding write abilties are dodgy. There are a couple programs out there that will allow you to write to NTFS (i'm a newbie too and don't remember their names - Knoppix has one), but in my use, it didn't work too well and corrupted the files I was writing. I personally wouldn't try to write to NTFS with Linux, but if you do, good luck and back up everything.
 
Old 03-29-2005, 06:22 AM   #10
Greebo
LQ Newbie
 
Registered: Feb 2004
Posts: 19

Original Poster
Rep: Reputation: 0
Hi,

Thanks for the information. I was aware that this might be a problem, but not such a large one.

I would be interested to hear how anyone else with a dual boot system has their drives formatted. I need an NTFS partition on at least one drive because of the maximum file size limitation under FAT32.

Cheers,

Greebo
 
Old 03-29-2005, 06:54 AM   #11
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 46
There are some utitilites that allow windows to access Linux paritions. . .
 
Old 03-29-2005, 11:36 AM   #12
Greebo
LQ Newbie
 
Registered: Feb 2004
Posts: 19

Original Poster
Rep: Reputation: 0
fstab File

Hi,

ok, here is my fstab file. As suspected the drives are not listed :

/dev/hde3 / reiserfs acl,user_xattr 1 1
/dev/hde1 /windows/C vfat users,gid=users,umask=0002,iocharset=utf8 0 0
/dev/hde2 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
sysfs /sys sysfs noauto 0 0
/dev/cdrom /media/cdrom subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/dvdram /media/dvdram subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/fd0 /media/floppy subfs fs=floppyfss,procuid,nodev,nosuid,sync 0 0

The two drives missing show up under YaST as /dev/hda (160Gb SATA) and /dev/hdf (160Gb IDE)

I have *no idea* at the moment what i should enter into fstab to make these drives visible.

Cheers,

Greebo
 
Old 03-29-2005, 12:19 PM   #13
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

Knowing that hda and hdf are missing is good, but you also need to know the partition layout of those disks.

fdisk -l /dev/hda (same for hdf) will show you this layout, you need to know which 'partition' has the ntfs flag, which can be found under the 'System' tag.
Should be something like /dev/hda1 (the number being the important part). Don't know how the disks are partitioned, but there could be more then one (ntfs)partiton on one disk.

For every ntfs partition you find you need to do a few things:

1) create an unique mountpoint
2) create an entry in the fstab file
3) mount new partition

Assuming that you wil find 2 ntfs partitions, one on each disk, called /dev/hda1 and /dev/hdf1. As root do these steps:

Create 2 mountpoints:
mkdir /mnt/ntfs_01 /mnt/ntfs_02

Add these fstab entries:
/dev/hda1 /mnt/ntfs_01 ntfs users,owner,ro,umask=0002 0 0
/dev/hdf1 /mnt/ntfs_02 ntfs users,owner,ro,umask=0002 0 0

Mount disks:
mount -a

If all went well your partitions are mounted (df -h to check).

A few pointers: The ntfs partitions are mounted read only (the ro entries in the fstab lines). I don't know if write support is enabled by default in your kernel and/or if you want to use it. You could change them to rw, but be carefull with ntfs write support.

My choosen mountpoints could be anything you like, as long as they are unique. Looking at your fstab, it could be your windows D and E drive, so creating /windows/D and /windows/E is legal (if they don't already excist). Change the fstab lines accordingly (/mnt/ntfs_0x becomming /windows/X).

I see the iocharset=utf8 setting in your fstab for the vfat fs. If you have problems with funny charachters in your filenames on the ntfs partitions, you could try adding this option (iocharset=utf8) to the ntfs lines in your fstab:
/dev/hda1 /mnt/ntfs_01 ntfs users,owner,ro,umask=0002,iocharset=utf8 0 0
Try without it first.

If anything is not clear, just ask.
 
Old 04-11-2005, 11:42 AM   #14
ciberrust
Member
 
Registered: Dec 2003
Location: AUS
Distribution: CentOs, OpenSuse, Ubuntu, Leopard :D
Posts: 97

Rep: Reputation: 15
mounting another linux hard drive

can anyone help me doing this?
[root@linux root]# fdisk -l

Disk /dev/hda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 9834 78887182+ 83 Linux
/dev/hda3 9835 9964 1044225 82 Linux swap

Disk /dev/hdc: 30.0 GB, 30020272128 bytes
255 heads, 63 sectors/track, 3649 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 * 1 13 104391 83 Linux
/dev/hdc2 14 3649 29206170 8e Linux LVM
[root@linux root]# mount /dev/hdc2 mnt/archivos
mount: you must specify the filesystem type

i dont know how to specify the fie system type

thanx
 
Old 11-29-2005, 04:53 PM   #15
phildacey
LQ Newbie
 
Registered: Nov 2005
Posts: 11

Rep: Reputation: 0
druuna:

just to say thanks for ur advice. been looking round for a way to mount my ntfs partition and getting nowhere (I'm only 1 week into linux so it's all a bit confusing at the moment). saw ur post, followed the instructions and now it works. minter.

thanks again : )
 
  


Reply

Tags
fstab, mount, mounting


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Mounting Hard Drives AndrewZorn Linux - General 2 04-03-2005 04:45 PM
Mounting Hard Drives In Ubuntu MSBeckman Linux - Hardware 8 03-13-2005 07:41 PM
mounting hard drives sturgeonman Linux - Newbie 13 05-31-2004 09:13 AM
mounting hard drives deathl Linux - Hardware 3 01-16-2004 01:17 AM
Mounting Hard Drives Q12321 Linux - Newbie 5 11-26-2003 08:50 PM


All times are GMT -5. The time now is 02:12 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration