LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-28-2008, 06:10 PM   #1
andy1974
Member
 
Registered: Jun 2007
Posts: 85

Rep: Reputation: 15
Unhappy mounting question


ok i have a question about a failing drive on my system and how it is mounted..

i have the drive set up in fstab to mount on boot like this

/dev/sdb1 /mnt/drive1 ext3 defaults 1 2

however if the drive fails it will hault the boot. is there a way to set it up to still allow boot even the drive is dead or not there??

also if the drive does fail .....how do i get to edit the fstab from command line to get the system back up till the drive is replaced. i feel that day is comming soon ....i ordered a new drive however i would like to know the answers to these questions. Any help would be great.

Last edited by andy1974; 03-28-2008 at 06:14 PM.
 
Old 03-28-2008, 06:27 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Mineral, Virginia
Distribution: Debian 8
Posts: 7,877

Rep: Reputation: 318Reputation: 318Reputation: 318Reputation: 318
Quote:
Originally Posted by andy1974 View Post

i have the drive set up in fstab to mount on boot like this

/dev/sdb1 /mnt/drive1 ext3 defaults 1 2

however if the drive fails it will hault the boot. is there a way to set it up to still allow boot even the drive is dead or not there??
Change your fstab entry to:

/dev/sdb1 /mnt/drive1 ext3 noauto,user 1 2

(If you only allow root access then take out the user parameter.)

Quote:
Originally Posted by andy1974 View Post

if the drive does fail .....how do i get to edit the fstab from command line to get the system back up till the drive is replaced.
Boot a live CD and edit /etc/fstab from the live CD.

----------------
Steve Stites
 
Old 03-28-2008, 06:48 PM   #3
andy1974
Member
 
Registered: Jun 2007
Posts: 85

Original Poster
Rep: Reputation: 15
ok i will try that
 
Old 03-28-2008, 07:05 PM   #4
andy1974
Member
 
Registered: Jun 2007
Posts: 85

Original Poster
Rep: Reputation: 15
nah that didnt work

Bad format on line 10

i added that line then rebooted after unpluging hard drive
 
Old 03-28-2008, 08:25 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
Try:
/dev/sdb1 /mnt/drive1 ext3 defaults,noauto,user 0 0

The "user" isn't necessary if you will try to mount it as root. Who is the owner of the filesystem? If it is root, then delete ",user".

See the mount manpage for details on the mount options.

If you unplugged the drive, then your drive assignments may have changed. A hard disk that used to be /dev/sdc might then be /dev/sdb.

Last edited by jschiwal; 03-28-2008 at 08:26 PM.
 
Old 03-28-2008, 08:45 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 20,408

Rep: Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551
Quote:
Bad format on line 10
Looks like something is wrong in your fstab file. Make sure you do not have any blank lines at the end of the file. There also needs to be a LF on the last entry too.
 
Old 03-29-2008, 09:14 AM   #7
andy1974
Member
 
Registered: Jun 2007
Posts: 85

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jschiwal View Post
Try:
/dev/sdb1 /mnt/drive1 ext3 defaults,noauto,user 0 0

The "user" isn't necessary if you will try to mount it as root. Who is the owner of the filesystem? If it is root, then delete ",user".

See the mount manpage for details on the mount options.

If you unplugged the drive, then your drive assignments may have changed. A hard disk that used to be /dev/sdc might then be /dev/sdb.
/dev/sdb1 /mnt/drive1 ext3 defaults,noauto 0 0

worked ......what does the 0 0 do ?
 
Old 03-30-2008, 05:06 PM   #8
andy1974
Member
 
Registered: Jun 2007
Posts: 85

Original Poster
Rep: Reputation: 15
jailbait

i wanted you to clearify somthing you said...you said

Boot a live CD and edit /etc/fstab from the live CD.

could you explain how i would go about that ?

Last edited by andy1974; 03-30-2008 at 05:24 PM.
 
Old 03-30-2008, 06:31 PM   #9
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Mineral, Virginia
Distribution: Debian 8
Posts: 7,877

Rep: Reputation: 318Reputation: 318Reputation: 318Reputation: 318
Quote:
Originally Posted by andy1974 View Post
Boot a live CD and edit /etc/fstab from the live CD.

could you explain how i would go about that ?
Pretty much all distributions come with a bootable install CD which also can be used as a live CD. So boot your installation CD into live CD mode (some call it rescue mode) and get a command prompt. Then mount your Linux partition. Let's say that you have Linux installed on /dev/sda3 and that you are using ext3:

mkdir /sparrow
mount -t ext3 /dev/sda3 /sparrow

You need to use one of the editors installed on the live CD. vim is the almost universal editor on live CDs, so:

vim /sparrow/etc/fstab

make the necessary changes to fstab and save it. umount /sparrow to make sure the cache is flushed before you reboot:

umount /sparrow

----------------------
Steve Stites
 
Old 04-01-2008, 08:31 AM   #10
andy1974
Member
 
Registered: Jun 2007
Posts: 85

Original Poster
Rep: Reputation: 15
need to be mounted at startup?

well lets dig a bit deeper......would i have to have to mount /dev/sdb1 in fstab to use samba ?? the samba share is on /mnt/data

only make sence i would have to have it fstab i dont want to have to mount it manually

the os is Fedora 8, seems to mount auto anyway, regaurdles of fstab

Last edited by andy1974; 04-01-2008 at 08:42 AM.
 
  


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
mounting question scales Ubuntu 3 03-02-2006 03:03 PM
question about mounting a new hd sunman Slackware 4 11-24-2005 02:13 AM
Mounting Question ZeroX-2 Slackware 4 12-02-2004 07:48 AM
Question about mounting johnlong_03 Slackware 4 08-01-2004 01:18 AM
Mounting question? blither Linux - General 3 01-20-2003 12:55 AM

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

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