Re: Mount Logical (ext2fs) Partitions?

2013-01-26 Thread Walter Hurry
On Fri, 25 Jan 2013 21:07:59 -0800, Carl Johnson wrote:

 There is a package called 'linuxfdisk' that is just a FreeBSD
 implementation of the linux fdisk and will show you what the FreeBSD
 partitions/slices are.  You can also use gpart in the base system to get
 the same information.  The command 'gpart list ada0' will show the
 primary partitions, and the command 'gpart list ada0s4' should show the
 logical partitions inside of the extended partition.  You can also use
 'file -s' and possibly do read-only mounts to see exactly what they
 contain.  The names will probably map out like linux, but the 'sda*'
 will be changed to 'ada0s*'.

Thanks for the pointers. Here is the relevant part of the output from 
'gpart list ada0s4':

4. Name: ada0s8
   Mediasize: 4194304 (39G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 162529280
   Mode: r0w0e0
   rawtype: 131
   length: 4194304
   offset: 46143188992
   type: linux-data
   index: 1430498
   end: 172043415
   start: 90121368

So I put into my /etc/fstab:

/dev/ada0s8 /u01ext2fs  ro,noauto 00

But when I issue 'sudo mount /u01' I get:

mount: /dev/ada0s8: Invalid argument


What am I doing wrong?


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Mount Logical (ext2fs) Partitions?

2013-01-26 Thread Carl Johnson
Walter Hurry walterhu...@gmail.com writes:

 On Fri, 25 Jan 2013 21:07:59 -0800, Carl Johnson wrote:

 There is a package called 'linuxfdisk' that is just a FreeBSD
 implementation of the linux fdisk and will show you what the FreeBSD
 partitions/slices are.  You can also use gpart in the base system to get
 the same information.  The command 'gpart list ada0' will show the
 primary partitions, and the command 'gpart list ada0s4' should show the
 logical partitions inside of the extended partition.  You can also use
 'file -s' and possibly do read-only mounts to see exactly what they
 contain.  The names will probably map out like linux, but the 'sda*'
 will be changed to 'ada0s*'.

 Thanks for the pointers. Here is the relevant part of the output from 
 'gpart list ada0s4':

 4. Name: ada0s8
Mediasize: 4194304 (39G)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 162529280
Mode: r0w0e0
rawtype: 131
length: 4194304
offset: 46143188992
type: linux-data
index: 1430498
end: 172043415
start: 90121368

 So I put into my /etc/fstab:

 /dev/ada0s8 /u01ext2fs  ro,noauto 00

 But when I issue 'sudo mount /u01' I get:

 mount: /dev/ada0s8: Invalid argument


 What am I doing wrong?

I don't see anything wrong there.  I use labels when possible, but that
doesn't really change anything.  Have you tried using 'file -s
/dev/ada0s8' to see what the kernel thinks it is?
-- 
Carl Johnsonca...@peak.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Mount Logical (ext2fs) Partitions?

2013-01-26 Thread Ralf Mardorf

On Sat, 26 Jan 2013 18:24:06 +0100, Carl Johnson ca...@peak.org wrote:

/dev/ada0s8 /u01ext2fs  ro,noauto 00


I've got 2 ext3 partitions mounted.

/dev/ada0s8 /mnt/dump   ext2fs  rw  0   0
/dev/ada0s9 /mnt/archlinux  ext2fs  rw  0   0

Did you already test rw? Even if you wish ro,..., just for testing  
purpose.


$ uname -a
FreeBSD freebsd 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4  
09:23:10 UTC 2012  
r...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64


Regards,
Ralf
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Mount Logical (ext2fs) Partitions?

2013-01-26 Thread Walter Hurry
On Sat, 26 Jan 2013 09:24:06 -0800, Carl Johnson wrote:

 Walter Hurry walterhu...@gmail.com writes:
 
 On Fri, 25 Jan 2013 21:07:59 -0800, Carl Johnson wrote:

 There is a package called 'linuxfdisk' that is just a FreeBSD
 implementation of the linux fdisk and will show you what the FreeBSD
 partitions/slices are.  You can also use gpart in the base system to
 get the same information.  The command 'gpart list ada0' will show the
 primary partitions, and the command 'gpart list ada0s4' should show
 the logical partitions inside of the extended partition.  You can also
 use 'file -s' and possibly do read-only mounts to see exactly what
 they contain.  The names will probably map out like linux, but the
 'sda*' will be changed to 'ada0s*'.

 Thanks for the pointers. Here is the relevant part of the output from
 'gpart list ada0s4':

 4. Name: ada0s8
Mediasize: 4194304 (39G)
Sectorsize: 512 Stripesize: 0 Stripeoffset: 162529280 Mode: r0w0e0
rawtype: 131 length: 4194304 offset: 46143188992 type:
linux-data index: 1430498 end: 172043415 start: 90121368

 So I put into my /etc/fstab:

 /dev/ada0s8 /u01ext2fs  ro,noauto 0 0

 But when I issue 'sudo mount /u01' I get:

 mount: /dev/ada0s8: Invalid argument


 What am I doing wrong?
 
 I don't see anything wrong there.  I use labels when possible, but that
 doesn't really change anything.  Have you tried using 'file -s
 /dev/ada0s8' to see what the kernel thinks it is?

Sorry, I didn't take advantage of that earlier piece of advice. Here it
is:

$ file -s /dev/ada0s8 /dev/ada0s8: no read permission
$ ls -l /dev/ada0s8 crw-r-  1 root  operator0, 102 26 Jan 18:09 /
dev/ada0s8
$ sudo file -s /dev/ada0s8 /dev/ada0s8: Linux rev 1.0 ext4 filesystem 
data,UUID=d93b0074-04ca-4e5d-bee9-dfd85bce0b14, volume name 
u01 (extents) (large files) (huge files)
$

So it's my stupid mistake. I could have sworn it was ext2, but it was 
ext4. Sorry for all the noise! However, I'm glad you have helped, and 
that I have learned a little bit about Linux partitions as FreeeBSD 
slices.

It was empty, so I just reformatted it as ext2, and hey presto; all is 
right with the world.

Thanks again.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Mount Logical (ext2fs) Partitions?

2013-01-26 Thread Carl Johnson
Walter Hurry walterhu...@gmail.com writes:

 So it's my stupid mistake. I could have sworn it was ext2, but it was 
 ext4. Sorry for all the noise! However, I'm glad you have helped, and 
 that I have learned a little bit about Linux partitions as FreeeBSD 
 slices.

 It was empty, so I just reformatted it as ext2, and hey presto; all is 
 right with the world.

Good to know you have it working, but for future reference there is a
fuse implementation of an ext4 driver:

  sysutils/fusefs-ext4fuse  EXT4 implementation for FUSE
EXT4 implementation for FUSE.
WWW: https://github.com/gerard/ext4fuse/

I haven't tried it so I don't know how well it works.
-- 
Carl Johnsonca...@peak.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Mount Logical (ext2fs) Partitions?

2013-01-26 Thread Walter Hurry
On Sat, 26 Jan 2013 14:43:51 -0800, Carl Johnson wrote:

 Walter Hurry walterhu...@gmail.com writes:
 
 So it's my stupid mistake. I could have sworn it was ext2, but it was
 ext4. Sorry for all the noise! However, I'm glad you have helped, and
 that I have learned a little bit about Linux partitions as FreeeBSD
 slices.

 It was empty, so I just reformatted it as ext2, and hey presto; all is
 right with the world.
 
 Good to know you have it working, but for future reference there is a
 fuse implementation of an ext4 driver:
 
   sysutils/fusefs-ext4fuse  EXT4 implementation for FUSE
 EXT4 implementation for FUSE.
 WWW: https://github.com/gerard/ext4fuse/
 
 I haven't tried it so I don't know how well it works.

Even better!

But I'll leave it for the moment; ext2 will suffice for my simple 
requirements (I only want to share a few files between FreeBSD and Linux 
without the overhead of putting them onto the external USB drive which I 
use for backups).

I have of course mounted them rw, now that it's working.

Many thanks once again.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Mount Logical (ext2fs) Partitions?

2013-01-25 Thread Walter Hurry
9.1 on x86_64.

No doubt this question has been asked before, but how do I mount logical 
partitions (e2fs) under FreeBSD? I have checked the handbook, and 
DuckDuckGo'ed, but without finding anything useful.

The third slice on my first disk is a physical one, and will mount 
happily under FreeBSD.

From /etc/fstab:

/dev/ada0s3 /Mail   ext2fs  rw00

But I have a couple of logical partitions (also ext2fs) in the fourth 
slice, which I have been trying, unsuccessfully, to mount.

For information, here is the BSD view of the disk:

$ sudo fdisk
*** Working on device /dev/ada0 ***
parameters extracted from in-core disklabel are:
cylinders=310101 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=310101 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 131 (0x83),(Linux native)
start 2048, size 24576000 (12000 Meg), flag 0
beg: cyl 0/ head 32/ sector 33;
end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 24578064, size 44040150 (21503 Meg), flag 80 (active)
beg: cyl 1023/ head 255/ sector 63;
end: cyl 1023/ head 255/ sector 63
The data for partition 3 is:
sysid 131 (0x83),(Linux native)
start 68618240, size 958464 (468 Meg), flag 0
beg: cyl 1023/ head 254/ sector 63;
end: cyl 1023/ head 254/ sector 63
The data for partition 4 is:
sysid 5 (0x05),(Extended DOS)
start 69577576, size 243002520 (118653 Meg), flag 0
beg: cyl 1023/ head 254/ sector 63;
end: cyl 1023/ head 254/ sector 63
$

Now here's how Linux sees it:

$ sudo fdisk -l /dev/sda

Disk /dev/sda: 160.0 GB, 160041885696 bytes, 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x38d5b517

   Device Boot  Start End  Blocks   Id  System
/dev/sda120482457804712288000   83  Linux
/dev/sda2   *245780646861821322020075   a5  FreeBSD
/dev/sda36861824069576703  479232   83  Linux
/dev/sda469577576   312580095   1215012605  Extended
/dev/sda594158848   112590847 9216000   83  Linux
/dev/sda6   112592896   118736895 3072000   82  Linux swap / 
Solaris
/dev/sda7   118738944   1596989432048   83  Linux
/dev/sda8   159700992   2416209914096   83  Linux
/dev/sda9   241623040   27029913514338048   83  Linux
/dev/sda10  270301184   31258009521139456   83  Linux
/dev/sda11   695808009415679912288000   83  Linux

Partition table entries are not in disk order
$ 

Can anyone provide a pointer please?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Mount Logical (ext2fs) Partitions?

2013-01-25 Thread Joshua Isom

On 1/25/2013 5:36 PM, Walter Hurry wrote:

9.1 on x86_64.

No doubt this question has been asked before, but how do I mount logical
partitions (e2fs) under FreeBSD? I have checked the handbook, and
DuckDuckGo'ed, but without finding anything useful.

The third slice on my first disk is a physical one, and will mount
happily under FreeBSD.

 From /etc/fstab:

/dev/ada0s3 /Mail   ext2fs  rw00

But I have a couple of logical partitions (also ext2fs) in the fourth
slice, which I have been trying, unsuccessfully, to mount.

For information, here is the BSD view of the disk:

$ sudo fdisk
*** Working on device /dev/ada0 ***
parameters extracted from in-core disklabel are:
cylinders=310101 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=310101 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 131 (0x83),(Linux native)
 start 2048, size 24576000 (12000 Meg), flag 0
beg: cyl 0/ head 32/ sector 33;
end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
 start 24578064, size 44040150 (21503 Meg), flag 80 (active)
beg: cyl 1023/ head 255/ sector 63;
end: cyl 1023/ head 255/ sector 63
The data for partition 3 is:
sysid 131 (0x83),(Linux native)
 start 68618240, size 958464 (468 Meg), flag 0
beg: cyl 1023/ head 254/ sector 63;
end: cyl 1023/ head 254/ sector 63
The data for partition 4 is:
sysid 5 (0x05),(Extended DOS)
 start 69577576, size 243002520 (118653 Meg), flag 0
beg: cyl 1023/ head 254/ sector 63;
end: cyl 1023/ head 254/ sector 63
$

Now here's how Linux sees it:

$ sudo fdisk -l /dev/sda

Disk /dev/sda: 160.0 GB, 160041885696 bytes, 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x38d5b517

Device Boot  Start End  Blocks   Id  System
/dev/sda120482457804712288000   83  Linux
/dev/sda2   *245780646861821322020075   a5  FreeBSD
/dev/sda36861824069576703  479232   83  Linux
/dev/sda469577576   312580095   1215012605  Extended
/dev/sda594158848   112590847 9216000   83  Linux
/dev/sda6   112592896   118736895 3072000   82  Linux swap /
Solaris
/dev/sda7   118738944   1596989432048   83  Linux
/dev/sda8   159700992   2416209914096   83  Linux
/dev/sda9   241623040   27029913514338048   83  Linux
/dev/sda10  270301184   31258009521139456   83  Linux
/dev/sda11   695808009415679912288000   83  Linux

Partition table entries are not in disk order
$

Can anyone provide a pointer please?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org



What do /dev and the output of dmesg look like?  It looks like linux 
fdisk is hiding the fact that you have to cheat the bios to get more 
than four partitions with MBR partitioning.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Mount Logical (ext2fs) Partitions?

2013-01-25 Thread Carl Johnson
Walter Hurry walterhu...@gmail.com writes:

 9.1 on x86_64.

 No doubt this question has been asked before, but how do I mount logical 
 partitions (e2fs) under FreeBSD? I have checked the handbook, and 
 DuckDuckGo'ed, but without finding anything useful.

 The third slice on my first disk is a physical one, and will mount 
 happily under FreeBSD.

From /etc/fstab:

 /dev/ada0s3 /Mail   ext2fs  rw00

 But I have a couple of logical partitions (also ext2fs) in the fourth 
 slice, which I have been trying, unsuccessfully, to mount.

 For information, here is the BSD view of the disk:

 $ sudo fdisk
 *** Working on device /dev/ada0 ***
 parameters extracted from in-core disklabel are:
 cylinders=310101 heads=16 sectors/track=63 (1008 blks/cyl)

 Figures below won't work with BIOS for partitions not in cyl 1
 parameters to be used for BIOS calculations are:
 cylinders=310101 heads=16 sectors/track=63 (1008 blks/cyl)

 Media sector size is 512
 Warning: BIOS sector numbering starts with sector 1
 Information from DOS bootblock is:
 The data for partition 1 is:
 sysid 131 (0x83),(Linux native)
 start 2048, size 24576000 (12000 Meg), flag 0
   beg: cyl 0/ head 32/ sector 33;
   end: cyl 1023/ head 254/ sector 63
 The data for partition 2 is:
 sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
 start 24578064, size 44040150 (21503 Meg), flag 80 (active)
   beg: cyl 1023/ head 255/ sector 63;
   end: cyl 1023/ head 255/ sector 63
 The data for partition 3 is:
 sysid 131 (0x83),(Linux native)
 start 68618240, size 958464 (468 Meg), flag 0
   beg: cyl 1023/ head 254/ sector 63;
   end: cyl 1023/ head 254/ sector 63
 The data for partition 4 is:
 sysid 5 (0x05),(Extended DOS)
 start 69577576, size 243002520 (118653 Meg), flag 0
   beg: cyl 1023/ head 254/ sector 63;
   end: cyl 1023/ head 254/ sector 63
 $

 Now here's how Linux sees it:

 $ sudo fdisk -l /dev/sda

 Disk /dev/sda: 160.0 GB, 160041885696 bytes, 312581808 sectors
 Units = sectors of 1 * 512 = 512 bytes
 Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x38d5b517

Device Boot  Start End  Blocks   Id  System
 /dev/sda120482457804712288000   83  Linux
 /dev/sda2   *245780646861821322020075   a5  FreeBSD
 /dev/sda36861824069576703  479232   83  Linux
 /dev/sda469577576   312580095   1215012605  Extended
 /dev/sda594158848   112590847 9216000   83  Linux
 /dev/sda6   112592896   118736895 3072000   82  Linux swap / 
 Solaris
 /dev/sda7   118738944   1596989432048   83  Linux
 /dev/sda8   159700992   2416209914096   83  Linux
 /dev/sda9   241623040   27029913514338048   83  Linux
 /dev/sda10  270301184   31258009521139456   83  Linux
 /dev/sda11   695808009415679912288000   83  Linux

There is a package called 'linuxfdisk' that is just a FreeBSD
implementation of the linux fdisk and will show you what the FreeBSD
partitions/slices are.  You can also use gpart in the base system to get
the same information.  The command 'gpart list ada0' will show the
primary partitions, and the command 'gpart list ada0s4' should show the
logical partitions inside of the extended partition.  You can also use
'file -s' and possibly do read-only mounts to see exactly what they
contain.  The names will probably map out like linux, but the 'sda*'
will be changed to 'ada0s*'.

-- 
Carl Johnsonca...@peak.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: mounting ext2fs

2012-04-19 Thread perryh
Julian H. Stacey j...@berklix.com wrote:

  what does lsvfs show ?

 Maybe try: dd if=/dev/da0s1 count=20 of=/tmp/t ; file /tmp/t
 (it show interesting stuff on my /xp  anyway ).

Easier:  file -s /dev/da0s1
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: mounting ext2fs

2012-04-19 Thread Matthias Apitz
El día Thursday, April 19, 2012 a las 09:42:22AM -0700, per...@pluto.rain.com 
escribió:

 Julian H. Stacey j...@berklix.com wrote:
 
   what does lsvfs show ?
 
  Maybe try: dd if=/dev/da0s1 count=20 of=/tmp/t ; file /tmp/t
  (it show interesting stuff on my /xp  anyway ).
 
 Easier:  file -s /dev/da0s1

gives now:

# file -s /dev/da0s1 
/dev/da0s1: Linux rev 1.0 ext2 filesystem data (mounted or unclean)

and /dev/da0s1 is mounted:

# mount | fgrep /dev/da0s1
/dev/da0s1 on /mnt (ext2fs, local)

the problem with (this) cardreader seems to be that the card must
already inserted at boot time; a later switch to another card, for
example from a card with 'msdosfs' to a card with 'ext2fs', gives the
problem in my first mail; don't know if this is a bug or feature :-)

ext2fs.ko is loaded automagically by mount(8); I do not load it at boot,
but after the mount(8) it was loaded;

matthias
-- 
Matthias Apitz
e g...@unixarea.de - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: mounting ext2fs

2012-04-19 Thread Warren Block

On Thu, 19 Apr 2012, Matthias Apitz wrote:


the problem with (this) cardreader seems to be that the card must
already inserted at boot time; a later switch to another card, for
example from a card with 'msdosfs' to a card with 'ext2fs', gives the
problem in my first mail; don't know if this is a bug or feature :-)


Try forced retasting after loading a card.

  true  /dev/da0
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: mounting ext2fs

2012-04-19 Thread perryh
Warren Block wbl...@wonkity.com wrote:
 On Thu, 19 Apr 2012, Matthias Apitz wrote:
  the problem with (this) cardreader seems to be that the card must
  already inserted at boot time; a later switch to another card, for
  example from a card with 'msdosfs' to a card with 'ext2fs', gives the
  problem in my first mail; don't know if this is a bug or feature :-)

 Try forced retasting after loading a card.

true  /dev/da0

and/or unplugging/replugging the reader, if it is hot-pluggable (e.g. USB).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


mounting ext2fs

2012-04-18 Thread Matthias Apitz

Hello,

I'm trying to mount an ext2fs in 10-CURRENT with:

# fdisk /dev/da0
*** Working on device /dev/da0 ***
parameters extracted from in-core disklabel are:
cylinders=486 heads=64 sectors/track=32 (2048 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=486 heads=64 sectors/track=32 (2048 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 131 (0x83),(Linux native)
start 235, size 996117 (486 Meg), flag 80 (active)
beg: cyl 0/ head 3/ sector 47;
end: cyl 988/ head 7/ sector 7
The data for partition 2 is:
UNUSED
...
# mount -t ext2fs /dev/da0s1 /mnt
mount: /dev/da0s1 : Invalid argument
# ls -l /dev/da0s1
crw-r-  1 root  operator  0x66 18 abr 11:33 /dev/da0s1
# kldload ext2fs
kldload: can't load ext2fs: File exists

What I'm doing wrong. The filesystem itself is fine in Linux.

Thanks

matthias

-- 
Matthias Apitz
e g...@unixarea.de - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: mounting ext2fs

2012-04-18 Thread Julian H. Stacey
 # kldload ext2fs
 kldload: can't load ext2fs: File exists

what does lsvfs show ?

Cheers,
Julian
-- 
Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com
 Reply below not above, cumulative like a play script,  indent with  .
 Format: Plain text. Not HTML, multipart/alternative, base64, quoted-printable.
Mail from @yahoo dumped @berklix.  http://berklix.org/yahoo/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: mounting ext2fs

2012-04-18 Thread Julian H. Stacey
 what does lsvfs show ?

Maybe try: dd if=/dev/da0s1 count=20 of=/tmp/t ; file /tmp/t
(it show interesting stuff on my /xp  anyway ).

Cheers,
Julian
-- 
Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com
 Reply below not above, cumulative like a play script,  indent with  .
 Format: Plain text. Not HTML, multipart/alternative, base64, quoted-printable.
Mail from @yahoo dumped @berklix.  http://berklix.org/yahoo/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: mounting ext2fs

2012-04-18 Thread Julian H. Stacey
  what does lsvfs show ?
 
 Maybe try: dd if=/dev/da0s1 count=20 of=/tmp/t ; file /tmp/t
 (it show interesting stuff on my /xp  anyway ).

kldstat # I guess that shows you have the module linked in too ?
or else already compiled in
config -x /boot/kernel/kernel | grep ext

so a puzzle if all that looks good but still doesnt work. Good luck !

Cheers,
Julian
-- 
Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com
 Reply below not above, cumulative like a play script,  indent with  .
 Format: Plain text. Not HTML, multipart/alternative, base64, quoted-printable.
Mail from @yahoo dumped @berklix.  http://berklix.org/yahoo/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Is it appropriate to mount /var and /usr on ext2fs partition ?

2010-06-26 Thread zaxis

In fact, i never do such a thing manually! So would you mind  introducing it
in detail especially the command options i should use.

thanks!


RW-15 wrote:
 
 On Thu, 24 Jun 2010 18:36:13 -0700 (PDT)
 zaxis z_a...@163.com wrote:
 
 
 The /dev/ad4s8 is an empty partition. Now i want to move /var
 and /usr to it. Do i need to format /dev/ad4s8 to UFS ?
 
 I would, there are FreeBSD specific file flags, that I don't think are
 supported by  ext2fs. UFS with soft-updates is going to be faster than
 synchronously mounted ext2. And it's very easy to do.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 freebsd-questions-unsubscr...@freebsd.org
 
 


-
e^(π⋅i) + 1 = 0
-- 
View this message in context: 
http://old.nabble.com/Is-it-appropriate-to-mount--var-and--usr-on-ext2fs-partition---tp28988313p29003700.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Is it appropriate to mount /var and /usr on ext2fs partition ?

2010-06-25 Thread andrew clarke
On Thu 2010-06-24 18:36:13 UTC-0700, zaxis (z_a...@163.com) wrote:

 /dev/ad4s8 on /media/G (ext2fs, local)
 
 The /dev/ad4s8 is an empty partition. Now i want to move /var and /usr to
 it. Do i need to format /dev/ad4s8 to UFS ?

I would reformat it as UFS unless you plan on dual-booting Linux on
the same machine.

You can use the -U argument with the newfs command to enable
softupdates.  AFAIK the default is off.  Alternatively you can use
tunefs to do this after you run newfs, but before you mount it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Is it appropriate to mount /var and /usr on ext2fs partition ?

2010-06-25 Thread RW
On Thu, 24 Jun 2010 18:36:13 -0700 (PDT)
zaxis z_a...@163.com wrote:


 The /dev/ad4s8 is an empty partition. Now i want to move /var
 and /usr to it. Do i need to format /dev/ad4s8 to UFS ?

I would, there are FreeBSD specific file flags, that I don't think are
supported by  ext2fs. UFS with soft-updates is going to be faster than
synchronously mounted ext2. And it's very easy to do.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Is it appropriate to mount /var and /usr on ext2fs partition ?

2010-06-24 Thread zaxis

df -h
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/ad4s3a496M119M337M26%/
devfs  1.0K1.0K  0B   100%/dev
/dev/ad4s3e496M6.7M449M 1%/tmp
/dev/ad4s3f 14G7.8G5.4G59%/usr
/dev/ad4s3d1.4G171M1.1G13%/var
/dev/ad4s7  30G3.5G 26G12%/media/F
/dev/ad4s8  30G172M 28G 1%/media/G

mount
/dev/ad4s3a on / (ufs, local)
devfs on /dev (devfs, local, multilabel)
/dev/ad4s3e on /tmp (ufs, local, soft-updates)
/dev/ad4s3f on /usr (ufs, local, soft-updates)
/dev/ad4s3d on /var (ufs, local, soft-updates)
/dev/ad4s7 on /media/F (msdosfs, local)
/dev/ad4s8 on /media/G (ext2fs, local)

The /dev/ad4s8 is an empty partition. Now i want to move /var and /usr to
it. Do i need to format /dev/ad4s8 to UFS ?

Sincerely!


-
e^(π⋅i) + 1 = 0
-- 
View this message in context: 
http://old.nabble.com/Is-it-appropriate-to-mount--var-and--usr-on-ext2fs-partition---tp28988313p28988313.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: (solved) Re: Problem mounting EXT2FS

2009-08-28 Thread Fernando Apesteguía
On Tue, Aug 25, 2009 at 12:17 AM, Jeronimo
Calvojeronimocal...@googlemail.com wrote:
 Thanks a lot fellas!! problem resolved!!!

Did you try to unmount the filesystem?

I applied the patch against 7.2-RELEASE-p3 and I can't unmount it: Device busy.

Anyone else with this problem?

Cheers


 On 24/08/2009, Gonzalo Nemmi gne...@gmail.com wrote:

 On Monday 24 August 2009 6:44:24 pm Jeronimo Calvo wrote:
  True you are right... I was using the incorrect syntax and the
  incorrect word hehehhe
 
  well I did try as well using the correct procedure:
 
  Thats the result (mounted but not accesible)
 
  [root@ /media/DATOSWIN]# mount
  /dev/ad8s1a on / (ufs, local)
  devfs on /dev (devfs, local)
  /dev/ad8s1e on /tmp (ufs, local, soft-updates)
  /dev/ad8s1f on /usr (ufs, local, soft-updates)
  /dev/ad8s1d on /var (ufs, local, soft-updates)
  /dev/ntfs/DATOSWIN on /media/DATOSWIN (ntfs, local, nosuid)
  [root@ /media/DATOSWIN]# *mount -t ext2fs /dev/ad6s1 /ext2*
  [root@ /media/DATOSWIN]# cd /ext2
  *bash: cd: /ext2: Not a directory*
  [root@ /media/DATOSWIN]# ls -la /ext2
  *ls: /ext2: Bad file descriptor*
  [root@ /media/DATOSWIN]#
 


 Here's the problem:
 http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/124621

 Here's how to solve it:
 http://forums.freebsd.org/showthread.php?t=912highlight=ext2fs


  2009/8/24 Polytropon free...@edvax.de
 
   Maybe just malquoted, but...
  
   On Mon, 24 Aug 2009 20:20:29 +, Jeronimo Calvo 
  
   jeronimocal...@googlemail.com wrote:
# mount -t extfs2 /dev/ad6s1 /ext2
mount: /dev/ad6s1 : Operation not supported by device
  
   The command should include -t ext2fs, not extfs2, as far as I
   remember. I haven't run Linux for almost 10 years now...
  
I tried several times, with not luck, one of those times i was
able to
  
   mount
  
it, but not to access it, when i tried to cd /ext2 (folder when
is
  
   mounted)
  
system tells me that ext2 is not a folder...
  
   There are no folders in the UNIX file system hierarchy. The
   things you're mentioning are called directories. I know, that's
   just terminology, but it's important to use the correct words
   context-wise. You don't call the files sheets of paper, do you?
   :-)
  
  
  
  
  
   --
   Polytropon
   Magdeburg, Germany
   Happy FreeBSD user since 4.0
   Andra moi ennepe, Mousa, ...
 

  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
  freebsd-questions-unsubscr...@freebsd.org



 --
 Blessings

 Gonzalo Nemmi

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Problem mounting EXT2FS

2009-08-25 Thread Mark Stapper
Jeronimo Calvo wrote:
 Hi folks, im migrating from Linux to BSD, and i found my first problem...
 First of all, i did save my /home from my old Linux distribution on another
 HD, ext2fs partition /dev/ad6s1... I can correctly see the drive from
 sysinstall.

 I read about compiling the KERNEL in order to add Ext2fs support under
 Freebsd, wich I did... Adding the line:

  Quote:
   options EXT2FS
 looking like this:

  Quote:
   options KBD_INSTALL_CDEV # install a CDEV entry in /dev
 options ADAPTIVE_GIANT # Giant mutex is adaptive.
 options STOP_NMI # Stop CPUS using NMI instead of IPI
 options AUDIT # Security event auditing
 #options KDTRACE_FRAME # Ensure frames are compiled in
 *options EXT2FS*
 #options KDTRACE_HOOKS # Kernel DTrace hooks
 After this i recompiled the kernel and installed...

  Quote:
   # uname -a
 FreeBSD 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Mon Aug 24 18:59:43 UTC 2009
 iscariote@:/usr/obj/usr/src/sys/MYKERNEL amd64
 Well... everything should be ready now to mount my ext2fs partition... Using
 the following command...

  Quote:
   # mount
 /dev/ad8s1a on / (ufs, local)
 devfs on /dev (devfs, local)
 /dev/ad8s1e on /tmp (ufs, local, soft-updates)
 /dev/ad8s1f on /usr (ufs, local, soft-updates)
 /dev/ad8s1d on /var (ufs, local, soft-updates)
 /dev/ntfs/DATOSWIN on /media/DATOSWIN (ntfs, local, nosuid)
 # mount -t extfs2 /dev/ad6s1 /ext2
 mount: /dev/ad6s1 : Operation not supported by device

 I tried several times, with not luck, one of those times i was able to mount
 it, but not to access it, when i tried to cd /ext2 (folder when is mounted)
 system tells me that ext2 is not a folder...

 any ideas???

 Thanks in advance!!
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
   
besides, I think it's ext2fs, not extfs2...
Typo?
greetz,
Mark



signature.asc
Description: OpenPGP digital signature


Re: Problem mounting EXT2FS

2009-08-25 Thread Jeronimo Calvo
Actually, im just compile it and restart it... seems to be working fine
now...

By the way... who do i do that?? is that necessary?

cheers!

2009/8/25 Mark Stapper st...@mapper.nl

 Jeronimo Calvo wrote:
  Hi folks, im migrating from Linux to BSD, and i found my first problem...
  First of all, i did save my /home from my old Linux distribution on
 another
  HD, ext2fs partition /dev/ad6s1... I can correctly see the drive from
  sysinstall.
 
  I read about compiling the KERNEL in order to add Ext2fs support under
  Freebsd, wich I did... Adding the line:
 
   Quote:
options EXT2FS
  looking like this:
 
   Quote:
options KBD_INSTALL_CDEV # install a CDEV entry in /dev
  options ADAPTIVE_GIANT # Giant mutex is adaptive.
  options STOP_NMI # Stop CPUS using NMI instead of IPI
  options AUDIT # Security event auditing
  #options KDTRACE_FRAME # Ensure frames are compiled in
  *options EXT2FS*
  #options KDTRACE_HOOKS # Kernel DTrace hooks
  After this i recompiled the kernel and installed...
 
   Quote:
# uname -a
  FreeBSD 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Mon Aug 24 18:59:43 UTC 2009
  iscariote@:/usr/obj/usr/src/sys/MYKERNEL amd64
  Well... everything should be ready now to mount my ext2fs partition...
 Using
  the following command...
 
   Quote:
# mount
  /dev/ad8s1a on / (ufs, local)
  devfs on /dev (devfs, local)
  /dev/ad8s1e on /tmp (ufs, local, soft-updates)
  /dev/ad8s1f on /usr (ufs, local, soft-updates)
  /dev/ad8s1d on /var (ufs, local, soft-updates)
  /dev/ntfs/DATOSWIN on /media/DATOSWIN (ntfs, local, nosuid)
  # mount -t extfs2 /dev/ad6s1 /ext2
  mount: /dev/ad6s1 : Operation not supported by device
 
  I tried several times, with not luck, one of those times i was able to
 mount
  it, but not to access it, when i tried to cd /ext2 (folder when is
 mounted)
  system tells me that ext2 is not a folder...
 
  any ideas???
 
  Thanks in advance!!
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org
 
 Did you recompile world as well?
 You might also want to install sysutils/e2fsprogs.
 I have not done this myself yet though...
 Hope it helps.
 Mark


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Problem mounting EXT2FS

2009-08-25 Thread Jeronimo Calvo
hi Mark!

Im using FreeBSD 7.2-RELEASE... but im not sure about the userland, is
currently fresh installed, just compiled the KERNEL to add ext2fs support
and installed the patch for the 256-inode... nothing else... But I will take
your advise and upgrade my kernel to STABLE (as I think it will be funny as
well, ur not the one geek here I suposse hahahaha)

I will need to get some more knowledge about userland... :D

Will check up ur links fella! btw, if u find anything else new-bie
related... send me as well!!

Cheers!

2009/8/25 Mark Stapper st...@mapper.nl

 Jeronimo Calvo wrote:
  Actually, im just compile it and restart it... seems to be working
  fine now...
 
  By the way... who do i do that?? is that necessary?
 
  cheers!
 well, if you have the RELEASE source, and the RELEASE userland
 there is no problem.
 However if you have the STABLE source and the RELEASE userland there
 could be incompatible behaviour.
 Upgrading your kernel to the STABLE release is generally a good idea.
 For more info check:
 http://www.freebsd.org/doc/en/books/handbook/kernelconfig.html
 and
 http://www.freebsd.org/doc/en/books/handbook/synching.html
 and
 http://www.freebsd.org/doc/en/books/handbook/makeworld.html
 Be sure to make backups, as the way to recover is very different from
 Linux.

 Have fun! (Yes, I consider compiling your own kernel and userland to be
 fun)
 Greetz,
 Mark


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Problem mounting EXT2FS

2009-08-25 Thread Mark Stapper
Jeronimo Calvo wrote:
 hi Mark!

 Im using FreeBSD 7.2-RELEASE... but im not sure about the userland,
 is currently fresh installed, just compiled the KERNEL to add ext2fs
 support and installed the patch for the 256-inode... nothing else...
 But I will take your advise and upgrade my kernel to STABLE (as I
 think it will be funny as well, ur not the one geek here I suposse
 hahahaha)
Don't forget to reapply the ext2 patch... ;-)

 I will need to get some more knowledge about userland... :D
the userland is just the collection of base applications or base
distribution.


 Will check up ur links fella! btw, if u find anything else new-bie
 related... send me as well!!
Just read all the chapters listed here:
http://www.freebsd.org/doc/en/books/handbook/
;-)



signature.asc
Description: OpenPGP digital signature


Re: Problem mounting EXT2FS

2009-08-25 Thread Jeronimo Calvo
I have as well this in the other hand: heheheh, THE BIBLE!

[image: 51dtdR9r6RL._SL500_AA240_.jpg]

2009/8/25 Mark Stapper st...@mapper.nl

 Jeronimo Calvo wrote:
  hi Mark!
 
  Im using FreeBSD 7.2-RELEASE... but im not sure about the userland,
  is currently fresh installed, just compiled the KERNEL to add ext2fs
  support and installed the patch for the 256-inode... nothing else...
  But I will take your advise and upgrade my kernel to STABLE (as I
  think it will be funny as well, ur not the one geek here I suposse
  hahahaha)
 Don't forget to reapply the ext2 patch... ;-)
 
  I will need to get some more knowledge about userland... :D
 the userland is just the collection of base applications or base
 distribution.

 
  Will check up ur links fella! btw, if u find anything else new-bie
  related... send me as well!!
 Just read all the chapters listed here:
 http://www.freebsd.org/doc/en/books/handbook/
 ;-)


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Problem mounting EXT2FS

