How can I change the state of a disk? [SOLVED]

Moderator: BarryK

Post Reply
User avatar
pp4mnklinux
Posts: 1315
Joined: Wed Aug 19, 2020 5:43 pm
Has thanked: 684 times
Been thanked: 330 times

How can I change the state of a disk? [SOLVED]

Post by pp4mnklinux »

Hello everybody:

Time ago I change this, so I used this disk, but after reinstalling, I can't use these disk (sda5, sdb1, sdc......) and I don't remember what I did.

Can you tell me what must I do to use disk sda5 as download place with chromium? (as you can see in this image, I can's select them - non root, I think)

Thanks a lot.

Attachments
mtnsda5.jpg
mtnsda5.jpg (44.99 KiB) Viewed 957 times
Last edited by pp4mnklinux on Sun Mar 09, 2025 4:47 pm, edited 1 time in total.
User avatar
BarryK
Posts: 2959
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 159 times
Been thanked: 819 times

Re: How can I change the state of a disk?

Post by BarryK »

Didn't you ask that question once before? Or was that someone else?

Chromium can only download into /files

Unless you give some other folder write privileges for user "chromium"

You can create a folder somewhere, then use the "chown" utility.

Like this:

Code: Select all

# chown chromium:chromium <folder name>

"-R" option if want recursion.

EDIT:
I didn't read your question properly, you are asking something else.

/dev/sda5, is it really mounted, on /mnt/sda5, and you can go there with rox?

User avatar
pp4mnklinux
Posts: 1315
Joined: Wed Aug 19, 2020 5:43 pm
Has thanked: 684 times
Been thanked: 330 times

Re: How can I change the state of a disk?

Post by pp4mnklinux »

Hi @BarryK :

I have configured to mount all my disk and partitions when I boot my computer.

All my browsers (FireFox, Slimjet, Chrome, Midori, Mercury) can download to disk sda5/1_Internet_Downloads.

Only Chromium can't see this folder and it is only working with the partition where EasyOs is installed.

So I can organice my downloads with all my browsers EXCEPT chromium.

I'll try to solve it, but any help will be thankfull.

Thanks.

Attachments
rox .jpg
rox .jpg (48.97 KiB) Viewed 918 times
rox .jpg
rox .jpg (48.97 KiB) Viewed 918 times
User avatar
BarryK
Posts: 2959
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 159 times
Been thanked: 819 times

Re: How can I change the state of a disk?

Post by BarryK »

I just tested, mounted a usb partition, and chromium sees it and can look into it, as expected.

Your problem might have something to do with how you have automatically mounted the partitions.
Unmount one of them, then mount it in the normal way, by clicking on the partition icon.
Then start chromium and see if it can see into the partition.

User avatar
pp4mnklinux
Posts: 1315
Joined: Wed Aug 19, 2020 5:43 pm
Has thanked: 684 times
Been thanked: 330 times

Re: How can I change the state of a disk?

Post by pp4mnklinux »

Hi, @BarryK :

I tested your solution, I tryed to record it to show you what I did, but I can't because my xvidrecorder is located at this drive so when I unmount it, video stop working.

I have this problem in easyos Daedalus (I will try in scarthgap) but I followed your instructions and this disk continue without chromium access.

Don't waste time looking for a solution, because It is not a real problem but...

Thanks a lot for your interest.

Have a nice weekend you all.

---- edited----

I use this method to automount partitions.- viewtopic.php?p=137463#p137463

Code: Select all

#this file called from rc.sysinit
#you can edit this file to mount the partitions you want, and then put it into
#etc/rc.d 
#When firewall is installed, will append lines to this file...

mkdir -p /mnt/sdb1; mount -t ntfs /dev/sdb1 /mnt/sdb1 #pmount
mkdir -p /mnt/sdc2; mount -t ntfs /dev/sdc2 /mnt/sdc2 #pmount
mkdir -p /mnt/sdc3; mount -t ntfs /dev/sdc3 /mnt/sdc3 #pmount
mkdir -p /mnt/sdc4; mount -t ntfs /dev/sdc4 /mnt/sdc4 #pmount
mkdir -p /mnt/sdc5; mount -t ntfs /dev/sdc5 /mnt/sdc5 #pmount
mkdir -p /mnt/sda3; mount -t ext4 /dev/sda3 /mnt/sda3 #pmount
mkdir -p /mnt/sda5; mount -t ntfs /dev/sda5 /mnt/sda5 #pmount

Edited.-

Scarthgap has the same problem but in this case, partitions (although mounted) don't appear.

Modified chromium and executed as --no-sandbox but it doesn't work

sakura ls /mnt indicates disk are mounted

I used sakura.... chromium --disable-gpu-sandbox --disable-seccomp-filter-sandbox but it continues without access

I installed a Chromium portable version, and It continued without access to these partitions.

---

... BUT when I did the same as you did, that is, I put a USB (sdh1) => it is recogniced, so... ¿?¿? (vid capture)

~

Attachments
Screenshot_2025-03-09_00-28-19.jpg
Screenshot_2025-03-09_00-28-19.jpg (66.43 KiB) Viewed 712 times
22.jpg
22.jpg (193.17 KiB) Viewed 735 times
sakura.jpg
sakura.jpg (38.13 KiB) Viewed 740 times
User avatar
BarryK
Posts: 2959
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 159 times
Been thanked: 819 times

Re: How can I change the state of a disk?

Post by BarryK »

Try not doing the automount from rc.sysinit.

Instead, put this script into /root/Startup:

Code: Select all

#!/bin/ash
for PF in sdb1:ntfs sdc2:ntfs sdc3:ntfs sdc4:ntfs sdc5:ntfs sda3:ext4 sda5:ntfs
do
 P="${PF/:*/}"
 F="${PF/*:/}"
 grep -q -F "/dev/${P} " /proc/mounts
 if [ $? -ne 0 ];then
  mkdir -p /mnt/$P
  mount -t $F /mnt/$P
  sleep 0.05
 fi
done
User avatar
pp4mnklinux
Posts: 1315
Joined: Wed Aug 19, 2020 5:43 pm
Has thanked: 684 times
Been thanked: 330 times

Re: How can I change the state of a disk?

Post by pp4mnklinux »

Thanks @BarryK for your help, but it doesn't work for me.

Don't worry at all, It is a minimum problem so please don't waste your valuable time with it.

Thanks a lot.

---- more info + capts---------

I created this file at startup folder (called it -automount_disks-) and cleaned the rc.sysinit.

I reboot and appeared errors about winx

I restore a backup and easyos_net working

----------------------------------------

Attachments
WhatsApp Image 2025-03-09 at 09.31.46.jpeg
WhatsApp Image 2025-03-09 at 09.31.46.jpeg (55.23 KiB) Viewed 657 times
WhatsApp Image 2025-03-09 at 09.31.47.jpeg
WhatsApp Image 2025-03-09 at 09.31.47.jpeg (168.08 KiB) Viewed 657 times
WhatsApp Image 2025-03-09 at 09.31.47 (1).jpeg
WhatsApp Image 2025-03-09 at 09.31.47 (1).jpeg (145.88 KiB) Viewed 657 times
Philh
Posts: 32
Joined: Sun Aug 16, 2020 1:50 pm
Been thanked: 8 times

Re: How can I change the state of a disk?

Post by Philh »

I think you have to change to chromium.bin to run as root so you can save to ntfs.
chromium.bin --no-sandbox

User avatar
pp4mnklinux
Posts: 1315
Joined: Wed Aug 19, 2020 5:43 pm
Has thanked: 684 times
Been thanked: 330 times

Re: How can I change the state of a disk?

Post by pp4mnklinux »

Thanks, @Philh , your recomendation is working (I must test and configure links and Direct Access, but till now it is the best solution)

Sometimes, the easier - the best, and that is now.

n.b.- I tested chromium --no-sandbox, but I never thought about chromium.bin

As you can see all my disk and partitions are accesible, but some messages appears in sakura, I don't know if they are important or not.

There are some small problems, I can't use my profile, recover addons, extensions, themes.... but I have a nice starting point.

Using --no-sandbox is better to include --disable-infobars --test-type not to have the info bar about security, haha.
Thanks.

THANKS AGAIN.- CHEERS

Attachments
download folder.jpg
download folder.jpg (104.63 KiB) Viewed 555 times
sakura msg.jpg
sakura msg.jpg (126.37 KiB) Viewed 562 times
accessible_2025-03-09_17-39-10.jpg
accessible_2025-03-09_17-39-10.jpg (108.31 KiB) Viewed 562 times
User avatar
BarryK
Posts: 2959
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 159 times
Been thanked: 819 times

Re: How can I change the state of a disk? [SOLVED]

Post by BarryK »

@pp4mnklinux
/mnt/wkg/sfs/settings got created at very first bootup.

It should still be there, somehow you have deleted it.

Well, you can recreate that folder.

User avatar
pp4mnklinux
Posts: 1315
Joined: Wed Aug 19, 2020 5:43 pm
Has thanked: 684 times
Been thanked: 330 times

Re: How can I change the state of a disk? [SOLVED]

Post by pp4mnklinux »

Thanks @BarryK

Attachments
settings.jpg
settings.jpg (15.8 KiB) Viewed 443 times
Post Reply

Return to “EasyOS”