LinuxQuestions.org
Review your favorite Linux distribution.
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 12-09-2004, 09:50 AM   #1
cbriscoejr
Member
 
Registered: Sep 2004
Location: Baltimore, Md
Distribution: Red Hat
Posts: 60

Rep: Reputation: 15
Question Question on fstab contents


I just added a 120 Gb drive as /dev/hdb. When I do mount /dev/hdb1 /backup the drive is visable. I went to add to fstab and found I had to make the "LABEL=" blank for it to automount at boot. Below is the detail of how I added the drive and the commands that I used to get to where I am now.

fdisk /dev/hdb

option "n" to add a partition. Took defaults to use whole drive
option "w" to write and then "q" to quit

mkfs -t /ext3 /dev/hdb1

mkdir /backups

mount /dev/hdb1 /backups
df -k shows /backups and 115 Gb size 1% used

************************************************************
/etc/fstab after edited
************************************************************

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
LABEL= /backups ext3 defaults 1 2
LABEL=/db2dat /db2dat ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda5 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,r
o 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,owner,kudzu,r
o 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
************************************************************
Comments:

The /, /boot, /db2dat all show a label. I had to add LABEL= blank for the ne partion to mount at boot
The others were make when Linux was install using Disk Druid

Did I miss a step?
What do I need to do change the blank label to /backups
 
Old 12-09-2004, 09:54 AM   #2
cbriscoejr
Member
 
Registered: Sep 2004
Location: Baltimore, Md
Distribution: Red Hat
Posts: 60

Original Poster
Rep: Reputation: 15
After I posted I noticed the tabs were gone in the /etc/fstab I supplied so it is difficult to read



LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
LABEL= /backups ext3 defaults 1 2 <--------- This is the blank label line
LABEL=/db2dat /db2dat ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda5 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,r
o 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,owner,kudzu,r
o 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
 
Old 12-09-2004, 10:49 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
You need to add a volume label. You can add a label to this partition or instead use the device ID i.e.

/dev/hdb1 /backups ext3 defaults 1 2

To add label:
http://www.netadmintools.com/html/tune2fs.man.html
http://www.die.net/doc/linux/man/man8/e2label.8.html
 
  


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
RIP 1 question : How to access the contents of a routing table within a program ? prashanth s j Linux - Networking 1 10-25-2005 08:27 AM
ls question: how to avoid listing contents of subdirectories learnfast Linux - Newbie 2 03-09-2005 08:59 AM
cdrom. contents show up as question marks extrasolar Linux - General 4 01-02-2005 01:50 PM
fstab question phoenix99 Linux - Newbie 3 06-29-2004 01:30 PM
Debain Update CD Contents Question. rvijay Debian 2 10-31-2003 04:31 AM

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

All times are GMT -5. The time now is 08:00 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
Open Source Consulting | Domain Registration