Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] UFS write support
Date: Sun, 18 Dec 2016 18:23:58
Message-Id: 1793433.2yiceECDZq@dell_xps
In Reply to: [gentoo-user] UFS write support by Alarig Le Lay
1 On Sunday 18 Dec 2016 18:43:26 Alarig Le Lay wrote:
2 > Hi,
3 >
4 > I try to mount an UFS partition with write support.
5 >
6 > So, I added the option to my kernel:
7 > airmure linux # grep -i UFS /usr/src/linux/.config
8 > # CONFIG_SCSI_UFSHCD is not set
9 > CONFIG_UFS_FS=m
10 > CONFIG_UFS_FS_WRITE=y
11 > # CONFIG_UFS_DEBUG is not set
12 >
13 > I’ve emerged sys-fs/ufsutils and I mounted my partition like that:
14 > airmure ~ # mount -t ufs -o ufstype=ufs2,rw /dev/sdg2 /mnt/drscott
15 >
16 > But the partition is mounted read-only:
17 > airmure ~ # mount | grep drscott
18 > /dev/sdg2 on /mnt/drscott type ufs (ro,relatime,ufstype=ufs2,onerror=lock)
19 >
20 > I don’t see anything relevant in dmesg:
21 > [ 101.033937] sd 21:0:0:1: [sdg] 15613920 512-byte logical blocks:
22 > (7.99 GB/7.44 GiB)
23 > [ 101.161964] sdg: sdg1 sdg2 sdg3
24 > [ 127.774875] ufs: ufs_fill_super(): fs is active
25 >
26 > Did I do anything wrong?
27
28 Check if you formated the partition as ufs2 (I think you need '-O 2') when you
29 created it.
30
31 Another thing to try is unmount it, run fsck and then remount it as rw. A
32 dirty unmount can cause this problem.
33 --
34 Regards,
35 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] UFS write support Alarig Le Lay <alarig@××××××××××.fr>