Discussion:
How to change FSTAB during boot
(too old to reply)
Jesper Yde
2007-01-04 21:17:07 UTC
Permalink
I have a problem once in a while.
I have tried loosing a HDD (not my boot partition). The computer boots nice
and easy until i gets to the mounting of the drives. When it finds out my
HDD is no longer present i cant get any further. When i try to edit the
FSTAB to remove the line where it says to mount the drive, the /etc/fstab
file is read only.
How do i edit fstab without having to insert another HDD (formatted excactly
like the missing drive) to be able to get to a point where I can edit and
save the fstab file?

regards
Jesper
Bill Marcum
2007-01-05 08:14:23 UTC
Permalink
On Thu, 4 Jan 2007 22:17:07 +0100, Jesper Yde
Post by Jesper Yde
I have a problem once in a while.
I have tried loosing a HDD (not my boot partition). The computer boots nice
and easy until i gets to the mounting of the drives. When it finds out my
HDD is no longer present i cant get any further. When i try to edit the
FSTAB to remove the line where it says to mount the drive, the /etc/fstab
file is read only.
How do i edit fstab without having to insert another HDD (formatted excactly
like the missing drive) to be able to get to a point where I can edit and
save the fstab file?
Boot a live CD or boot with the "init=/bin/sh" option. Then, for the
drive that is not always there, add "noauto" to the options.
--
"Microwave oven? Whaddya mean, it's a microwave oven? I've been watching
Channel 4 on the thing for two weeks."
Jesper Yde
2007-01-05 16:42:04 UTC
Permalink
Post by Bill Marcum
On Thu, 4 Jan 2007 22:17:07 +0100, Jesper Yde
Post by Jesper Yde
I have a problem once in a while.
I have tried loosing a HDD (not my boot partition). The computer boots nice
and easy until i gets to the mounting of the drives. When it finds out my
HDD is no longer present i cant get any further. When i try to edit the
FSTAB to remove the line where it says to mount the drive, the /etc/fstab
file is read only.
How do i edit fstab without having to insert another HDD (formatted excactly
like the missing drive) to be able to get to a point where I can edit and
save the fstab file?
Boot a live CD or boot with the "init=/bin/sh" option. Then, for the
drive that is not always there, add "noauto" to the options.
Add "Noauto" where? in fstab?
Bill Marcum
2007-01-07 10:05:23 UTC
Permalink
On Fri, 5 Jan 2007 17:42:04 +0100, Jesper Yde
Post by Jesper Yde
Post by Bill Marcum
On Thu, 4 Jan 2007 22:17:07 +0100, Jesper Yde
Post by Jesper Yde
I have a problem once in a while.
I have tried loosing a HDD (not my boot partition). The computer boots nice
and easy until i gets to the mounting of the drives. When it finds out my
HDD is no longer present i cant get any further. When i try to edit the
FSTAB to remove the line where it says to mount the drive, the /etc/fstab
file is read only.
How do i edit fstab without having to insert another HDD (formatted excactly
like the missing drive) to be able to get to a point where I can edit and
save the fstab file?
Boot a live CD or boot with the "init=/bin/sh" option. Then, for the
drive that is not always there, add "noauto" to the options.
Add "Noauto" where? in fstab?
Yes, in fstab, like this:

/dev/fd0 /media/floppy0 vfat rw,user,noauto 0 0
"man 5 fstab" and "man mount" for details.
--
Always store beer in a dark place.
-- Lazarus Long
Jesper Yde
2007-01-07 20:36:34 UTC
Permalink
Post by Bill Marcum
On Fri, 5 Jan 2007 17:42:04 +0100, Jesper Yde
Post by Jesper Yde
Post by Bill Marcum
On Thu, 4 Jan 2007 22:17:07 +0100, Jesper Yde
Post by Jesper Yde
I have a problem once in a while.
I have tried loosing a HDD (not my boot partition). The computer boots nice
and easy until i gets to the mounting of the drives. When it finds out my
HDD is no longer present i cant get any further. When i try to edit the
FSTAB to remove the line where it says to mount the drive, the /etc/fstab
file is read only.
How do i edit fstab without having to insert another HDD (formatted excactly
like the missing drive) to be able to get to a point where I can edit and
save the fstab file?
Boot a live CD or boot with the "init=/bin/sh" option. Then, for the
drive that is not always there, add "noauto" to the options.
Add "Noauto" where? in fstab?
/dev/fd0 /media/floppy0 vfat rw,user,noauto 0 0
"man 5 fstab" and "man mount" for details.
--
Always store beer in a dark place.
-- Lazarus Long
Thank you, you have been a great help.

regards
Jesper Yde

Loading...