2009-08-25 Thread Polytropon
On Tue, 25 Aug 2009 13:33:59 +0200, Mark Stapper st...@mapper.nl wrote:
 Don't forget to reapply the ext2 patch... ;-)

And of course keep in mind that kernel and world (userland) have
to be of the same version, e. g. if you upgrade your sources to
7-STABLE, recompile kernel and world and install them. You'll
find a handy procedure for that in the handbook.



 the userland is just the collection of base applications or base
 distribution.

It can be called only the OS, too. :-)



 Just read all the chapters listed here:
 http://www.freebsd.org/doc/en/books/handbook/
 ;-)

At leasst, keep it near yourself. Most ordinary problems can
be solved or even avoided by sticking to what the handbook says.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Problem mounting EXT2FS

2009-08-24 Thread Jeronimo Calvo
Hi folks, im migrating from Linux to BSD, and i found my first problem...
First of all, i did save my /home from my old Linux distribution on another
HD, ext2fs partition /dev/ad6s1... I can correctly see the drive from
sysinstall.

I read about compiling the KERNEL in order to add Ext2fs support under
Freebsd, wich I did... Adding the line:

 Quote:
  options EXT2FS
looking like this:

 Quote:
  options KBD_INSTALL_CDEV # install a CDEV entry in /dev
