Android-x86-6.0-rc1 how mount another PC partition?

3,634 views
Skip to first unread message

Krister Hallergard

unread,
Jun 14, 2016, 2:00:01 PM6/14/16
to Android-x86
Before I have been able to add "SDCARD=/dev/sda" or  "SDCARD=/dev/sda1" to the kernel command line to mount a partition wher I keep data, office and multimedia files. Have not managed to do that with Android-x86-6.0-rc1, please advice! http://goo.gl/EpSOi0

Chih-Wei Huang

unread,
Jun 14, 2016, 9:42:52 PM6/14/16
to Android-x86
2016-06-15 2:00 GMT+08:00 Krister Hallergard <khall...@gmail.com>:
> Before I have been able to add "SDCARD=/dev/sda" or "SDCARD=/dev/sda1" to

No, this method is not supported in 6.0.

The reason is Google has rewritten the whole
vold, the volume daemon (ver jumps from 2.1 to 3.0).
It has implemented most of the auto-mount functions
that we did in the previous 2.1 version except
the SDCARD method. Basically speaking,
the SDCARD method is just a old hacking so that
I think it should be deprecated.
Currently I have no plan to add it back to vold 3.0.

The only workaround is to add the sys path of
your sda to fstab.android_x86.
But that means you need to modify the ramdisk.img.

> the kernel command line to mount a partition wher I keep data, office and
> multimedia files. Have not managed to do that with Android-x86-6.0-rc1,
> please advice! http://goo.gl/EpSOi0


--
Chih-Wei
Android-x86 project
http://www.android-x86.org

Arun G

unread,
Jun 15, 2016, 1:20:54 AM6/15/16
to Android-x86
On Tuesday, 14 June 2016 23:30:01 UTC+5:30, Krister Hallergard wrote:
> Before I have been able to add "SDCARD=/dev/sda" or  "SDCARD=/dev/sda1" to the kernel command line to mount a partition wher I keep data, office and multimedia files. Have not managed to do that with Android-x86-6.0-rc1, please advice! http://goo.gl/EpSOi0

http://forum.xda-developers.com/android/software/guide-mount-internal-windows-partition-t2978679
follow those instructions . it is working in android 6

youling 257

unread,
Jun 15, 2016, 2:42:24 AM6/15/16
to Android-x86
read and write,mount as label,why do not you use stickmount ? 

在 2016年6月15日星期三 UTC+8下午1:20:54,Arun G写道:

Krister Hallergard

unread,
Jun 17, 2016, 12:58:07 PM6/17/16
to Android-x86
Thank you for the clarification, though disappointing.  Am looking for a simple way to mount another partition on the PC, and the suggested alternatives seem all but simple.

Chih-Wei Huang

unread,
Jun 18, 2016, 12:03:52 AM6/18/16
to Android-x86
Actually you don't need an additional tool to
mount an NTFS partition.
Android-x86 has the built-in ntfs-3g tool
which can do it:

ntfs-3g /dev/block/sdX /storage/D

Krister Hallergard

unread,
Jun 18, 2016, 1:48:05 PM6/18/16
to Android-x86
Could you please give a step by step instruction.  Terminal? Permissions? Mount points? Script? etc

Hypo Turtle

unread,
Jun 18, 2016, 2:16:48 PM6/18/16
to Android-x86
He already did:

ntfs-3g /dev/block/sdX /storage/D

With X being the partition number (check with blkid if your unsure on number); and D being the mount location.

You may need 'su' first and alsi 'mkdir /storage/D'

youling 257

unread,
Jun 18, 2016, 2:34:42 PM6/18/16
to Android-x86
So,why aosp 6.0.1 can't use Storage&USB portable storage mount NTFS partition ? 
This is Android,I suggest use Android apk or Storage&USB portable storage,I don't suggest use Terminal Command or boot script. 
why cm13 can use Storage&USB portable storage mount NTFS partition ? 

在 2016年6月18日星期六 UTC+8下午12:03:52,Chih-Wei Huang写道:

youling 257

unread,
Jun 18, 2016, 2:39:18 PM6/18/16
to Android-x86
please use Storage&USB portable storage

these screenshot,it's cm13
b4d9ab45d688d43f85e2e2ae7a1ed21b0ff43b78.jpg
dff1ed0735fae6cdb2920ddf08b30f2443a70f40.jpg
e3c2ae2bd40735fa2ed6e80799510fb30e240840.jpg

Hypo Turtle

unread,
Jun 18, 2016, 2:43:28 PM6/18/16
to Android-x86
If I'm understanding your question right then...

