my file system went to read only mode, how to recover?

Asked by Neha Chaudhary

I am using ubuntu14.04 for five years. Recently, due to an improper shutdown, my system went to read-only mode. I am not able to do anything in that system, even internet is also not working. I tried to fsck but it didn't work for me. I also tried fsck in recovery mode and using a live USB. Nothing is working. I even tried to grub repair thinking that it may write my filesystem in rw mode but now my system won't even boot. I want my system in read-write mode. What should I do?

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Support for Ubuntu 14.04 has already ended, except for paid extended maintenance for server systems. https://wiki.ubuntu.com/Releases

In my opinion the only reasonable action is booting into a live system, creating backup copies of all files that are worth being saved, and then do a clean new installation with a supported Ubuntu release.

Revision history for this message
Neha Chaudhary (jessica3188) said :
#2

Thank you for your response.

I want to save data on that system but I can't. I tried live USB and tried
to backup the data but I can't copy that data because of ro mode.

On Thu 29 Aug, 2019, 12:10 AM Manfred Hampl, <
<email address hidden>> wrote:

> [image: Boxbe] <https://www.boxbe.com/overview>
> <email address hidden> is not on your Guest List
> <https://www.boxbe.com/approved-list?tc_serial=50565420156&tc_rand=872535826&utm_source=stf&utm_medium=email&utm_campaign=ANNO_MWTP&utm_content=001&key=%2F3LyXwY0FBYqLApg%2FL1BvsNFeWd73hFE97E2X4eOQZ4%3D&token=fET2MmEbYVp5E2ZXXPW3B5g67L94rbHZvblBik6o%2FcxcX9bWK4PQpPMLi%2FE76dQP>
> | Approve sender
> <https://www.boxbe.com/anno?tc_serial=50565420156&tc_rand=872535826&utm_source=stf&utm_medium=email&utm_campaign=ANNO_MWTP&utm_content=001&key=%2F3LyXwY0FBYqLApg%2FL1BvsNFeWd73hFE97E2X4eOQZ4%3D&token=fET2MmEbYVp5E2ZXXPW3B5g67L94rbHZvblBik6o%2FcxcX9bWK4PQpPMLi%2FE76dQP>
> | Approve domain
> <https://www.boxbe.com/anno?tc_serial=50565420156&tc_rand=872535826&utm_source=stf&utm_medium=email&utm_campaign=ANNO_MWTP&utm_content=001&dom&key=%2F3LyXwY0FBYqLApg%2FL1BvsNFeWd73hFE97E2X4eOQZ4%3D&token=fET2MmEbYVp5E2ZXXPW3B5g67L94rbHZvblBik6o%2FcxcX9bWK4PQpPMLi%2FE76dQP>
> Your question #683483 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/683483
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> Support for Ubuntu 14.04 has already ended, except for paid extended
> maintenance for server systems. https://wiki.ubuntu.com/Releases
>
> In my opinion the only reasonable action is booting into a live system,
> creating backup copies of all files that are worth being saved, and then
> do a clean new installation with a supported Ubuntu release.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/683483/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/683483
>
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

I suggest that you use two USB sticks. One with the installer to boot in life mode (as you already did), an then adding a second one for storing the data.

Revision history for this message
Neha Chaudhary (jessica3188) said :
#4

I cant open any folder in that drive. So, I am not able to transfer any
files from the system.
Best Regards,

Neha
Research Scholar,
Centre for Computational Biology and Bioinformatics,
School of Life Sciences,
Central University of Himachal Pradesh,

On Thu, Aug 29, 2019 at 2:08 PM Manfred Hampl <
<email address hidden>> wrote:

> Your question #683483 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/683483
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> I suggest that you use two USB sticks. One with the installer to boot in
> life mode (as you already did), an then adding a second one for storing
> the data.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/683483/+confirm?answer_id=2
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/683483
>
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

"I cant open any folder in that drive" - in which one?

Revision history for this message
Neha Chaudhary (jessica3188) said :
#6

The drive in which Ubuntu is installed and went to read only mode. I have
dual boot.

On Thu 29 Aug, 2019, 3:43 PM Manfred Hampl, <
<email address hidden>> wrote:

