I am currently running my server in the rescue mode, due to the firewall issues. In order to disable the firewall thing I would have to mount the / partition.

My problem is that I dont know/remember what is the partition name to mount. I though that would be the /dev/ada0 (as on my similar server bought at the same time) but there is no such partition:

mount /dev/ada0 /mnt
mount: /dev/ada0: Invalid argument

OVH web tutorial is saying that its possible to check the partition table via the fdisk -l command - however, wont work on the FreeBSD:

# fdisk -l
fdisk: illegal option -- l

Is there an other possibility to check the partition table?

  • Firewall issue? Why not just boot in Single User Mode??? – Chris S Oct 17 '14 at 14:17
  • 1
    try to look at gpart show – citrin Oct 17 '14 at 14:44
  • or "gpart list", if you want tonns of info. – drookie Oct 18 '14 at 5:39

I have found a nice work-around for that if anyone would be interested:

Go to the # sade then choose Label. Everything will be shown nicely. Once finished you may exit with Q.


EDIT: as @DeerHunter points out, I answered the wrong question. Read on if you want to know how to find out the last mount point a file system was mounted at.

It (the last mount point) is printed at the beginning of the fsck output. Lke this:

root@machine:~ # fsck_ufs /dev/md4
** /dev/md4 (NO WRITE)
** Last Mounted on /db
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
1246 files, 83601532 used, 671851607 free (623 frags, 83981373 blocks, 0.0% fragmentation)
  • Have you noticed that you have to provide the partition name to fsck to get it back? – Deer Hunter Nov 5 '14 at 0:13
  • 1
    @DeerHunter my mistake, I thought he wanted to know the last mount point, not the device. – kael Nov 5 '14 at 0:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.