options ADAPTIVE_GIANT # Giant mutex is adaptive.
options STOP_NMI # Stop CPUS using NMI instead of IPI
options AUDIT # Security event auditing
#options KDTRACE_FRAME # Ensure frames are compiled in
*options EXT2FS*
#options KDTRACE_HOOKS # Kernel DTrace hooks
After this i recompiled the kernel and installed...

 Quote:
  # uname -a
FreeBSD 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Mon Aug 24 18:59:43 UTC 2009
iscariote@:/usr/obj/usr/src/sys/MYKERNEL amd64
Well... everything should be ready now to mount my ext2fs partition... Using
the following command...

 Quote:
  # mount
/dev/ad8s1a on / (ufs, local)
devfs on /dev (devfs, local)
/dev/ad8s1e on /tmp (ufs, local, soft-updates)
/dev/ad8s1f on /usr (ufs, local, soft-updates)
/dev/ad8s1d on /var (ufs, local, soft-updates)
/dev/ntfs/DATOSWIN on /media/DATOSWIN (ntfs, local, nosuid)
# mount -t extfs2 /dev/ad6s1 /ext2
mount: /dev/ad6s1 : Operation not supported by device

I tried several times, with not luck, one of those times i was able to mount
it, but not to access it, when i tried to cd /ext2 (folder when is mounted)
system tells me that ext2 is not a folder...

any ideas???

Thanks in advance!!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Problem mounting EXT2FS

2009-08-24 Thread Scott Schappell
Judging by your uname output, the #0 should be #1 if it's reading a re- 
compiled kernel.  I would double check that you used the proper  
KERNCONF for make buildkernel and make installkernel.


For example, I recompiled my kernel and note the output:

[r...@arthur /var/account]# uname -a
FreeBSD arthur.silvertree.org 7.2-RELEASE-p3 FreeBSD 7.2-RELEASE-p3  
#1: Fri Aug 14 13:27:47 PDT 2009 r...@arthur.silvertree.org:/usr/ 
obj/usr/src/sys/ARTHUR  i386


See the #1? That shows me that the kernel has been recompiled once.

The fact it says MYKERNEL for the kernel config, make sure that you  
copied GENERIC to MYKERNEL in /usr/src/sys/i386/conf/


I used the handbook and actually put ARTHUR in /root/kernels and in / 
usr/src/sys/i386/conf:


[r...@arthur ~/kernels]# ls -la /usr/src/sys/i386/conf/ARTHUR
lrwxr-xr-x  1 root  wheel  20 Jul 29 07:57 /usr/src/sys/i386/conf/ 
ARTHUR - /root/kernels/ARTHUR


I'd suggest that you didn't compile the right kernel config file.

Another suggestion I used was to add in /etc/make.conf:

KERNCONF=ARTHUR

So add KERNCONF=MYKERNEL then copy /usr/src/sys/i386/conf/GENERIC  
to /usr/src/sys/i386/conf/MYKERNEL then edit MYKERNEL as needed and  
with that line in /etc/make.conf:


cd /usr/src  make buildkernel  make installkernel  shutdown -r now

I may be off base, but I'd start with double checking the kernel  
config file used for buildkernel and installkernel.


Scott

On Aug 24, 2009, at 13:20:29, Jeronimo Calvo wrote:

Hi folks, im migrating from Linux to BSD, and i found my first  
problem...
First of all, i did save my /home from my old Linux distribution on  
another

HD, ext2fs partition /dev/ad6s1... I can correctly see the drive from
sysinstall.

I read about compiling the KERNEL in order to add Ext2fs support under
Freebsd, wich I did... Adding the line:

Quote:
 options EXT2FS
looking like this:

Quote:
 options KBD_INSTALL_CDEV # install a CDEV entry in /dev
options ADAPTIVE_GIANT # Giant mutex is adaptive.
options STOP_NMI # Stop CPUS using NMI instead of IPI
options AUDIT # Security event auditing
#options KDTRACE_FRAME # Ensure frames are compiled in
*options EXT2FS*
#options KDTRACE_HOOKS # Kernel DTrace hooks
After this i recompiled the kernel and installed...

Quote:
 # uname -a
FreeBSD 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Mon Aug 24 18:59:43 UTC  
2009

iscariote@:/usr/obj/usr/src/sys/MYKERNEL amd64
Well... everything should be ready now to mount my ext2fs  
partition... Using

the following command...

Quote:
 # mount
/dev/ad8s1a on / (ufs, local)
devfs on /dev (devfs, local)
/dev/ad8s1e on /tmp (ufs, local, soft-updates)
/dev/ad8s1f on /usr (ufs, local, soft-updates)
/dev/ad8s1d on /var (ufs, local, soft-updates)
/dev/ntfs/DATOSWIN on /media/DATOSWIN (ntfs, local, nosuid)
# mount -t extfs2 /dev/ad6s1 /ext2
mount: /dev/ad6s1 : Operation not supported by device

I tried several times, with not luck, one of those times i was able  
to mount
it, but not to access it, when i tried to cd /ext2 (folder when is  
mounted)

system tells me that ext2 is not a folder...

any ideas???

Thanks in advance!!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org 



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Problem mounting EXT2FS

2009-08-24 Thread Polytropon
Maybe just malquoted, but...

On Mon, 24 Aug 2009 20:20:29 +, Jeronimo Calvo 
jeronimocal...@googlemail.com wrote:
 # mount -t extfs2 /dev/ad6s1 /ext2
 mount: /dev/ad6s1 : Operation not supported by device

The command should include -t ext2fs, not extfs2, as far as I
remember. I haven't run Linux for almost 10 years now...



 I tried several times, with not luck, one of those times i was able to mount
 it, but not to access it, when i tried to cd /ext2 (folder when is mounted)
 system tells me that ext2 is not a folder...

There are no folders in the UNIX file system hierarchy. The
things you're mentioning are called directories. I know, that's 
just terminology, but it's important to use the correct words
context-wise. You don't call the files sheets of paper, do you? :-)





-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Problem mounting EXT2FS

2009-08-24 Thread Jeronimo Calvo
True you are right... I was using the incorrect syntax and the incorrect
word hehehhe

well I did try as well using the correct procedure:

Thats the result (mounted but not accesible)

[root@ /media/DATOSWIN]# mount
/dev/ad8s1a on / (ufs, local)
devfs on /dev (devfs, local)
/dev/ad8s1e on /tmp (ufs, local, soft-updates)
/dev/ad8s1f on /usr (ufs, local, soft-updates)
/dev/ad8s1d on /var (ufs, local, soft-updates)
/dev/ntfs/DATOSWIN on /media/DATOSWIN (ntfs, local, nosuid)
[root@ /media/DATOSWIN]# *mount -t ext2fs /dev/ad6s1 /ext2*
[root@ /media/DATOSWIN]# cd /ext2
*bash: cd: /ext2: Not a directory*
[root@ /media/DATOSWIN]# ls -la /ext2
*ls: /ext2: Bad file descriptor*
[root@ /media/DATOSWIN]#


2009/8/24 Polytropon free...@edvax.de

 Maybe just malquoted, but...

 On Mon, 24 Aug 2009 20:20:29 +, Jeronimo Calvo 
 jeronimocal...@googlemail.com wrote:
  # mount -t extfs2 /dev/ad6s1 /ext2
  mount: /dev/ad6s1 : Operation not supported by device

 The command should include -t ext2fs, not extfs2, as far as I
 remember. I haven't run Linux for almost 10 years now...



  I tried several times, with not luck, one of those times i was able to
 mount
  it, but not to access it, when i tried to cd /ext2 (folder when is
 mounted)
  system tells me that ext2 is not a folder...

 There are no folders in the UNIX file system hierarchy. The
 things you're mentioning are called directories. I know, that's
 just terminology, but it's important to use the correct words
 context-wise. You don't call the files sheets of paper, do you? :-)





 --
 Polytropon
 Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


(solved) Re: Problem mounting EXT2FS

2009-08-24 Thread Jeronimo Calvo
Thanks a lot fellas!! problem resolved!!!

On 24/08/2009, Gonzalo Nemmi gne...@gmail.com wrote:

 On Monday 24 August 2009 6:44:24 pm Jeronimo Calvo wrote:
  True you are right... I was using the incorrect syntax and the
  incorrect word hehehhe
 
  well I did try as well using the correct procedure:
 
  Thats the result (mounted but not accesible)
 
  [root@ /media/DATOSWIN]# mount
  /dev/ad8s1a on / (ufs, local)
  devfs on /dev (devfs, local)
  /dev/ad8s1e on /tmp (ufs, local, soft-updates)
  /dev/ad8s1f on /usr (ufs, local, soft-updates)
  /dev/ad8s1d on /var (ufs, local, soft-updates)
  /dev/ntfs/DATOSWIN on /media/DATOSWIN (ntfs, local, nosuid)
  [root@ /media/DATOSWIN]# *mount -t ext2fs /dev/ad6s1 /ext2*
  [root@ /media/DATOSWIN]# cd /ext2
  *bash: cd: /ext2: Not a directory*
  [root@ /media/DATOSWIN]# ls -la /ext2
  *ls: /ext2: Bad file descriptor*
  [root@ /media/DATOSWIN]#
 


 Here's the problem:
 http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/124621

 Here's how to solve it:
 http://forums.freebsd.org/showthread.php?t=912highlight=ext2fs


  2009/8/24 Polytropon free...@edvax.de
 
   Maybe just malquoted, but...
  
   On Mon, 24 Aug 2009 20:20:29 +, Jeronimo Calvo 
  
   jeronimocal...@googlemail.com wrote:
# mount -t extfs2 /dev/ad6s1 /ext2
mount: /dev/ad6s1 : Operation not supported by device
  
   The command should include -t ext2fs, not extfs2, as far as I
   remember. I haven't run Linux for almost 10 years now...
  
I tried several times, with not luck, one of those times i was
able to
  
   mount
  
it, but not to access it, when i tried to cd /ext2 (folder when
is
  
   mounted)
  
system tells me that ext2 is not a folder...
  
   There are no folders in the UNIX file system hierarchy. The
   things you're mentioning are called directories. I know, that's
   just terminology, but it's important to use the correct words
   context-wise. You don't call the files sheets of paper, do you?
   :-)
  
  
  
  
  
   --
   Polytropon
   Magdeburg, Germany
   Happy FreeBSD user since 4.0
   Andra moi ennepe, Mousa, ...
 

  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
  freebsd-questions-unsubscr...@freebsd.org



 --
 Blessings

 Gonzalo Nemmi

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Problem mounting EXT2FS

2009-08-24 Thread Gonzalo Nemmi
On Monday 24 August 2009 6:44:24 pm Jeronimo Calvo wrote:
 True you are right... I was using the incorrect syntax and the
 incorrect word hehehhe

 well I did try as well using the correct procedure:

 Thats the result (mounted but not accesible)

 [root@ /media/DATOSWIN]# mount
 /dev/ad8s1a on / (ufs, local)
 devfs on /dev (devfs, local)
 /dev/ad8s1e on /tmp (ufs, local, soft-updates)
 /dev/ad8s1f on /usr (ufs, local, soft-updates)
 /dev/ad8s1d on /var (ufs, local, soft-updates)
 /dev/ntfs/DATOSWIN on /media/DATOSWIN (ntfs, local, nosuid)
 [root@ /media/DATOSWIN]# *mount -t ext2fs /dev/ad6s1 /ext2*
 [root@ /media/DATOSWIN]# cd /ext2
 *bash: cd: /ext2: Not a directory*
 [root@ /media/DATOSWIN]# ls -la /ext2
 *ls: /ext2: Bad file descriptor*
 [root@ /media/DATOSWIN]#


Here's the problem:
http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/124621

Here's how to solve it:
http://forums.freebsd.org/showthread.php?t=912highlight=ext2fs

 2009/8/24 Polytropon free...@edvax.de

  Maybe just malquoted, but...
 
  On Mon, 24 Aug 2009 20:20:29 +, Jeronimo Calvo 
 
  jeronimocal...@googlemail.com wrote:
   # mount -t extfs2 /dev/ad6s1 /ext2
   mount: /dev/ad6s1 : Operation not supported by device
 
  The command should include -t ext2fs, not extfs2, as far as I
  remember. I haven't run Linux for almost 10 years now...
 
   I tried several times, with not luck, one of those times i was
   able to
 
  mount
 
   it, but not to access it, when i tried to cd /ext2 (folder when
   is
 
  mounted)
 
   system tells me that ext2 is not a folder...
 
  There are no folders in the UNIX file system hierarchy. The
  things you're mentioning are called directories. I know, that's
  just terminology, but it's important to use the correct words
  context-wise. You don't call the files sheets of paper, do you?
  :-)
 
 
 
 
 
  --
  Polytropon
  Magdeburg, Germany
  Happy FreeBSD user since 4.0
  Andra moi ennepe, Mousa, ...

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 freebsd-questions-unsubscr...@freebsd.org



-- 
Blessings
Gonzalo Nemmi
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


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

2008-07-21 Thread Dieter
 # mount -t ext2fs /dev/ad0s8 /mnt/
 # ls /mnt
 ls: /mnt: Bad file descriptor

Weird.