> Your question #683483 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/683483
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> "I cant open any folder in that drive" - in which one?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/683483
>
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

If you boot from an USB stick in the "try Ubuntu without installing" mode and then issue the command

sudo fdisk -l

what output do you receive?

Revision history for this message
Neha Chaudhary (jessica3188) said :
#8

Hi,

I am attaching the snapshot of the output.

On Thu 29 Aug, 2019, 5:33 PM Manfred Hampl, <
<email address hidden>> wrote:

> Your question #683483 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/683483
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> If you boot from an USB stick in the "try Ubuntu without installing"
> mode and then issue the command
>
> sudo fdisk -l
>
> what output do you receive?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/683483
>
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

Attaching files does not work in Launchpad questions.
The output of "fdisk -l" is plain text, so please copy/paste it as text.

Revision history for this message
Neha Chaudhary (jessica3188) said :
#10

ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 31.4 GB, 31406948352 bytes
255 heads, 63 sectors/track, 3818 cylinders, total 61341696 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot Start End Blocks Id System
/dev/sda1 * 32 61341695 30670832 7 HPFS/NTFS/exFAT

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x8503f7c8

   Device Boot Start End Blocks Id System
/dev/sdb1 2048 1640447 819200 7 HPFS/NTFS/exFAT
/dev/sdb2 * 1640448 1932251135 965305344 7 HPFS/NTFS/exFAT
/dev/sdb3 1932253184 1953521663 10634240 7 HPFS/NTFS/exFAT

Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x24e6b95e

   Device Boot Start End Blocks Id System
/dev/sdc1 2048 1953521663 976759808 7 HPFS/NTFS/exFAT

Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x24e6b951

   Device Boot Start End Blocks Id System
/dev/sdd1 2048 396275215 198136584 7 HPFS/NTFS/exFAT
/dev/sdd2 396275710 1953523711 778624001 5 Extended
Partition 2 does not start on physical sector boundary.
/dev/sdd5 396275712 1819455487 711589888 83 Linux
/dev/sdd6 1819457536 1953523711 67033088 82 Linux swap / Solaris

Disk /dev/sde: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x24e6b950

   Device Boot Start End Blocks Id System
/dev/sde1 2048 1953520449 976759201 7 HPFS/NTFS/exFAT

Best Regards,

Neha

On Mon, Sep 9, 2019 at 12:07 PM Manfred Hampl <
<email address hidden>> wrote:

> Your question #683483 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/683483
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> Attaching files does not work in Launchpad questions.
> The output of "fdisk -l" is plain text, so please copy/paste it as text.
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/683483
>
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#11

I assume that your Ubuntu file system is /dev/sdd5 (~700 MB)
Is this correct?

What happens if you try mounting /dev/sdd5 to an empty directory?

Revision history for this message
Neha Chaudhary (jessica3188) said :
#12

You are right, it is sdd5.

Can you please tell me how to mount /dev/sdd5 to an empty directory???

Best Regards,

Neha

On Mon, Sep 9, 2019 at 1:08 PM Manfred Hampl <
<email address hidden>> wrote:

> Your question #683483 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/683483
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> I assume that your Ubuntu file system is /dev/sdd5 (~700 MB)
> Is this correct?
>
> What happens if you try mounting /dev/sdd5 to an empty directory?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/683483
>
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#13

Try the following commands and report the results:

sudo mkdir -p /media/test
sudo chmod 777 /media/test
sudo mount /dev/sdd5 /media/test
ls -la /media/test

Revision history for this message
Neha Chaudhary (jessica3188) said :
#14

