The Windows hard disk (sda4) cannot be used

Post here if you are a new Porteus member and you're looking for some help.
roro
Black ninja
Black ninja
Posts: 65
Joined: 04 Aug 2022, 08:41
Distribution: Porteus 5.0 XFCE

The Windows hard disk (sda4) cannot be used

Post#1 by roro » 21 Sep 2022, 17:43

Hi users,
I use Porteus from the USB device and everything works very well.
There is a lot of free space on the hard drive /mnt/sda4 : 480 GiB left (676 GiB total)
But I can't use the storage space.
I cannot create folders and files.
guest@porteus:/mnt/sda4$ mkdir folder
mkdir: cannot create directory ‘folder’: Read-only file system

Read only ?
I don't understand that, because under Windows I can use this Hard disk space normally.
What can I do?
Many Thanks
Note: Windows 8.1 is installed

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

The Windows hard disk (sda4) cannot be used

Post#2 by Rava » 21 Sep 2022, 18:00

The most obvious thing is that the partition is marked by Windows as "dirty" and therefore Porteus only opens it in read-only mode.

There is a certain way to tell Windows to do a chkdsk of that partition at the next boot. Since I not use Windows for some years now, I cannot recall how you get your Windows to do that certain check. It is not the regular one you do while you run W. That check can only be done during bootup when W. itself is not using that partition. It only works when W schedules that chkdsk for the next boot. I found about it on some generic Windows sites or on forums specialized in Windows, but I am sure one of our fellow Porteosians who still uses W. will know what I am talking about and is able to tell you how you get your W. to do that certain chkdsk at bootup.
Cheers!
Yours Rava

User avatar
babam
Warlord
Warlord
Posts: 526
Joined: 16 Nov 2016, 10:30
Distribution: Porteus 5.0rc3 Xfce K6.1.1
Location: Rainy city

The Windows hard disk (sda4) cannot be used

Post#3 by babam » 21 Sep 2022, 18:40

Turn off Fast Startup in Windows
Sorry, my English is bad.

User avatar
Ed_P
Contributor
Contributor
Posts: 8315
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

The Windows hard disk (sda4) cannot be used

Post#4 by Ed_P » 21 Sep 2022, 20:44

roro wrote:
21 Sep 2022, 17:43
mkdir: cannot create directory ‘folder’: Read-only file system
I've experienced that also. :crazy:

Reboot to Windows, open a Command Prompt with Admin Rights. That requires you Right click the Command Prompt icon and select Run as Admin. Then enter

Code: Select all

chkdsk /f X:
where X is the drive letter Windows has assigned to the sda4 drive. If the drive is active in Windows you will get a prompt to unmount it or to run the chkdsk command the next time you reboot.

I've never had that happen before and it only happened that 1 time if I recall. :hmmm:
Ed

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

The Windows hard disk (sda4) cannot be used

Post#5 by Rava » 21 Sep 2022, 20:47

Ed_P wrote:
21 Sep 2022, 20:44
Reboot to Windows, open a Command Prompt with Admin Rights. That requires you Right click the Command Prompt icon and select Run as Admin. Then enter

Code: Select all

chkdsk /f X:
where X is the drive letter Windows has assigned to the sda4 drive. If the drive is active in Windows you will get a prompt to unmount it or to run the chkdsk command the next time you reboot.
As far as I recall, Ed_P hits it spot on, that is what will solve your issue.

Please report back here if that did indeed help.
Cheers!
Yours Rava

burdi01
Shogun
Shogun
Posts: 200
Joined: 18 Aug 2013, 12:09
Distribution: Slackware PartedMagic Xubuntu
Location: The Netherlands

The Windows hard disk (sda4) cannot be used

Post#6 by burdi01 » 22 Sep 2022, 08:58

babam wrote:
21 Sep 2022, 18:40
Turn off Fast Startup in Windows
and/OR do a cold start (not a reboot!) when leaving Windows for e.g. a Linux distribution -- Porteus, Slackware, Ubuntu, Fedora, Arch and all the others.
:D

roro
Black ninja
Black ninja
Posts: 65
Joined: 04 Aug 2022, 08:41
Distribution: Porteus 5.0 XFCE

The Windows hard disk (sda4) cannot be used

Post#7 by roro » 22 Sep 2022, 13:09

It did as Ed_P suggested
but it didn't work.
As before: read only

And now??

When I upgrade from Windows 8.1 to Windows 10, could this problem then be solved automatically?
Thanks

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

The Windows hard disk (sda4) cannot be used