I can mount ext2fs on 7.0 (and previously on 6.0 and 6.2) and
things mostly work.  In the past I had ext2fs on both primary
and extended slices (or whatever the preferred terminology is).
This is on AMD64 with SATA drives.  My ext2fs filesystems were
created by Linux (32 bit Linux, since penguins can't count to 64).

Are you sure that ad0s8 contains a valid ext2fs filesystem?
Can Linux mount it and access it?
Maybe try running fsck?
What OS created (newfs/mkfs) the filesystem?

Problems I have seen with ext2fs:

There was some case where accessing a large (  1 GB) file
(rm-ing it I think?) hung or paniced FreeBSD.  Small files
are fine.

Sometimes on boot FreeBSD would get confused and think the
fext2fs needed to be fscked dispite a clean shutdown, but
wasn't able to do so automagically, so it dropped into single
user mode and sat there waiting for manual intervention.  I
no longer have ext2fs automatically mounted.  There is
probably some configuration fix for this.

ext2fs is unreliable and LOSES DATA under it's native Linux.

---

 Linus
 Is
 Not a
 Unix
eXpert
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2008-07-05 Thread Nejc Škoberne

Hey,


Have you, by any chance, tried and suceded at mounting ext2fs on FBSD7?
If you did, at least I'd know that it _is_ possible :s


It is possible, although I haven't used this on FreeBSD 7.0 yet (only on 5.x
and 6.x releases).

I'd also try this:

mkdir /mnttest
mount -t ext2fs /dev/ad0s8 /mnttest
ls /mnttest
file /mnttest
ls -la / | grep mnttest

and maybe also:

fdisk /dev/ad0

Bye,
Nejc



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2008-07-05 Thread Gonzalo Nemmi
On Saturday 05 July 2008 01:37:26 Ryan Coleman wrote:
 Gonzalo Nemmi wrote:
  On Friday 04 July 2008 22:58:18 you wrote:
  Gonzalo Nemmi wrote:
  Could somebody please throw me a pointer ...
  i have followed every instruction on every book and/or how-to ... yet
  ...
 
  What am I doing wrong??
 
  [EMAIL PROTECTED]:~ # uname -sr
  FreeBSD 7.0-RELEASE
  [EMAIL PROTECTED]:~ # kldstat
  Id Refs AddressSize Name
   1   10 0xc040 4dd878   kernel
   21 0xc08de000 7559b0   nvidia.ko
   31 0xc1034000 6721cacpi.ko
   41 0xc4a2e000 4000 logo_saver.ko
   51 0xc5884000 1ext2fs.ko
  [EMAIL PROTECTED]:~ # mount -t ext2fs /dev/ad0s8 /mnt/
  [EMAIL PROTECTED]:~ # ls /mnt
  ls: /mnt: Bad file descriptor
  [EMAIL PROTECTED]:~ # cd /mnt
  /mnt: Not a directory.
  [EMAIL PROTECTED]:~ # umount /mnt
  [EMAIL PROTECTED]:~ # cd /mnt
  [EMAIL PROTECTED]:/mnt # mount -t ext2fs /dev/ad0s8 .
  [EMAIL PROTECTED]:/mnt # ls
  ls: .: Not a directory
  [EMAIL PROTECTED]:/mnt # cd ~
  [EMAIL PROTECTED]:~ # umount /mnt
  [EMAIL PROTECTED]:~ # file /mnt/
  /mnt/: directory
  [EMAIL PROTECTED]:~ # cd /mnt
  [EMAIL PROTECTED]:/mnt # ls
  [EMAIL PROTECTED]:/mnt #
 
  dmesg says _nothing_
  _Any_ hint will be more than welcome :)
 
  What does /var/log/messages say when you run mount -t ext2fs?
 
  Hi Ryan!
  And thanks for your help :)
 
  Unfortunately, just as much as dmesg, /var/log/messages says nothing :s
  Look:
 
  [EMAIL PROTECTED]:~ # date
  Sat Jul  5 00:39:39 ART 2008
  [EMAIL PROTECTED]:~ # mount -t ext2fs /dev/ad0s8 /mnt/
  [EMAIL PROTECTED]:~ # ls /mnt
  ls: /mnt: Bad file descriptor
  [EMAIL PROTECTED]:~ # cd /mnt
  /mnt: Not a directory.
  [EMAIL PROTECTED]:~ # cat /var/log/messages | tail -5
  Jul  4 20:21:13 inferna su: gonzalo to root on /dev/ttyp2
  Jul  4 20:38:34 inferna kernel: linux: pid 8503 (doom.x86): ioctl fd=17,
  cmd=0x5801 ('X',1) is not implemented
  Jul  4 20:47:28 inferna kernel: pid 8511 (doom.x86), uid 1001: exited on
  signal 11
  Jul  4 23:54:48 inferna su: gonzalo to root on /dev/ttyp3
  Jul  5 00:38:24 inferna su: gonzalo to root on /dev/ttyp2
  [EMAIL PROTECTED]:~ # umount /mnt
  [EMAIL PROTECTED]:~ # cat /var/log/messages | tail -5
  Jul  4 20:21:13 inferna su: gonzalo to root on /dev/ttyp2
  Jul  4 20:38:34 inferna kernel: linux: pid 8503 (doom.x86): ioctl fd=17,
  cmd=0x5801 ('X',1) is not implemented
  Jul  4 20:47:28 inferna kernel: pid 8511 (doom.x86), uid 1001: exited on
  signal 11
  Jul  4 23:54:48 inferna su: gonzalo to root on /dev/ttyp3
  Jul  5 00:38:24 inferna su: gonzalo to root on /dev/ttyp2
  [EMAIL PROTECTED]:~ #
 
  Have you, by any chance, tried and suceded at mounting ext2fs on FBSD7?
  If you did, at least I'd know that it _is_ possible :s
 
  Thanks  :)

 No, I thought maybe there was something there I could help with I
 haven't used ext/ext2/ext3 since I dumped RHL in 2003.

Sure, i understand ...
Thanks for your help anyways :)

-- 
Blessings
Gonzalo Nemmi
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2008-07-05 Thread Gonzalo Nemmi
On Saturday 05 July 2008 03:24:53 Nejc Škoberne wrote:
 Hey,

  Have you, by any chance, tried and suceded at mounting ext2fs on FBSD7?
  If you did, at least I'd know that it _is_ possible :s

 It is possible, although I haven't used this on FreeBSD 7.0 yet (only on
 5.x and 6.x releases).

 I'd also try this:

 mkdir /mnttest
 mount -t ext2fs /dev/ad0s8 /mnttest
 ls /mnttest
 file /mnttest
 ls -la / | grep mnttest

 and maybe also:

 fdisk /dev/ad0

 Bye,
 Nejc

No luck :(
Exactly the same results ...

Just in case you can see something that I don't, here you go:

[EMAIL PROTECTED]:~ # fdisk /dev/ad0
*** Working on device /dev/ad0 ***
parameters extracted from in-core disklabel are:
cylinders=387621 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=387621 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 131 (0x83),(Linux native)
start 63, size 102398247 (4 Meg), flag 0
beg: cyl 0/ head 1/ sector 1;
end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
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
The data for partition 3 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 208845000, size 41929650 (20473 Meg), flag 0
beg: cyl 1023/ head 0/ sector 1;
end: cyl 1023/ head 254/ sector 63
The data for partition 4 is:
sysid 7 (0x07),(OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX)
start 250774650, size 139926150 (68323 Meg), flag 80 (active)
beg: cyl 1023/ head 0/ sector 1;
end: cyl 1023/ head 254/ sector 63
[EMAIL PROTECTED]:~ # 

Thanks for your help :)
-- 
Blessings
Gonzalo Nemmi
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2008-07-05 Thread Roland Smith
On Sat, Jul 05, 2008 at 05:46:09AM -0300, Gonzalo Nemmi wrote:
 On Saturday 05 July 2008 03:24:53 Nejc Škoberne wrote:
  Hey,
 
   Have you, by any chance, tried and suceded at mounting ext2fs on FBSD7?
   If you did, at least I'd know that it _is_ possible :s
 
  It is possible, although I haven't used this on FreeBSD 7.0 yet (only on
  5.x and 6.x releases).
 
  I'd also try this:
 
  mkdir /mnttest
  mount -t ext2fs /dev/ad0s8 /mnttest
  ls /mnttest
  file /mnttest
  ls -la / | grep mnttest
 
  and maybe also:
 
  fdisk /dev/ad0
 
  Bye,
  Nejc
 
 No luck :(
 Exactly the same results ...
 
 Just in case you can see something that I don't, here you go:
 
 [EMAIL PROTECTED]:~ # fdisk /dev/ad0
 *** Working on device /dev/ad0 ***
 parameters extracted from in-core disklabel are:
 cylinders=387621 heads=16 sectors/track=63 (1008 blks/cyl)
 
 Figures below won't work with BIOS for partitions not in cyl 1
 parameters to be used for BIOS calculations are:
 cylinders=387621 heads=16 sectors/track=63 (1008 blks/cyl)
 
 Media sector size is 512
 Warning: BIOS sector numbering starts with sector 1
 Information from DOS bootblock is:
 The data for partition 1 is:
 sysid 131 (0x83),(Linux native)
 start 63, size 102398247 (4 Meg), flag 0
 beg: cyl 0/ head 1/ sector 1;
 end: cyl 1023/ head 254/ sector 63

Looks like you should try mount -t ext2fs /dev/ad0s1 /mnt

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpjr3mfTxXGD.pgp
Description: PGP signature


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

2008-07-05 Thread Nejc Škoberne

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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2008-07-05 Thread Gonzalo Nemmi
On Saturday 05 July 2008 06:01:36 you 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

Sure thing !
Here you go:

[EMAIL PROTECTED]:~ # ls -la /dev/ad0*
crw-r-  1 root  operator0,  80 Jul  3 20:27 /dev/ad0
crw-r-  1 root  operator0,  81 Jul  3 20:27 /dev/ad0s1
crw-r-  1 root  operator0,  82 Jul  3 20:27 /dev/ad0s2
crw-r-  1 root  operator0,  83 Jul  3 20:27 /dev/ad0s3
crw-r-  1 root  operator0,  90 Jul  3 22:27 /dev/ad0s3a
crw-r-  1 root  operator0,  91 Jul  3 22:27 /dev/ad0s3b
crw-r-  1 root  operator0,  92 Jul  3 20:27 /dev/ad0s3c
crw-r-  1 root  operator0,  93 Jul  3 22:27 /dev/ad0s3d
crw-r-  1 root  operator0,  94 Jul  3 22:27 /dev/ad0s3e
crw-r-  1 root  operator0,  95 Jul  3 22:27 /dev/ad0s3f
crw-r-  1 root  operator0,  84 Jul  3 20:27 /dev/ad0s4
crw-r-  1 root  operator0,  86 Jul  3 20:27 /dev/ad0s5
crw-r-  1 root  operator0,  87 Jul  3 20:27 /dev/ad0s6
crw-r-  1 root  operator0,  88 Jul  3 20:27 /dev/ad0s7
crw-r-  1 root  operator0,  89 Jul  3 20:27 /dev/ad0s8
[EMAIL PROTECTED]:~ # mkdir /mnttest
[EMAIL PROTECTED]:~ # mount -t ext2fs /dev/ad0s8 /mnttest
[EMAIL PROTECTED]:~ # ls /mnttest
ls: /mnttest: Bad file descriptor
[EMAIL PROTECTED]:~ # file /mnttest
/mnttest: cannot open `/mnttest' (Bad file descriptor)
[EMAIL PROTECTED]:~ # ls -la / | grep mnttest
ls: mnttest: Bad file descriptor
[EMAIL PROTECTED]:~ # 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
[EMAIL PROTECTED]:~ # umount /mnttest
[EMAIL PROTECTED]:~ # 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
[EMAIL PROTECTED]:~ # 

Thanks a lot for your help and interest :)
-- 
Blessings
Gonzalo Nemmi
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2008-07-05 Thread Gonzalo Nemmi
On Saturday 05 July 2008 05:59:42 Roland Smith wrote:
 mount -t ext2fs /dev/ad0s1 /mnt

[EMAIL PROTECTED]:~ # mount -t ext2fs /dev/ad0s1 /mnt
[EMAIL PROTECTED]:~ # ls /mnt
ls: /mnt: Bad file descriptor
[EMAIL PROTECTED]:~ # ls -la / | grep /mnt
ls: mnt: Bad file descriptor
[EMAIL PROTECTED]:~ # 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
[EMAIL PROTECTED]:~ #  

Thanks for your help Roland :)

-- 
Blessings
Gonzalo Nemmi
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2008-07-05 Thread Gonzalo Nemmi
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:

[EMAIL PROTECTED]:~ # mkdir /mnttest
[EMAIL PROTECTED]:~ # ls -la / | grep mnttest
drwxr-xr-x   2 root  wheel  512 Jul  5 17:16 mnttest
[EMAIL PROTECTED]:~ # mount -t ext2fs /dev/ad0s8 /mnttest
[EMAIL PROTECTED]:~ # ls /mnttest
ls: /mnttest: Bad file descriptor
[EMAIL PROTECTED]:~ # file /mnttest
/mnttest: cannot open `/mnttest' (Bad file descriptor)
[EMAIL PROTECTED]:~ # ls -la / | grep mnttest
ls: mnttest: Bad file descriptor
[EMAIL PROTECTED]:~ # 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
[EMAIL PROTECTED]:~ # umount /mnttest
[EMAIL PROTECTED]:~ # ls /mnttest
[EMAIL PROTECTED]:~ # file /mnttest
/mnttest: directory
[EMAIL PROTECTED]:~ # ls -la / | grep mnttest
drwxr-xr-x   2 root  wheel  512 Jul  5 17:16 mnttest
[EMAIL PROTECTED]:~ # 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
[EMAIL PROTECTED]:~ # 

Hope it clarifies sonething more 
Thanks for helping Nejc :)
-- 
Blessings
Gonzalo Nemmi
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2008-07-04 Thread Gonzalo Nemmi
Could somebody please throw me a pointer ...
i have followed every instruction on every book and/or how-to ... yet ...

What am I doing wrong??

[EMAIL PROTECTED]:~ # uname -sr
FreeBSD 7.0-RELEASE
[EMAIL PROTECTED]:~ # kldstat
Id Refs AddressSize Name
 1   10 0xc040 4dd878   kernel
 21 0xc08de000 7559b0   nvidia.ko
 31 0xc1034000 6721cacpi.ko
 41 0xc4a2e000 4000 logo_saver.ko
 51 0xc5884000 1ext2fs.ko
[EMAIL PROTECTED]:~ # mount -t ext2fs /dev/ad0s8 /mnt/
[EMAIL PROTECTED]:~ # ls /mnt
ls: /mnt: Bad file descriptor
[EMAIL PROTECTED]:~ # cd /mnt
/mnt: Not a directory.
[EMAIL PROTECTED]:~ # umount /mnt
[EMAIL PROTECTED]:~ # cd /mnt
[EMAIL PROTECTED]:/mnt # mount -t ext2fs /dev/ad0s8 .
[EMAIL PROTECTED]:/mnt # ls
ls: .: Not a directory
[EMAIL PROTECTED]:/mnt # cd ~
[EMAIL PROTECTED]:~ # umount /mnt
[EMAIL PROTECTED]:~ # file /mnt/
/mnt/: directory
[EMAIL PROTECTED]:~ # cd /mnt
[EMAIL PROTECTED]:/mnt # ls
[EMAIL PROTECTED]:/mnt #

dmesg says _nothing_
_Any_ hint will be more than welcome :)

-- 
Blessings
Gonzalo Nemmi
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2008-07-04 Thread Ryan Coleman


Gonzalo Nemmi wrote:

Could somebody please throw me a pointer ...
i have followed every instruction on every book and/or how-to ... yet ...

What am I doing wrong??

[EMAIL PROTECTED]:~ # uname -sr
FreeBSD 7.0-RELEASE
[EMAIL PROTECTED]:~ # kldstat
Id Refs AddressSize Name
 1   10 0xc040 4dd878   kernel
 21 0xc08de000 7559b0   nvidia.ko
 31 0xc1034000 6721cacpi.ko
 41 0xc4a2e000 4000 logo_saver.ko
 51 0xc5884000 1ext2fs.ko
[EMAIL PROTECTED]:~ # mount -t ext2fs /dev/ad0s8 /mnt/
[EMAIL PROTECTED]:~ # ls /mnt
ls: /mnt: Bad file descriptor
[EMAIL PROTECTED]:~ # cd /mnt
/mnt: Not a directory.
[EMAIL PROTECTED]:~ # umount /mnt
[EMAIL PROTECTED]:~ # cd /mnt
[EMAIL PROTECTED]:/mnt # mount -t ext2fs /dev/ad0s8 .
[EMAIL PROTECTED]:/mnt # ls
ls: .: Not a directory
[EMAIL PROTECTED]:/mnt # cd ~
[EMAIL PROTECTED]:~ # umount /mnt
[EMAIL PROTECTED]:~ # file /mnt/
/mnt/: directory
[EMAIL PROTECTED]:~ # cd /mnt
[EMAIL PROTECTED]:/mnt # ls
[EMAIL PROTECTED]:/mnt #

dmesg says _nothing_
_Any_ hint will be more than welcome :)

  



