Unable to access partitions

Post here if you are a new Porteus member and you're looking for some help.
CalY
White ninja
White ninja
Posts: 5
Joined: 03 May 2019, 14:21
Distribution: AntiX

Unable to access partitions

Post#1 by CalY » 03 May 2019, 16:20

Porteus 4.0 32 bit, can not access usb hard drive JFS format, error: Failed to open file "mnt/sdb1" permission denied. Tried to modify permissions for this partition using PCmanFM, error: Error settings permissons: Operation not permitted.

hpfs.ko missing from file system modules. How to acquire and does kernel need compiling?

What is kernel crippled_sources.xzm used for?

jssouza
Legendary
Legendary
Posts: 1165
Joined: 09 Jul 2015, 14:17
Distribution: Porteus x86 arm

Unable to access partitions

Post#2 by jssouza » 04 May 2019, 02:28

Which fs format do you require, JFS or HPFS?

JFS is built as a module. Does it not load when your hard drive is mounted? You can manually modprobe jfs as root and then try to mount.

Yes, looks like HPFS is not built.

Code: Select all

# CONFIG_HPFS_FS is not set
Unfortunately you cannot use the crippled_sources.xzm to build an internal module, because the internal sources are stripped (crippled). You can only build external modules with it.

You would need the complete kernel sources, which would mean compiling the entire kernel with additionally including CONFIG_HPFS_FS I guess.

CalY
White ninja
White ninja
Posts: 5
Joined: 03 May 2019, 14:21
Distribution: AntiX

Unable to access partitions

Post#3 by CalY » 04 May 2019, 15:41

Short term need: JFS, long term also HPFS. Slackware based distros always had both.ko files. JFS module is loaded, can view partition but can not open any files. Permission denied. Try to change permission, that is not permitted If system can load a FS and display, why can't it open a file?

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

Unable to access partitions

Post#4 by Ed_P » 04 May 2019, 17:15

Maybe you need root access to open JFS files.
Ed

CalY
White ninja
White ninja
Posts: 5
Joined: 03 May 2019, 14:21
Distribution: AntiX

Unable to access partitions

Post#5 by CalY » 04 May 2019, 17:45

Yes, it does. Logged in as root and read/write activated for JFS. That does not seem a suitable long-term solution once installed on hard disk. Is it possible something needs to be modified in fstab? Below is current line:
/dev/sdb1 /mnt/sdb1 jfs users,noatime,nodiratime,suid,dev,exec,async,comment=x-gvfs-show 0 0

Perhaps users=??? something?

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

Unable to access partitions

Post#6 by Ed_P » 04 May 2019, 23:59

Can the drive be reformatted to something easier to work with?
Ed

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

Unable to access partitions

Post#7 by nanZor » 05 May 2019, 03:08

Because the drive / partiton was created by root, (or fired up and gparted or another tool ran as root) we need to change permissions as you've seen. Have you tried this easy graphical method: (I'm using XFCE4)

Login as root, (or logout as guest and login as root)

Hover over desktop icon of your drive / partition. Right click and mount it with mount option if not already mounted.

Now choose Properties > Permissions

Now you can change the permissions to your liking / security needs. A quick whip-up would be:

root access / read & write
Group: Users
Group Access: Read and write
Others: Read and write.

Logout, and guest and others can now access the drive normally. Usually it is automounted already. Note I haven't tried JFS, but I'm relatively sure filesystem doesn't really matter here.
That's a UNIX book - cool. -Garth

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

Unable to access partitions

Post#8 by Ed_P » 05 May 2019, 05:42

A clever option nanZor. :happy62: :good:
Ed

CalY
White ninja
White ninja
Posts: 5
Joined: 03 May 2019, 14:21
Distribution: AntiX

Unable to access partitions

Post#9 by CalY » 05 May 2019, 18:07

Had tried all the permission tips mentioned, but must not have been Root. Modifying partition permission was not enough, had to change individual file permission as well. Hopefully do not have to do this for every file. Running Porteus as live cd for now. Do not believe partition was created by root, as usb drive partition/format was not done by linux. Appears this is a feature/bug of Linux as other distros than Slack based responded similar. Load drive as root first, change permissions. Thank you!

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

Unable to access partitions

Post#10 by nanZor » 05 May 2019, 21:09

No problem - note that in addition to being able to to change the permissions (as root) on the drive, it has the option box to change the permissions for the entire existing contents of the drive as well, so that would achieve what you wanted.

Unless you have logged in as root, these options will be grayed-out or missing.
That's a UNIX book - cool. -Garth

Post Reply