Netgate 4100 disk
-
@felix-4
At a guess- formatted vs un-formatted
- Swap space
- Bios
-
Yup, ZFS formatting and SWAP:
[22.05-RELEASE][admin@4100-2.stevew.lan]/root: geom part list Geom name: mmcsd0 modified: false state: OK fwheads: 255 fwsectors: 63 last: 30621655 first: 40 entries: 128 scheme: GPT Providers: 1. Name: mmcsd0p1 Mediasize: 209715200 (200M) Sectorsize: 512 Stripesize: 512 Stripeoffset: 0 Mode: r0w0e0 efimedia: HD(1,GPT,856ab062-ec12-11ec-b466-90ec771f8c3f,0x28,0x64000) rawuuid: 856ab062-ec12-11ec-b466-90ec771f8c3f rawtype: c12a7328-f81f-11d2-ba4b-00a0c93ec93b label: efiboot0 length: 209715200 offset: 20480 type: efi index: 1 end: 409639 start: 40 2. Name: mmcsd0p2 Mediasize: 524288 (512K) Sectorsize: 512 Stripesize: 512 Stripeoffset: 0 Mode: r0w0e0 efimedia: HD(2,GPT,857c60fa-ec12-11ec-b466-90ec771f8c3f,0x64028,0x400) rawuuid: 857c60fa-ec12-11ec-b466-90ec771f8c3f rawtype: 83bd6b9d-7f41-11dc-be0b-001560b84f0f label: gptboot0 length: 524288 offset: 209735680 type: freebsd-boot index: 2 end: 410663 start: 409640 3. Name: mmcsd0p3 Mediasize: 1073741824 (1.0G) Sectorsize: 512 Stripesize: 512 Stripeoffset: 0 Mode: r1w1e0 efimedia: HD(3,GPT,8585f920-ec12-11ec-b466-90ec771f8c3f,0x64800,0x200000) rawuuid: 8585f920-ec12-11ec-b466-90ec771f8c3f rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b label: swap0 length: 1073741824 offset: 210763776 type: freebsd-swap index: 3 end: 2508799 start: 411648 4. Name: mmcsd0p4 Mediasize: 14392754176 (13G) Sectorsize: 512 Stripesize: 512 Stripeoffset: 0 Mode: r1w1e1 efimedia: HD(4,GPT,858d9b82-ec12-11ec-b466-90ec771f8c3f,0x264800,0x1acf000) rawuuid: 858d9b82-ec12-11ec-b466-90ec771f8c3f rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b label: zfs0 length: 14392754176 offset: 1284505600 type: freebsd-zfs index: 4 end: 30619647 start: 2508800 Consumers: 1. Name: mmcsd0 Mediasize: 15678308352 (15G) Sectorsize: 512 Stripesize: 512 Stripeoffset: 0 Mode: r2w2e3
Steve
-
@stephenw10 said in Netgate 4100 disk:
5678308352
Thanks for reply,
I'm a little green in Linux so I don't get the full benefit of the fine data you've attached.
Does your answer mean that I have to do something to optimize the drive, or does it mean that this is how it should be, based on the data that is in operation. -
I just included to show the different partitions on the storage device and so you could replicate it to check. It will be the same though unless you re-installed and selected some custom values.
Steve
-
Hi Steve, thanks for your reply.
You must bear in mind that I am, as I said, new to the subject and do not know how to see that info. I haven't found a place that shows it.
;o) -
@felix-4 said in Netgate 4100 disk:
I haven't found a place that shows it.
@stephenw10 was using the most important access to you pfSense ; the console or SSH.
He showed you the partition on his drive. Just add the several mediasize together.Btw : when you buy a 100 Gbytes disk, and install Windows on it, you wind up having a disk "C:" with about 80 Gbytes. The rest is sued for 'other stuff'. You will find more then one partion, one of them is the C: drive, and other portions for windows internal use.
-
Thanks for reply.
Exactly as you describe, I know well that there is a difference between a new drive, before and after installation, of for example Windows.
I just have no experience with Netgate 4100, i.e. whether the original hard drive size is displayed, or a partition after installing Pfsense, which is what I am describing. (11G)So if someone answers that there is usually 11 G available on such a device, then I know that it is normal.
I've started working with ssh, but from the 16 possible choices, I don't get insight into the partitions, so it probably requires a special command.
-
Choose option 8 at the console menu to access the command line. (Enter 'exit' to get back to the menu).
At the command line run the command I showed there:
geom part list
You should see very similar output to what I posted.But, yes, what you;re seeing is the expected value and not any indication of a problem.
Steve
-
@stephenw10 said in Netgate 4100 disk:
geom part list
Thank you Steve,
You have enriched my day, I am happy for the help I got here. Getting to know my new 4100 is an exciting world.
;o)
-
This post is deleted! -
@stephenw10 said in Netgate 4100 disk:
At the command line run the command I showed there: geom part list
You should see very similar output to what I posted.[22.05-RELEASE][admin@pfSense.right-here.net]/root: geom part list Geom name: nvd0 modified: false state: OK fwheads: 255 fwsectors: 63 last: 234441639 first: 3 entries: 4 scheme: GPT Providers: 1. Name: nvd0p1 Mediasize: 209715200 (200M) Sectorsize: 512 Stripesize: 0 Stripeoffset: 1536 Mode: r0w0e0 efimedia: HD(1,GPT,53119e25-8838-11ec-8def-539c1f4371c1,0x3,0x64000) rawuuid: 53119e25-8838-11ec-8def-539c1f4371c1 rawtype: c12a7328-f81f-11d2-ba4b-00a0c93ec93b label: (null) length: 209715200 offset: 1536 type: efi index: 1 end: 409602 start: 3 2. Name: nvd0p2 Mediasize: 113922309632 (106G) Sectorsize: 512 Stripesize: 0 Stripeoffset: 209716736 Mode: r1w1e1 efimedia: HD(2,GPT,53119e2b-8838-11ec-8def-539c1f4371c1,0x64003,0xd43263f) rawuuid: 53119e2b-8838-11ec-8def-539c1f4371c1 rawtype: 516e7cb6-6ecf-11d6-8ff8-00022d09712b label: (null) length: 113922309632 offset: 209716736 type: freebsd-ufs index: 2 end: 222914113 start: 409603 3. Name: nvd0p3 Mediasize: 5902090752 (5.5G) Sectorsize: 512 Stripesize: 0 Stripeoffset: 2462876672 Mode: r0w0e0 efimedia: HD(3,GPT,6a2f135c-af59-11ec-b93b-90ec7729392c,0xd496642,0xafe561) rawuuid: 6a2f135c-af59-11ec-b93b-90ec7729392c rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b label: (null) length: 5902090752 offset: 114132026368 type: freebsd-swap index: 3 end: 234441634 start: 222914114 Consumers: 1. Name: nvd0 Mediasize: 120034123776 (112G) Sectorsize: 512 Mode: r1w1e2
What I make of it :
There is a device (and driver) called : nvd0 - 112G
Partition 1 : nvd0p1 - something like a boot partition - 200 Mb
Partition 2 : nvd0p2 - the main Freebsd root or 'pfSense' - 106 Gb
Partition 3 : nvd0p3 - "freebsd-swap" so there is one - 5,5 GbSo, the swap space is there, but FreeeBSD isn't using it ?
My /etc/fstab :
# Device Mountpoint FStype Options Dump Pass# /dev/msdosfs/EFISYS /boot/efi msdosfs rw,noatime,noauto 0 0 /dev/gptid/6a2f135c-af59-11ec-b93b-90ec7729392c none swap sw 0 0
Where "6a2f135c-af59-11ec-b93b-90ec7729392c" is nvd0p3 ( ? )
A device like /dev/gptid/ isn't listed under /dev/
-
@gertjan said in Netgate 4100 disk:
rawuuid: 6a2f135c-af59-11ec-b93b-90ec7729392c
Yes, that's the GPTID of nvd0p3.
-
My serial (4100-MAX) console access has always been set to "log to file".
So, when I received my device, ir was using 22.01 'as shipped' :
From back then.... Configuring crash dumps... No suitable dump device was found. Filesystems are clean, continuing... Mounting filesystems... Mounting ZFS boot environment... done. __ _ __ / _|___ ___ _ __ ___ ___ _ | '_ \| |_/ __|/ _ \ '_ \/ __|/ _ \ _| |_ | |_) | _\__ \ __/ | | \__ \ __/ |_ _| | .__/|_| |___/\___|_| |_|___/\___| |_| |_| Welcome to Netgate pfSense Plus 22.01-RELEASE.. .....
Throwing now "No suitable dump device was found" on every reboot.
Is it possible to 'delete' this swap partition, and use, for example,
/etc/rc.d/createswap ?
Or a command to make it available/usable for FreeBSD ? -
Well anything's possible. But I have never tried that. Especially in ZFS.
The fstab does not reference the gptid in any install I have here:
[22.05-RELEASE][admin@4100.stevew.lan]/root: cat /etc/fstab # Device Mountpoint FStype Options Dump Pass# /dev/gpt/efiboot0 /boot/efi msdosfs rw 2 2 /dev/nvd0p3 none swap sw 0 0
So you might try just changing that initially.
Steve
-
@stephenw10 said in Netgate 4100 disk:
So you might try just changing that initially.
Yeah, just like that
I would love to try things out, but I have only one 4100, and messing around with core boot files is a scary thing.
I guess I'll ask for a "22.05" ISO first prepare a new USB boot drive, back the config, wait for the weekend etc ;)
edit :
Ok, done :
I started the stopwatch ;)
-
I did it :
I changed# Device Mountpoint FStype Options Dump Pass# /dev/msdosfs/EFISYS /boot/efi msdosfs rw,noatime,noauto 0 0 /dev/gptid/6a2f135c-af59-11ec-b93b-90ec7729392c none swap sw 0 0
for
# Device Mountpoint FStype Options Dump Pass# /dev/msdosfs/EFISYS /boot/efi msdosfs rw,noatime,noauto 0 0 /dev/nvd0p3 none swap sw 0 0
and suddenly, after reboot, I have a swap partition :
-
-