What does /var/log/messages say when you run mount -t ext2fs?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2008-07-04 Thread Gonzalo Nemmi
On Friday 04 July 2008 22:58:18 you wrote:
 Gonzalo Nemmi wrote:
  Could somebody please throw me a pointer ...
  i have followed every instruction on every book and/or how-to ... yet ...
 
  What am I doing wrong??
 
  [EMAIL PROTECTED]:~ # uname -sr
  FreeBSD 7.0-RELEASE
  [EMAIL PROTECTED]:~ # kldstat
  Id Refs AddressSize Name
   1   10 0xc040 4dd878   kernel
   21 0xc08de000 7559b0   nvidia.ko
   31 0xc1034000 6721cacpi.ko
   41 0xc4a2e000 4000 logo_saver.ko
   51 0xc5884000 1ext2fs.ko
  [EMAIL PROTECTED]:~ # mount -t ext2fs /dev/ad0s8 /mnt/
  [EMAIL PROTECTED]:~ # ls /mnt
  ls: /mnt: Bad file descriptor
  [EMAIL PROTECTED]:~ # cd /mnt
  /mnt: Not a directory.
  [EMAIL PROTECTED]:~ # umount /mnt
  [EMAIL PROTECTED]:~ # cd /mnt
  [EMAIL PROTECTED]:/mnt # mount -t ext2fs /dev/ad0s8 .
  [EMAIL PROTECTED]:/mnt # ls
  ls: .: Not a directory
  [EMAIL PROTECTED]:/mnt # cd ~
  [EMAIL PROTECTED]:~ # umount /mnt
  [EMAIL PROTECTED]:~ # file /mnt/
  /mnt/: directory
  [EMAIL PROTECTED]:~ # cd /mnt
  [EMAIL PROTECTED]:/mnt # ls
  [EMAIL PROTECTED]:/mnt #
 
  dmesg says _nothing_
  _Any_ hint will be more than welcome :)

 What does /var/log/messages say when you run mount -t ext2fs?

Hi Ryan!
And thanks for your help :)

Unfortunately, just as much as dmesg, /var/log/messages says nothing :s
Look:

[EMAIL PROTECTED]:~ # date
Sat Jul  5 00:39:39 ART 2008
[EMAIL PROTECTED]:~ # mount -t ext2fs /dev/ad0s8 /mnt/
[EMAIL PROTECTED]:~ # ls /mnt
ls: /mnt: Bad file descriptor
[EMAIL PROTECTED]:~ # cd /mnt
/mnt: Not a directory.
[EMAIL PROTECTED]:~ # cat /var/log/messages | tail -5
Jul  4 20:21:13 inferna su: gonzalo to root on /dev/ttyp2
Jul  4 20:38:34 inferna kernel: linux: pid 8503 (doom.x86): ioctl fd=17, 
cmd=0x5801 ('X',1) is not implemented
Jul  4 20:47:28 inferna kernel: pid 8511 (doom.x86), uid 1001: exited on 
signal 11
Jul  4 23:54:48 inferna su: gonzalo to root on /dev/ttyp3
Jul  5 00:38:24 inferna su: gonzalo to root on /dev/ttyp2
[EMAIL PROTECTED]:~ # umount /mnt
[EMAIL PROTECTED]:~ # cat /var/log/messages | tail -5
Jul  4 20:21:13 inferna su: gonzalo to root on /dev/ttyp2
Jul  4 20:38:34 inferna kernel: linux: pid 8503 (doom.x86): ioctl fd=17, 
cmd=0x5801 ('X',1) is not implemented
Jul  4 20:47:28 inferna kernel: pid 8511 (doom.x86), uid 1001: exited on 
signal 11
Jul  4 23:54:48 inferna su: gonzalo to root on /dev/ttyp3
Jul  5 00:38:24 inferna su: gonzalo to root on /dev/ttyp2
[EMAIL PROTECTED]:~ #   

Have you, by any chance, tried and suceded at mounting ext2fs on FBSD7?
If you did, at least I'd know that it _is_ possible :s

Thanks  :)
-- 
Blessings
Gonzalo Nemmi
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2008-07-04 Thread Ryan Coleman

Gonzalo Nemmi wrote:

On Friday 04 July 2008 22:58:18 you wrote:
  

Gonzalo Nemmi wrote:


Could somebody please throw me a pointer ...
i have followed every instruction on every book and/or how-to ... yet ...

What am I doing wrong??

[EMAIL PROTECTED]:~ # uname -sr
FreeBSD 7.0-RELEASE
[EMAIL PROTECTED]:~ # kldstat
Id Refs AddressSize Name
 1   10 0xc040 4dd878   kernel
 21 0xc08de000 7559b0   nvidia.ko
 31 0xc1034000 6721cacpi.ko
 41 0xc4a2e000 4000 logo_saver.ko
 51 0xc5884000 1ext2fs.ko
[EMAIL PROTECTED]:~ # mount -t ext2fs /dev/ad0s8 /mnt/
[EMAIL PROTECTED]:~ # ls /mnt
ls: /mnt: Bad file descriptor
[EMAIL PROTECTED]:~ # cd /mnt
/mnt: Not a directory.
[EMAIL PROTECTED]:~ # umount /mnt
[EMAIL PROTECTED]:~ # cd /mnt
[EMAIL PROTECTED]:/mnt # mount -t ext2fs /dev/ad0s8 .
[EMAIL PROTECTED]:/mnt # ls
ls: .: Not a directory
[EMAIL PROTECTED]:/mnt # cd ~
[EMAIL PROTECTED]:~ # umount /mnt
[EMAIL PROTECTED]:~ # file /mnt/
/mnt/: directory
[EMAIL PROTECTED]:~ # cd /mnt
[EMAIL PROTECTED]:/mnt # ls
[EMAIL PROTECTED]:/mnt #

dmesg says _nothing_
_Any_ hint will be more than welcome :)
  

What does /var/log/messages say when you run mount -t ext2fs?



Hi Ryan!
And thanks for your help :)

Unfortunately, just as much as dmesg, /var/log/messages says nothing :s
Look:

[EMAIL PROTECTED]:~ # date
Sat Jul  5 00:39:39 ART 2008
[EMAIL PROTECTED]:~ # mount -t ext2fs /dev/ad0s8 /mnt/
[EMAIL PROTECTED]:~ # ls /mnt
ls: /mnt: Bad file descriptor
[EMAIL PROTECTED]:~ # cd /mnt
/mnt: Not a directory.
[EMAIL PROTECTED]:~ # cat /var/log/messages | tail -5
Jul  4 20:21:13 inferna su: gonzalo to root on /dev/ttyp2
Jul  4 20:38:34 inferna kernel: linux: pid 8503 (doom.x86): ioctl fd=17, 
cmd=0x5801 ('X',1) is not implemented
Jul  4 20:47:28 inferna kernel: pid 8511 (doom.x86), uid 1001: exited on 
signal 11

Jul  4 23:54:48 inferna su: gonzalo to root on /dev/ttyp3
Jul  5 00:38:24 inferna su: gonzalo to root on /dev/ttyp2
[EMAIL PROTECTED]:~ # umount /mnt
[EMAIL PROTECTED]:~ # cat /var/log/messages | tail -5
Jul  4 20:21:13 inferna su: gonzalo to root on /dev/ttyp2
Jul  4 20:38:34 inferna kernel: linux: pid 8503 (doom.x86): ioctl fd=17, 
cmd=0x5801 ('X',1) is not implemented
Jul  4 20:47:28 inferna kernel: pid 8511 (doom.x86), uid 1001: exited on 
signal 11

Jul  4 23:54:48 inferna su: gonzalo to root on /dev/ttyp3
Jul  5 00:38:24 inferna su: gonzalo to root on /dev/ttyp2
[EMAIL PROTECTED]:~ #   


Have you, by any chance, tried and suceded at mounting ext2fs on FBSD7?
If you did, at least I'd know that it _is_ possible :s

Thanks  :)
  


No, I thought maybe there was something there I could help with I 
haven't used ext/ext2/ext3 since I dumped RHL in 2003.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


bad file descriptor when mounting an ext2fs.

2008-06-10 Thread anhnmncb
Hi, list,
Recently, I encounter a very annoying issue, when I try to
mount an ext2fs filesystem in laptop disk, after mounted it without any
errors, I can't access it, ls /mnt/da0s3 says bad file
descriptor. In that disk, also has msdos and ufs fs, but they
work well.
I tried reformat whole disk, and fsck.ext2 -f that ext2fs
slice, nothing works at all.
But my a local disk has ext2fs too, it can be mounted and used
well, don't know why?
-- 
Reguards,

anhnmncb.
PGP key: 44A31344
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: bad file descriptor when mounting an ext2fs.

2008-06-10 Thread Gonzalo Nemmi
On Tuesday 10 June 2008 07:37:56 anhnmncb wrote:
 Hi, list,
 Recently, I encounter a very annoying issue, when I try to
 mount an ext2fs filesystem in laptop disk, after mounted it without
 any errors, I can't access it, ls /mnt/da0s3 says bad file
 descriptor. In that disk, also has msdos and ufs fs, but they
 work well.
 I tried reformat whole disk, and fsck.ext2 -f that ext2fs
 slice, nothing works at all.
 But my a local disk has ext2fs too, it can be mounted and used
 well, don't know why?

The same thing happens in here too ..
The same question It has also been posted in this list on Friday 09 May 2008 
14:40:06 by Isaac Mushinsky and me, but nobody answered ...
On FreeBSD 7.0 i386 and Linux i386 in here, I get either get a 'Bad file 
descriptor' for directory /linux' or 

$ mount -t etx2fs /dev/ad0s7 /linux
$ ls /linux 
No such file or directory

I've got all of my music, pdfs, pictures and on a ext3 and I only need to 
mount it in order to get FreeBSD's Amarok access to my music collection.

If somebody has solution or a pointer to a solution or whatever may help on 
this matter, I would greatly appreciate his/hers reply :)

Blessings
-- 
Gonzalo Nemmi
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ext2fs: strange behaviour after alternativ boot into other OS

2008-02-03 Thread Axel Burwitz

Hi,

is maybe somenone also noticing the following behaviour in FreeBSD 7.0 
RC1 on his system:


