Re: something I don't understand



He will not need to remount /home, but remount /. He is in the single-user maintenance mode.
/etc/fstab is the file he cannot edit.

- Mike

Dean S. Messing wrote:
: Bonjour,
: : As I run short of place on my /home partition, I decided to format a new
: partition on my HD (some place were left) and call it home2 after
: creating it with fdisk. I run
: : mke2fs -j -L home2 /dev/hdax
: : then added this line in fstab:
: : LABEL=/home2 /home2 ext3 defaults 1 2
: : Then I rebooted the machine.... and, as there was a mistake in the
: fstab, I was dropped to a repair-partition prompt because fsck.ext3
: didn't know what to do with LABEL "/home2"....
: : I thought that there were no problem: I just type the root password and
: tried to comment the bad line in the fstab... Impossible: "the file is
: write protected" was the only answer I got from vi...
: : I was root, the fstab file has write permission for root, but it was
: impossible to modify this file....
: : WHY?
: : Thank you.
: : PS. I recovered with reformating the partition with the right syntax.

The behaviour is probably due to the parition being mounted "read-only".

>From the commandline, issue `mount' and look at the last item on the
line. I'm guessing it says "(ro)". You can change the write mode of
the partition by issuing

mount -o remount,rw /dev/hda5

assuming /home is on hda5.

Now issue `mount' again and you will see that "(ro)" has changed to "(rw)".

Dean


--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: Most directories locked read-only: how to unlock them?
    ... > fstab that way. ... Just remount the partition. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: How does one clean a messy fstab ?
    ... > ALWAYS BACK THE FSTAB UP BEFORE EDITING. ... > because sda1 is in windows recognised as C:/. ... > Again, the disk wasn't mounted. ... On my desktop is an icon of the WIN C: partition and I have access to ...
    (Ubuntu)
  • Re: [SLE] Dividing a used partition
    ... issue 'cp fstab fstab-bak' ... select the partition editor module. ... (to run separate sessions and view 'man' pages, use 'mc', view logs, etc.) ... issue 'exit' then 'exit' and you're done. ...
    (SuSE)
  • Re: How to add a mount point in fstab?
    ... > command correct to add /dev/sda6 in to the fstab? ... what ensures that the kernel will always see that ... The sda6 is actually a harddisk partition. ... A little Googling shows that it has a SATA HDD. ...
    (Debian-User)
  • Re: use of label in fstab
    ... use of label in fstab ... > I made another partition /dev/sda5 and used e2label to label it dyndata, ... I don't generally mount by label & I don't use ext filesystems, ...
    (Ubuntu)