Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Mounting a filesystem as rw  (Read 11740 times)

0 Members and 1 Guest are viewing this topic.

vibhor_agarwalin

    Topic Starter


    Adviser

    Mounting a filesystem as rw
    « on: July 24, 2006, 02:06:00 AM »
    Hi,

    I was doing some experimenting with LIVE cd of SLAX.   ::)

    My drives were mounted as read-only.

    I un-mounted them and re-mounted as

    mount /dev/hda1 /mnt/hda1 -o rw

    It shows it is rw but in effect its still ro.   :o
    How can i get around this?
    Vibhor Kumar Agarwal

    Rob Pomeroy



      Prodigy

    • Systems Architect
    • Thanked: 124
      • Me
    • Experience: Expert
    • OS: Other
    Re: Mounting a filesystem as rw
    « Reply #1 on: July 24, 2006, 02:30:27 AM »
    Ensure that the drive in question is error free.  You may not succeed in mounting a drive read-only if it is corrupted in any way.  Set permissions as required (although if you're doing this all as root, you should be fine).
    Only able to visit the forums sporadically, sorry.

    Geek & Dummy - honest news, reviews and howtos

    vibhor_agarwalin

      Topic Starter


      Adviser

      Re: Mounting a filesystem as rw
      « Reply #2 on: July 24, 2006, 02:52:29 AM »
      Those drives are my windows drive.

      I was booting with the CD of Linux. It doesn't needs to be installed.

      So no question of being errored.  8-)

      On doing anything, it says:

      Read only filesystem.
      Vibhor Kumar Agarwal

      Rob Pomeroy



        Prodigy

      • Systems Architect
      • Thanked: 124
        • Me
      • Experience: Expert
      • OS: Other
      Re: Mounting a filesystem as rw
      « Reply #3 on: July 24, 2006, 03:16:48 AM »
      1. You cannot mount the CD read/write (obviously).
      2. If there are errors on your hard drive, you cannot mount that read/write either.
      Only able to visit the forums sporadically, sorry.

      Geek & Dummy - honest news, reviews and howtos

      vibhor_agarwalin

        Topic Starter


        Adviser

        Re: Mounting a filesystem as rw
        « Reply #4 on: July 24, 2006, 03:38:36 AM »
        There is some confusion:

        I am running directly from the Linux CD.  8-)

        No confusion of error on disk, as i regularly boot my system with Windows from the same disks.  :)
        Vibhor Kumar Agarwal

        Rob Pomeroy



          Prodigy

        • Systems Architect
        • Thanked: 124
          • Me
        • Experience: Expert
        • OS: Other
        Re: Mounting a filesystem as rw
        « Reply #5 on: July 24, 2006, 03:51:02 AM »
        Have you run scandisk on your hard drives recently?
        Only able to visit the forums sporadically, sorry.

        Geek & Dummy - honest news, reviews and howtos

        vibhor_agarwalin

          Topic Starter


          Adviser

          Re: Mounting a filesystem as rw
          « Reply #6 on: July 24, 2006, 04:11:23 AM »
          Yup,

          A couple of days back.
          Vibhor Kumar Agarwal

          Rob Pomeroy



            Prodigy

          • Systems Architect
          • Thanked: 124
            • Me
          • Experience: Expert
          • OS: Other
          Re: Mounting a filesystem as rw
          « Reply #7 on: July 24, 2006, 04:24:52 AM »
          What error message are you seeing exactly?
          Only able to visit the forums sporadically, sorry.

          Geek & Dummy - honest news, reviews and howtos

          vibhor_agarwalin

            Topic Starter


            Adviser

            Re: Mounting a filesystem as rw
            « Reply #8 on: July 24, 2006, 04:33:20 AM »
            The filesystem is mounted read-only.

            Even though i remounted it as read-write, it still says read-only.
            On typing mount, shows as rw but in effect is ro.

            Is it possible to write on to a disc when you are running Linux directly from a CD?
            Vibhor Kumar Agarwal

            Rob Pomeroy



              Prodigy

            • Systems Architect
            • Thanked: 124
              • Me
            • Experience: Expert
            • OS: Other
            Re: Mounting a filesystem as rw
            « Reply #9 on: July 24, 2006, 04:51:15 AM »
            Yes, it should be possible.  There might be something I'm missing here.  Have you tried asking your question over at the >Slax forum<?

            Which folder exactly are you trying to write to?
            Only able to visit the forums sporadically, sorry.

            Geek & Dummy - honest news, reviews and howtos

            vibhor_agarwalin

              Topic Starter


              Adviser

              Re: Mounting a filesystem as rw
              « Reply #10 on: July 24, 2006, 05:13:03 AM »
              Good idea  :D

              I'll try right away.

              I was simply trying to write anywhere. It included C: & D: which are the 2 partitions i have.
              Vibhor Kumar Agarwal

              Rob Pomeroy



                Prodigy

              • Systems Architect
              • Thanked: 124
                • Me
              • Experience: Expert
              • OS: Other
              Re: Mounting a filesystem as rw
              « Reply #11 on: July 24, 2006, 05:15:07 AM »
              And what is the full path to those mounted partitions?  Could you post the output of
              mount
              and
              cat /etc/fstab
              ?
              Only able to visit the forums sporadically, sorry.

              Geek & Dummy - honest news, reviews and howtos

              vibhor_agarwalin

                Topic Starter


                Adviser

                Re: Mounting a filesystem as rw
                « Reply #12 on: July 24, 2006, 05:18:33 AM »
                Can't give the output as i don't have the CD right now.

                It contained something like
                /dev/hda1 mounted on /mnt/hda1 as ro ( mount ).

                Vibhor Kumar Agarwal

                vibhor_agarwalin

                  Topic Starter


                  Adviser

                  Re: Mounting a filesystem as rw
                  « Reply #13 on: July 24, 2006, 05:19:04 AM »
                  Made a thread is Slax forum also.  ;D
                  Vibhor Kumar Agarwal

                  Rob Pomeroy



                    Prodigy

                  • Systems Architect
                  • Thanked: 124
                    • Me
                  • Experience: Expert
                  • OS: Other
                  Re: Mounting a filesystem as rw
                  « Reply #14 on: July 24, 2006, 05:47:18 AM »
                  Quote
                  /dev/hda1 mounted on /mnt/hda1 as ro ( mount ).
                  Is that a typo?  If not, you'd need to edit /etc/fstab and change the ro to rw.
                  Only able to visit the forums sporadically, sorry.

                  Geek & Dummy - honest news, reviews and howtos

                  vibhor_agarwalin

                    Topic Starter


                    Adviser

                    Re: Mounting a filesystem as rw
                    « Reply #15 on: July 24, 2006, 06:03:11 AM »
                    I have given you the default entry.

                    When i remount with -o rw then it shows rw.
                    Vibhor Kumar Agarwal

                    panboy



                      Adviser

                    • Its all just a twisted game of cat and mouse
                    • Thanked: 4
                      Re: Mounting a file system as rw
                      « Reply #16 on: July 24, 2006, 09:37:42 AM »
                      Is the Drive NTFS ? , i think many Versions of Linux wont write to NTFS
                      Wields The Mighty Hammer of Computer Justice

                      SilentAssasin64



                        Apprentice

                        Thanked: 5
                        • Yes
                        • Yes
                      • Computer: Specs
                      • Experience: Experienced
                      • OS: Linux variant
                      Re: Mounting a file system as rw
                      « Reply #17 on: July 24, 2006, 12:32:02 PM »
                      Quote
                      Is the Drive NTFS ? , i think many Versions of Linux wont write to NTFS

                      That's what I was going to ask.  If the drives are formatted in NTFS then you cannot mount them in RW, only RO.  If they are in FAT then you can RW them.
                      Back In The Game

                      vibhor_agarwalin

                        Topic Starter


                        Adviser

                        Re: Mounting a filesystem as rw
                        « Reply #18 on: July 24, 2006, 11:06:08 PM »
                        Yup,

                        Its a Windows drive so NTFS.  :P

                        But why can't it write to a NTFS partition.  :-?
                        Vibhor Kumar Agarwal

                        Rob Pomeroy



                          Prodigy

                        • Systems Architect
                        • Thanked: 124
                          • Me
                        • Experience: Expert
                        • OS: Other
                        Re: Mounting a filesystem as rw
                        « Reply #19 on: July 25, 2006, 02:40:49 AM »
                        I presume you mean it's a Windows 2000 or XP drive.

                        NTFS support for Linux is just getting beyond the experimental stage.  Check out the >Linux-NTFS project< if read-write access is important to you.
                        Only able to visit the forums sporadically, sorry.

                        Geek & Dummy - honest news, reviews and howtos

                        vibhor_agarwalin

                          Topic Starter


                          Adviser

                          Re: Mounting a filesystem as rw
                          « Reply #20 on: July 25, 2006, 02:47:52 AM »
                          To be precise Windows XP.

                          I just wanted to play around and whatever i do, store it somewhere.
                          That's all.

                          I didn't thought it would be so complex.
                          I am sure there should be an easy way out.
                          Vibhor Kumar Agarwal

                          Rob Pomeroy



                            Prodigy

                          • Systems Architect
                          • Thanked: 124
                            • Me
                          • Experience: Expert
                          • OS: Other
                          Re: Mounting a filesystem as rw
                          « Reply #21 on: July 25, 2006, 03:02:41 AM »
                          Quote
                          I am sure there should be an easy way out.
                          Well the way things usually go, once the Linux-NTFS code comes out of beta, moves will be afoot to get it integrated into the kernel.  So give it time.  In the meantime, you can try it out anyway.
                          Only able to visit the forums sporadically, sorry.

                          Geek & Dummy - honest news, reviews and howtos

                          vibhor_agarwalin

                            Topic Starter


                            Adviser

                            Re: Mounting a filesystem as rw
                            « Reply #22 on: July 25, 2006, 03:12:58 AM »
                            Was that a Booster to go ahead or indication to wait.  :P
                            Vibhor Kumar Agarwal

                            vibhor_agarwalin

                              Topic Starter


                              Adviser

                              Re: Mounting a filesystem as rw
                              « Reply #23 on: July 25, 2006, 03:14:00 AM »
                              By the way is this thing possible via other unix flavours like Solaris.

                              Its also available on x86 architecture but not bootable via a CD though.  8-)
                              Vibhor Kumar Agarwal

                              Rob Pomeroy



                                Prodigy

                              • Systems Architect
                              • Thanked: 124
                                • Me
                              • Experience: Expert
                              • OS: Other
                              Re: Mounting a filesystem as rw
                              « Reply #24 on: July 25, 2006, 03:16:08 AM »
                              I would go ahead - why not look for a Linux distro (e.g. >Ubuntu< that includes Linux-NTFS as a package?
                              « Last Edit: July 25, 2006, 03:17:14 AM by robpomeroy »
                              Only able to visit the forums sporadically, sorry.

                              Geek & Dummy - honest news, reviews and howtos

                              vibhor_agarwalin

                                Topic Starter


                                Adviser

                                Re: Mounting a filesystem as rw
                                « Reply #25 on: July 25, 2006, 03:49:43 AM »
                                Great,

                                Any idea about the other Unix flavours.
                                Vibhor Kumar Agarwal

                                Rob Pomeroy



                                  Prodigy

                                • Systems Architect
                                • Thanked: 124
                                  • Me
                                • Experience: Expert
                                • OS: Other
                                Re: Mounting a filesystem as rw
                                « Reply #26 on: July 25, 2006, 04:23:06 AM »
                                Sorry - I missed your question before.  The answer to your question is fundamentally, yes.  The source code from the Linux-NTFS project may for example compile and run on Solaris.  Whether significant changes would be necessary to the code I don't know - you could ask the project authors.

                                In any event, there are always alternative solutions to this kind of problem.  Most server OSes "in the real world" should not be coexisting with other OSes as multi-boot systems.  You would normally build separate systems and then connect them via NFS, FTP, Samba, etc.
                                Only able to visit the forums sporadically, sorry.

                                Geek & Dummy - honest news, reviews and howtos

                                vibhor_agarwalin

                                  Topic Starter


                                  Adviser

                                  Re: Mounting a filesystem as rw
                                  « Reply #27 on: July 25, 2006, 05:05:44 AM »
                                  I thought other flavours on Unix must be using diff. file systems.
                                  May be their interaction with NTFS might be inbuilt from starting or a bit earlier.
                                  Vibhor Kumar Agarwal