ubuntu@ubuntu:~$ ls -la /media/test/
total 188
drwxr-xr-x 24 root root 4096 Aug 24 09:35 .
drwxr-xr-x 1 root root 120 Sep 9 13:44 ..
drwxr-xr-x 2 root root 4096 Oct 6 2017 bin
drwxr-xr-x 3 root root 4096 Oct 6 2017 boot
drwxrwxr-x 2 root root 4096 Feb 20 2015 cdrom
drwxr-xr-x 4 root root 4096 Apr 17 2014 dev
drwxr-xr-x 155 root root 12288 Sep 9 13:37 etc
drwxr-xr-x 3 root root 4096 Feb 20 2015 home
lrwxrwxrwx 1 root root 33 Apr 8 2016 initrd.img ->
boot/initrd.img-3.13.0-85-generic
lrwxrwxrwx 1 root root 33 Dec 30 2015 initrd.img.old ->
boot/initrd.img-3.13.0-74-generic
drwxr-xr-x 24 root root 4096 Oct 6 2017 lib
drwxr-xr-x 2 root root 4096 Oct 6 2017 lib64
drwx------ 2 root root 16384 Feb 20 2015 lost+found
drwxr-xr-x 3 root root 4096 Mar 28 06:36 media
drwxr-xr-x 2 root root 4096 Apr 10 2014 mnt
drwxr-xr-x 10 root root 4096 Apr 26 2018 opt
drwxr-xr-x 2 root root 4096 Apr 10 2014 proc
drwx------ 14 1000 1000 4096 May 17 2018 root
drwxr-xr-x 12 root root 4096 Apr 17 2014 run
drwxr-xr-x 2 root root 12288 Dec 31 2018 sbin
drwxr-xr-x 2 root root 4096 Apr 17 2014 srv
drwxr-xr-x 2 root root 4096 Mar 13 2014 sys
drwxr-xr-x 2 root root 4096 Jul 30 2018 test
drwxrwxrwt 6 root root 69632 Sep 9 13:37 tmp
drwxr-xr-x 11 root root 4096 Mar 26 2015 usr
drwxr-xr-x 13 root root 4096 Apr 17 2014 var
lrwxrwxrwx 1 root root 30 Apr 8 2016 vmlinuz ->
boot/vmlinuz-3.13.0-85-generic
lrwxrwxrwx 1 root root 30 Dec 30 2015 vmlinuz.old ->
boot/vmlinuz-3.13.0-74-generic

Best Regards,

Neha

On Mon, Sep 9, 2019 at 1:27 PM Manfred Hampl <
<email address hidden>> wrote:

> Your question #683483 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/683483
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> Try the following commands and report the results:
>
> sudo mkdir -p /media/test
> sudo chmod 777 /media/test
> sudo mount /dev/sdd5 /media/test
> ls -la /media/test
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/683483/+confirm?answer_id=12
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/683483
>
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#15

This seems to now show the contents of your Ubuntu 14.04 installation.
You should be able to create backup copies of all your files if you want.

Revision history for this message
Neha Chaudhary (jessica3188) said :
#16

I can't. I still can't access the folder content I wanted. Permission
denied.

On Mon 9 Sep, 2019, 7:22 PM Manfred Hampl, <
<email address hidden>> wrote:

> Your question #683483 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/683483
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> This seems to now show the contents of your Ubuntu 14.04 installation.
> You should be able to create backup copies of all your files if you want.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/683483/+confirm?answer_id=14
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/683483
>
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#17

You will need administrative rights.
Open a terminal window and issue the command

sudo nautilus

This will open a file explorer window with unlimited access rights. Use caution.

Revision history for this message
Neha Chaudhary (jessica3188) said :
#18

Ok. Now how to copy this data to my hard drive?

Best Regards,

Neha

On Mon, Sep 9, 2019 at 3:38 PM Manfred Hampl <
<email address hidden>> wrote:

> Your question #683483 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/683483
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> You will need administrative rights.
> Open a terminal window and issue the command
>
> sudo nautilus
>
> This will open a file explorer window with unlimited access rights. Use
> caution.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/683483/+confirm?answer_id=16
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/683483
>
> You received this question notification because you asked the question.
>

Revision history for this message
Neha Chaudhary (jessica3188) said :
#19

It worked. Now I am able to backup my data.

Thank you so much.

Can you please help me with one more thing, I boot-repaired my system using
live USB but now ubuntu is not booting. When I am restarting after
boot-repair windows is booting by default. I tried boot-repair multiple
times after that but boot manager is not loading. Any suggestions?

Best Regards,

Neha

On Tue, Sep 10, 2019 at 5:35 AM neha chaudhary <email address hidden>
wrote:

