LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-08-2004, 11:52 PM   #1
kurrupt
Member
 
Registered: Jul 2004
Distribution: Debian, Ubuntu, FreeBSD, RHEL
Posts: 202

Rep: Reputation: 31
adding drives to fstab


hey guys.. i just sucessfully installed debian on my home PC .. its great LOL.. but i have an issue... i have 3 cdroms..1 cdrw..1 dvdrw and 1 cdrom.. now i do cat /etc/fstab to see whats in.. and i only see for cdroms.. /dev/cdrom.. in which when i mount it.. its only my dvd burner... now how do i add the other 2 drives to my fstab

because the only way i can use them now.. is if i go into root.. and type mount /dev/hdc /mnt/cdrw
which is a big pain in the ass.. LOl can anyone help me out plz ?
 
Old 08-09-2004, 12:17 AM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,747

Rep: Reputation: 131Reputation: 131
Re: adding drives to fstab

Quote:
Originally posted by kurrupt
hey guys.. i just sucessfully installed debian on my home PC .. its great LOL.. but i have an issue... i have 3 cdroms..1 cdrw..1 dvdrw and 1 cdrom.. now i do cat /etc/fstab to see whats in.. and i only see for cdroms.. /dev/cdrom.. in which when i mount it.. its only my dvd burner... now how do i add the other 2 drives to my fstab

because the only way i can use them now.. is if i go into root.. and type mount /dev/hdc /mnt/cdrw
which is a big pain in the ass.. LOl can anyone help me out plz ?
Simply duplicate the existing line in the fstab making changes to the mount point and /dev/hd? that is at the start of the line. So the /etc/fstab would end up with something like this.

Code:
/dev/hdb       /dev/cdrom          iso9660 ro,user,noauto          0       0
/dev/hdc       /dev/cdrom1          iso9660 ro,user,noauto          0       0
/dev/hdd       /dev/cdrom2          iso9660 ro,user,noauto          0       0
You can make the /dev/cdrom* anything you want you just have to have made the directory first for it to work or make them symbolic links to the devices eg ln -s /dev/hdc /dev/cdrw using your mount example above for instance.
 
  


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
Adding additional drives/resizing drives in RAID arrays kheldar Linux - Hardware 1 10-19-2005 01:21 PM
Slackware 10.1 fstab + 2 disc drives securitybreach Slackware 6 04-27-2005 03:17 PM
adding network drives the the fstab citrus Linux - General 1 03-17-2004 10:54 AM
add smbmount drives to fstab? woja Linux - Newbie 1 11-07-2003 03:14 PM
/etc/fstab drives gazza Linux - Newbie 5 10-29-2003 06:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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