Find the answer to your Linux question:
Results 1 to 6 of 6
Partition is writable (/dev/hda4 /mnt/hda4 ext3 rw 0 0), but when i try to alter it, it becomes read-only (/dev/hda4 /mnt/hda4 ext3 ro 0 0): Code: root@ttyp2[/]# cat /proc/mounts rootfs ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Enthusiast
    Join Date
    Jul 2005
    Location
    Maryland
    Posts
    522

    Can someone explain this: writable partition becomes read-only ?


    Partition is writable (/dev/hda4 /mnt/hda4 ext3 rw 0 0), but when i try to alter it, it becomes read-only (/dev/hda4 /mnt/hda4 ext3 ro 0 0):

    Code:
    root@ttyp2[/]# cat /proc/mounts
    
    rootfs / rootfs rw 0 0
    /dev/root.old / ext2 rw 0 0
    /proc /proc proc rw,nodiratime 0 0
    /dev/pts /dev/pts devpts rw 0 0
    /sys /sys sysfs rw 0 0
    /dev/scd0 /cdrom iso9660 ro 0 0
    /dev/cloop /KNOPPIX iso9660 ro 0 0
    /ramdisk /ramdisk tmpfs rw 0 0
    /proc/bus/usb /proc/bus/usb usbdevfs rw 0 0
    automount(pid1569) /mnt/auto autofs rw 0 0
    /dev/cdrom /mnt/auto/cdrom iso9660 ro,nosuid,nodev 0 0
    /dev/hdc4 /mnt/hdc4 ext3 rw 0 0
    
    root@ttyp2[/]# mount /dev/hda4 /mnt/hda4
    
    root@ttyp2[/]# ls /mnt/hda4/opt/force/sources
    
    linux-2.6.12.1  linux-2.6.12.1.tar.bz2  make-3.80.tar.gz  ncurses-5.4.tar.gz
    
    root@ttyp2[/]# cat /proc/mounts
    
    rootfs / rootfs rw 0 0
    /dev/root.old / ext2 rw 0 0
    /proc /proc proc rw,nodiratime 0 0
    /dev/pts /dev/pts devpts rw 0 0
    /sys /sys sysfs rw 0 0
    /dev/scd0 /cdrom iso9660 ro 0 0
    /dev/cloop /KNOPPIX iso9660 ro 0 0
    /ramdisk /ramdisk tmpfs rw 0 0
    /proc/bus/usb /proc/bus/usb usbdevfs rw 0 0
    automount(pid1569) /mnt/auto autofs rw 0 0
    /dev/cdrom /mnt/auto/cdrom iso9660 ro,nosuid,nodev 0 0
    /dev/hdc4 /mnt/hdc4 ext3 rw 0 0
    /dev/hda4 /mnt/hda4 ext3 rw 0 0
    
    root@ttyp2[/]# rm -rf /mnt/hda4/opt/force/sources/linux-2.6.12.1
    
    rm: cannot remove directory `/mnt/hda4/opt/force/sources/linux-2.6.12.1': Read-only file system
    
    root@ttyp2[/]# cat /proc/mounts
    
    rootfs / rootfs rw 0 0
    /dev/root.old / ext2 rw 0 0
    /proc /proc proc rw,nodiratime 0 0
    /dev/pts /dev/pts devpts rw 0 0
    /sys /sys sysfs rw 0 0
    /dev/scd0 /cdrom iso9660 ro 0 0
    /dev/cloop /KNOPPIX iso9660 ro 0 0
    /ramdisk /ramdisk tmpfs rw 0 0
    /proc/bus/usb /proc/bus/usb usbdevfs rw 0 0
    automount(pid1569) /mnt/auto autofs rw 0 0
    /dev/cdrom /mnt/auto/cdrom iso9660 ro,nosuid,nodev 0 0
    /dev/hdc4 /mnt/hdc4 ext3 rw 0 0
    /dev/hda4 /mnt/hda4 ext3 ro 0 0
    
    root@ttyp2[/]#
    Can someone explain why this happens?
    Thank you!

  2. #2
    Linux Engineer
    Join Date
    Apr 2005
    Location
    Belgium
    Posts
    1,429
    Can you post the contents of /etc/fstab?
    ** Registered Linux User # 393717 and proud of it ** Check out www.zenwalk.org
    ** Zenwalk 2.8 - Xfce 4.4 beta 2- 2.6.17.6 kernel = Slack on steroids! **

  3. #3
    Linux Enthusiast
    Join Date
    Jul 2005
    Location
    Maryland
    Posts
    522
    Quote Originally Posted by borromini
    Can you post the contents of /etc/fstab?
    this is the contents:

    Code:
    root@ttyp2[/]# cat /etc/fstab
    /proc      /proc       proc   defaults            0 0
    /sys       /sys        sysfs  noauto              0 0
    /dev/pts   /dev/pts    devpts mode=0622           0 0
    /dev/fd0   /mnt/auto/floppy auto   user,noauto,exec,umask=000    0 0
    /dev/cdrom /mnt/auto/cdrom  auto   user,noauto,exec,ro 0 0
    /dev/cdrom1 /mnt/auto/cdrom1  auto   users,noauto,exec,ro 0 0
    # Added by KNOPPIX
    /dev/hda1 /mnt/hda1 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppix 0 0
    # Added by KNOPPIX
    /dev/hda3 /mnt/hda3 ext3 noauto,users,exec 0 0
    # Added by KNOPPIX
    /dev/hda4 /mnt/hda4 ext3 noauto,users,exec 0 0
    # Added by KNOPPIX
    /dev/hda5 /mnt/hda5 ntfs noauto,users,exec,ro,umask=000,uid=knoppix,gid=knoppix 0 0
    # Added by KNOPPIX
    /dev/hda6 /mnt/hda6 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppix 0 0
    # Added by KNOPPIX
    /dev/hda7 none swap defaults 0 0
    # Added by KNOPPIX
    /dev/hdc1 /mnt/hdc1 ext2 noauto,users,exec 0 0
    # Added by KNOPPIX
    /dev/hdc2 none swap defaults 0 0
    # Added by KNOPPIX
    /dev/hdc3 /mnt/hdc3 ext3 noauto,users,exec 0 0
    # Added by KNOPPIX
    /dev/hdc4 /mnt/hdc4 ext3 noauto,users,exec 0 0
    root@ttyp2[/]#
    thanks for fast reply!

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie
    Join Date
    Mar 2005
    Location
    Romania
    Posts
    186
    Change the line in fstab to:
    Code:
    /dev/hda4   /mnt/d      vfat mask=0222,dmask=0000,uid=0002,gid=users,users 0 0
    and the partition will be mounted as read/write.
    You can only be young once. But you can always be immature.

  6. #5
    Linux Enthusiast
    Join Date
    Jul 2005
    Location
    Maryland
    Posts
    522
    thanks, I will try adding the line to fstab

  7. #6
    Linux Enthusiast
    Join Date
    Jul 2005
    Location
    Maryland
    Posts
    522
    Quote Originally Posted by sharkyro
    Change the line in fstab to:
    Code:
    /dev/hda4   /mnt/d      vfat mask=0222,dmask=0000,uid=0002,gid=users,users 0 0
    and the partition will be mounted as read/write.
    tried to do that.
    actually, /dev/hda4 is ext3, not a vfat (fat32).
    So ... I used your code, but replaced vfat with ext3.
    I also tried chroot to that partition and delete the file.
    Still the same result: writable partition becomes read-only.
    Don't know what else to do.
    Edit: I am actually doing it from Knoppix. But think I would get the same results even if I changed fstab on an installed Linux, and tried to alter that partition.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •