Read Only Home Partition (file system permission) - after installation of 18.2

Forum rules
Before you post please read this
User avatar
Gibbo
Level 1
Level 1
Posts: 15
Joined: Wed Mar 23, 2016 6:41 am
Location: Eternal Rome

Read Only Home Partition (file system permission) - after installation of 18.2

Postby Gibbo » Fri Aug 11, 2017 2:31 pm

Hi everybody cheers from Rome, :D

I've installed Mint 18.2 Mate on a clean Ssd in an Ext4 partition (got other partitions on this hd),
during installation as usual, i set the /home directory to my previous Hd with data (/dev/sda3 750Gb Hd which got the /home before),
set it to Ext4 and with the Formatting flag, Unchecked. (could be the fact of setting it again in Ext4? one could not do any else in that option)
all went fine but when the Os opened my Desktop and so the Home partition, were not writeable, so R.O.
(this problem is just in SDA3 not in the other

So the DE is just showing the desktop file, all just Read Only, actually i can't open them, and so the files in Home Directory.
The DE can't configure some of its files in the Home and so on.
I got not the Desktop bar too, so it's difficult to open app, i'm writing from another Pc so i cant post easily results from input code.
How this could have happened? And why?

I can access to the Recovery Menu from Grub, what's the command to set me (dario it's the username) as owner of sda3 file-system?
Thanks Guys :wink:

User avatar
austin.texas
Level 20
Level 20
Posts: 11626
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Read Only Home Partition (file system permission) - after installation of 18.2

Postby austin.texas » Fri Aug 11, 2017 3:30 pm

Did you use the same user name in the new installation as in the previous installation?
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2017

User avatar
Gibbo
Level 1
Level 1
Posts: 15
Joined: Wed Mar 23, 2016 6:41 am
Location: Eternal Rome

Re: Read Only Home Partition (file system permission) - after installation of 18.2

Postby Gibbo » Sun Aug 13, 2017 5:08 am

Hi,
Yes i used the same username and the same pc name.

User avatar
catweazel
Level 10
Level 10
Posts: 3101
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Read Only Home Partition (file system permission) - after installation of 18.2

Postby catweazel » Sun Aug 13, 2017 5:18 am

Gibbo wrote:Home partition, were not writeable, so R.O.

You're going to need to drop to a terminal. Post the contents of /etc/fstab, and the output of this command:

Code: Select all

sudo blkid


Your fstab contains a command that sets the file system read only if there is an error. We need to see what's in fstab and what partitions you have.
Mint Donor #6036
If your problem is fixed, please mark your thread as [SOLVED] by editing the title of the first message in the thread.

User avatar
Gibbo
Level 1
Level 1
Posts: 15
Joined: Wed Mar 23, 2016 6:41 am
Location: Eternal Rome

Re: Read Only Home Partition (file system permission) - after installation of 18.2

Postby Gibbo » Sun Aug 13, 2017 5:55 am

Ok, thanks, it's not easy to post attaches, the DE is not usable, and i cant use browsers too.
So i have to take photos...

btw luckily i can use terminal