Post#8 by Rava » 22 Sep 2022, 13:33

roro wrote:
22 Sep 2022, 13:09
It did as Ed_P suggested
but it didn't work.
Did you schedule a chkdsk at boottime, that means: it will happen in a graphics environment similar to the one you get when you install Windows, Windows itself is not loaded and Windows is able to chkdsk partitions that is otherwise not able to check.
Look what chkdsk in Windows gives you as info, there might be a parameter where you force Windows to do the check at next boot even when it tells you it could check the partition when it's running.

The most safe way to get rid of the issue is by doing a chkdsk at bootup. You have to schedule that chkdsk and you have to reboot Windows.

What did the chkdsk during boot report to you? Did it report any issues with the partition?
Cheers!
Yours Rava

User avatar
Ed_P
Contributor
Contributor
Posts: 8315
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

The Windows hard disk (sda4) cannot be used

Post#9 by Ed_P » 22 Sep 2022, 14:44

roro shut the pc down for a minute, then turn it back on and boot.
Ed

nanZor
Shogun
Shogun
Posts: 360
Joined: 09 Apr 2019, 03:27
Distribution: Porteus 5.01 x86-64 LXDE

The Windows hard disk (sda4) cannot be used

Post#10 by nanZor » 22 Sep 2022, 19:49

Heh, this is one reason why I just use Porteus as intended - from the USB drive itself. Save a lot of hair-pulling, even though there may be loads of empty space on the drive in Windows. :)

Sometimes this happens if your Windows machine shuts down after a power-save, or recovers from a hibernation state and is not truly shut down manually. Many weird ways.

One solution would be that if you need to transfer files, and the problem still exists, boot Windows, and pull your needed file(s) *from* the Porteus usb drive, rather than booting Porteus. This is assuming your thumbdrive is fat32, and not custom-partitioned with something Windows won't recognize, like an ext format...
That's a UNIX book - cool. -Garth

User avatar
Ed_P
Contributor
Contributor
Posts: 8315
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

The Windows hard disk (sda4) cannot be used

Post#11 by Ed_P » 22 Sep 2022, 20:44

nanZor wrote:
22 Sep 2022, 19:49
or recovers from a hibernation state and is not truly shut down manually.
I think this is how it happened to me.
Ed

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

The Windows hard disk (sda4) cannot be used

Post#12 by Rava » 23 Sep 2022, 02:59

nanZor wrote:
22 Sep 2022, 19:49
and not custom-partitioned with something Windows won't recognize, like an ext format...
There are programs that enable Windoofs to actually open and read/write to Linux partitions, I even used these back in my own W. days, but then stopped using these programs/drivers for ext[234] for W. - since I deemed it more safe when W. is kept stupid in accessing anything Linux-partition-related and just ignores all partitions it not knows by itself.
For the security of the data on my Linux partitions, because of such reasons like
nanZor wrote:
22 Sep 2022, 19:49
Windows machine shuts down after a power-save, or recovers from a hibernation state and is not truly shut down manually. Many weird ways.
Cheers!
Yours Rava

roro
Black ninja
Black ninja
Posts: 65
Joined: 04 Aug 2022, 08:41
Distribution: Porteus 5.0 XFCE

The Windows hard disk (sda4) cannot be used

Post#13 by roro » 23 Sep 2022, 09:08

Windows 8.1 was extremely slow on my notebook. The boot time was also catastrophic.
So now I've upgraded to Windows 10.
But Windows 10 is also very slow, programs start slowly.

After using Windows twice now, the problem is solved now.
I can now use sda4, read and write.
Many thanks for the help

User avatar
babam
Warlord
Warlord
Posts: 526
Joined: 16 Nov 2016, 10:30
Distribution: Porteus 5.0rc3 Xfce K6.1.1
Location: Rainy city

The Windows hard disk (sda4) cannot be used

Post#14 by babam » 23 Sep 2022, 09:46

Are you using HDD?
Sorry, my English is bad.

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

The Windows hard disk (sda4) cannot be used

Post#15 by Rava » 24 Sep 2022, 04:03

roro wrote:
23 Sep 2022, 09:08
Windows 8.1 was extremely slow on my notebook. The boot time was also catastrophic.
So now I've upgraded to Windows 10.
But Windows 10 is also very slow, programs start slowly.
I presume Porteus is pleasantly quick compared to W8.1 or W10?
What DE ("Desktop Environment", aka KDE, Mate, Openbox, XFCE or such) did you choose for Porteus?
Cheers!
Yours Rava

Post Reply