Subject: Re: Using partitions and better package selection/installation
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
From: Srinivasa Kanduru <ksraghavan@yahoo.com>
List: current-users
Date: 12/31/2003 14:53:45
> > a) how to mount partitions of various filesystems ?
> > [ as you can see below the naming convention in netbsd seems to be
> different
> > from FreeBSD]
>
> The disklabel output you posted let me believe it's not the one from
> NetBSD, as the NetBSD root partition should be a (as shown in your
> mount command output).
> mrlabel(8) can help you adding the partitions to the NetBSD disklabel, and
> mount them.
>
>
That's from netbsd only but from sysinst (from current 200312130000 build).
mbrlabel output is as follows: [Thanks to Jeremy & others who responded on
netbsd-help, I now know about mbrlabel.] Looks like the way to distinguish
FreeBSD partitions from NetBSD is the cpg/sgs info. For FreeBSD it shows up as
16.
16 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 1049328 4192965 4.2BSD 1024 8192 43728 # (Cyl. 4159*-
5200*)
b: 1049328 5242293 swap # (Cyl. 5200*-
6241*)
c: 4192965 4192965 unused 0 0 # (Cyl. 4159*-
8319*)
d: 156301488 0 unused 0 0 # (Cyl. 0 - 155060)
e: 4192902 63 Linux Ext2 0 0 # (Cyl. 0*-
4159*)
f: 2094309 6291621 4.2BSD 1024 8192 45536 # (Cyl. 6241*-
8319*)
g: 16384 8385930 4.2BSD 1024 8192 16 # (Cyl. 8319*-
8335*)
h: 16384 54508608 4.2BSD 1024 8192 16 # (Cyl. 54076 -
54092*)
i: 20964762 12578958 4.2BSD 2048 16384 28064 # (Cyl. 12479*-
33277*)
j: 20964762 33543783 4.2BSD 0 0 0 # (Cyl. 33277*-
54075*)
k: 20964762 96438258 Linux Ext2 0 0 # (Cyl. 95672*-
116471*)
l: 20964762 117403083 Linux Ext2 0 0 # (Cyl. 116471*-
137269*)
m: 16354107 138367908 Linux Ext2 0 0 # (Cyl. 137269*-
153494*)
n: 1574307 154722078 swap # (Cyl. 153494*-
155055*)
o: 16384 75473433 4.2BSD 1024 8192 16 # (Cyl. 74874*-
74890*)
p: 16384 8385930 4.2BSD 1024 8192 16 # (Cyl. 8319*-
8335*)
> >
> > b) is there a tool to assist in package selection and installation like
> > apt-get/apt-cache search as in Debian linux (or portupgrade as in FreeBSD)
> ?
>
> I think such a tool has just been added to the package system. I don't
> remember his name.
>
ok ..
> >
> > c) FreeBSD 5.1 seems to have added ACLs feature to ufs filesystems (used by
> > default). Can it be mounted as read-only filesystem on NetBSD ?
>
> Yes, this should work.
>
There seems to be a problem here. The mount is possible only in read-only mode
and works only partially. Following is the output. I cant see any /etc/* files,
etc.
Maybe their ufs2 with ACL support is not fully compatible ?
# mount -t ufs /dev/wd0g /mnt
mount_ufs: /dev/wd0g on /mnt: incorrect super block
# mount -t ufs -o ro /dev/wd0g /mnt
# ls /mnt/
.cshrc bin dev etc mnt stand var
.profile boot disk home proc sys
COPYRIGHT cdrom dist mbr root tmp
MBR compat entropy mbr1 sbin usr
# ls /mnt/*
ls: /mnt/boot: Invalid argument
ls: /mnt/dev: Invalid argument
ls: /mnt/dist: Invalid argument
ls: /mnt/etc: Invalid argument
ls: /mnt/mnt: Invalid argument
ls: /mnt/proc: Invalid argument
ls: /mnt/root: Invalid argument
ls: /mnt/sbin: Invalid argument
ls: /mnt/stand: Invalid argument
ls: /mnt/tmp: Invalid argument
ls: /mnt/usr: Invalid argument
ls: /mnt/var: Invalid argument
/mnt/COPYRIGHT /mnt/compat /mnt/home /mnt/mbr1
/mnt/MBR /mnt/entropy /mnt/mbr /mnt/sys
/mnt/bin:
[ csh ed link ps rmail sync
cat date expr ln pwd rmdir tcsh
chflags dd getfacl ls rcp setfacl test
chio df hostname mkdir realpath sh unlink
chmod domainname kenv mv red sleep
cp echo kill pax rm stty
/mnt/cdrom:
/mnt/disk:
# /mnt/bin/date
Wed Dec 31 06:39:06 PST 2003
> >
> >
> > Sysinst recognizes all the filesystems, but when I boot the regular kernel
> I
> > couldn't see a way of mounting those partitions.
>
> This is the default disklabel build by the kernel. I'm not sure sysinst has
> keept all the partitions, and if it did, is has probably reordered them
> (to have 'a' as the root filesystem, 'b' as swap).
>
BTW there was one more problem that I experienced with sysinst. I am not sure
if it was because I created the partitions from Linux. I booted from the
netbsd-current 20031213000 build floppies and pointed to the distribution set
on releng.netbsd.org. I used to consistently get coredumps, but one case worked
after various combinations, so I could install netbsd-current successfully. I
have the coredump but since sysinst is a stripped-version, it might not be very
useful. I thought it is worth-mentioning it if it wasn't seen before.
Thanks,
Srini.
__________________________________
Do you Yahoo!?
Find out what made the Top Yahoo! Searches of 2003
http://search.yahoo.com/top2003