mounting ext2fs partitions on FBSD7 ( third time a charm?)

Gonzalo Nemmi gnemmi at gmail.com
Sat Jul 5 20:20:31 UTC 2008


On Saturday 05 July 2008 06:01:36 Nejc Škoberne wrote:
> Hey,
>
> >> ls -la / | grep mnttest
>
> Can you paste output of this command?
>
> > sysid 5 (0x05),(Extended DOS)
> >     start 102398310, size 106446690 (51975 Meg), flag 0
> >         beg: cyl 1023/ head 0/ sector 1;
> >         end: cyl 1023/ head 254/ sector 63
>
> So the partition you're trying to mount is under an extended partition.
> Can you do "ls -la /dev/ad0*" and provide us with the output?
>
> Bye,
> Nejc

Here you have a more complete output:

root at inferna:~ # mkdir /mnttest
root at inferna:~ # ls -la / | grep mnttest
drwxr-xr-x   2 root  wheel      512 Jul  5 17:16 mnttest
root at inferna:~ # mount -t ext2fs /dev/ad0s8 /mnttest
root at inferna:~ # ls /mnttest
ls: /mnttest: Bad file descriptor
root at inferna:~ # file /mnttest
/mnttest: cannot open `/mnttest' (Bad file descriptor)
root at inferna:~ # ls -la / | grep mnttest
ls: mnttest: Bad file descriptor
root at inferna:~ # dmesg | tail -5
re0: link state changed to DOWN
re0: link state changed to UP
pid 41456 (kdeinit), uid 1001 inumber 14 on /tmp: filesystem full
linux: pid 8503 (doom.x86): ioctl fd=17, cmd=0x5801 ('X',1) is not implemented
pid 8511 (doom.x86), uid 1001: exited on signal 11
root at inferna:~ # umount /mnttest
root at inferna:~ # ls /mnttest
root at inferna:~ # file /mnttest
/mnttest: directory
root at inferna:~ # ls -la / | grep mnttest
drwxr-xr-x   2 root  wheel      512 Jul  5 17:16 mnttest
root at inferna:~ # dmesg | tail -5
re0: link state changed to DOWN
re0: link state changed to UP
pid 41456 (kdeinit), uid 1001 inumber 14 on /tmp: filesystem full
linux: pid 8503 (doom.x86): ioctl fd=17, cmd=0x5801 ('X',1) is not implemented
pid 8511 (doom.x86), uid 1001: exited on signal 11
root at inferna:~ # 

Hope it clarifies sonething more 
Thanks for helping Nejc :)
-- 
Blessings
Gonzalo Nemmi


More information about the freebsd-questions mailing list