Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- grahamperrin@mowa219-gjp4-8570p:~ % date ; uname -sr
- Thu 31 Dec 2020 08:00:14 GMT
- FreeBSD 13.0-CURRENT
- grahamperrin@mowa219-gjp4-8570p:~ % ls /dev/da*
- /dev/da0 /dev/da0p1 /dev/da1 /dev/da1p1
- grahamperrin@mowa219-gjp4-8570p:~ % mount | grep da1
- grahamperrin@mowa219-gjp4-8570p:~ % sudo rm -r /dev/da1
- grahamperrin's password:
- grahamperrin@mowa219-gjp4-8570p:~ % sudo gdisk /dev/da1
- GPT fdisk (gdisk) version 1.0.5
- Problem opening /dev/da1 for reading! Error is 2.
- The specified file does not exist!
- grahamperrin@mowa219-gjp4-8570p:~ % tail -f -n 0 /var/log/messages
- Dec 31 08:01:39 mowa219-gjp4-8570p kernel: ugen0.7: <Verbatim STORE N GO> at usbus0 (disconnected)
- Dec 31 08:01:39 mowa219-gjp4-8570p kernel: umass1: at uhub2, port 4, addr 7 (disconnected)
- Dec 31 08:01:39 mowa219-gjp4-8570p kernel: da1 at umass-sim1 bus 1 scbus7 target 0 lun 0
- Dec 31 08:01:39 mowa219-gjp4-8570p kernel: da1: <Verbatim STORE N GO > s/n 17071802004381 detached
- Dec 31 08:01:39 mowa219-gjp4-8570p kernel: (da1:umass-sim1:1:0:0): Periph destroyed
- Dec 31 08:01:39 mowa219-gjp4-8570p kernel: umass1: detached
- Dec 31 08:01:44 mowa219-gjp4-8570p kernel: ugen0.7: <Verbatim STORE N GO> at usbus0
- Dec 31 08:01:44 mowa219-gjp4-8570p kernel: umass1 on uhub2
- Dec 31 08:01:44 mowa219-gjp4-8570p kernel: umass1: <Verbatim STORE N GO, class 0/0, rev 2.00/3.02, addr 8> on usbus0
- Dec 31 08:01:44 mowa219-gjp4-8570p kernel: umass1: SCSI over Bulk-Only; quirks = 0x8100
- Dec 31 08:01:44 mowa219-gjp4-8570p kernel: umass1:7:1: Attached to scbus7
- Dec 31 08:01:44 mowa219-gjp4-8570p kernel: da1 at umass-sim1 bus 1 scbus7 target 0 lun 0
- Dec 31 08:01:44 mowa219-gjp4-8570p kernel: da1: <Verbatim STORE N GO > Removable Direct Access SPC-2 SCSI device
- Dec 31 08:01:44 mowa219-gjp4-8570p kernel: da1: Serial Number 17071802004381
- Dec 31 08:01:44 mowa219-gjp4-8570p kernel: da1: 40.000MB/s transfers
- Dec 31 08:01:44 mowa219-gjp4-8570p kernel: da1: 7450MB (15257600 512 byte sectors)
- Dec 31 08:01:44 mowa219-gjp4-8570p kernel: da1: quirks=0x2<NO_6_BYTE>
- ^C
- grahamperrin@mowa219-gjp4-8570p:~ % mount | grep da1
- /dev/da1p1 on /media/da1p1 (ufs, local, noatime, soft-updates)
- grahamperrin@mowa219-gjp4-8570p:~ % umount /dev/da1p1
- grahamperrin@mowa219-gjp4-8570p:~ % sudo gdisk /dev/da1
- GPT fdisk (gdisk) version 1.0.5
- Partition table scan:
- MBR: protective
- BSD: not present
- APM: not present
- GPT: present
- Found valid GPT with protective MBR; using GPT.
- Command (? for help): ^Z
- Suspended
- grahamperrin@mowa219-gjp4-8570p:~ % umount /dev/da1p1
- grahamperrin@mowa219-gjp4-8570p:~ % fg
- sudo gdisk /dev/da1
- Command (? for help): x
- Expert command (? for help): z
- About to wipe out GPT on /dev/da1. Proceed? (Y/N): y
- Warning: The kernel may continue to use old or deleted partitions.
- You should reboot or remove the drive.
- GPT data structures destroyed! You may now partition the disk using fdisk or
- other utilities.
- Blank out MBR? (Y/N): y
- grahamperrin@mowa219-gjp4-8570p:~ % sudo gdisk /dev/da1
- GPT fdisk (gdisk) version 1.0.5
- Partition table scan:
- MBR: not present
- BSD: not present
- APM: not present
- GPT: not present
- Creating new GPT entries in memory.
- Command (? for help): w
- Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
- PARTITIONS!!
- Do you want to proceed? (Y/N): y
- OK; writing new GUID partition table (GPT) to /dev/da1.
- Warning: The kernel may continue to use old or deleted partitions.
- You should reboot or remove the drive.
- The operation has completed successfully.
- grahamperrin@mowa219-gjp4-8570p:~ % gpart add -t freebsd-ufs /dev/da1
- da1p1 added
- grahamperrin@mowa219-gjp4-8570p:~ % mount | grep da1
- /dev/da1p1 on /media/da1p1 (ufs, local, noatime, soft-updates)
- grahamperrin@mowa219-gjp4-8570p:~ % touch /media/da1p1/touched
- touch: /media/da1p1/touched: Permission denied
- grahamperrin@mowa219-gjp4-8570p:~ % umount /dev/da1p1
- grahamperrin@mowa219-gjp4-8570p:~ % tail -f -n 0 /var/log/messages
- Dec 31 08:04:29 mowa219-gjp4-8570p kernel: ugen0.7: <Verbatim STORE N GO> at usbus0 (disconnected)
- Dec 31 08:04:29 mowa219-gjp4-8570p kernel: umass1: at uhub2, port 4, addr 8 (disconnected)
- Dec 31 08:04:29 mowa219-gjp4-8570p kernel: da1 at umass-sim1 bus 1 scbus7 target 0 lun 0
- Dec 31 08:04:29 mowa219-gjp4-8570p kernel: da1: <Verbatim STORE N GO > s/n 17071802004381 detached
- Dec 31 08:04:29 mowa219-gjp4-8570p kernel: (da1:umass-sim1:1:0:0): Periph destroyed
- Dec 31 08:04:29 mowa219-gjp4-8570p kernel: umass1: detached
- ^C
- grahamperrin@mowa219-gjp4-8570p:~ % ls -dhl /media/da1p1
- ls: /media/da1p1: No such file or directory
- grahamperrin@mowa219-gjp4-8570p:~ % tail -f -n 0 /var/log/messages
- Dec 31 08:04:58 mowa219-gjp4-8570p kernel: ugen0.7: <Verbatim STORE N GO> at usbus0
- Dec 31 08:04:58 mowa219-gjp4-8570p kernel: umass1 on uhub2
- Dec 31 08:04:58 mowa219-gjp4-8570p kernel: umass1: <Verbatim STORE N GO, class 0/0, rev 2.00/3.02, addr 9> on usbus0
- Dec 31 08:04:58 mowa219-gjp4-8570p kernel: umass1: SCSI over Bulk-Only; quirks = 0x8100
- Dec 31 08:04:58 mowa219-gjp4-8570p kernel: umass1:7:1: Attached to scbus7
- Dec 31 08:04:58 mowa219-gjp4-8570p kernel: da1 at umass-sim1 bus 1 scbus7 target 0 lun 0
- Dec 31 08:04:58 mowa219-gjp4-8570p kernel: da1: <Verbatim STORE N GO > Removable Direct Access SPC-2 SCSI device
- Dec 31 08:04:58 mowa219-gjp4-8570p kernel: da1: Serial Number 17071802004381
- Dec 31 08:04:58 mowa219-gjp4-8570p kernel: da1: 40.000MB/s transfers
- Dec 31 08:04:58 mowa219-gjp4-8570p kernel: da1: 7450MB (15257600 512 byte sectors)
- Dec 31 08:04:58 mowa219-gjp4-8570p kernel: da1: quirks=0x2<NO_6_BYTE>
- ^C
- grahamperrin@mowa219-gjp4-8570p:~ % ls -dhl /media/da1p1
- drwxr-xr-x 3 root wheel 512B 30 Dec 13:29 /media/da1p1
- grahamperrin@mowa219-gjp4-8570p:~ % touch /media/da1p1/touched
- touch: /media/da1p1/touched: Permission denied
- grahamperrin@mowa219-gjp4-8570p:~ % pkg search gvfs
- gvfs-1.46.1_2 GNOME virtual file system
- grahamperrin@mowa219-gjp4-8570p:~ % pkg query '%o %v %R' gvfs
- devel/gvfs 1.46.1_2 FreeBSD
- grahamperrin@mowa219-gjp4-8570p:~ % pkg info | grep fuse
- fuse.gunzip-20070320 Fuse.gunzip provides transparent decompression of gzip compressed files
- fusefs-exfat-1.3.0 Full-featured exFAT FS implementation as a FUSE module
- fusefs-ext2-0.0.10_2 FUSE module to mount ext2, ext3 and ext4 with read write support
- fusefs-gphotofs-0.5_5 Mount PTP camera as a file system
- fusefs-jmtpfs-g20190420 MTP device filesystem
- fusefs-libs-2.9.9_1 FUSE allows filesystem implementation in userspace
- fusefs-libs3-3.10.1_1 FUSE library version 3 for filesystems implemented in userspace
- fusefs-lkl-4.16.g20180628_3 Full-featured Linux BTRFS, Ext4, XFS as a FUSE module
- fusefs-ntfs-2017.3.23 Mount NTFS partitions (read/write) and disk images
- fusefs-simple-mtpfs-0.4.0 Simple MTP fuse filesystem driver
- fusefs-smbnetfs-0.6.1_3 Mount smb shares (Fuse filesystem)
- fusefs-sshfs-3.7.1 Mount remote directories over ssh
- kio-fuse-4.95.0 FUSE Interface for KIO
- grahamperrin@mowa219-gjp4-8570p:~ %
Add Comment
Please, Sign In to add comment