[gentoo-user] ufs
Hi! I have a Solaris disk with Solari's ufs FS. I found ufs support in my kernel, but I'm not sure if it's the same as Solari's one (I'm not sure if solaris uses standards ufs fs). does anyone mounted a solaris ufs disk using ufs kernel's support? Regards, -- Arnau Bria ¿Vienes a mi casa, el día de la boda de mi hija a pedirme que mate por dinero? -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] ufs
On Tue, 21 Feb 2006, Arnau Bria Ramírez wrote: I have a Solaris disk with Solari's ufs FS. I found ufs support in my kernel, but I'm not sure if it's the same as Solari's one (I'm not sure if solaris uses standards ufs fs). does anyone mounted a solaris ufs disk using ufs kernel's support? No not solaris but freebsd. Enable Solaris (x86) partition and Sun partition tables support + ufs filesystem. Read MOUNT(8) about ufs options (ufstype=sun or sunx86). Read /usr/src/linux/Documentation/filesystems/ufs.txt about ufs-write support. It should work. Sascha.
Re: [gentoo-user] ufs
El Wed, 22 Feb 2006 11:55:46 +0100 (CET) Sascha Lucas dijo: thanks for reply! > On Tue, 21 Feb 2006, Arnau Bria Ramírez wrote: > > I have a Solaris disk with Solari's ufs FS. > > I found ufs support in my kernel, but I'm not sure if it's the same as > > Solari's > > one (I'm not sure if solaris uses standards ufs fs). > > > > does anyone mounted a solaris ufs disk using ufs kernel's support? > No not solaris but freebsd. Enable Solaris (x86) partition and Sun > partition tables support + ufs filesystem. Read MOUNT(8) about ufs options > (ufstype=sun or sunx86). Read sunx86? do you think if it's going to work with sparc? (I forgot to say taht) disk comes from Sun Blade 1500... I think it should be just "sun" as it does not specify architecture: sun used in SunOS (Solaris) supported as read-write sunx86 used in SunOS for Intel (Solarisx86) supported as read-write > /usr/src/linux/Documentation/filesystems/ufs.txt about ufs-write support. > It should work. I tried it and it did not recognize partition table... now, after reading you reply, I found partition table support for SunOS... going to recompile kernel and test... Thansk a lot! > Sascha. -- Arnau Bria ¿Vienes a mi casa, el día de la boda de mi hija a pedirme que mate por dinero? -- gentoo-user@gentoo.org mailing list
[gentoo-user] UFS write support
Hi, I try to mount an UFS partition with write support. So, I added the option to my kernel: airmure linux # grep -i UFS /usr/src/linux/.config # CONFIG_SCSI_UFSHCD is not set CONFIG_UFS_FS=m CONFIG_UFS_FS_WRITE=y # CONFIG_UFS_DEBUG is not set I’ve emerged sys-fs/ufsutils and I mounted my partition like that: airmure ~ # mount -t ufs -o ufstype=ufs2,rw /dev/sdg2 /mnt/drscott But the partition is mounted read-only: airmure ~ # mount | grep drscott /dev/sdg2 on /mnt/drscott type ufs (ro,relatime,ufstype=ufs2,onerror=lock) I don’t see anything relevant in dmesg: [ 101.033937] sd 21:0:0:1: [sdg] 15613920 512-byte logical blocks: (7.99 GB/7.44 GiB) [ 101.161964] sdg: sdg1 sdg2 sdg3 [ 127.774875] ufs: ufs_fill_super(): fs is active Did I do anything wrong? -- alarig signature.asc Description: PGP signature
Re: [gentoo-user] UFS write support
On Sunday 18 Dec 2016 18:43:26 Alarig Le Lay wrote: > Hi, > > I try to mount an UFS partition with write support. > > So, I added the option to my kernel: > airmure linux # grep -i UFS /usr/src/linux/.config > # CONFIG_SCSI_UFSHCD is not set > CONFIG_UFS_FS=m > CONFIG_UFS_FS_WRITE=y > # CONFIG_UFS_DEBUG is not set > > I’ve emerged sys-fs/ufsutils and I mounted my partition like that: > airmure ~ # mount -t ufs -o ufstype=ufs2,rw /dev/sdg2 /mnt/drscott > > But the partition is mounted read-only: > airmure ~ # mount | grep drscott > /dev/sdg2 on /mnt/drscott type ufs (ro,relatime,ufstype=ufs2,onerror=lock) > > I don’t see anything relevant in dmesg: > [ 101.033937] sd 21:0:0:1: [sdg] 15613920 512-byte logical blocks: > (7.99 GB/7.44 GiB) > [ 101.161964] sdg: sdg1 sdg2 sdg3 > [ 127.774875] ufs: ufs_fill_super(): fs is active > > Did I do anything wrong? -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] UFS write support
On Sunday 18 Dec 2016 18:43:26 Alarig Le Lay wrote: > Hi, > > I try to mount an UFS partition with write support. > > So, I added the option to my kernel: > airmure linux # grep -i UFS /usr/src/linux/.config > # CONFIG_SCSI_UFSHCD is not set > CONFIG_UFS_FS=m > CONFIG_UFS_FS_WRITE=y > # CONFIG_UFS_DEBUG is not set > > I’ve emerged sys-fs/ufsutils and I mounted my partition like that: > airmure ~ # mount -t ufs -o ufstype=ufs2,rw /dev/sdg2 /mnt/drscott > > But the partition is mounted read-only: > airmure ~ # mount | grep drscott > /dev/sdg2 on /mnt/drscott type ufs (ro,relatime,ufstype=ufs2,onerror=lock) > > I don’t see anything relevant in dmesg: > [ 101.033937] sd 21:0:0:1: [sdg] 15613920 512-byte logical blocks: > (7.99 GB/7.44 GiB) > [ 101.161964] sdg: sdg1 sdg2 sdg3 > [ 127.774875] ufs: ufs_fill_super(): fs is active > > Did I do anything wrong? Check if you formated the partition as ufs2 (I think you need '-O 2') when you created it. Another thing to try is unmount it, run fsck and then remount it as rw. A dirty unmount can cause this problem. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] UFS write support
On Sun Dec 18 18:23:22 2016, Mick wrote: > Another thing to try is unmount it, run fsck and then remount it as rw. A > dirty unmount can cause this problem. It was dirty unmounted. This a flash card that is a / for a router at home. Its power supply suddenly stopped to work today. I will try this, thanks :) -- alarig signature.asc Description: PGP signature
Re: [gentoo-user] UFS write support
On Sun Dec 18 19:35:43 2016, Alarig Le Lay wrote: > On Sun Dec 18 18:23:22 2016, Mick wrote: > > Another thing to try is unmount it, run fsck and then remount it as rw. A > > dirty unmount can cause this problem. > > It was dirty unmounted. This a flash card that is a / for a router at > home. Its power supply suddenly stopped to work today. > I will try this, thanks :) Well done, an fsck fixed the problem :) airmure # umount /dev/sdg2 airmure # fsck.ufs /dev/sdg2 ** /dev/sdg2 ** Last Mounted on / ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups FREE BLK COUNT(S) WRONG IN SUPERBLK SALVAGE? [yn] y SALVAGE? [yn] y SUMMARY INFORMATION BAD SALVAGE? [yn] y BLK(S) MISSING IN BIT MAPS SALVAGE? [yn] y 17039 files, 176220 used, 1617195 free (371 frags, 202103 blocks, 0.0% fragmentation) * FILE SYSTEM MARKED CLEAN * * FILE SYSTEM WAS MODIFIED * airmure # mount -t ufs -o ufstype=ufs2,rw /dev/sdg2 /mnt/drscott airmure # mount | grep drscott /dev/sdg2 on /mnt/drscott type ufs (rw,relatime,ufstype=ufs2,onerror=lock) -- alarig signature.asc Description: PGP signature
Re: [gentoo-user] UFS write support
On Sunday 18 Dec 2016 19:39:36 Alarig Le Lay wrote: > On Sun Dec 18 19:35:43 2016, Alarig Le Lay wrote: > > On Sun Dec 18 18:23:22 2016, Mick wrote: > > > Another thing to try is unmount it, run fsck and then remount it as rw. > > > A > > > dirty unmount can cause this problem. > > > > It was dirty unmounted. This a flash card that is a / for a router at > > home. Its power supply suddenly stopped to work today. > > I will try this, thanks :) > > Well done, an fsck fixed the problem :) > > airmure # umount /dev/sdg2 > airmure # fsck.ufs /dev/sdg2 > ** /dev/sdg2 > ** Last Mounted on / > ** Phase 1 - Check Blocks and Sizes > ** Phase 2 - Check Pathnames > ** Phase 3 - Check Connectivity > ** Phase 4 - Check Reference Counts > ** Phase 5 - Check Cyl groups > FREE BLK COUNT(S) WRONG IN SUPERBLK > SALVAGE? [yn] y > SALVAGE? [yn] y > > SUMMARY INFORMATION BAD > SALVAGE? [yn] y > > BLK(S) MISSING IN BIT MAPS > SALVAGE? [yn] y > > 17039 files, 176220 used, 1617195 free (371 frags, 202103 blocks, 0.0% > fragmentation) > > * FILE SYSTEM MARKED CLEAN * > > * FILE SYSTEM WAS MODIFIED * > airmure # mount -t ufs -o ufstype=ufs2,rw /dev/sdg2 /mnt/drscott > airmure # mount | grep drscott > /dev/sdg2 on /mnt/drscott type ufs > (rw,relatime,ufstype=ufs2,onerror=lock) Glad you sorted this out. I've been bitten by this problem once or twice. It is a right pain when you are running an OS upgrade and haven't checked first if your fs is *still* mounted as rw. The solution is to get a UPS for this device. Hmm ... one more thing to go on Santa's list. ;-) -- Regards, Mick signature.asc Description: This is a digitally signed message part.