Re: Hosed fstab, won't boot how to edit?

2009-01-25 Thread Roger Heflin

Robert Moskowitz wrote:

Bill Davidsen wrote:

Robert Moskowitz wrote:
So I mistyped noatime in /etc/fstab; wished there was a way to test 
this first!


Anyway, since this is my ASUS Eee and my swap is on the SD card, by 
pulling the SD card the boot halts and puts me into Repair Filesystem 
mode.


Thing is /etx fstab is readonly. vi fstab won't let me save the file.

I assume you have done the normal "write a ro file" command (:w!) and 
that failed as well?


I really don't want to do a complete reinstall yet. I want to buy a 
8Gb SD card first (and next time I am putting /usr on the SD card). 
So how can I edit this? 


Yes, that did not work. I am home now, and will just do a reinstall. I 
was planning one anyway as I figured out the 'best' way to distribute 
everything between a 4Gb SSD drive and a 4Gb SD drive. When I just had 
everything (/) on the 4Gb SSD drive as a ext3 partition, the install 
failed. Moving /var/cache over to the SD drive worked. But now after 
looking at things, I am going to put /usr on a 4Gb ext3 partition on the 
SD drive, a 1.5Gb swap and 2.5Gb / ext3 on the SSD drive. I think that 
is the best I can do until I get a 8Gb SD card, or figure out how to 
unsolder the SSD drive and install a larger one





I would (as a last try) try doing the remount with the device rather 
than / and also try adding "-s" to the original remount command.


Or boot it with a install disk and let the install disk mount up the 
stuff on the hd and edit it.


   Roger

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Hosed fstab, won't boot how to edit?

2009-01-24 Thread Robert Moskowitz

john wendel wrote:

Robert Moskowitz wrote:

Bill Davidsen wrote:

Robert Moskowitz wrote:
So I mistyped noatime in /etc/fstab; wished there was a way to test 
this first!


Anyway, since this is my ASUS Eee and my swap is on the SD card, by 
pulling the SD card the boot halts and puts me into Repair 
Filesystem mode.


Thing is /etx fstab is readonly. vi fstab won't let me save the file.

I assume you have done the normal "write a ro file" command (:w!) 
and that failed as well?


I really don't want to do a complete reinstall yet. I want to buy a 
8Gb SD card first (and next time I am putting /usr on the SD card). 
So how can I edit this? 


Yes, that did not work. I am home now, and will just do a reinstall. 
I was planning one anyway as I figured out the 'best' way to 
distribute everything between a 4Gb SSD drive and a 4Gb SD drive. 
When I just had everything (/) on the 4Gb SSD drive as a ext3 
partition, the install failed. Moving /var/cache over to the SD drive 
worked. But now after looking at things, I am going to put /usr on a 
4Gb ext3 partition on the SD drive, a 1.5Gb swap and 2.5Gb / ext3 on 
the SSD drive. I think that is the best I can do until I get a 8Gb SD 
card, or figure out how to unsolder the SSD drive and install a 
larger one



I'm far from an expert, but I read that you should use EXT2 on a SSD 
instead of EXT3, the drive will last longer due to less I/O activity 
(the ext3 journal does too much I/O). 


