Results 1 to 6 of 6
|
|
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
-
10-29-2005 #1Linux 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):
Can someone explain why this happens?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[/]#
Thank you!
-
10-29-2005 #2Linux Engineer
- Join Date
- Apr 2005
- Location
- Belgium
- Posts
- 1,429
Can you post the contents of /etc/fstab?
Debian Jessie x86_64 & armhf :: LibreELEC is the solution for your Linux-based HTPC setups.
-
10-29-2005 #3Linux Enthusiast
- Join Date
- Jul 2005
- Location
- Maryland
- Posts
- 522
this is the contents:
Originally Posted by borromini
thanks for fast reply!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[/]#
-
10-29-2005 #4Linux Newbie
- Join Date
- Mar 2005
- Location
- Romania
- Posts
- 186
Change the line in fstab to:
and the partition will be mounted as read/write.Code:/dev/hda4 /mnt/d vfat mask=0222,dmask=0000,uid=0002,gid=users,users 0 0
You can only be young once. But you can always be immature.
-
10-29-2005 #5Linux Enthusiast
- Join Date
- Jul 2005
- Location
- Maryland
- Posts
- 522
thanks, I will try adding the line to fstab
-
10-30-2005 #6Linux Enthusiast
- Join Date
- Jul 2005
- Location
- Maryland
- Posts
- 522
tried to do that.
Originally Posted by sharkyro
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.


Reply With Quote