- have besides the FreeBSD slice additional some data partitions with 
ext2 on two discs in my system. As long as I only boot with FreeBSD, 
everything fine.
- but when I occasionally boot with XP (from there I access via IFS the 
ext2fs [URL=http://www.fs-driver.org/]http://www.fs-driver.org/[/URL] 
) or with Linux and access these partitions,
- then after following boot into FreeBSD these partitions don't get 
mounted, but I have to fix them with fsck first and then can mount them


in  6.2 I had not seen this behaviour

regards
Axel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ext2fs: strange behaviour after alternativ boot into other OS

2008-02-03 Thread Wojciech Puchar
is maybe somenone also noticing the following behaviour in FreeBSD 7.0 RC1 on 
his system:


- have besides the FreeBSD slice additional some data partitions with ext2 on 
two discs in my system. As long as I only boot with FreeBSD, everything fine.
- but when I occasionally boot with XP (from there I access via IFS the 
ext2fs [URL=http://www.fs-driver.org/]http://www.fs-driver.org/[/URL] ) or 
with Linux and access these partitions,
- then after following boot into FreeBSD these partitions don't get mounted, 
but I have to fix them with fsck first and then can mount them


in  6.2 I had not seen this behaviour



do you open it read-write under windoze?

it is possible that ext2 support under FreeBSD is not up to date with 
possible changes in linux - so it can't mount it after being used, but 
fsck_ext2fs fixes it.


it's just idea, i don't use linux for a long so no idea how much ext2 
changed.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Incomplete file listing with Samba on ext2fs

2007-11-08 Thread Rainer Schwarze
Rainer Schwarze wrote:
 CyberLeo Kitsana wrote:
 Rainer Schwarze wrote:
 I created 1000 files named file000 ... file0999 in a directory. I
 could see all of them via Windows.

 I created 1000 files named file-.file ... file-0999.file in a
 directory. I could see the first 130 files of them.
 Are you sure this is only happening with ext2fs? You might be running
 into a filename mangling limitation in Samba.
[...]
 However, everything works well when I put the same set of files on a UFS
 volume shared by samba. 

Just an update in case someone looks for the same problem:

On the samba mailing list it was pointed out, that there are problems
with non-UFS shares. In /usr/ports/UPDATING this snippet is included
(which as it looks like I did not read carefully :-) ):

| 20070919:
|   AFFECTS: users of net/samba3
|   AUTHOR: [EMAIL PROTECTED]
[...]
|   Bug #4715 (https://bugzilla.samba.org/show_bug.cgi?id=4715) is NOT
|   fixed yet, although it won't core dump smbd process any more. Still,
|   access to the shares other than UFS is not guaranteed.

Best wishes, Rainer
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Incomplete file listing with Samba on ext2fs

2007-11-06 Thread Rainer Schwarze
CyberLeo Kitsana wrote:
 Rainer Schwarze wrote:
 I created 1000 files named file000 ... file0999 in a directory. I
 could see all of them via Windows.

 I created 1000 files named file-.file ... file-0999.file in a
 directory. I could see the first 130 files of them.
 
 Are you sure this is only happening with ext2fs? You might be running
 into a filename mangling limitation in Samba.

That was my first interpretation after the test case with the filenames.
However, everything works well when I put the same set of files on a UFS
volume shared by samba. When copying the same set of files to another
directory on ext2fs the directory listings are still incomplete. It
happens with the test data as well as with real life file sets. When I
create the files starting at  I can see the files with the number
 to 0128, when I create them starting at 0999 down to , I can
see 0999 to 0871. So I think it doesn't look like filename mangling
problems.

To me it looks like smbd retrieves the first subset of files which fit
into an internal memory block, returns that and does not get the next
subset of files from the directory. I read a problem like that for
another scenario but unfortunately can't locate it any more.

Best wishes, Rainer
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Incomplete file listing with Samba on ext2fs

2007-11-05 Thread Rainer Schwarze
Hi,

I've set up a FreeBSD6.2 machine and moved my file server disk from a
Linux system where it was used before. The disk uses ext2fs. In FreeBSD
I can see all files, when looking at the samba shares from a Windows
2000 system, I do not see all files. I also do not see all files when
using smbclient on FreeBSD.

A test case went like that:

I created 1000 files named file000 ... file0999 in a directory. I
could see all of them via Windows.

I created 1000 files named file-.file ... file-0999.file in a
directory. I could see the first 130 files of them.

I added this to my smb.conf, because I found related information on the
web and this fixed some problems with incomplete directory listing which
I encountered a few days ago:

   dos charset = CP850
   unix charset = UTF-8
   display charset = LOCALE

When I copy my large list of files to a UFS volume, I can see the full
listing via Windows.

Apart from switching the ext2s to ufs, does someone has other
suggestions for solving the problem?
Do you suggest another group for this question?

Thanks in advance and best wishes,
Rainer
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Incomplete file listing with Samba on ext2fs

2007-11-05 Thread CyberLeo Kitsana
Rainer Schwarze wrote:
 I created 1000 files named file000 ... file0999 in a directory. I
 could see all of them via Windows.
 
 I created 1000 files named file-.file ... file-0999.file in a
 directory. I could see the first 130 files of them.

Are you sure this is only happening with ext2fs? You might be running
into a filename mangling limitation in Samba.

-- 
Fuzzy love,
-CyberLeo
Technical Administrator
CyberLeo.Net Webhosting
http://www.CyberLeo.Net
[EMAIL PROTECTED]

Furry Peace! - http://.fur.com/peace/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ext2fs and NFS

2006-06-12 Thread Craig Rodrigues
On Wed, Oct 26, 2005 at 10:39:08PM +, Bob Hepple wrote:
 I need to export an ext2fs file system mounted@/mnt/guest - it's a
 removable IDE disc that I carry to  from my linux [EMAIL PROTECTED]
 
 mount shows:
 
 /dev/ad2s1 on /mnt/guest (ext2fs, local)
 
 So, I put an entry into /etc/exports:
 
 /mnt/guest -alldirs -network 192.168.254.0 -mask 255.255.255.0
 
 and then:
 
 kill -s HUP `cat /var/run/mountd.pid`
 
 showmount localhost shows nothing and in /var/log/messages I have:
 
 Oct 27 11:36:01 raita kernel: ext2fs doesn't support the old mount syscall
 Oct 27 11:36:01 raita mountd[417]: can't export /mnt/guest
 Oct 27 11:36:01 raita mountd[417]: bad exports list line /mnt/guest -network 
 192.168.254.0 -mask 255.255.255.0
 
 ... so there's really no way to NFS export an ext2fs file system???

Hi,

The mountd program in FreeBSD previously had some hard-coded restrictions
on which filesystems it could export (ufs, msdosfs, cd9660, and ntfs).

I converted the mountd program to use the nmount() syscall, and removed
the hardcoded restrictions on what filesystems can be NFS exported.
As long as the underlying filesystem supports NFS exporting, it should
work.  It should now work for ext2fs.

If you cvsup to RELENG_6 or HEAD, you can get my changes, and if
you can try them out and let me know if you have any problems, I would
appreciate it.

-- 
Craig Rodrigues
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ext2fs and NFS

2005-12-31 Thread Bob Hepple
On Fri, 30 Dec 2005 15:03:35 +1030
Malcolm Kay [EMAIL PROTECTED] wrote:

 On Sat, 29 Oct 2005 04:23 am, Bob Hepple wrote:
  On Thu, 27 Oct 2005 11:39:03 +1000
 
  Bob Hepple [EMAIL PROTECTED] wrote:
   I need to export an ext2fs file system mounted at /mnt/guest
   - it's a removable IDE disc that I carry to  from my linux
   system at work...
  
   mount shows:
  
   /dev/ad2s1 on /mnt/guest (ext2fs, local)
  
   So, I put an entry into /etc/exports:
  
   /mnt/guest -alldirs -network 192.168.254.0 -mask
   255.255.255.0
  
   and then:
  
   kill -s HUP `cat /var/run/mountd.pid`
  
   showmount localhost shows nothing and in /var/log/messages
   I have:
  
   Oct 27 11:36:01 raita kernel: ext2fs doesn't support the old
   mount syscall Oct 27 11:36:01 raita mountd[417]: can't
   export /mnt/guest Oct 27 11:36:01 raita mountd[417]: bad
   exports list line /mnt/guest -network 192.168.254.0 -mask
   255.255.255.0
  
   ... so there's really no way to NFS export an ext2fs file
   system???
 
  Hmmm - looks like no-one has good news for me on this front so
  I'll try a different approach:
 
  Can anyone suggest a UNIX filesystem for a removable IDE disc
  that can be used on linux and freebsd and that can be exported
  by NFS?
 
 
 I thought most linux systems could mount 'ufs' file systems; 
 perhaps not 'ufs2' so you might need to be specific in creating 
 the file system.
 
 Malcolm Kay

Yes - but linux is READ-ONLY for UFS2. Even the older UFS write access
is marked dangerous. So I'm not keen on using it.


Cheers


Bob


-- 
Bob Hepple
mailto:[EMAIL PROTECTED] http://bhepple.freeshell.org
Public Key: http://bhepple.freeshell.org/public_keys.txt
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ext2fs and NFS

2005-12-29 Thread Malcolm Kay
On Sat, 29 Oct 2005 04:23 am, Bob Hepple wrote:
 On Thu, 27 Oct 2005 11:39:03 +1000

 Bob Hepple [EMAIL PROTECTED] wrote:
  I need to export an ext2fs file system mounted at /mnt/guest
  - it's a removable IDE disc that I carry to  from my linux
  system at work...
 
  mount shows:
 
  /dev/ad2s1 on /mnt/guest (ext2fs, local)
 
  So, I put an entry into /etc/exports:
 
  /mnt/guest -alldirs -network 192.168.254.0 -mask
  255.255.255.0
 
  and then:
 
  kill -s HUP `cat /var/run/mountd.pid`
 
  showmount localhost shows nothing and in /var/log/messages
  I have:
 
  Oct 27 11:36:01 raita kernel: ext2fs doesn't support the old
  mount syscall Oct 27 11:36:01 raita mountd[417]: can't
  export /mnt/guest Oct 27 11:36:01 raita mountd[417]: bad
  exports list line /mnt/guest -network 192.168.254.0 -mask
  255.255.255.0
 
  ... so there's really no way to NFS export an ext2fs file
  system???

 Hmmm - looks like no-one has good news for me on this front so
 I'll try a different approach:

 Can anyone suggest a UNIX filesystem for a removable IDE disc
 that can be used on linux and freebsd and that can be exported
 by NFS?


I thought most linux systems could mount 'ufs' file systems; 
perhaps not 'ufs2' so you might need to be specific in creating 
the file system.

Malcolm Kay

 Thanks

 Bob
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ext2fs and NFS

2005-10-28 Thread Bob Hepple
On Thu, 27 Oct 2005 11:39:03 +1000
Bob Hepple [EMAIL PROTECTED] wrote:

 I need to export an ext2fs file system mounted at /mnt/guest - it's a
 removable IDE disc that I carry to  from my linux system at work...
 
 mount shows:
 
 /dev/ad2s1 on /mnt/guest (ext2fs, local)
 
 So, I put an entry into /etc/exports:
 
 /mnt/guest -alldirs -network 192.168.254.0 -mask 255.255.255.0
 
 and then:
 
 kill -s HUP `cat /var/run/mountd.pid`
 
 showmount localhost shows nothing and in /var/log/messages I have:
 
 Oct 27 11:36:01 raita kernel: ext2fs doesn't support the old mount syscall
 Oct 27 11:36:01 raita mountd[417]: can't export /mnt/guest
 Oct 27 11:36:01 raita mountd[417]: bad exports list line /mnt/guest -network 
 192.168.254.0 -mask 255.255.255.0
 
 ... so there's really no way to NFS export an ext2fs file system???

Hmmm - looks like no-one has good news for me on this front so I'll try a
different approach:

Can anyone suggest a UNIX filesystem for a removable IDE disc that can be
used on linux and freebsd and that can be exported by NFS?


Thanks

Bob


-- 
Bob Hepple
mailto:[EMAIL PROTECTED] http://bhepple.freeshell.org
Public Key: http://bhepple.freeshell.org/public_keys.txt


pgpuZ4cTqOHeL.pgp
Description: PGP signature


ext2fs and NFS

2005-10-26 Thread Bob Hepple
Hello,

Google and the search screen at www.FreeBSD.org tell me that this
question has been asked before but I can't find an answer ...

I need to export an ext2fs file system mounted at /mnt/guest - it's a
removable IDE disc that I carry to  from my linux system at work...

mount shows:

/dev/ad2s1 on /mnt/guest (ext2fs, local)

So, I put an entry into /etc/exports:

/mnt/guest -alldirs -network 192.168.254.0 -mask 255.255.255.0

and then:

kill -s HUP `cat /var/run/mountd.pid`

showmount localhost shows nothing and in /var/log/messages I have:

Oct 27 11:36:01 raita kernel: ext2fs doesn't support the old mount syscall
Oct 27 11:36:01 raita mountd[417]: can't export /mnt/guest
Oct 27 11:36:01 raita mountd[417]: bad exports list line /mnt/guest -network 
192.168.254.0 -mask 255.255.255.0

... so there's really no way to NFS export an ext2fs file system???


Yow!




Thanks


Bob


-- 
Bob Hepple
mailto:[EMAIL PROTECTED] http://bhepple.freeshell.org
Public Key: http://bhepple.freeshell.org/public_keys.txt
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ext2fs cannot be umounted

2004-10-12 Thread Oliver Fuchs
Hi,
I am using FreeBSD 5.2.1-RELEASE and have compiled my kernel with optinion:
options EXT2FS

In my /etc/fstab I have added:
/dev/ad0s6  /mnt/debian ext2fs  rw  0   0

to mount my debian box.

everything works fine except one thing:
Shutting down via shutdown -p now ends up in the message:

syncing discs, buffer remaining 403938383838383838383
.giving up on 38

This means that FreeBSD is not able to umount/sync the mounted partition
clearly.
I have tried in /etc/fstab also the sync option but it ends up with the
syncing discs giving up error message.
Only if I umount the ext2fs partition gives me a clean shutdown.

What can be done or how can I force the system to umount ext2fs partition
before shutting down?

Oliver
-- 
... don't touch the bang bang fruit
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ext2fs cannot be umounted

2004-10-12 Thread Radek Kozlowski
On Tue, Oct 12, 2004 at 11:17:41AM +0200, Oliver Fuchs wrote:
 Hi,
 I am using FreeBSD 5.2.1-RELEASE and have compiled my kernel with optinion:
 options   EXT2FS
 
 In my /etc/fstab I have added:
 /dev/ad0s6/mnt/debian ext2fs  rw  0   0
 
 to mount my debian box.
 
 everything works fine except one thing:
 Shutting down via shutdown -p now ends up in the message:
 
 syncing discs, buffer remaining 403938383838383838383
 .giving up on 38
 
 This means that FreeBSD is not able to umount/sync the mounted partition
 clearly.
 I have tried in /etc/fstab also the sync option but it ends up with the
 syncing discs giving up error message.
 Only if I umount the ext2fs partition gives me a clean shutdown.
 
 What can be done or how can I force the system to umount ext2fs partition
 before shutting down?

It's a known bug: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/56675

There's a workaround suggested in this thread, which you already seem to
know:
http://lists.freebsd.org/pipermail/freebsd-current/2004-August/035316.html

-Radek
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ext2fs cannot be umounted

2004-10-12 Thread Oliver Fuchs
On Tue, 12 Oct 2004, Radek Kozlowski wrote:

 On Tue, Oct 12, 2004 at 11:17:41AM +0200, Oliver Fuchs wrote:
  Hi,
  I am using FreeBSD 5.2.1-RELEASE and have compiled my kernel with optinion:
  options EXT2FS
  
  In my /etc/fstab I have added:
  /dev/ad0s6  /mnt/debian ext2fs  rw  0   0
  
  to mount my debian box.
  
  everything works fine except one thing:
  Shutting down via shutdown -p now ends up in the message:
  
  syncing discs, buffer remaining 403938383838383838383
  .giving up on 38
  
  This means that FreeBSD is not able to umount/sync the mounted partition
  clearly.
  I have tried in /etc/fstab also the sync option but it ends up with the
  syncing discs giving up error message.
  Only if I umount the ext2fs partition gives me a clean shutdown.
  
  What can be done or how can I force the system to umount ext2fs partition
  before shutting down?
 
 It's a known bug: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/56675
 
 There's a workaround suggested in this thread, which you already seem to
 know:
 http://lists.freebsd.org/pipermail/freebsd-current/2004-August/035316.html
 
 -Radek

Ah ... I missed this one ... but good to know that it is a bug ... my first
step/workaround was to set the noauto option in fstab.
Now I have to find a way to bring the system to umount my ext2fs partition
(it is not only because of the syncing discs error but also my debian box
will run later on after rebooting the fsck check for about 10 minutes :-( ).
I was trying to bring the kernel automounter amd to mount the debian
partition but still did not succeed.
My second idea was to run a chron-job to umount my partition every 2 minutes
or so ... or set an alias on shutdown (with something like alias shutdown
umount /mnt/debian , shutdown -p now) ... I still do not know.

But thanx for your help and good advice (pointing me to the bug and the
page).

Oliver
-- 
... don't touch the bang bang fruit
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Error mounting Linux ext2fs drive

2004-10-01 Thread Damon Butler
Now here's the frustrating bit. Time has passed and the machine has been 
shut down and rebooted a few times. After that initial success, I have 
never been able to mount that [EMAIL PROTECTED] drive again. I invariably get a

   Operation not permitted
error. What gives? How can I retrieve my former happiness?
--Damon
this is the default error spewed out when the linux file system is not
clean. (I.E. it was not unmounted properly on the shutdown where it
ceased working)
This is the problem! Thank you! As soon as I rebuilt the journal (it's 
actually an ext3 filesystem) I could mount the drive again.

Happiness is a mounted hard drive.
--Damon
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Error mounting Linux ext2fs drive

2004-09-30 Thread Damon Butler
I recompiled my kernel, including the options EXT2FS option line. No 
problem. After rebooting, I was able to successfully mount my linux 
drive thusly:

mount -t ext2fs /dev/ad0s1 /linux
I transferred some files and was very happy.
Now here's the frustrating bit. Time has passed and the machine has been 
shut down and rebooted a few times. After that initial success, I have 
never been able to mount that [EMAIL PROTECTED] drive again. I invariably get a

Operation not permitted
error. What gives? How can I retrieve my former happiness?
--Damon
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Error mounting Linux ext2fs drive

2004-09-30 Thread Damon Butler
Grégory Nou wrote:
May sound as a stupid question, but did you actually logged as root, or 
su before performing this command ?
[EMAIL PROTECTED] wrote:
 Have you tried to mount the drive as root?
Heh. Yes indeed, first thing I tried. I've also tried mounting the drive 
as virtually every other user that exists. No dice.

 What is in the /var/log/messages file?
I'm not sitting in front of the machine, so I can't tell you. If you 
still think it's relevant, I'll fetch a copy of it as soon as I can.

 What kind of error?
I wish I knew. The error message is no more explicit than Operation not 
permitted. Seriously. Here's the error in full:

ext2fs: /dev/ad0s1: Operation not permitted
My attempts at Googling some help have so far proven useless. Bother.
--Damon
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Error mounting Linux ext2fs drive

2004-09-30 Thread Subhro
sysctl -a | grep securelevel ?

Regards
S.


On Thu, 30 Sep 2004 08:52:06 -0500, Damon Butler [EMAIL PROTECTED] wrote:
 Grégory Nou wrote:
  May sound as a stupid question, but did you actually logged as root, or
  su before performing this command ?
 
 [EMAIL PROTECTED] wrote:
  Have you tried to mount the drive as root?
 
 Heh. Yes indeed, first thing I tried. I've also tried mounting the drive
 as virtually every other user that exists. No dice.
 
  What is in the /var/log/messages file?
 
 I'm not sitting in front of the machine, so I can't tell you. If you
 still think it's relevant, I'll fetch a copy of it as soon as I can.
 
  What kind of error?
 
 I wish I knew. The error message is no more explicit than Operation not
 permitted. Seriously. Here's the error in full:
 
 ext2fs: /dev/ad0s1: Operation not permitted
 
 My attempts at Googling some help have so far proven useless. Bother.
 
 
 --Damon
 
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 



-- 
Subhro Sankha Kar
School of Information Technology
Block AQ-13/1 Sector V
ZIP 700091
India
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Error mounting Linux ext2fs drive

2004-09-30 Thread Erik Greenwald
On Thu, Sep 30, 2004 at 08:39:16AM -0500, Damon Butler wrote:
 I recompiled my kernel, including the options EXT2FS option line. No 
 problem. After rebooting, I was able to successfully mount my linux 
 drive thusly:
 
 mount -t ext2fs /dev/ad0s1 /linux
 
 I transferred some files and was very happy.
 
 Now here's the frustrating bit. Time has passed and the machine has been 
 shut down and rebooted a few times. After that initial success, I have 
 never been able to mount that [EMAIL PROTECTED] drive again. I invariably get a
 
 Operation not permitted
 
 error. What gives? How can I retrieve my former happiness?
 --Damon

this is the default error spewed out when the linux file system is not
clean. (I.E. it was not unmounted properly on the shutdown where it
ceased working)

install the sysutils/e2fsprogs port and e2fsck the /dev/ad0s1 (or boot
linux and use that if it's possible), hopefully that will fix your issue
:)


-- 
-Erik [EMAIL PROTECTED] [http://math.smsu.edu/~erik]

The opinions expressed by me are not necessarily opinions. In all probability,
they are random rambling, and to be ignored. Failure to ignore may result in
severe boredom or confusion. Shake well before opening. Keep Refrigerated.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Ext2FS (was Re: A few simple questions(...if you don't mind))

2004-07-05 Thread Warren Block
On Mon, 5 Jul 2004, Phil Schulz wrote:
Mark Jayson Alvarez wrote:

5. Does any version of freebsd supports mounting,
reading, and writing of ext3fs partitions of linux? 
No.
Maybe.  ext2fs is supposed to be ext3fs with journalling, and ext2fs can 
be mounted with mount_ext2fs.  I could swear I've done this with ext3fs 
partitions, but can't recall when or where.

A note to Mark: please don't combine multiple questions into one post 
like that.  It makes responses difficult and makes it harder for people 
searching the archives.  A single question per post, with a relevant 
Subject line, makes things easier for everyone--even you, because the 
responses will be easier to sort out.

-Warren Block * Rapid City, South Dakota USA
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Ext2FS

2004-07-05 Thread Phil Schulz
Warren Block wrote:
On Mon, 5 Jul 2004, Phil Schulz wrote:
Mark Jayson Alvarez wrote:

5. Does any version of freebsd supports mounting,
reading, and writing of ext3fs partitions of linux? 

No.

Maybe.  ext2fs is supposed to be ext3fs with journalling, and ext2fs can 
be mounted with mount_ext2fs.  I could swear I've done this with ext3fs 
partitions, but can't recall when or where.

I stand corrected.
I have to admit that I answered that question solely based on
# ls /sbin/mount_*
:-)
Phil.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Ext2FS (was Re: A few simple questions(...if you don't mind))

2004-07-05 Thread Nico Meijer
Hi Warren,
Maybe.  ext2fs is supposed to be ext3fs with journalling, and ext2fs can 
be mounted with mount_ext2fs.  I could swear I've done this with ext3fs 
partitions, but can't recall when or where.
IIRC, ext3 can only be mounted as ext2 as long as the partition is 
marked clean.

HTH... Nico
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mount ext2fs

2004-03-25 Thread Robert Storey
If you need fsck for ext2, you could just book a Knoppix (or maybe Slackware)
live CD. No need to install Linux, you should be able to run fsck from the CD,
and that will clear the ext2 partition.

I will also confirm what the other poster said, the correct syntax for mounting
the partition should be:

  mount_ext2fs /dev/as2s2 /data2

Assuming of course that /dev/ad2s2 is the correct partition, and that /data2
actually exists. Using mount -t ext2fs has never worked for me under FreeBSD,
though it is the correct syntax under Linux.

regards,
Robert

 other deep routed issues. i had read on the mailing list about marking the
 CLEAR flag for the partition, and that fsck for ext2fs would be required for
 that. it would seem if i could get that installed it'd be one step closer to
 being able to mount these partitions. thnx again.
 
 _ Johnny
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mount ext2fs

2004-03-24 Thread Johnny
uidzero wrote,

 Johhny,

 Try mount_ext2fs /dev/as2s2 /data2 Just be sure to umount the
 partition before you reboot or anything because it could mess up your
 file system. Read the comment above the ext2fs module in thwe LINT kernel.

 Michael
;

tried that, seems to be no different than mount -t ext2fs. and as to the
second suggestion i'm not sure what u mean by LINT kernel, so i dunno where
you mean for me to look. i'm still at a loss with this one, any more
comments/suggestions are welcome. i was looking into e2fsprogs... but while
compiling the updated gcc (gcc-3.3.4) i get a seg fault... seems there are
other deep routed issues. i had read on the mailing list about marking the
CLEAR flag for the partition, and that fsck for ext2fs would be required for
that. it would seem if i could get that installed it'd be one step closer to
being able to mount these partitions. thnx again.

_ Johnny

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


mount ext2fs

2004-03-22 Thread Johnny
i'm trying to mount ext2 partitions from an install of rh8 on my freebsd box. simple 
process i'd think, but apparently not with the current setup. the bsd box is 
4.8-stable with a custom kernel including the ext2fs module, so i'd like to think that 
isn't the source of the problem. here is some output on the issue:

euphoria# fdisk ad2
...
The data for partition 2 is:
sysid 131,(Linux filesystem)
start 211680, size 88814880 (43366 Meg), flag 0
beg: cyl 14/ head 0/ sector 1;
end: cyl 1023/ head 239/ sector 63

euphoria# mount -t ext2fs /dev/ad2s2 /data2
ext2fs: /dev/ad2s2: Invalid argument

all of the directories are in place, the kernel has the ext2fs module, so i'm at a 
loss with regards to this issue. any help regarding this would be greatly appreciated, 
thnx. 

_ Johnny
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mount ext2fs

2004-03-22 Thread uidzero
Johnny wrote:

i'm trying to mount ext2 partitions from an install of rh8 on my freebsd box. simple process i'd think, but apparently not with the current setup. the bsd box is 4.8-stable with a custom kernel including the ext2fs module, so i'd like to think that isn't the source of the problem. here is some output on the issue:

euphoria# fdisk ad2
...
The data for partition 2 is:
sysid 131,(Linux filesystem)
start 211680, size 88814880 (43366 Meg), flag 0
beg: cyl 14/ head 0/ sector 1;
end: cyl 1023/ head 239/ sector 63
euphoria# mount -t ext2fs /dev/ad2s2 /data2
ext2fs: /dev/ad2s2: Invalid argument
all of the directories are in place, the kernel has the ext2fs module, so i'm at a loss with regards to this issue. any help regarding this would be greatly appreciated, thnx. 
 

Johhny,

Try mount_ext2fs /dev/as2s2 /data2 Just be sure to umount the 
partition before you reboot or anything because it could mess up your 
file system. Read the comment above the ext2fs module in thwe LINT kernel.

Michael
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Anyway to extract a large file from EXT2FS filesystem?

2004-02-18 Thread Tim Robbins
On Tue, Feb 17, 2004 at 02:04:06PM +0100, Stefan Krantz wrote:

 
  I would like to extract a large (11GB) tar file on an ext3 filesystem. But
  it shows only to be about 3gb large:
 
  yabba# ls -la pictures.tar
  -rw-r--r--  1 root  wheel  3317055488 Feb 15 19:03 pictures.tar
 
  Is there any possible way to extract the file?

 It shouldn't be appearing truncated.  Are you certain that this size
 is incorrect, and the file has a different size when viewed from
 another OS?
   
Yes. Yesterday I tested the archive with tar tvf (11gb) in
Linux and it tested OK. In FBSD it says unexpected EOF.
   
If I could i would just boot linux and split the file. But I can nolonger
boot linux =/ (migrated to fbsd 5.2 ;).
  
   I'm CC'ing tjr and bde, who might have some idea about the problem.
 
  Try this patch and let me know how it goes.

 This patch worked great!

Thanks for testing it - I'll commit a slightly improved version shortly.


Tim
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Anyway to extract a large file from EXT2FS filesystem?

2004-02-17 Thread Stefan Krantz

Hi!

I would like to extract a large (11GB) tar file on an ext3 filesystem. But
it shows only to be about 3gb large:

yabba# ls -la pictures.tar
-rw-r--r--  1 root  wheel  3317055488 Feb 15 19:03 pictures.tar

Is there any possible way to extract the file?

I'm running 5.2-RELEASE on i386.

bash-2.05b# tune2fs -l /dev/ar0s3
tune2fs 1.32 (09-Nov-2002)
Filesystem volume name:   none
Last mounted on:  not available
Filesystem UUID:  f3e88f3f-b943-4833-8c85-02c0ec32fa54
Filesystem magic number:  0xEF53
Filesystem revision #:1 (dynamic)
Filesystem features:  has_journal filetype sparse_super large_file
Default mount options:(none)
Filesystem state: clean
Errors behavior:  Continue
Filesystem OS type:   Linux
Inode count:  4251520
Block count:  8492360
Reserved block count: 424618
Free blocks:  2337723
Free inodes:  3863754
First block:  0
Block size:   4096
Fragment size:4096
Blocks per group: 32768
Fragments per group:  32768
Inodes per group: 16352
Inode blocks per group:   511
Last mount time:  Mon Feb 16 19:25:26 2004
Last write time:  Mon Feb 16 21:53:50 2004
Mount count:  20
Maximum mount count:  23
Last checked: Tue Jan 20 11:20:23 2004
Check interval:   15552000 (6 months)
Next check after: Sun Jul 18 12:20:23 2004
Reserved blocks uid:  0 (user root)
Reserved blocks gid:  0 (group wheel)
First inode:  11
Inode size:   128
Journal UUID: none
Journal inode:8
Journal device:   0x
First orphan inode:   0


Thanks
Stefan
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Anyway to extract a large file from EXT2FS filesystem?

2004-02-17 Thread Kris Kennaway
On Tue, Feb 17, 2004 at 10:49:47AM +0100, Stefan Krantz wrote:
 
 Hi!
 
 I would like to extract a large (11GB) tar file on an ext3 filesystem. But
 it shows only to be about 3gb large:
 
 yabba# ls -la pictures.tar
 -rw-r--r--  1 root  wheel  3317055488 Feb 15 19:03 pictures.tar
 
 Is there any possible way to extract the file?

It shouldn't be appearing truncated.  Are you certain that this size
is incorrect, and the file has a different size when viewed from
another OS?

Kris


pgp0.pgp
Description: PGP signature


Re: Anyway to extract a large file from EXT2FS filesystem?

2004-02-17 Thread Stefan Krantz

On Tue, 17 Feb 2004, Kris Kennaway wrote:

 On Tue, Feb 17, 2004 at 10:49:47AM +0100, Stefan Krantz wrote:
 
  Hi!
 
  I would like to extract a large (11GB) tar file on an ext3 filesystem. But
  it shows only to be about 3gb large:
 
  yabba# ls -la pictures.tar
  -rw-r--r--  1 root  wheel  3317055488 Feb 15 19:03 pictures.tar
 
  Is there any possible way to extract the file?

 It shouldn't be appearing truncated.  Are you certain that this size
 is incorrect, and the file has a different size when viewed from
 another OS?

Yes. Yesterday I tested the archive with tar tvf (11gb) in
Linux and it tested OK. In FBSD it says unexpected EOF.

If I could i would just boot linux and split the file. But I can nolonger
boot linux =/ (migrated to fbsd 5.2 ;).

Regards,
Stefan


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Anyway to extract a large file from EXT2FS filesystem?

2004-02-17 Thread Kris Kennaway
5BOn Tue, Feb 17, 2004 at 11:16:50AM +0100, Stefan Krantz wrote:
 
 On Tue, 17 Feb 2004, Kris Kennaway wrote:
 
  On Tue, Feb 17, 2004 at 10:49:47AM +0100, Stefan Krantz wrote:
  
   Hi!
  
   I would like to extract a large (11GB) tar file on an ext3 filesystem. But
   it shows only to be about 3gb large:
  
   yabba# ls -la pictures.tar
   -rw-r--r--  1 root  wheel  3317055488 Feb 15 19:03 pictures.tar
  
   Is there any possible way to extract the file?
 
  It shouldn't be appearing truncated.  Are you certain that this size
  is incorrect, and the file has a different size when viewed from
  another OS?
 
 Yes. Yesterday I tested the archive with tar tvf (11gb) in
 Linux and it tested OK. In FBSD it says unexpected EOF.
 
 If I could i would just boot linux and split the file. But I can nolonger
 boot linux =/ (migrated to fbsd 5.2 ;).

I'm CC'ing tjr and bde, who might have some idea about the problem.

Kris


pgp0.pgp
Description: PGP signature


Re: Anyway to extract a large file from EXT2FS filesystem?

2004-02-17 Thread Tim Robbins
On Tue, Feb 17, 2004 at 02:21:21AM -0800, Kris Kennaway wrote:

 5BOn Tue, Feb 17, 2004 at 11:16:50AM +0100, Stefan Krantz wrote:
  
  On Tue, 17 Feb 2004, Kris Kennaway wrote:
  
   On Tue, Feb 17, 2004 at 10:49:47AM +0100, Stefan Krantz wrote:
   
Hi!
   
I would like to extract a large (11GB) tar file on an ext3 filesystem. But
it shows only to be about 3gb large:
   
yabba# ls -la pictures.tar
-rw-r--r--  1 root  wheel  3317055488 Feb 15 19:03 pictures.tar
   
Is there any possible way to extract the file?
  
   It shouldn't be appearing truncated.  Are you certain that this size
   is incorrect, and the file has a different size when viewed from
   another OS?
  
  Yes. Yesterday I tested the archive with tar tvf (11gb) in
  Linux and it tested OK. In FBSD it says unexpected EOF.
  
  If I could i would just boot linux and split the file. But I can nolonger
  boot linux =/ (migrated to fbsd 5.2 ;).
 
 I'm CC'ing tjr and bde, who might have some idea about the problem.

Try this patch and let me know how it goes. You'll have to specify
the file name of /sys/gnu/ext2fs/ext2_inode_cnv.c to patch(1) manually,
then either buildkernel or rebuild only ext2fs.ko. If the file shows
up with the correct size in a directory listing, make sure you can actually
read data past 4 GB.

 //depot/user/tjr/freebsd-tjr/src/sys/gnu/ext2fs/ext2_inode_cnv.c#1 - 
/p4/tjr/src/sys/gnu/ext2fs/ext2_inode_cnv.c 
@@ -77,6 +77,8 @@
*/
ip-i_mode = ei-i_links_count ? ei-i_mode : 0;
ip-i_size = ei-i_size;
+   if (S_ISREG(ip-i_mode))
+   ip-i_size |= ((u_int64_t)ei-i_size_high)  32;
ip-i_atime = ei-i_atime;
ip-i_mtime = ei-i_mtime;
ip-i_ctime = ei-i_ctime;
@@ -112,6 +114,8 @@
 */
ei-i_dtime = ei-i_links_count ? 0 : ip-i_mtime;
ei-i_size = ip-i_size;
+   if (S_ISREG(ip-i_mode))
+   ei-i_size_high = ip-i_size  32;
ei-i_atime = ip-i_atime;
ei-i_mtime = ip-i_mtime;
ei-i_ctime = ip-i_ctime;


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Anyway to extract a large file from EXT2FS filesystem?

2004-02-17 Thread Bruce Evans
On Tue, 17 Feb 2004, Kris Kennaway wrote:

 5BOn Tue, Feb 17, 2004 at 11:16:50AM +0100, Stefan Krantz wrote:
 
  On Tue, 17 Feb 2004, Kris Kennaway wrote:
 
   On Tue, Feb 17, 2004 at 10:49:47AM +0100, Stefan Krantz wrote:
   
Hi!
   
I would like to extract a large (11GB) tar file on an ext3 filesystem. But
it shows only to be about 3gb large:
   
yabba# ls -la pictures.tar
-rw-r--r--  1 root  wheel  3317055488 Feb 15 19:03 pictures.tar
   
Is there any possible way to extract the file?
  
   It shouldn't be appearing truncated.  Are you certain that this size
   is incorrect, and the file has a different size when viewed from
   another OS?
 
  Yes. Yesterday I tested the archive with tar tvf (11gb) in
  Linux and it tested OK. In FBSD it says unexpected EOF.
 
  If I could i would just boot linux and split the file. But I can nolonger
  boot linux =/ (migrated to fbsd 5.2 ;).

 I'm CC'ing tjr and bde, who might have some idea about the problem.

ext2fs under FreeBSD is missing support for files larger than Linux's
old limit of 4GB.  Fixing this should be relatively easy (start by
using i_size_high when converting the Linux disk inode to a FreeBSDish
in-core inode).  I don't have any patches for this.

Bruce
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Anyway to extract a large file from EXT2FS filesystem?

2004-02-17 Thread Stefan Krantz

 I would like to extract a large (11GB) tar file on an ext3 filesystem. But
 it shows only to be about 3gb large:

 yabba# ls -la pictures.tar
 -rw-r--r--  1 root  wheel  3317055488 Feb 15 19:03 pictures.tar

 Is there any possible way to extract the file?
   
It shouldn't be appearing truncated.  Are you certain that this size
is incorrect, and the file has a different size when viewed from
another OS?
  
   Yes. Yesterday I tested the archive with tar tvf (11gb) in
   Linux and it tested OK. In FBSD it says unexpected EOF.
  
   If I could i would just boot linux and split the file. But I can nolonger
   boot linux =/ (migrated to fbsd 5.2 ;).
 
  I'm CC'ing tjr and bde, who might have some idea about the problem.

 Try this patch and let me know how it goes. You'll have to specify
 the file name of /sys/gnu/ext2fs/ext2_inode_cnv.c to patch(1) manually,
 then either buildkernel or rebuild only ext2fs.ko. If the file shows
 up with the correct size in a directory listing, make sure you can actually
 read data past 4 GB.

  //depot/user/tjr/freebsd-tjr/src/sys/gnu/ext2fs/ext2_inode_cnv.c#1 - 
 /p4/tjr/src/sys/gnu/ext2fs/ext2_inode_cnv.c 
 @@ -77,6 +77,8 @@
   */
   ip-i_mode = ei-i_links_count ? ei-i_mode : 0;
   ip-i_size = ei-i_size;
 + if (S_ISREG(ip-i_mode))
 + ip-i_size |= ((u_int64_t)ei-i_size_high)  32;
   ip-i_atime = ei-i_atime;
   ip-i_mtime = ei-i_mtime;
   ip-i_ctime = ei-i_ctime;
 @@ -112,6 +114,8 @@
*/
   ei-i_dtime = ei-i_links_count ? 0 : ip-i_mtime;
   ei-i_size = ip-i_size;
 + if (S_ISREG(ip-i_mode))
 + ei-i_size_high = ip-i_size  32;
   ei-i_atime = ip-i_atime;
   ei-i_mtime = ip-i_mtime;
   ei-i_ctime = ip-i_ctime;

This patch worked great!

yabba# ls -l pictures.tar
-rw-r--r--  1 root  wheel  11906990080 Feb 15 19:03 pictures.tar

and extracting the file worked aswell.

Thanks a million!

Regards,
Stefan
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Anyway to extract a large file from EXT2FS filesystem?

2004-02-17 Thread Bruce Evans
On Tue, 17 Feb 2004, Tim Robbins wrote:

  5BOn Tue, Feb 17, 2004 at 11:16:50AM +0100, Stefan Krantz wrote:
 I would like to extract a large (11GB) tar file on an ext3 filesystem. But
 it shows only to be about 3gb large:

 yabba# ls -la pictures.tar
 -rw-r--r--  1 root  wheel  3317055488 Feb 15 19:03 pictures.tar

 Is there any possible way to extract the file?

 Try this patch and let me know how it goes. You'll have to specify
 the file name of /sys/gnu/ext2fs/ext2_inode_cnv.c to patch(1) manually,
 then either buildkernel or rebuild only ext2fs.ko. If the file shows
 up with the correct size in a directory listing, make sure you can actually
 read data past 4 GB.

  //depot/user/tjr/freebsd-tjr/src/sys/gnu/ext2fs/ext2_inode_cnv.c#1 - 
 /p4/tjr/src/sys/gnu/ext2fs/ext2_inode_cnv.c 
 @@ -77,6 +77,8 @@
   */
   ip-i_mode = ei-i_links_count ? ei-i_mode : 0;
   ip-i_size = ei-i_size;
 + if (S_ISREG(ip-i_mode))
 + ip-i_size |= ((u_int64_t)ei-i_size_high)  32;
   ip-i_atime = ei-i_atime;
   ip-i_mtime = ei-i_mtime;
   ip-i_ctime = ei-i_ctime;
 @@ -112,6 +114,8 @@
*/
   ei-i_dtime = ei-i_links_count ? 0 : ip-i_mtime;
   ei-i_size = ip-i_size;
 + if (S_ISREG(ip-i_mode))
 + ei-i_size_high = ip-i_size  32;
   ei-i_atime = ip-i_atime;
   ei-i_mtime = ip-i_mtime;
   ei-i_ctime = ip-i_ctime;


The feature stuff needs to be handled for writing.

The feature stuff is slightly broken for reading.  Large file support is
a read-only compatibility feature (it is indicated by the
EXT2_FEATURE_RO_COMPAT_LARGE_FILE flag in the s_feature_ro_compat field
in the superblock), but we didn't support it without the first hunk in
the above patch so we should have rejected even r/o mounts of file systems
that have this flag set.  We only reject r/w mounts of such file systems.
I suppose this isn't a problem in Linux implementations of ext2fs because
implementations that don't support large files in ext2fs don't support
large files anywhere, so files larger than the old limit of 4GB are handled
as correctly as possible at read time so their presence need not prevent
mounting.

Bruce
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Anyway to extract a large file from EXT2FS filesystem?

2004-02-17 Thread Tim Robbins
On Wed, Feb 18, 2004 at 11:37:26AM +1100, Bruce Evans wrote:

 On Tue, 17 Feb 2004, Tim Robbins wrote:
 
   5BOn Tue, Feb 17, 2004 at 11:16:50AM +0100, Stefan Krantz wrote:
  I would like to extract a large (11GB) tar file on an ext3 filesystem. But
  it shows only to be about 3gb large:
 
  yabba# ls -la pictures.tar
  -rw-r--r--  1 root  wheel  3317055488 Feb 15 19:03 pictures.tar
 
  Is there any possible way to extract the file?
 
  Try this patch and let me know how it goes. You'll have to specify
  the file name of /sys/gnu/ext2fs/ext2_inode_cnv.c to patch(1) manually,
  then either buildkernel or rebuild only ext2fs.ko. If the file shows
  up with the correct size in a directory listing, make sure you can actually
  read data past 4 GB.
 
   //depot/user/tjr/freebsd-tjr/src/sys/gnu/ext2fs/ext2_inode_cnv.c#1 - 
  /p4/tjr/src/sys/gnu/ext2fs/ext2_inode_cnv.c 
  @@ -77,6 +77,8 @@
  */
  ip-i_mode = ei-i_links_count ? ei-i_mode : 0;
  ip-i_size = ei-i_size;
  +   if (S_ISREG(ip-i_mode))
  +   ip-i_size |= ((u_int64_t)ei-i_size_high)  32;
  ip-i_atime = ei-i_atime;
  ip-i_mtime = ei-i_mtime;
  ip-i_ctime = ei-i_ctime;
  @@ -112,6 +114,8 @@
   */
  ei-i_dtime = ei-i_links_count ? 0 : ip-i_mtime;
  ei-i_size = ip-i_size;
  +   if (S_ISREG(ip-i_mode))
  +   ei-i_size_high = ip-i_size  32;
  ei-i_atime = ip-i_atime;
  ei-i_mtime = ip-i_mtime;
  ei-i_ctime = ip-i_ctime;
 
 
 The feature stuff needs to be handled for writing.

I discovered that a few minutes after posting the patch :-) I decided to
take the lazy way out for now and to return EFBIG if we would need to
upgrade the filesystem to EXT2_DYNAMIC_REV or set ..._RO_COMPAT_LARGE_FILE.
I think what's most important here is being able to read large files
from Linux ext2 filesystems, and I don't like the current ext2 code
enough to implement superblock updating etc.


Tim
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Anyway to extract a large file from EXT2FS filesystem?

2004-02-17 Thread Bruce Evans
On Wed, 18 Feb 2004, Tim Robbins wrote:

 On Wed, Feb 18, 2004 at 11:37:26AM +1100, Bruce Evans wrote:
  The feature stuff needs to be handled for writing.

 I discovered that a few minutes after posting the patch :-) I decided to
 take the lazy way out for now and to return EFBIG if we would need to
 upgrade the filesystem to EXT2_DYNAMIC_REV or set ..._RO_COMPAT_LARGE_FILE.
 I think what's most important here is being able to read large files
 from Linux ext2 filesystems, and I don't like the current ext2 code
 enough to implement superblock updating etc.

The ext2 code seems to do a little more than necessary.  Anyway, we
shouldn't copy it, to keep the the superblock update parts of FreeBSD's
ext2fs free of the copyleft :-).

Bruce
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: compiling ext2fs into a kernel

2003-11-21 Thread Lowell Gilbert
DG [EMAIL PROTECTED] writes:

 My first question is: what documentation is there on the available kernel
 options?

[I don't run 5.x, but...]
I thought that was supposed to be a NOTES file in the conf directory.
Looks like it doesn't include EXT2FS; that might be worth a bug report.

 My second question (coming from a different open source UNIX-like operating
 system background) is: how does one specify to compile a 5.1 feature as a
 module as opposed to directly into the kernel, or are all module-capable
 features automatically compiled as modules?

The latter should be the case by default.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


compiling ext2fs into a kernel

2003-11-20 Thread DG
Greetings,

I compiled a kernel from a standard 5.1-RELEASE installation yestreen to
include support for ext2fs, but couldn't find any documentation about what
option to set to include support for ext2fs.  Grepping the handbook and all
files in the .../i386/conf directory did not reveal any references to ext2fs
at all.  I eventually got around it by modifying the Makefile in the modules
directory and successfully compiled a kernel with ext2fs support.

As the kernel is for my gateway machine at home I temporarily don't have
Internet access there, so I did a quick search at work this morning and
found a reference to adding options EXT2FS to the config file - probably
the more canonical way of setting options.

My first question is: what documentation is there on the available kernel
options?

My second question (coming from a different open source UNIX-like operating
system background) is: how does one specify to compile a 5.1 feature as a
module as opposed to directly into the kernel, or are all module-capable
features automatically compiled as modules?

tia

Dave

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Migrating from Linux: mounting ext2fs

2003-10-24 Thread Vulpes Velox
On Wed, 22 Oct 2003 15:03:17 +0100
Miguel Gonçalves [EMAIL PROTECTED] wrote:

 Dear BSDers,
 
 I am about to move a workgroup server from Linux to FreeBSD. 
 
 How stable is the FreeBSD support for ext2fs? 

It should be able to read it with out probs. Not  sure about writeing. Just
mount the drive and copy the contects over the the bsd one.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Migrating from Linux: mounting ext2fs

2003-10-23 Thread Miguel Gonçalves
Dear BSDers,

I am about to move a workgroup server from Linux to FreeBSD. 

How stable is the FreeBSD support for ext2fs? 

Best regards,

Miguel Gonçalves
[EMAIL PROTECTED]
--
http://www.fe.up.pt/~miguelg/

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Migrating from Linux: mounting ext2fs

2003-10-23 Thread ogautherot

Hi Miguel!

Miguel_Gonçalves écrit:
 Dear BSDers,
 
 I am about to move a workgroup server from Linux to FreeBSD. 
 
 How stable is the FreeBSD support for ext2fs? 

I am currently using it happily (for the same purpose as yours).
Beware that the fsck_ext2fs needs to be re-linked if you want to
automount your partition (I still have the issue - I did not figure
out how to statically link it so that it does not require libc.so
before mounting /usr).

Any help on this one, anyone?

Thanks in advance
  Olivier
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Migrating from Linux: mounting ext2fs

2003-10-23 Thread andi payn
On Wed, 2003-10-22 at 07:03, Miguel Gonalves wrote:
 How stable is the FreeBSD support for ext2fs? 

First, if you're planning to migrate your server permanently, you're
probably better off reformatting in UFS: it's faster, and better for
error recovery. And computers that mount nfs/Samba/whatever shares won't
know the difference.

If you insist on keeping your partitions in ext2fs: I've seen a couple
of problems related to fsck. In particular, when a filesystem is dirty,
fsck.ext2 sometimes finds and fixes the problems but then fails to mark
the disk as clean (meaning that FreeBSD will refuse to mount it, if
you've specified read/write, and it'll be checked again next time you
reboot, and so forth). Personally, I've only seen this with ext3
(journaled) filesystems, but I don't know if that's universal.

So, to be safe, you'll probably want an rc script that mounts -r any of
your ext2 systems that were skipped. (Note that if /mnt/linux fails to
mount because it was dirty, /mnt/linux/usr, etc. will also fail to
mount.) This way, if the server gets hard-reset somehow, your users will
still be able to access their files, even if they aren't able to update
them, until you fix things.


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


error when trying to mount ext2fs harddisk

2003-10-11 Thread Torben Brosten
Hi,

I'm trying to mount an ext2fs formatted harddisk on freebsd 4-8 stable, but am getting an error.

huey# mkdir /aduni
huey# mount_ext2fs -o rdonly /dev/ad1s1 /aduni
mount_ext2fs: /dev/ad1s1: Invalid argument
Same error when trying: mount -t ext2fs /dev/ad1s1 /aduni

The kernel DUEY has the 'option EXT2FS' compiled in it.
$ uname -a
FreeBSD huey.dekka.com 4.8-STABLE FreeBSD 4.8-STABLE #0: Fri Oct 10 03:02:30 PDT 2003
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/DUEY  i386
huey# more /etc/fstab
# DeviceMountpoint  FStype  Options DumpPass#
/dev/ad0s1b noneswapsw  0   0
/dev/ad0s1a /   ufs rw  1   1
/dev/ad0s1e /area2  ufs rw  2   2
/dev/acd0c  /cdrom  cd9660  ro,noauto   0   0
/dev/acd1c  /cdrom1 cd9660  ro,noauto   0   0
proc/proc   procfs  rw  0   0
Here's the related boot messages.
huey# more /var/log/dmesg.today
...
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
ad0: 19092MB WDC WD200EB-00BHF0 [38792/16/63] at ata0-master UDMA66
ad1: 76319MB WDC WD800BB-60CJA0 [155061/16/63] at ata0-slave UDMA66
acd0: CD-RW LITE-ON LTR-52246S at ata1-slave PIO4
Mounting root from ufs:/dev/ad0s1a
DEPENDENCY NOTE: portmap will be enabled to support NFS
swapon: adding /dev/ad0s1b as swap device
Automatic boot in progress...
/dev/ad0s1a: 
FILESYSTEM CLEAN; SKIPPING CHECKS
/dev/ad0s1a: 
clean, 599013 free 
(31701 frags, 70914 blocks, 0.6% fragmentation)
/dev/ad0s1e: 
FILESYSTEM CLEAN; SKIPPING CHECKS
/dev/ad0s1e: 
clean, 1488769 free 
(7137 frags, 185204 blocks, 0.2% fragmentation)
ext2fs: 
/dev/ad1s1a
: 
DEPENDENCY NOTE: portmap will be enabled to support NFS
Skipping disk checks ...
Doing initial network setup:
hostname
.

When I installed the system via /stand/sysinstall, I had changed the ext2fs 
partition's disktype
in an effort to get freebsd to mount the disk using menu driven process from these 
windows:
huey# /stand/sysinstall/

- custom	Begin a custom installation
- partition	Allocate disk space for FreeBSD
- selected drive 
  [ ]ad0
  [x]ad1 
Disk name: ad1
Disk Geometry: 9729 cyls/255 heads/63 sectors = 156296385 sectors (76316MB)

Offset| Size(ST)  | End| Name| PType  | Desc| Subtype  | Flags
0 | 63| 62 | -   | 6  | unused  | 0| 
63| 156296322 | 1566296384 | ad1s1   | 1  | ext2fs  | 131  | = 
156296385 | 5103  | 156301487  | -   | 6  | unused  | 0| 

One of the commands supported:   T = Change Type

What could be causing this problem. Hints, suggestions etc welcome!

Torben



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: error when trying to mount ext2fs harddisk, wrong magic nbr??

2003-10-11 Thread Torben Brosten
After rebooting, tried again:

huey# mount -t ext2fs /dev/ad1s1 /aduni
ext2fs: #ad/0x2000a: wrong magic number 0x8b6 (expected 0xef53)
ext2fs: /dev/ad1s1: Invalid argument


I'm trying to mount an ext2fs formatted harddisk on freebsd 4-8 stable, 
but am getting an error.

huey# mkdir /aduni
huey# mount_ext2fs -o rdonly /dev/ad1s1 /aduni
mount_ext2fs: /dev/ad1s1: Invalid argument
Same error when trying: mount -t ext2fs /dev/ad1s1 /aduni
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: error when trying to mount ext2fs harddisk, wrong magic nbr??

2003-10-11 Thread Torben Brosten
I'm trying to decipher the error message:

ext2fs: #ad/0x000a: wrong magic number 0x8b6 (expected 0xef53)

I've been reading

man magic
man file
but I have limited C experience. I see the references to ext2 in 
/usr/share/misc/magic, particularly:

0x43a  leshort  ^0x001 (mounted or unclean)

Since 0x8b6 is much greater than 0x43a, am I to conclude that the drive was 
umounted incorrectly? If so, is there a way to use 'file' or some other utility 
to edit the offending magic number to 0xef53?

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: error when trying to mount ext2fs harddisk, wrong magic nbr??

2003-10-11 Thread Torben Brosten
After reading more man pages and the chapter Adding a Disk from UNIX System
Administration Handbook, 3rd ed. by Nemieth, Snyder, Seebass and Hein,  I 
realize that this ext2fs harddrive will best be fixed by putting back into a 
linux environment and proceeding with fdisk + fsck etc.

cheers

Torben Brosten wrote:
I'm trying to decipher the error message:

ext2fs: #ad/0x000a: wrong magic number 0x8b6 (expected 0xef53)

I've been reading

man magic
man file
but I have limited C experience. I see the references to ext2 in 
/usr/share/misc/magic, particularly:

 0x43a  leshort  ^0x001 (mounted or unclean)

Since 0x8b6 is much greater than 0x43a, am I to conclude that the drive 
was umounted incorrectly? If so, is there a way to use 'file' or some 
other utility to edit the offending magic number to 0xef53?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Mounting an EXT2FS CD on FreeBSD-5.1

2003-07-31 Thread Satish Vanimisetti

[I'm copying -fs because this was originally posted
there. I'm also CC'ing -questions.]

  # mount -t ext2fs /dev/acd1c /mnt/cdrom
  ext2fs: /dev/acd1c: No such file or directory

The CD was burned (on a linux machine), as follows:
1. dd if=/dev/zero of=/tmp/cdimage bs=1024 count=640k
2. mkfs /tmp/cdimage, mount -t ext2 -o loop /tmp/cdimage /mnt/cdimge
3. rsync --archive /my/data /mnt/cdimage
4. umount /mnt/cdimage
5. cdrecord -data /tmp/cdimage

Since I did not create any partitions, would there be
an ad0c? Also, the FreeBSD install CD mounts fine with
/dev/ad0.

Thanks for the quick response,
Satish Vanimisetti


On Thu, 31 Jul 2003, Brandon D. Valentine wrote:

 [ This probably should have been asked on -questions. ]

 On Thu, Jul 31, 2003 at 12:14:19PM -0400, Satish Vanimisetti wrote:
 
  I am trying to mount a CD burned with an EXT2 filesystem on
  a PC installed with FreeBSD-5.1
 
# mount -t ext2fs /dev/acd0 /cdrom
ext2fs: /dev/acd0: No such file or directory

 You're trying to mount the cdrom device itself, not a filesystem on the
 cdrom.  You need to mount /dev/acd0c.

 Brandon D. Valentine
 --
 [EMAIL PROTECTED] http://www.geekpunk.net
 Pseudo-Random Googlism:  texas is preserved


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Mounting an EXT2FS CD on FreeBSD-5.1

2003-07-31 Thread Joshua Lokken


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Satish
 Vanimisetti
 Sent: Thursday, July 31, 2003 10:43 AM
 To: Brandon D. Valentine
 Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: Mounting an EXT2FS CD on FreeBSD-5.1
 
 
 
 [I'm copying -fs because this was originally posted
 there. I'm also CC'ing -questions.]
 
   # mount -t ext2fs /dev/acd1c /mnt/cdrom
   ext2fs: /dev/acd1c: No such file or directory
 

Have you tried:

# mount_cd9660 /dev/acd1c /mnt/cdrom

or

# mount -t cd9660 /dev/acd1c /mnt/cdrom
?

Joshua

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Mounting an EXT2FS CD on FreeBSD-5.1

2003-07-31 Thread Satish Vanimisetti


 Have you tried:

 # mount_cd9660 /dev/acd1c /mnt/cdrom

 or

 # mount -t cd9660 /dev/acd1c /mnt/cdrom

Yes, I have. I get an incorrect superblock error,
which is expected, because the filesystem on the CD
is ext2.

 Joshua

Thanks,
Satish Vanimisetti

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Recovering ext2fs partitions after crash

2003-07-04 Thread W. Sierke
Update:

I booted with tomrsrtbt disk:

http://www.toms.net/rb/

and successfully ran the included e2fsck which appears to be the same
version as I have installed on my 4.8 box.

However I still get the same error when I try to run e2fsck under FBSD:

# e2fsck /dev/ad0s5
e2fsck 1.27 (8-Mar-2002)
The filesystem size (according to the superblock) is 1281175 blocks
The physical size of the device is 0 blocks
Either the superblock or the partition table is likely to be corrupt!
Aborty?


The ext2fs partitions exist in an extended partition. Am I missing some
knowledge about using extended partitions? They mount normally and have
otherwise (until the system crashed/hung) operated flawlessly to date. Does
anyone know why I'm unable to use the ext2fs utilities (installed from
/usr/ports/sysutils/e2fsprogs)?


Thanks,

Wayne

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


  1   2   >