I have been seriously considering using ext2 on the SD drive. Afterall, 
it will have /usr on it and not a lot of activity happens to files in 
/usr (or am I missing something?). I figure to run the check program 
(I'd have to research that again) after yum updates...


I have mixed feelings about ext2 for the SSD drive that would have the 
rest of the / tree. adding 'noatime' (and NOT misspelling it this time!) 
is a big win. Also need to look into nodiratime, seems it goes with 
noatime. Don't see any other options that will cut out writes...



--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Hosed fstab, won't boot how to edit?

2009-01-24 Thread john wendel

Robert Moskowitz wrote:

Bill Davidsen wrote:

Robert Moskowitz wrote:
So I mistyped noatime in /etc/fstab; wished there was a way to test 
this first!


Anyway, since this is my ASUS Eee and my swap is on the SD card, by 
pulling the SD card the boot halts and puts me into Repair Filesystem 
mode.


Thing is /etx fstab is readonly. vi fstab won't let me save the file.

I assume you have done the normal "write a ro file" command (:w!) and 
that failed as well?


I really don't want to do a complete reinstall yet. I want to buy a 
8Gb SD card first (and next time I am putting /usr on the SD card). 
So how can I edit this? 


Yes, that did not work. I am home now, and will just do a reinstall. I 
was planning one anyway as I figured out the 'best' way to distribute 
everything between a 4Gb SSD drive and a 4Gb SD drive. When I just had 
everything (/) on the 4Gb SSD drive as a ext3 partition, the install 
failed. Moving /var/cache over to the SD drive worked. But now after 
looking at things, I am going to put /usr on a 4Gb ext3 partition on the 
SD drive, a 1.5Gb swap and 2.5Gb / ext3 on the SSD drive. I think that 
is the best I can do until I get a 8Gb SD card, or figure out how to 
unsolder the SSD drive and install a larger one



I'm far from an expert, but I read that you should use EXT2 on a SSD 
instead of EXT3, the drive will last longer due to less I/O activity 
(the ext3 journal does too much I/O).


Regards,

John

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Hosed fstab, won't boot how to edit?

2009-01-24 Thread Robert Moskowitz

Bill Davidsen wrote:

Robert Moskowitz wrote:
So I mistyped noatime in /etc/fstab; wished there was a way to test 
this first!


Anyway, since this is my ASUS Eee and my swap is on the SD card, by 
pulling the SD card the boot halts and puts me into Repair Filesystem 
mode.


Thing is /etx fstab is readonly. vi fstab won't let me save the file.

I assume you have done the normal "write a ro file" command (:w!) and 
that failed as well?


I really don't want to do a complete reinstall yet. I want to buy a 
8Gb SD card first (and next time I am putting /usr on the SD card). 
So how can I edit this? 


Yes, that did not work. I am home now, and will just do a reinstall. I 
was planning one anyway as I figured out the 'best' way to distribute 
everything between a 4Gb SSD drive and a 4Gb SD drive. When I just had 
everything (/) on the 4Gb SSD drive as a ext3 partition, the install 
failed. Moving /var/cache over to the SD drive worked. But now after 
looking at things, I am going to put /usr on a 4Gb ext3 partition on the 
SD drive, a 1.5Gb swap and 2.5Gb / ext3 on the SSD drive. I think that 
is the best I can do until I get a 8Gb SD card, or figure out how to 
unsolder the SSD drive and install a larger one



--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Hosed fstab, won't boot how to edit?

2009-01-24 Thread Bill Davidsen

Robert Moskowitz wrote:
So I mistyped noatime in /etc/fstab; wished there was a way to test this 
first!


Anyway, since this is my ASUS Eee and my swap is on the SD card, by 
pulling the SD card the boot halts and puts me into Repair Filesystem mode.


Thing is /etx fstab is readonly.  vi fstab won't let me save the file.

I assume you have done the normal "write a ro file" command (:w!) and that 
failed as well?


I really don't want to do a complete reinstall yet.  I want to buy a 8Gb 
SD card first (and next time I am putting /usr on the SD card).  So how 
can I edit this?






--
Bill Davidsen 
  "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Hosed fstab, won't boot how to edit?

2009-01-20 Thread Robert Moskowitz

Roger Heflin wrote:

Robert Moskowitz wrote:

Roger Heflin wrote:
On Tue, Jan 20, 2009 at 1:45 PM, Robert Moskowitz 





mount -o rw,remount /


So I tried this (had a DAH moment after you posted this), but got an 
error:


mount: / not mounted already, or bad option

So I tried just 'mount' to see what the status of / is and got 
(amongst other pieces of info):


/dev/sda1 on / type ext3 (rw)

then edit it.




mount is not reliable to show what is mounted in some cases.

It reads /etc/mtab a file that happens to be located on a ro 
filesystem that won't have been updated so it won't be right when a 
machine is in single user mode.


do a "cat /proc/mounts" to figure out what the actual state is, 


rootfs / rootfs rw 0 0
/dev/root / ext3 ro,errors=continue,user_xattr,acl,data=ordered 0 0

I never use the mount command to see what is mounted there are just 
too many failures of it (it only shows the options that you used, not 
(in the case of nfs) the actual parameters being used).


try doing a "mount -o remount,rw /" I know I have done this several 
times.


ARGH!!!

I get:

EXT3-fs: Unrecongnized mount option "noatiime" or missing value
mount: / not mounted already, or bad option

I KNOW IT IS A BAD OPTION DUMMY, that is my typo that I need to fix

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Hosed fstab, won't boot how to edit?

2009-01-20 Thread Roger Heflin

Robert Moskowitz wrote:

Roger Heflin wrote:
On Tue, Jan 20, 2009 at 1:45 PM, Robert Moskowitz 





mount -o rw,remount /
  


So I tried this (had a DAH moment after you posted this), but got an error:

mount: / not mounted already, or bad option

So I tried just 'mount' to see what the status of / is and got (amongst 
other pieces of info):


/dev/sda1 on / type ext3 (rw)

then edit it.




mount is not reliable to show what is mounted in some cases.

It reads /etc/mtab a file that happens to be located on a ro 
filesystem that won't have been updated so it won't be right when a 
machine is in single user mode.


do a "cat /proc/mounts" to figure out what the actual state is, I 
never use the mount command to see what is mounted there are just too 
many failures of it (it only shows the options that you used, not (in 
the case of nfs) the actual parameters being used).


try doing a "mount -o remount,rw /" I know I have done this several times.

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Hosed fstab, won't boot how to edit?

2009-01-20 Thread Richard Shaw
On Tue, Jan 20, 2009 at 3:18 PM, Robert Moskowitz  wrote:
> Ron Siven wrote:
>>
>> Robert Moskowitz wrote:
>>>
>>> Ron Siven wrote:

 Robert Moskowitz wrote:
>
> So I mistyped noatime in /etc/fstab; wished there was a way to test
> this first!
>
> Anyway, since this is my ASUS Eee and my swap is on the SD card, by
> pulling the SD card the boot halts and puts me into Repair Filesystem 
> mode.
>
> Thing is /etx fstab is readonly. vi fstab won't let me save the file.
>
> I really don't want to do a complete reinstall yet. I want to buy a 8Gb
> SD card first (and next time I am putting /usr on the SD card). So how 
> can I
> edit this?
>
>
 If this is the same as rescue mode booting from the CD/DVD, the file
 system is mounted to /mnt/sysimage. To get root access, use chroot
 /mnt/sysimage. Then use vim to edit /etc/fstab
>>>
>>> The prompt is:
>>>
>>> (Repair filesystem) n #
>>>
>>> Where n is a command number it seems. I had to provide the root password
>>> to get into this mode.
>>>
>>> As for 'chroot /mnt/sysimage', I get:
>>>
>>> chroot: cannot change root directory to /mnt/sysimage: No such file or
>>> directory
>>>
>>>
>>
>> Do you have the CD/DVD that you installed from to boot with? From there
>> you can specify rescue mode and use the method I described above.
>
> I am on the road (IEEE 802.11 meeting in LA) and do not even have a USB CD
> drive... Perhaps I can find one here.

In that case, do you have a USB stick w/ 1GB of free space? How about
a live system installed to it? That should let you mount your /
filesystem and repair fstab..

Richard

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Hosed fstab, won't boot how to edit?

2009-01-20 Thread Robert Moskowitz

Ron Siven wrote:

Robert Moskowitz wrote:

Ron Siven wrote:

Robert Moskowitz wrote:
So I mistyped noatime in /etc/fstab; wished there was a way to test 
this first!


Anyway, since this is my ASUS Eee and my swap is on the SD card, by 
pulling the SD card the boot halts and puts me into Repair 
Filesystem mode.


Thing is /etx fstab is readonly. vi fstab won't let me save the file.

I really don't want to do a complete reinstall yet. I want to buy a 
8Gb SD card first (and next time I am putting /usr on the SD card). 
So how can I edit this?



If this is the same as rescue mode booting from the CD/DVD, the file 
system is mounted to /mnt/sysimage. To get root access, use chroot 
/mnt/sysimage. Then use vim to edit /etc/fstab 

The prompt is:

(Repair filesystem) n #

Where n is a command number it seems. I had to provide the root 
password to get into this mode.


As for 'chroot /mnt/sysimage', I get:

chroot: cannot change root directory to /mnt/sysimage: No such file 
or directory





Do you have the CD/DVD that you installed from to boot with? From 
there you can specify rescue mode and use the method I described above. 


I am on the road (IEEE 802.11 meeting in LA) and do not even have a USB 
CD drive... Perhaps I can find one here.



--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Hosed fstab, won't boot how to edit?

2009-01-20 Thread Ron Siven

Robert Moskowitz wrote:

Ron Siven wrote:

Robert Moskowitz wrote:
So I mistyped noatime in /etc/fstab; wished there was a way to test 
this first!


Anyway, since this is my ASUS Eee and my swap is on the SD card, by 
pulling the SD card the boot halts and puts me into Repair 
Filesystem mode.


Thing is /etx fstab is readonly. vi fstab won't let me save the file.

I really don't want to do a complete reinstall yet. I want to buy a 
8Gb SD card first (and next time I am putting /usr on the SD card). 
So how can I edit this?



If this is the same as rescue mode booting from the CD/DVD, the file 
system is mounted to /mnt/sysimage. To get root access, use chroot 
/mnt/sysimage. Then use vim to edit /etc/fstab 

The prompt is:

(Repair filesystem) n #

Where n is a command number it seems. I had to provide the root 
password to get into this mode.


As for 'chroot /mnt/sysimage', I get:

chroot: cannot change root directory to /mnt/sysimage: No such file or 
directory





Do you have the CD/DVD that you installed from to boot with?  From there 
you can specify rescue mode and use the method I described above.



--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Hosed fstab, won't boot how to edit?

2009-01-20 Thread Robert Moskowitz

Ron Siven wrote:

Robert Moskowitz wrote:
So I mistyped noatime in /etc/fstab; wished there was a way to test 
this first!


Anyway, since this is my ASUS Eee and my swap is on the SD card, by 
pulling the SD card the boot halts and puts me into Repair Filesystem 
mode.


Thing is /etx fstab is readonly. vi fstab won't let me save the file.

I really don't want to do a complete reinstall yet. I want to buy a 
8Gb SD card first (and next time I am putting /usr on the SD card). 
So how can I edit this?



If this is the same as rescue mode booting from the CD/DVD, the file 
system is mounted to /mnt/sysimage. To get root access, use chroot 
/mnt/sysimage. Then use vim to edit /etc/fstab 

The prompt is:

(Repair filesystem) n #

Where n is a command number it seems. I had to provide the root password 
to get into this mode.


As for 'chroot /mnt/sysimage', I get:

chroot: cannot change root directory to /mnt/sysimage: No such file or 
directory



--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Hosed fstab, won't boot how to edit?

2009-01-20 Thread Ron Siven

Robert Moskowitz wrote:
So I mistyped noatime in /etc/fstab; wished there was a way to test 
this first!


Anyway, since this is my ASUS Eee and my swap is on the SD card, by 
pulling the SD card the boot halts and puts me into Repair Filesystem 
mode.


Thing is /etx fstab is readonly.  vi fstab won't let me save the file.

I really don't want to do a complete reinstall yet.  I want to buy a 
8Gb SD card first (and next time I am putting /usr on the SD card).  
So how can I edit this?



If this is the same as rescue mode booting from the CD/DVD, the file 
system is mounted to /mnt/sysimage.  To get root access, use chroot 
/mnt/sysimage.  Then use vim to edit /etc/fstab


--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Hosed fstab, won't boot how to edit?

2009-01-20 Thread Robert Moskowitz

Roger Heflin wrote:

On Tue, Jan 20, 2009 at 1:45 PM, Robert Moskowitz  wrote:
  

So I mistyped noatime in /etc/fstab; wished there was a way to test this
first!

Anyway, since this is my ASUS Eee and my swap is on the SD card, by pulling
the SD card the boot halts and puts me into Repair Filesystem mode.

Thing is /etx fstab is readonly.  vi fstab won't let me save the file.

I really don't want to do a complete reinstall yet.  I want to buy a 8Gb SD
card first (and next time I am putting /usr on the SD card).  So how can I
edit this?




mount -o rw,remount /
  


So I tried this (had a DAH moment after you posted this), but got an error:

mount: / not mounted already, or bad option

So I tried just 'mount' to see what the status of / is and got (amongst 
other pieces of info):


/dev/sda1 on / type ext3 (rw)

then edit it.


--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Hosed fstab, won't boot how to edit?

2009-01-20 Thread Roger Heflin
On Tue, Jan 20, 2009 at 1:45 PM, Robert Moskowitz  wrote:
> So I mistyped noatime in /etc/fstab; wished there was a way to test this
> first!
>
> Anyway, since this is my ASUS Eee and my swap is on the SD card, by pulling
> the SD card the boot halts and puts me into Repair Filesystem mode.
>
> Thing is /etx fstab is readonly.  vi fstab won't let me save the file.
>
> I really don't want to do a complete reinstall yet.  I want to buy a 8Gb SD
> card first (and next time I am putting /usr on the SD card).  So how can I
> edit this?


mount -o rw,remount /

then edit it.

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Hosed fstab, won't boot how to edit?

2009-01-20 Thread Robert Moskowitz
So I mistyped noatime in /etc/fstab; wished there was a way to test this 
first!


Anyway, since this is my ASUS Eee and my swap is on the SD card, by 
pulling the SD card the boot halts and puts me into Repair Filesystem mode.


Thing is /etx fstab is readonly.  vi fstab won't let me save the file.

I really don't want to do a complete reinstall yet.  I want to buy a 8Gb 
SD card first (and next time I am putting /usr on the SD card).  So how 
can I edit this?



--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines