LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices



Reply
 
Search this Thread
Old 02-05-2010, 02:48 PM   #1
flatstan
Member
 
Registered: Jul 2006
Location: London UK.
Distribution: Open SuSE 11.4 & 12
Posts: 144

Rep: Reputation: 15
Question fstab entry to mount second Hard disk.


I am running SUSE 11.1 on a 80Gig IDE HDD, I have added a 160 SATA HDD which I wish to use as storage.
fdisk reports it as /dev/sda1 - W95 fat 32 LBA.
What would the fstab entry be to make the disk mount automatically on boot, so that it shows on the desktop ready for use. thanks.
 
Old 02-05-2010, 03:04 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
By implication, your 80G IDE hard drive shows up as /dev/hda1--I had thought that all modern distros reported all harddrives as sdX ---oh well.

regardless, you would specify the drive in fstab exactly as fdisk reports it. All you have to do is mimic the other entries in fstab, except that the mount point will be different. I would make this something like "docs" in your /home/username directory and then make a soft link int he desktop folder.

But first, get it partitioned and formatted the way you want it. If you are not using Windows, then format it with your favorite Linux filesystem.

If in doubt on partitions, i would recommend creating ONE partition using ~ 1/2 the drive---leave the rest empty (unpartitioned) for future expansion.
 
1 members found this post helpful.
Old 02-07-2010, 05:22 AM   #3
flatstan
Member
 
Registered: Jul 2006
Location: London UK.
Distribution: Open SuSE 11.4 & 12
Posts: 144

Original Poster
Rep: Reputation: 15
Second HDD fstab entry.

Thanks pixellany, sorry I did not make myself clear. Fdisk reports the second HDD, 160 Gig SATA as /dev/sda - W95 fat 32 LBA, when it is connected & in the system with the drive containing the SUSE Linux OS - the 80 Gig HDD, this is reported by fdisk as /dev/sdb.
Strange as you say, I thought that the primary drive, that containing the OS would be reported as /dev/sda, & a second drive as /dev/sdb. any way thanks, I understand what you are saying. Rgds.
 
Old 02-07-2010, 05:55 AM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
The kernel drivers were rewritten for recent kernels. One layer uses the the scsi code so PATA drives now show up as /dev/sd## devices.

You can run "kdesu yast2 disk" to access YaST2's partitioner program. This will be easier, and may catch some mount options (like codpage=) that you may miss or not know which to use.

If this is an internal disk, you should reformat it in a Linux file system, unless you are dual booting and want to share files with your Windows installation. For an external drive, if you won't be sharing files with a windows system, then reformat it also.

If you don't want to reformat the drive, unclick the Format option in the partitioner program. Enter the mount point you want, and which options you need.

For an internal drive, add the mount options "uid=<your_username>,gid=<your_group>,fmask=0117,dmask=0007,iocharset=utf8"

For an external drive, you don't want it to be mounted when you boot up. Add the "noauto" option. When you boot up, and the disk isn't present, booting will fail and you will be dropped into the recovery shell. Also, for external drives, you can't count on the same device node being used. One time it may be /dev/sdb1. The next time, /dev/sdc1. For this situation, either let the auto mount system take care of it, or use the UUID or PATH in the first column of the fstab file.

The YaST2 partition program allows you to do this as well.

Last edited by jschiwal; 02-07-2010 at 06:02 AM.
 
1 members found this post helpful.
Old 02-07-2010, 09:45 AM   #5
flatstan
Member
 
Registered: Jul 2006
Location: London UK.
Distribution: Open SuSE 11.4 & 12
Posts: 144

Original Poster
Rep: Reputation: 15
fstab mount hard disk

Thanks jschiwal.
I will try this. Rgds.
 
Old 02-11-2010, 08:10 AM   #6
flatstan
Member
 
Registered: Jul 2006
Location: London UK.
Distribution: Open SuSE 11.4 & 12
Posts: 144

Original Poster
Rep: Reputation: 15
fstab entry

Thanks jschiwal, you recommended that I re partition the SATA store disk & that reminded me that SUSE auto recognized NTFS, so I converted the File system to NTFS. This solved the problem immediately, the disk mounting on boot & showing on the desktop & could be used OK.

I remember in the days of DOS most books gave a comprehensive list of the command line commands, the functions & switches,
Where can I find this for Linux also for distro specific commands, also ditto for fstab. I have seen some very brief lists in some books but they are not very comprehensive, ie they don't show the command "kdesu yast2 disk" that you quoted, by the way this utility can be started from an icon in yast also.
I am thinking that this information would be very useful to me if it included explanations of the functions as to exactly what they do, is this info available in man pages, if so how can I access it?
Thanks Rgds.
 
  


Reply


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
fstab entry does not mount nfs share nanbudh Linux - Networking 13 06-07-2012 03:05 PM
Mount removable disk without root access and fstab entry - possible? FogSwimmer Linux - Hardware 2 08-31-2007 07:41 PM
Fstab Entry To Mount Vista stratcat Linux - Desktop 5 05-15-2007 08:36 PM
usb fstab entry won't mount r/w Kilka Linux - Hardware 4 07-27-2004 12:05 PM
Why a FSTAB entry will mount using -a switch but will not mount automatically at boot mjen Linux - Newbie 3 05-19-2004 08:45 AM


All times are GMT -5. The time now is 10:23 AM.

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