NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: automount usb
On 11/25/26 15:06, adr wrote:
Use "dmesg | tail" just after plugging in the usb device. If you
see something like:
[ 4.172729] dk0 at wd0: "db4608aa-46ee-4290-9c19-81e3d4f15561",
511936 blocks at 64, type: msdos
Then you have a GUID partition table, just mount /dev/dk# (dk0 in
my case) on a mount point:
# mount_msdos /dev/dk0 /mnt
Note that you have to be root to mount by default, see mount(8).
If you don't see that dk# "stuff", but something ending like:
sd0: fabricating a geometry
use diklabel on sd0, you should see somthing like:
[...]
e: 30218779 63 MSDOS ...
[...]
That's the slice you want to mount, again:
mount_mdos /dev/sd0e /mnt
File browsers (which I don't use, I can't recommend any of them)
usually come with support of automounting file systems (gvfs?),
ask the pkgsrc list for advise.
Here's where I'm at:
dmesg:
[ 14563.027133] umass0 at uhub2 port 2 configuration 1 interface 0
[ 14563.027133] umass0: Kingston (0x0951) DataTraveler Max (0x177f), rev
2.10/1.00, addr 8
[ 14563.027133] umass0: using SCSI over Bulk-Only
[ 14563.027133] scsibus0 at umass0: 2 targets, 1 lun per target
[ 14563.027133] sd0 at scsibus0 target 0 lun 0: <Kingston, DataTraveler
Max, > disk fixed
[ 14563.037134] sd0: fabricating a geometry
[ 14563.037134] sd0: 238 GB, 244198 cyl, 64 head, 32 sec, 512 bytes/sect
x 500118192 sectors
[ 14563.037134] sd0: fabricating a geometry
# disklabel sd0
# /dev/rsd0:
type: SCSI
disk: DataTraveler Max
label: fictitious
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 244198
total sectors: 500118192
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
5 partitions:
# size offset fstype [fsize bsize cpg/sgs]
d: 500118192 0 unused 0 0 # (Cyl. 0 -
244198*)
e: 500113408 2048 NTFS # (Cyl. 1 -
244196)
disklabel: boot block size 0
disklabel: super block size 0
# mount /dev/sd0e /mnt
mount_ntfs: /dev/sd0e on /mnt: Invalid argument
# mount -t msdos /dev/sd0e /mnt
mount_msdos: /dev/sd0e on /mnt: Invalid argument
It's in the guide, you should take your time to read it; but I
think it should be all rewritten, especially the installation part,
taking into consideration that the norm now is going to be gpt
partitions everywhere.
All I've been able to find in the guide is how to wipe out the existing
data on a USB drive with dd (to create a bootable drive). I'll look
again, but I've looked more than once...
Home |
Main Index |
Thread Index |
Old Index