It's me or the RO fs is in sdc? that's the ssd with Mint, but the /home it's on sda3 :?
Other thing i noticed is that the Pc name i think i changed the first letter with the same btw Capital, could e that? (btw i'm not sure it changed)


.
Attachments
IMG_20170813_113219.jpg
blkid
IMG_20170813_114155.jpg
fstab

User avatar
catweazel
Level 10
Level 10
Posts: 3101
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Read Only Home Partition (file system permission) - after installation of 18.2

Postby catweazel » Sun Aug 13, 2017 6:21 am

It looks like a reinstall where you have existing files on sda3. Do you have important files there?

I think it's a permissions issue so you need to chown the mount point:

Code: Select all

sudo chown <user> /media/<user>/home


As you've noted, you'll have to do it through the recovery entry in GRUB.
Mint Donor #6036
If your problem is fixed, please mark your thread as [SOLVED] by editing the title of the first message in the thread.

User avatar
Gibbo
Level 1
Level 1
Posts: 15
Joined: Wed Mar 23, 2016 6:41 am
Location: Eternal Rome

Re: Read Only Home Partition (file system permission) - after installation of 18.2

Postby Gibbo » Sun Aug 13, 2017 6:44 am

Yes on SDA3 i got the old /home, so i didn’t format it when i installed,(there is no a way to leave the FS extension as the old previuos one?)
got hundreds of GB of important Data there.
Does Chown change the owner of the entire FS?

Btw the command dont work:
"impossible to access. directory or media doesn't exist"
Last edited by Gibbo on Sun Aug 13, 2017 7:05 am, edited 2 times in total.

User avatar
catweazel
Level 10
Level 10
Posts: 3101
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Read Only Home Partition (file system permission) - after installation of 18.2

Postby catweazel » Sun Aug 13, 2017 6:52 am

No, in the command I've given you, chown will only change the owner of the mount folder.
Mint Donor #6036
If your problem is fixed, please mark your thread as [SOLVED] by editing the title of the first message in the thread.

User avatar
Gibbo
Level 1
Level 1
Posts: 15
Joined: Wed Mar 23, 2016 6:41 am
Location: Eternal Rome

Re: Read Only Home Partition (file system permission) - after installation of 18.2

Postby Gibbo » Sun Aug 13, 2017 6:56 am

So why don't change the entire FS permissions?
(btw i've Edited the post, that directory seems doesn't exist)

User avatar
austin.texas
Level 20
Level 20
Posts: 11626
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Read Only Home Partition (file system permission) - after installation of 18.2

Postby austin.texas » Sun Aug 13, 2017 9:50 am

Boot in normal mode (not Recovery).
Press Ctrl+Alt+F2
login in as dario
Enter these commands:

Code: Select all

sudo umount /dev/sda3

Code: Select all

sudo mount /dev/sda3 /home

Code: Select all

sudo chown dario:dario /home/dario

Start recording your terminal output to a text file named "terminal.txt" using the script program.
All terminal output, and keyboard input, will be recorded in the text file. Try to avoid the Backspace and DEL keys, because those are recorded also, and will make the text file messy and harder to read. (Type carefully.)

Code: Select all

script terminal.txt

Code: Select all

ls -la /home

Code: Select all

ls -la /home/dario

After running your commands, press ctrl-d to end the script function.
Install pastebinit:

Code: Select all

sudo apt-get install pastebinit

Post the contents of terminal.txt to the pastebin with the command:

Code: Select all

pastebinit terminal.txt

Post the resulting url link here to the forum.
Then shutdown:

Code: Select all

sudo shutdown -h now
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2017

User avatar
Gibbo
Level 1
Level 1
Posts: 15
Joined: Wed Mar 23, 2016 6:41 am
Location: Eternal Rome

Re: Read Only Home Partition (file system permission) - after installation of 18.2

Postby Gibbo » Sun Aug 13, 2017 10:10 am

At first command says

Code: Select all

Target is busy


And then (but also before the command, i think is the RO problem with Home) a lot of lines continuing to add:
all are like these with different sectors

Code: Select all

blk_update_request : I/O error, dev sda, sector *********

User avatar
austin.texas
Level 20
Level 20
Posts: 11626
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Read Only Home Partition (file system permission) - after installation of 18.2

Postby austin.texas » Sun Aug 13, 2017 10:20 am

An I/O error could be a hardware problem. Check the cable connections to the hard drive. Replace the SATA cable, if possible.
Also, boot to Recovery mode and chose
fsck "Check all file systems"
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2017

User avatar
Gibbo
Level 1
Level 1
Posts: 15
Joined: Wed Mar 23, 2016 6:41 am
Location: Eternal Rome

Re: Read Only Home Partition (file system permission) - after installation of 18.2

Postby Gibbo » Sun Aug 13, 2017 10:54 am

Cable replaced, Sata port changed.
Fsck done, all seems clean, (it did on Sda and Sdc)

I think the i/o errors are due to the RO FS,
imo the "Target is busy" it's for the same issue


These are some of the error in terminal without X (ctrl+alt+f2)
Attachments
IMG_20170813_155934.jpg
IMG_20170813_163655.jpg

User avatar
austin.texas
Level 20
Level 20
Posts: 11626
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Read Only Home Partition (file system permission) - after installation of 18.2

Postby austin.texas » Sun Aug 13, 2017 11:46 am

Gibbo wrote:I think the i/o errors are due to the RO FS,
What makes you think it is RO ?
Does the command mount report RO ?
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2017

User avatar
Gibbo
Level 1
Level 1
Posts: 15
Joined: Wed Mar 23, 2016 6:41 am
Location: Eternal Rome

Re: Read Only Home Partition (file system permission) - after installation of 18.2

Postby Gibbo » Sun Aug 13, 2017 12:23 pm

i'm not sure, i'm stuck at first command You kindly gave,
so what can i do now? try those in recovery mode?

User avatar
austin.texas
Level 20
Level 20
Posts: 11626
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Read Only Home Partition (file system permission) - after installation of 18.2

Postby austin.texas » Sun Aug 13, 2017 12:45 pm

I don't really think it is a RO or ownership problem. I think it is a hardware or damaged filesystem problem.
Boot your live Mint DVD or USB.
You can install and run smartmontools:

Code: Select all

sudo apt-get install smartmontools

Run the test:

Code: Select all

sudo smartctl -a /dev/sda

To perform a short test:

Code: Select all

smartctl -t short /dev/sda

then:

Code: Select all

smartctl -l selftest /dev/sda
for the results.
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2017

User avatar
Gibbo
Level 1
Level 1
Posts: 15
Joined: Wed Mar 23, 2016 6:41 am
Location: Eternal Rome

Re: Read Only Home Partition (file system permission) - after installation of 18.2

Postby Gibbo » Sun Aug 13, 2017 1:10 pm

Thanks, i appreciate!
Done the short one, may i do the normal? btw:

Code: Select all

Short offline test .    Status: completed without error     Lifetime: 5600 hours


And Smart was fine before ad now...

User avatar
Gibbo
Level 1
Level 1
Posts: 15
Joined: Wed Mar 23, 2016 6:41 am
Location: Eternal Rome

Re: Read Only Home Partition (file system permission) - after installation of 18.2

Postby Gibbo » Wed Aug 16, 2017 5:34 am

i did the Complete Test on Sda and Sda3, all fine with No Errors

Austin, may i try to do that procedure umounting the Sda? (instead of Sda3).

User avatar
austin.texas
Level 20
Level 20
Posts: 11626
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Read Only Home Partition (file system permission) - after installation of 18.2

Postby austin.texas » Wed Aug 16, 2017 8:33 am

Gibbo wrote:may i try to do that procedure umounting the Sda? (instead of Sda3).
sda is not a partition, therefore it is not mounted.
I don't know why you are getting those errors when trying to mount sda3. The only suggestion I can make is to save off all your data to a backup location, and rebuild the partitions on sda - starting with a new partition table. Someone else might have a better idea...
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2017

User avatar
Gibbo
Level 1
Level 1
Posts: 15
Joined: Wed Mar 23, 2016 6:41 am
Location: Eternal Rome

EDIT

Postby Gibbo » Thu Aug 17, 2017 4:41 am

Gibbo wrote:At first command says

Code: Select all

Target is busy


i had to write this well, the complete raw was: "/home target is busy" , so it's due to the /home directory mounted that it can't unmount?
must we umount /home first and then Sda3?
However sometimes the I/O errors on the disk when Terminal (F2) is open, don't occur, so i reached to write all the commands.

btw i tried your procedure, the second command gets:

Code: Select all

 /dev/sda3 is already mounted on /home

the third command went fine but seems there is No effect on the file-system and the Home got the same problems.

The script was ok, here is the link: https://pastebin.com/dYQH6LA4

I think we are near to the solution!


Return to “Mounting Partitions”

Who is online

Users browsing this forum: No registered users and 1 guest