> Ok. Now how to copy this data to my hard drive?
>
> Best Regards,
>
> Neha
>
>
>
>
>
>
>
> On Mon, Sep 9, 2019 at 3:38 PM Manfred Hampl <
> <email address hidden>> wrote:
>
>> Your question #683483 on Ubuntu changed:
>> https://answers.launchpad.net/ubuntu/+question/683483
>>
>> Status: Open => Answered
>>
>> Manfred Hampl proposed the following answer:
>> You will need administrative rights.
>> Open a terminal window and issue the command
>>
>> sudo nautilus
>>
>> This will open a file explorer window with unlimited access rights. Use
>> caution.
>>
>> --
>> If this answers your question, please go to the following page to let us
>> know that it is solved:
>>
>> https://answers.launchpad.net/ubuntu/+question/683483/+confirm?answer_id=16
>>
>> If you still need help, you can reply to this email or go to the
>> following page to enter your feedback:
>> https://answers.launchpad.net/ubuntu/+question/683483
>>
>> You received this question notification because you asked the question.
>>
>

Revision history for this message
Neha Chaudhary (jessica3188) said :
#20

As I have dual boot in my workstation. Now Boot manager is not loading. I
am using live USB to access the data on Ubuntu.

Best Regards,

Neha

On Tue, Sep 10, 2019 at 5:38 AM Neha Chaudhary <
<email address hidden>> wrote:

> Your question #683483 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/683483
>
> You gave more information on the question:
> It worked. Now I am able to backup my data.
>
> Thank you so much.
>
> Can you please help me with one more thing, I boot-repaired my system using
> live USB but now ubuntu is not booting. When I am restarting after
> boot-repair windows is booting by default. I tried boot-repair multiple
> times after that but boot manager is not loading. Any suggestions?
>
>
> Best Regards,
>
> Neha
>
>
>
>
> On Tue, Sep 10, 2019 at 5:35 AM neha chaudhary <<email address hidden>
> >
> wrote:
>
> > Ok. Now how to copy this data to my hard drive?
> >
> > Best Regards,
> >
> > Neha
> >
> >
> >
> >
> >
> >
> >
> > On Mon, Sep 9, 2019 at 3:38 PM Manfred Hampl <
> > <email address hidden>> wrote:
> >
> >> Your question #683483 on Ubuntu changed:
> >> https://answers.launchpad.net/ubuntu/+question/683483
> >>
> >> Status: Open => Answered
> >>
> >> Manfred Hampl proposed the following answer:
> >> You will need administrative rights.
> >> Open a terminal window and issue the command
> >>
> >> sudo nautilus
> >>
> >> This will open a file explorer window with unlimited access rights. Use
> >> caution.
> >>
> >> --
> >> If this answers your question, please go to the following page to let us
> >> know that it is solved:
> >>
> >>
> https://answers.launchpad.net/ubuntu/+question/683483/+confirm?answer_id=16
> >>
> >> If you still need help, you can reply to this email or go to the
> >> following page to enter your feedback:
> >> https://answers.launchpad.net/ubuntu/+question/683483
> >>
> >> You received this question notification because you asked the question.
> >>
> >
>
> --
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#21

For the boot problem:

I suggest that you run the boot-info script https://help.ubuntu.com/community/Boot-Info and create a report on pastebin.

Revision history for this message
Neha Chaudhary (jessica3188) said :
#22

Thank you for your help!
So, as my system is in read-only mode, it cant be corrected??? Is there any
way I can use and keep working on my system???

Best Regards,

Neha

On Tue, Sep 10, 2019 at 12:23 PM Manfred Hampl <
<email address hidden>> wrote:

> Your question #683483 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/683483
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> For the boot problem:
>
> I suggest that you run the boot-info script
> https://help.ubuntu.com/community/Boot-Info and create a report on
> pastebin.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/683483/+confirm?answer_id=20
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/683483
>
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#23

To be able to give hints how to repair the system, it is necessary to know why the system is in read-only mode.

Please provide the output of boot-info by booting a live system in the "try Ubuntu without installing" mode, installing boot-info, and running it with uploading the results to pastebin.
https://help.ubuntu.com/community/Boot-Info

Revision history for this message
Launchpad Janitor (janitor) said :
#24

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.