Because Ax86 is AOSP (or as close to as possible) and CM(13) is a custom ROM/firmware based on AOSP that modifies system source (framework/settings etc.) in order to add features.

CM13 would probably mount NTFS the same way (ntfs-3g); just that it has a button that does it for you. Or it could be something modified in vold.

youling 257

unread,
Jun 18, 2016, 2:48:35 PM6/18/16
to Android-x86
cm13 use mount.ntfs,and fatab.android_x86
在 2016年5月9日星期一 UTC+8上午11:59:10,youling 257写道:
- 隐藏引用文字 -
none /cache tmpfs nosuid,nodev,noatime defaults

/devices/*/usb*/* auto auto defaults voldmanaged=usb:auto
/devices/platform/80860F14:00/mmc_host* auto auto defaults voldmanaged=usb:auto
/devices/platform/80860F14:02/mmc_host* auto auto defaults voldmanaged=sdcard1:auto,encryptable=userdata
/devices/*/* auto auto defaults voldmanaged=usb:auto

在 2016年6月19日星期日 UTC+8上午2:43:28,Hypo Turtle写道:

youling 257

unread,
Jun 18, 2016, 2:50:53 PM6/18/16
to Android-x86
I edit aosp 6.0.1 fstab.android_x86,also can't mount NTFS partition

Chih-Wei Huang

unread,
Jun 19, 2016, 3:13:03 AM6/19/16
to Android-x86
2016-06-19 2:34 GMT+08:00 youling 257 <youli...@gmail.com>:
> So,why aosp 6.0.1 can't use Storage&USB portable storage mount NTFS
> partition ?
> This is Android,I suggest use Android apk or Storage&USB portable storage,I
> don't suggest use Terminal Command or boot script.
> why cm13 can use Storage&USB portable storage mount NTFS partition ?

The volume daemon of AOSP doesn't support NTFS.
CM has modified the vold to detect and mount
NTFS and exFat automatically.
Surely we can leverage the code from CM.
(actually we did that in kitkat-x86 before)
But it's not a high priority task so
no dev cares to do it

Krister Hallergard

unread,
Jun 20, 2016, 4:37:02 AM6/20/16
to Android-x86
In a terminal I applied these three lines:
     su
     mkdir /storage/sdb4
     ntfs-3g /dev/block/sdb4 /storage/sdb4
Started ES File Explorer, and allowed SuperUser
Made a ES Widget on the homescreen by navigating to and selecting the sdb4 folder in /storage, yes there I could no see all folders and files on my main windows 10 partition.  Tried to play some videos, no would not play with any player.  My impression is that I need to change some permissions or something.  So I have two question:
1.  Do I need to change permissions?
2.  How do I avoid having to redo everything at each boot??
If I made a script with the three lines above - where do I put it to autostart it at boot time?  There is this script /etc/init.d/init.sh, but how to enter these lines lines?

Arun G

unread,
Jun 20, 2016, 4:49:28 AM6/20/16
to andro...@googlegroups.com
did you turned off windows fast boot ?

--
You received this message because you are subscribed to a topic in the Google Groups "Android-x86" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-x86/HyPx8fr_kwc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-x86...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.

Krister Hallergard

unread,
Jun 20, 2016, 7:20:49 AM6/20/16
to Android-x86
Yes, have disabled hybernate

Arun G

unread,
Jun 20, 2016, 7:27:39 AM6/20/16
to Android-x86
Turn off fast startup . disabling hibernation is unnecessary 

On Monday, 20 June 2016 16:50:49 UTC+5:30, Krister Hallergard wrote:
Yes, have disabled hybernate

Krister Hallergard

unread,
Jun 20, 2016, 7:36:24 AM6/20/16
to Android-x86
I have always had hibernation disabled on Windows 10, as it stops me from mounting the Windows partition from Linux.  I thought that fast boot automatically was switched off when hibernation is disabled. Android-x86-6.0-rc1 is on its own separate partition.  It can mount the Windows partition okay, but it seems to be in read only mode.

Mike

unread,
Jun 20, 2016, 10:53:45 PM6/20/16
to andro...@googlegroups.com

Ya you'll l kill your windows  otherwise,  for the week i had 10 installed Anyway...  1 time I didn't feel bad about format c:

😁

Sent with AquaMail for Android
http://www.aqua-mail.com

On June 20, 2016 6:45:18 AM Krister Hallergard <khall...@gmail.com> wrote:

I have always had hibernation disabled on Windows 10, as it stops me from mounting the Windows partition from Linux.  I thought that fast boot automatically was switched off when hibernation is disabled. Android-x86-6.0-rc1 is on its own separate partition.  It can mount the Windows partition okay, but it seems to be in read only mode.

--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86...@googlegroups.com.

Krister Hallergard

unread,
Jun 23, 2016, 2:48:12 PM6/23/16
to Android-x86
How make a script to autostart at boot with   "mkdir /storage/sdb4"   and    "ntfs-3g  /dev/block/sdb4  /storage/sdb4" ?
   How change permissions so that I can access any file on on /storage/sdb4 ? 

youling 257

unread,
Jul 10, 2016, 1:01:10 AM7/10/16
to Android-x86
nice,nice ! Android x86 6.0.1 r52,nightly version,can mount NTFS and ext4 partition.

在 2016年6月19日星期日 UTC+8下午3:13:03,Chih-Wei Huang写道:

Mario Nash

unread,
Jul 28, 2016, 11:26:27 PM7/28/16
to Android-x86
On Thursday, June 23, 2016 at 1:48:12 PM UTC-5, Krister Hallergard wrote:
> How make a script to autostart at boot with   "mkdir /storage/sdb4"   and    "ntfs-3g  /dev/block/sdb4  /storage/sdb4" ?
>    How change permissions so that I can access any file on on /storage/sdb4 ? 

Hello my friend. I'm using Sticky Mount app from Google Play by Chainfire. It will automatically mount the windows partitions on boot and then you can go and access then thru any explorer drive. IT works on vanila ANdroid X86 but not on Remix OS due root issue with remix os. Navigate to any file explorer app and find sdcard/usbstorage/ they will be there

youling 257

unread,
Jul 29, 2016, 4:02:48 AM7/29/16
to Android-x86


在 2016年7月29日星期五 UTC+8上午11:26:27,Mario Nash写道:
2e763700baa1cd11219ae845b112c8fcc2ce2dd6.jpg
07aa5ca1cd11728b13011647c0fcc3cec2fd2cd6.jpg

Krister Hallergard

unread,
Jul 29, 2016, 5:19:17 PM7/29/16
to Android-x86
Hi Mario, this is great news! With Sticky Mount I can now mount all my ntfs and fat32 partitions on the same PC (but not the ext3 partitions - but ext4 probably also work). Thank you very much!

Ildar Mulyukov

unread,
Aug 2, 2016, 9:05:54 AM8/2/16
to Android-x86
среда, 15 июня 2016 г., 7:42:52 UTC+6 пользователь Chih-Wei Huang написал:
> The only workaround is to add the sys path of
> your sda to fstab.android_x86.

Did it on the running system with (a) remounting / rw (b) adding .../*/ata*/* to the fstab (c) killall vold

> But that means you need to modify the ramdisk.img.

If Ax86 had init.d then it shouldn't be necessary.

Then how hard that would be to add other FSs, like ext3/4 and btrfs? Kernel already has them all, the vold left..

Best regards, Ildar.

Chih-Wei Huang

unread,
Aug 15, 2016, 1:15:01 PM8/15/16
to Android-x86
I've added back the SDCARD= function to the 6.0-rc2.
I think it's still useful to some people like you.
You may use "SDCARD=sda"
(auto select a partition on the first drive)
or "SDCARD=sda3"
(mount the third partition on the first drive)
to the kernel cmdline.

Krister Hallergard

unread,
Aug 15, 2016, 2:38:06 PM8/15/16
to Android-x86
Thank you, that will be useful!

youling 257

unread,
Aug 26, 2016, 11:47:30 AM8/26/16
to Android-x86
I edit CONFIG_F2FS_FS=y,recompile kernel,install Android x86 on f2fs partition ;Vold 3.0 (the awakening) firing up,Detected support for: exfat ext4 f2fs ntfs vfat;
But Storage&USB can't mount f2fs partition,because blkid can't read f2fs partition's label,The platform uses blkid to detect filesystem types before mounting, and users can choose to format the media when the filesystem is unsupported.https://source.android.com/devices/storage/config.html

u0_a25@x86:/ $ su
root@x86:/ # blkid -v
blkid 1.0.0 (12-Feb-2003)
4|root@x86:/ # blkid
/dev/loop0: TYPE="squashfs"
/dev/loop1: UUID="70b4a52c-b8a6-44fb-babd-28688e4a9e0c" TYPE="f2fs"
/dev/loop2: TYPE="squashfs"
/dev/block/mmcblk0p1: LABEL="ESP" UUID="9E35-2475" TYPE="vfat"
/dev/block/mmcblk0p2: UUID="A4AE40E7AE40B398" LABEL="WINDOW" TYPE="ntfs"
/dev/block/mmcblk0p3: UUID="ad6d9604-20c4-4814-9b04-00ad27fd8256" TYPE="f2fs"
/dev/block/mmcblk1p1: LABEL="UUI" UUID="8088-080F" TYPE="vfat"
/dev/block/mmcblk1p2: UUID="C4281238281229C6" LABEL="SDCARD" TYPE="ntfs"
/dev/block/mmcblk1p3: UUID="db62f128-afd9-401b-9d49-c38974aec5ff" TYPE="f2fs"
root@x86:/ #

can you only compile blkid that support read f2fs partition label ?

在 2016年8月16日星期二 UTC+8上午1:15:01,Chih-Wei Huang写道:

Chih-Wei Huang

unread,
Aug 26, 2016, 12:03:58 PM8/26/16
to Android-x86
Why?
From the list you posted f2fs is detected correctly.
Isn't it?

youling 257

unread,
Aug 26, 2016, 1:05:53 PM8/26/16
to Android-x86
blkid read the label is important.

在 2016年8月27日星期六 UTC+8上午12:03:58,Chih-Wei Huang写道:

youling 257

unread,
Aug 28, 2016, 9:58:54 AM8/28/16
to Android-x86
I notice https://sourceforge.net/p/android-x86/bootable_newinstaller/ci/marshmallow-x86/tree/initrd/bin/busybox ' blkid can read f2fs partition label and type,at debug mode,mount -o bind /sbin/blkid /android/system/bin/blkid,then  Storage&USB can read f2fs partition label,but still corrupted ;the Android-x86 corrupted is normal,the SDCARD1 corrupted mean is can't mount f2fs partition. 
Screenshot_20160828-214953.png

Carpe Noctem

unread,
Apr 11, 2018, 6:27:46 PM4/11/18
to Android-x86
The comand ntfs-3G in latest Nougat lineage do not work, it was removed?

youling 257

unread,
Apr 11, 2018, 9:56:39 PM4/11/18
to Android-x86
I suggest you use busybox 1.28.1 blkid,rename busybox to blkid,or /system/bin/blkid link to busybox 1.28.1
the blkid is important for Storage&USB portable storage.
https://busybox.net ,blkid: make it NOEXEC, make FEATURE_BLKID_TYPE=y default ,https://busybox.net/downloads/binaries/1.28.1-defconfig-multiarch/
/dev/block/mmcblk1p2: LABEL="Windows系统盘" UUID="7AACA001AC9FB65B" TYPE="ntfs"
/dev/block/mmcblk1p4: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/mmcblk1p1: LABEL="ESP" UUID="9E35-2475" TYPE="vfat"
/dev/block/mmcblk1p3: LABEL="Android-x86" UUID="e09579e5-87f6-416b-991c-4ac562bdddce" TYPE="f2fs"
/dev/block/mmcblk2p3: LABEL="SDCARD1" UUID="db62f128-afd9-401b-9d49-c38974aec5ff" TYPE="f2fs"
/dev/block/mmcblk2p2: LABEL="内存卡" UUID="C4281238281229C6" TYPE="ntfs"
/dev/block/mmcblk2p4: LABEL="SDCARD2" UUID="5912d1db-6e6e-e652-827d-9b97ed4a030d" TYPE="ext4"
/dev/block/mmcblk2p1: LABEL="U盘" UUID="8088-080F" TYPE="vfat"

it's not ntfs-3G,it's mount.ntfs.
android_x86:/ $ su
android_x86:/ # mount.ntfs
ntfs-3g: No device is specified.

ntfs-3g 2015.3.14 external FUSE 29 - Third Generation NTFS Driver
                Configuration type 1, XATTRS are on, POSIX ACLS are off

Copyright (C) 2005-2007 Yura Pakhuchiy
Copyright (C) 2006-2009 Szabolcs Szakacsits
Copyright (C) 2007-2016 Jean-Pierre Andre
Copyright (C) 2009 Erik Larsson

Usage: ntfs-3g [-o option[,...]] <device|image_file> <mount_point>

Options: ro (read-only mount), windows_names, uid=, gid=,
          umask=, fmask=, dmask=, streams_interface=.
          Please see the details in the manual (type: man ntfs-3g).

Example: ntfs-3g /dev/sda1 /mnt/windows

News, support and information: http://tuxera.com
11|android_x86:/ #

在 2018年4月12日星期四 UTC+8上午6:27:46,Carpe Noctem写道:
Reply all
Reply to author
Forward
0 new messages