[OpenIndiana-discuss] mount ext2/3
Hello, What did I do wrong? I added the sfe repo: pkg set-publisher -p http://pkg.openindiana.org/sfe I installed fuse-ext2 package: pkg install fuse-ext2 Then it complained about the missing libfuse.so, so I installed them too: pkg install libfuse fusefs It still complained, and then I did pkg remove, and pkg install for the fuse-ext2 package: didn't helped BTW: Are there any similar thing here, like the ldconfig command in linux, which updates the symlinks, etc, and the /etc/ld.so.conf file, which describes the directories, where should the dynamic linker find so's other then /lib and /usr/lib? So, I used my linux routine: LD_LIBRARY_PATH=/usr/gnu/lib fuse-ext2 /home/pasztor/e2t.img /mnt/e2t This command run, but gave 252 as return code... I didn't find explanation in fuse-ext2's manpage, since i didn't find that even... And of course, it didn't mount that image file... I tried lofiadm -a /home/pasztor/e2t.img and LD_LIBRARY_PATH=/usr/gnu/lib fuse-ext2 /dev/lofi/1 /mnt/e2t/ But the result was the same: nothing... Hint's, ideas, anything? Regards, György ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] mount ext2/3
Hi, ' I'm not an ext2/ext3 expert, but usually /var/adm/messages or 'dmesg'-output should indicate something. Where there any other error messages that you may not have quoted in your initial email? HTH Michael On Thu, Feb 27, 2014 at 5:14 PM, PÁSZTOR György < pasz...@linux.gyakg.u-szeged.hu> wrote: > Hello, > > What did I do wrong? > I added the sfe repo: pkg set-publisher -p http://pkg.openindiana.org/sfe > I installed fuse-ext2 package: pkg install fuse-ext2 > > Then it complained about the missing libfuse.so, so I installed them too: > pkg install libfuse fusefs > > It still complained, and then I did pkg remove, and pkg install for the > fuse-ext2 package: didn't helped > BTW: Are there any similar thing here, like the ldconfig command in > linux, which updates the symlinks, etc, and the /etc/ld.so.conf file, which > describes the directories, where should the dynamic linker find so's other > then /lib and /usr/lib? > > So, I used my linux routine: > LD_LIBRARY_PATH=/usr/gnu/lib fuse-ext2 /home/pasztor/e2t.img /mnt/e2t > This command run, but gave 252 as return code... I didn't find explanation > in fuse-ext2's manpage, since i didn't find that even... > And of course, it didn't mount that image file... > I tried lofiadm -a /home/pasztor/e2t.img and > LD_LIBRARY_PATH=/usr/gnu/lib fuse-ext2 /dev/lofi/1 /mnt/e2t/ > > But the result was the same: nothing... > > Hint's, ideas, anything? > > Regards, > György > > ___ > OpenIndiana-discuss mailing list > OpenIndiana-discuss@openindiana.org > http://openindiana.org/mailman/listinfo/openindiana-discuss > -- Michael Schuster http://recursiveramblings.wordpress.com/ ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] mount ext2/3
Hi, "Michael Schuster" írta 2014-02-27 18:00-kor: > I'm not an ext2/ext3 expert, but usually /var/adm/messages or > 'dmesg'-output should indicate something. Where there any other error > messages that you may not have quoted in your initial email? There were no error message, nor other indication of fail, it just failed silently. Nor dmesg contains relevant info: root@oi:~# dmesg |tail Feb 27 13:52:09 oi pseudo: [ID 129642 kern.info] pseudo-device: sdbc0 Feb 27 13:52:09 oi genunix: [ID 936769 kern.info] sdbc0 is /pseudo/sdbc@0 Feb 27 13:52:09 oi pseudo: [ID 129642 kern.info] pseudo-device: ii0 Feb 27 13:52:09 oi genunix: [ID 936769 kern.info] ii0 is /pseudo/ii@0 Feb 27 15:01:17 oi pcplusmp: [ID 805372 kern.info] pcplusmp: ide (ata) instance 0 irq 0xe vector 0x42 ioapic 0x2 intin 0xe is bound to cpu 1 Feb 27 15:01:17 oi pcplusmp: [ID 805372 kern.info] pcplusmp: ide (ata) instance 1 irq 0xf vector 0x42 ioapic 0x2 intin 0xf is bound to cpu 0 Feb 27 15:32:12 oi pcplusmp: [ID 805372 kern.info] pcplusmp: ide (ata) instance 0 irq 0xe vector 0x42 ioapic 0x2 intin 0xe is bound to cpu 1 Feb 27 15:32:12 oi pcplusmp: [ID 805372 kern.info] pcplusmp: ide (ata) instance 1 irq 0xf vector 0x42 ioapic 0x2 intin 0xf is bound to cpu 0 Feb 27 15:32:13 oi pcplusmp: [ID 805372 kern.info] pcplusmp: ide (ata) instance 0 irq 0xe vector 0x42 ioapic 0x2 intin 0xe is bound to cpu 1 Feb 27 15:32:13 oi pcplusmp: [ID 805372 kern.info] pcplusmp: ide (ata) instance 1 irq 0xf vector 0x42 ioapic 0x2 intin 0xf is bound to cpu 0 Neither truss: root@oi:~# LD_LIBRARY_PATH=/usr/gnu/lib truss fuse-ext2 /dev/lofi/1 /mnt/e2t/ execve("/usr/bin/fuse-ext2", 0x08047E0C, 0x08047E1C) argc = 3 sysinfo(SI_MACHINE, "i86pc", 257) = 6 mmap(0x, 32, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFEFB mmap(0x, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFEFA sysconfig(_CONFIG_PAGESIZE) = 4096 mmap(0x, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFEF9 mmap(0x, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFEF8 memcntl(0xFEFB7000, 32140, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 memcntl(0x0805, 24156, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 resolvepath("/usr/lib/ld.so.1", "/lib/ld.so.1", 1023) = 12 resolvepath("/usr/bin/fuse-ext2", "/usr/bin/fuse-ext2", 1023) = 18 stat64("/usr/bin/fuse-ext2", 0x08047A50)= 0 open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT stat64("/usr/gnu/lib/libc.so.1", 0x08047200)Err#2 ENOENT stat64("/lib/libc.so.1", 0x08047200)= 0 resolvepath("/lib/libc.so.1", "/lib/libc.so.1", 1023) = 14 open("/lib/libc.so.1", O_RDONLY)= 3 mmap(0x, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFEF7 mmapobj(3, MMOBJ_INTERPRET, 0xFEF70018, 0x0804726C, 0x) = 0 close(3)= 0 memcntl(0xFEE3, 179708, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 mmap(0x0001, 24576, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEE2 getcontext(0x080478B0) getrlimit(RLIMIT_STACK, 0x080478A8) = 0 getpid()= 1818 [1817] lwp_private(0, 1, 0xFEE22A40) = 0x01C3 setustack(0xFEE22AA0) sysi86(SI86FPSTART, 0xFEF69C2C, 0x133F, 0x1F80) = 0x0001 brk(0x0807A3B8) = 0 brk(0x0807C3B8) = 0 stat64("/dev/lofi/1", 0x08047D30) = 0 brk(0x0807C3B8) = 0 brk(0x0807E3B8) = 0 open("/dev/lofi/1", O_RDWR) = 3 fstat64(3, 0x08047A70) = 0 brk(0x0807E3B8) = 0 brk(0x080803B8) = 0 llseek(3, 1024, SEEK_SET) = 1024 read(3, " X d\0\0\09001\0\014\0\0".., 1024) = 1024 close(3)= 0 stat64("/usr/gnu/lib/libfuse.so", 0x08047288) = 0 resolvepath("/usr/gnu/lib/libfuse.so", "/usr/gnu/lib/libfuse.so.2.7.1", 1023) = 29 open("/usr/gnu/lib/libfuse.so", O_RDONLY) = 3 mmapobj(3, MMOBJ_INTERPRET, 0xFEF70C38, 0x080472F4, 0x) = 0 close(3)= 0 mmap(0x, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFEDD memcntl(0xFEDE, 43104, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 stat64("/usr/gnu/lib/libxnet.so.1", 0x080471C8) Err#2 ENOENT stat64("/lib/libxnet.so.1", 0x080471C8) = 0 resolvepath("/lib/libxnet.so.1", "/lib/libxnet.so.1", 1023) = 17 open("/lib/libxnet.so.1", O_RDONLY) = 3 mmapobj(3, MMOBJ_INTERPRET, 0xFEDD0578, 0x08047234, 0x) = 0 close(3)= 0 mprotect(0xFEDE, 128915, PROT_READ|PROT_WRITE|PROT_EXEC) = 0 stat64("/usr/gnu/lib/libsocket.so.1", 0x08046DD8) Err#2
Re: [OpenIndiana-discuss] mount ext2/3
I can concur that I cannot seem to mount my ext3 partition on Illumos, although I'm sure I used to be able to (a very long time ago). I appear to have the fuse module installed in the kernel and running, even though I haven't got libfuse or fusefs installed: jadams@jadlaptop:~$ modinfo | grep -i fuse 271 f8302000 af80 298 1 fusefs (fuse driver) 271 f8302000 af80 28 1 fusefs (filesystem for fuse) root@jadlaptop:~# pkg list -af | grep -i fuse system/file-system/fuse-exfat (sfe) 0.9.2-0.151.1 --- system/file-system/fuse-ext2 (sfe) 0.0.5-0.151.1 i-- system/file-system/fusefs (sfe) 0.20100615.2-0.151.1.5 --- system/file-system/fusefs (sfe) 0.20100615.1-0.151.1.5 --- system/file-system/fusefs (sfe) 0.20100615-0.151.1 --- system/file-system/fusefs/src (sfe) 0.20100615.2-0.151.1.5 --- system/file-system/fusefs/src (sfe) 0.20100615.1-0.151.1.5 --- system/file-system/libfuse (sfe) 0.20100615-0.151.1.5 --- system/file-system/libfuse (sfe) 0.20100615-0.151.1 --- system/file-system/libfuse/src (sfe) 0.20100615-0.151.1.5 --- I don't know if this is anything to do with the proposed changes by this guy: http://openindiana.org/pipermail/oi-dev/2012-January/001095.html root@jadlaptop:~# parted -l Model: Generic Ide (ide) Disk /dev/dsk/c4t0d0p0: 80.0GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End SizeType File system Flags 1 8225kB 58.5GB 58.5GB primary solaris boot 2 58.5GB 80.0GB 21.5GB extended 5 58.5GB 79.1GB 20.6GB logical ext3 6 79.1GB 80.0GB 941MB logical linux-swap root@jadlaptop:~# fuse-ext2 /dev/rdsk/c4t0d0p5 /mnt/linux root@jadlaptop:~# ls -l /mnt/linux total 0 Jon On 27 February 2014 17:19, PÁSZTOR György wrote: > Hi, > > "Michael Schuster" írta 2014-02-27 18:00-kor: > > I'm not an ext2/ext3 expert, but usually /var/adm/messages or > > 'dmesg'-output should indicate something. Where there any other error > > messages that you may not have quoted in your initial email? > > There were no error message, nor other indication of fail, it just failed > silently. > Nor dmesg contains relevant info: > root@oi:~# dmesg |tail > Feb 27 13:52:09 oi pseudo: [ID 129642 kern.info] pseudo-device: sdbc0 > Feb 27 13:52:09 oi genunix: [ID 936769 kern.info] sdbc0 is /pseudo/sdbc@0 > Feb 27 13:52:09 oi pseudo: [ID 129642 kern.info] pseudo-device: ii0 > Feb 27 13:52:09 oi genunix: [ID 936769 kern.info] ii0 is /pseudo/ii@0 > Feb 27 15:01:17 oi pcplusmp: [ID 805372 kern.info] pcplusmp: ide (ata) > instance 0 irq 0xe vector 0x42 ioapic 0x2 intin 0xe is bound to cpu 1 > Feb 27 15:01:17 oi pcplusmp: [ID 805372 kern.info] pcplusmp: ide (ata) > instance 1 irq 0xf vector 0x42 ioapic 0x2 intin 0xf is bound to cpu 0 > Feb 27 15:32:12 oi pcplusmp: [ID 805372 kern.info] pcplusmp: ide (ata) > instance 0 irq 0xe vector 0x42 ioapic 0x2 intin 0xe is bound to cpu 1 > Feb 27 15:32:12 oi pcplusmp: [ID 805372 kern.info] pcplusmp: ide (ata) > instance 1 irq 0xf vector 0x42 ioapic 0x2 intin 0xf is bound to cpu 0 > Feb 27 15:32:13 oi pcplusmp: [ID 805372 kern.info] pcplusmp: ide (ata) > instance 0 irq 0xe vector 0x42 ioapic 0x2 intin 0xe is bound to cpu 1 > Feb 27 15:32:13 oi pcplusmp: [ID 805372 kern.info] pcplusmp: ide (ata) > instance 1 irq 0xf vector 0x42 ioapic 0x2 intin 0xf is bound to cpu 0 > > Neither truss: > root@oi:~# LD_LIBRARY_PATH=/usr/gnu/lib truss fuse-ext2 /dev/lofi/1 > /mnt/e2t/ > execve("/usr/bin/fuse-ext2", 0x08047E0C, 0x08047E1C) argc = 3 > sysinfo(SI_MACHINE, "i86pc", 257) = 6 > mmap(0x, 32, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, > -1, 0) = 0xFEFB > mmap(0x, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, > MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFEFA > sysconfig(_CONFIG_PAGESIZE) = 4096 > mmap(0x, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) > = 0xFEF9 > mmap(0x, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) > = 0xFEF8 > memcntl(0xFEFB7000, 32140, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 > memcntl(0x0805, 24156, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 > resolvepath("/usr/lib/ld.so.1", "/lib/ld.so.1", 1023) = 12 > resolvepath("/usr/bin/fuse-ext2", "/usr/bin/fuse-ext2", 1023) = 18 > stat64("/usr/bin/fuse-ext2", 0x08047A50)= 0 > open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT > stat64("/usr/gnu/lib/libc.so.1", 0x08047200)Err#2 ENOENT > stat64("/lib/libc.so.1", 0x08047200)= 0 > resolvepath("/lib/libc.so.1", "/lib/libc.so.1", 1023) = 14 > open("/lib/libc.so.1", O_RDONLY)= 3 > mmap(0x, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, > MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFEF7 > mmapobj(3, MMOBJ_INTERPRET, 0xFEF70018, 0x0804726C, 0x) = 0 > close(3)= 0 > memcntl(0xFEE3, 179708, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 > mmap(0x0001, 2457
Re: [OpenIndiana-discuss] mount ext2/3
On 27/02/2014 17:14, PÁSZTOR György wrote: Hello, What did I do wrong? I added the sfe repo: pkg set-publisher -p http://pkg.openindiana.org/sfe I installed fuse-ext2 package: pkg install fuse-ext2 Then it complained about the missing libfuse.so, so I installed them too: pkg install libfuse fusefs It still complained, and then I did pkg remove, and pkg install for the fuse-ext2 package: didn't helped BTW: Are there any similar thing here, like the ldconfig command in linux, which updates the symlinks, etc, and the /etc/ld.so.conf file, which describes the directories, where should the dynamic linker find so's other then /lib and /usr/lib? So, I used my linux routine: LD_LIBRARY_PATH=/usr/gnu/lib fuse-ext2 /home/pasztor/e2t.img /mnt/e2t This command run, but gave 252 as return code... I didn't find explanation in fuse-ext2's manpage, since i didn't find that even... And of course, it didn't mount that image file... I tried lofiadm -a /home/pasztor/e2t.img and LD_LIBRARY_PATH=/usr/gnu/lib fuse-ext2 /dev/lofi/1 /mnt/e2t/ But the result was the same: nothing... Hint's, ideas, anything? If you are not a privileged user, you cannot mount, see /usr/gnu/bin/fusermount: pfexec "/usr/gnu/lib/fs/fuse/`basename $0`.bin" "$@" Alternative: Set it setuid... ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] mount ext2/3
György, I don't know that I necessarily have a direct fix for you, but the message below I had archived from the Solaris x86 mailing list, original post date in March 2006. I checked the website (below), and the ext software is still there. Hope this helps, or provides another possible option. Jerry ~~ pcsol1996 wrote: > I have a Linux box that I am going to convert to Solaris. The OS is > seriously messed up on the box and networking is not functional. > There are some very large files that I need on that box that are on > disks 2 and 3 (OS is on the first disk). Is it possible to install > Solaris 10 on disk 1 and then mount the ext2 Linux disks and copy the > data to disk1? Yes, it should be possible. You can get the ext2fs driver either from the link in the Solaris x86 FAQ, or my version at http://paulf.free.fr/software.html > I saw a freeware program called ext2fs. Is this the > best way to go? ..BTW I don't have a tape drive or DVD writer to be > able to copy these files to. You may also be able to boot from a Linux CD and establish a network connection. A+ Paul ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] mount ext2/3
PÁSZTOR György wrote: Hello, What did I do wrong? I added the sfe repo: pkg set-publisher -p http://pkg.openindiana.org/sfe I installed fuse-ext2 package: pkg install fuse-ext2 Then it complained about the missing libfuse.so, so I installed them too: pkg install libfuse fusefs It still complained, and then I did pkg remove, and pkg install for the fuse-ext2 package: didn't helped BTW: Are there any similar thing here, like the ldconfig command in linux, which updates the symlinks, etc, and the /etc/ld.so.conf file, which describes the directories, where should the dynamic linker find so's other then /lib and /usr/lib? libfuse.so is the library used by the user space file systems. It is of no use if you do not have the fuse kernel module. I do not know whether the fuse-ext2 package contains both the kernel part and the user space part. Check whether you have /usr/kernel/drv/amd64/fuse and/or /usr/kernel/drv/fuse The latest kernel module is available on http://jp-andre.pagesperso-orange.fr/openindiana-ntfs-3g.html but I have not tested it for use with ext2/ext3 Jean-Pierre ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] mount ext2/3
Hi, "Jean-Pierre André" írta 2014-02-28 08:48-kor: > PÁSZTOR György wrote: > >What did I do wrong? > >I added the sfe repo: pkg set-publisher -p http://pkg.openindiana.org/sfe > >I installed fuse-ext2 package: pkg install fuse-ext2 > > > >Then it complained about the missing libfuse.so, so I installed them too: > >pkg install libfuse fusefs > > > >It still complained, and then I did pkg remove, and pkg install for the > >fuse-ext2 package: didn't helped > >BTW: Are there any similar thing here, like the ldconfig command in > >linux, which updates the symlinks, etc, and the /etc/ld.so.conf file, which > >describes the directories, where should the dynamic linker find so's other > >then /lib and /usr/lib? > > libfuse.so is the library used by the user space file systems. > It is of no use if you do not have the fuse kernel module. > I do not know whether the fuse-ext2 package contains both the > kernel part and the user space part. Check whether you have > /usr/kernel/drv/amd64/fuse and/or /usr/kernel/drv/fuse Fuse works ok: I created a zvol, exported on iSCSI, mapped from a W7 machine, partitioned, formatted, copied some files onto it, unexported, then dd -d the partition into a file, then mounted that, then copied the files from there, copied another files to there, umount, dd-d back the partition with the proper offset, exported again, and the W7 machine saw the new files, etc. So, I didn't take a very deep check, but mount, and some basic read and write operations surely work with ntfs-3g. BTW.: Do someone know a best practice to access a partition in an image? I googled a lot about that, and there were a plan to add an extra option to lofiadm, and there you could gave a specific offset, but at least the OI/Solaris line of lofiadm don't support that yet. As far as I could conclude that, that feature was never implemented. I tried to build a newer fuse-ext2, and downloaded 0.0.7 from http://alperakcan.net/?open=projects&project=fuse-ext2 But It didn't worked. e2fsprogs had some errors on the beggining, but I left it out, and just tried to build the fuse-ext2 part... I added some include into fuse-ext2.h (fuse.h -> fuse/fuse.h, fcntl.h, sys/types.h, sys/stat.h, strings.h, unistd.h), and most of the compiler errors gone, but op_readdir.c still tried to use some macros/constants (DT_REG, DT_DIR, etc.) which I can't provide. Better ideas? Regards, György ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] mount ext2/3
From: PÁSZTOR György > What did I do wrong? > I added the sfe repo: pkg set-publisher -p http://pkg.openindiana.org/sfe > I installed fuse-ext2 package: pkg install fuse-ext2 Not a fuse solution but, some time ago, when I had to read from an ext fs, I used the following: wget http://hub.opensolaris.org/bin/download/Project+ext3/files/SUNWext2fs.pkg.bz2 wget http://hub.opensolaris.org/bin/download/Project+ext3/files/SFEe2fsprogs.pkg.bz2 bunzip2 SUNWext2fs.pkg.bz2 bunzip2 SFEe2fsprogs.pkg.bz2 pfexec pkgadd -d SFEe2fsprogs.pkg SFElibiconv SFEe2fsprogs pfexec pkgadd -d SUNWext2fs.pkg SUNWext2fs mount -F ext2fs /dev/dsk/c4t0d0p1 /mnt JD ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss