Re: Unable to mount filesystem from the Install CD: permission denied ( are you root )
On 23/03/12 22:12, Robert Millan wrote:
> El 23 de març de 2012 2:14, Steven Chamberlain <firstname.lastname@example.org> ha escrit:
>> On 20/02/12 14:44, Emmanuel Kasper wrote:
>>> mount -t ufs /dev/ad0s1 /mnt
>>> mount:permission denied ( are you root )
> Does this ever happen on boot? Then it's a bug.
I was referring to debian-installer, while trying to rescue an
already-installed system. If someone does this, it's quite likely their
filesystem was unmounted uncleanly and so they would hit this problem.
I doubt this problem could happen on boot. Wouldn't the root fs get
mounted with -o ro anyway (which works), then fsck'd if necessary?
> Btw, what does dmesg say? Could you tell the exact message? Perhaps
> errno should be set to something else.
I don't recall seeing anything in dmesg.
The exact output on screen is what was shown in the ktrace in my last
mail, "mount: permission denied (are you root?)". The mount executable
in d-i is provided by busybox.
But I also tried installing the 'real' mount executable from
kfreebsd-utils, which results in "mount: /dev/ada0s1 : Operation not
permitted" as shown:
> 2530 mount CALL nmount(0x804dd90,0x8,0<><invalid>0)
> 2530 mount NAMI "/mnt"
> 2530 mount NAMI "/dev/ada0s1"
> 2530 mount RET nmount -1 errno 1 Operation not permitted
> 2530 mount CALL write(0x2,0xbfbfb6d0,0x7)
> 2530 mount GIO fd 2 wrote 7 bytes
> "mount: "
> 2530 mount RET write 7
> 2530 mount CALL write(0x2,0xbfbfb6e0,0xc)
> 2530 mount GIO fd 2 wrote 12 bytes
> "/dev/ada0s1 "
> 2530 mount RET write 12/0xc
> 2530 mount CALL write(0x2,0x2818fb5b,0x2)
> 2530 mount GIO fd 2 wrote 2 bytes
> ": "
> 2530 mount RET write 2
> 2530 mount CALL write(0x2,0xbfbfb700,0x18)
> 2530 mount GIO fd 2 wrote 24 bytes
> "Operation not permitted