help with MY Book external drive
I just purchased a WD MY Book external USB disk, I reformatted in UFS and created a filesystem with sysinstall. I was able to put data on it successfully, however overnite I had a power failure. Now I am unable to mount the drive. The blue light is on, so it seems to be getting power but the computer does not see it when I plug in the USB cable. I can not run fsck because the system says /dev/da0s1d no such file or directory. I tried da0s1, da0s1c, and da0s1d no luck. I also tried to plug the disk into another machine, same thing the disk is not recognized. Is it totally gone?Any help to recover this disk would be really appreciated. TIA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: help with MY Book external drive
On Tue, Nov 04, 2008 at 12:06:03PM +, AN wrote: On Tue, 4 Nov 2008, Jeremy Chadwick wrote: On Tue, Nov 04, 2008 at 11:13:21AM +, AN wrote: I just purchased a WD MY Book external USB disk, I reformatted in UFS and created a filesystem with sysinstall. I was able to put data on it successfully, however overnite I had a power failure. Now I am unable to mount the drive. The blue light is on, so it seems to be getting power but the computer does not see it when I plug in the USB cable. I can not run fsck because the system says /dev/da0s1d no such file or directory. I tried da0s1, da0s1c, and da0s1d no luck. I also tried to plug the disk into another machine, same thing the disk is not recognized. Is it totally gone?Any help to recover this disk would be really appreciated. Possibly, especially if you plug it into another machine and experienced the same problem. When you plug the drive in, does the FreeBSD kernel output anything? If so, what all does it output? -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | Hi Jeremy: No messages from the kernel, nothing when I plug it in. Then chances are the ATA-to-USB or SATA-to-USB controller that is internal to the hard disk enclosure is dead. It is not making any 'clicking' sounds that you usually get when a drive dies. Clicking is in no way shape or form usual for a drive failure; it's just one of the hundred ways a drive can fail. Most drives I've seen in the past 5 years fail silently. I just don't get it. Maybe a power spike crushed it, but if so why is the light on? This is really something you should be asking Western Digital. :-) What makes you think the power LED is at all related to the hard disk being functional? The power LED could be directly wired to the AC power supply, in which case it just indicates the PSU works, and tells you nothing about the status of the drive, or the controller that interfaces with the drive. Your options as I see them: 1) Call Western Digital and get a replacement MyBook; you will very likely get a new MyBook, and your old hard disk/data will be gone permanently, 2) Purchase a replacement MyBook. Open it up, open yours up, and swap the hard disks (e.g. your hard disk inside of the new MyBook enclosure). This will void your warranty on *both* MyBook products, but will help determine if just the ATA/SATA-to-USB controller is shot, or if the hard disk is shot, 3) Open your MyBook up, and remove the hard disk. Attempt to hook the disk directly to your PC via ATA or SATA; if it's an ATA 2.5 disk, you may need to buy an adapter to make it work with standard 40 or 80-pin IDE ribbon cables (make sure you note which is pin 1! Some of those adapters are non-keyed, so you could end up sticking pin 40 where pin 1 is, and destroy the PCB entirely) I hope this situation has introduced you to the world of backups, and why they need to be performed regularly. -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: help with MY Book external drive
On Tue, 4 Nov 2008 11:13:21 + (GMT) AN [EMAIL PROTECTED] wrote: I just purchased a WD MY Book external USB disk, I reformatted in UFS and created a filesystem with sysinstall. I was able to put data on it successfully, however overnite I had a power failure. Now I am unable to mount the drive. The blue light is on, so it seems to be getting power but the computer does not see it when I plug in the USB cable. I can not run fsck because the system says /dev/da0s1d no such file or directory. I tried da0s1, da0s1c, and da0s1d no luck. I also tried to plug the disk into another machine, same thing the disk is not recognized. Is it totally gone?Any help to recover this disk would be really appreciated. TIA I have a bit of experience with MyBook. I had a friend ask me to look at two of hers that did the same thing yours is doing. It was a 500G that was out of warranty. I was able to open it up and found a standard 3.5 inch SATA hard drive. I directly connected it to a computer and the drive was totally dead. If the drive was connect to one of the first four physical drives that bios checked, then bios would halt and freeze. If it was connected through an add-on SATA card, then it bios would not recognize it. I purchased a replacement 500G SATA drive from NewEgg that was on sale and was able to install it in the original MyBook box. It is working perfectly. The drive I purchased carries a 3 year warranty as an added benefit whereas the MyBook is only a year. The controller is what make the front light operate and has nothing to do with the drive. The other thing you might want to check it the power adapter. The other MyBook failed in the exact same way but when I changed the adapter it was just fine. I hope this helps but YMMV Good luck Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: help with MY Book external drive
On Tue, Nov 04, 2008 at 11:13:21AM +, AN wrote: I just purchased a WD MY Book external USB disk, I reformatted in UFS and created a filesystem with sysinstall. I was able to put data on it successfully, however overnite I had a power failure. Now I am unable to mount the drive. The blue light is on, so it seems to be getting power but the computer does not see it when I plug in the USB cable. I can not run fsck because the system says /dev/da0s1d no such file or directory. I tried da0s1, da0s1c, and da0s1d no luck. I also tried to plug the disk into another machine, same thing the disk is not recognized. Is it totally gone?Any help to recover this disk would be really appreciated. Possibly, especially if you plug it into another machine and experienced the same problem. When you plug the drive in, does the FreeBSD kernel output anything? If so, what all does it output? -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: help with MY Book external drive
On Tue, 4 Nov 2008, Jeremy Chadwick wrote: On Tue, Nov 04, 2008 at 11:13:21AM +, AN wrote: I just purchased a WD MY Book external USB disk, I reformatted in UFS and created a filesystem with sysinstall. I was able to put data on it successfully, however overnite I had a power failure. Now I am unable to mount the drive. The blue light is on, so it seems to be getting power but the computer does not see it when I plug in the USB cable. I can not run fsck because the system says /dev/da0s1d no such file or directory. I tried da0s1, da0s1c, and da0s1d no luck. I also tried to plug the disk into another machine, same thing the disk is not recognized. Is it totally gone?Any help to recover this disk would be really appreciated. Possibly, especially if you plug it into another machine and experienced the same problem. When you plug the drive in, does the FreeBSD kernel output anything? If so, what all does it output? -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | Hi Jeremy: No messages from the kernel, nothing when I plug it in. It is not making any 'clicking' sounds that you usually get when a drive dies. I just don't get it. Maybe a power spike crushed it, but if so why is the light on? Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: help with MY Book external drive
On Tue, 4 Nov 2008 11:13:21 + (GMT), AN [EMAIL PROTECTED] wrote: I just purchased a WD MY Book external USB disk, I reformatted in UFS and created a filesystem with sysinstall. I was able to put data on it successfully, however overnite I had a power failure. Now I am unable to mount the drive. The blue light is on, so it seems to be getting power but the computer does not see it when I plug in the USB cable. I can not run fsck because the system says /dev/da0s1d no such file or directory. I tried da0s1, da0s1c, and da0s1d no luck. I also tried to plug the disk into another machine, same thing the disk is not recognized. Is it totally gone? Any help to recover this disk would be really appreciated. Do you see _anything_ in `/var/log/messages' when you attach the disk to your FreeBSD system? When I attach a local MyBook I have with a USB cable, `/var/log/messages' shows: kernel: umass0: Western Digital My Book, class 0/0, rev 2.00/10.28, addr 2 on uhub6 root: Unknown USB device: vendor 0x1058 product 0x1102 bus uhub6 kernel: umass0: Get Max Lun not supported (STALLED) kernel: uhid0: Western Digital My Book, class 0/0, rev 2.00/10.28, addr 2 on uhub6 kernel: da0 at umass-sim0 bus 0 target 0 lun 0 kernel: da0: WD My Book 1028 Fixed Direct Access SCSI-4 device kernel: da0: 40.000MB/s transfers kernel: da0: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: external drive
On Tue, Jul 10, 2007 at 06:21:35PM -0400, Jean-Paul Natola wrote: There are some files (basically some custom config and cf files) that I would like to copy from the 5.5 drive - So I put it in an external enclosure and needless to say windows wouldn't recognize it - and the MAC OSX though it sees it , it wont let me mount it (despite the fact that I clicked mount drive ) 2 questions; 1. Is there anything out there that would let me read a BSD drive from a windows or mac machine? Windows doesn't understand UFS. But there are tools for reading UFS on windows, e.g. http://ufs2tools.sourceforge.net/ The Mac can use a kind of UFS filesystem, but I don't know if it supports bsdlabels. 2. If I do just plug the drive into the BSD USB port will it cause any conflicts as there will be duplicates of the main slices /var /usr etc.. Or am I safe just plugging it in and mounting it? If you mount a partition from a USB disk, you have to tell mount where to put it. So create some directories like /mnt/usr etc and mount the partitions from the USB disks there. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgprhJVpiQZHh.pgp Description: PGP signature
external drive
Hi all, After yesterdays fiasco trying to upgrade 5.5 to 6.2 - I just grabbed a new drive and did a clean install of 6.2 Its working great, no errors I'm happy- There are some files (basically some custom config and cf files) that I would like to copy from the 5.5 drive - So I put it in an external enclosure and needless to say windows wouldn't recognize it - and the MAC OSX though it sees it , it wont let me mount it (despite the fact that I clicked mount drive ) 2 questions; 1. Is there anything out there that would let me read a BSD drive from a windows or mac machine? 2. If I do just plug the drive into the BSD USB port will it cause any conflicts as there will be duplicates of the main slices /var /usr etc.. Or am I safe just plugging it in and mounting it? PS: Thanks to everyone for the feedback yesterday - I learned A LOT in the last 24 hours Jean-Paul ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: external drive
On Tuesday 10 July 2007 17:21:35 Jean-Paul Natola wrote: Hi all, After yesterdays fiasco trying to upgrade 5.5 to 6.2 - I just grabbed a new drive and did a clean install of 6.2 Its working great, no errors I'm happy- There are some files (basically some custom config and cf files) that I would like to copy from the 5.5 drive - So I put it in an external enclosure and needless to say windows wouldn't recognize it - and the MAC OSX though it sees it , it wont let me mount it (despite the fact that I clicked mount drive ) 2 questions; 1. Is there anything out there that would let me read a BSD drive from a windows or mac machine? 2. If I do just plug the drive into the BSD USB port will it cause any conflicts as there will be duplicates of the main slices /var /usr etc.. Or am I safe just plugging it in and mounting it? PS: Thanks to everyone for the feedback yesterday - I learned A LOT in the last 24 hours Jean-Paul ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] you can just plug it into the bsd box, it wont mount automatically. you can create temporary mountpoints, say maybe: /media/usr /media/var /media/root and mount them on those. copy what you need out, and the unmount them when youre ready. hth, -- Jonathan Horne http://dfwlpiki.dfwlp.org [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: boot FreeBSD from USB external drive
On Fri, Jul 14, 2006 at 06:59:47AM -0700, [EMAIL PROTECTED] wrote: just try running the installation cd with the USB device and see what happens. Make sure your setting it up on the right drive (da0 assuming you have IDE hardrives) Not so good advice - flash memory has limited write count. Instead you can look at Frenzy 1.0 and then use it as template. http://www.frenzy.org.ua/eng/ It has versions for CD and USB. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: boot FreeBSD from USB external drive
Igor Robul wrote: On Fri, Jul 14, 2006 at 06:59:47AM -0700, [EMAIL PROTECTED] wrote: just try running the installation cd with the USB device and see what happens. Make sure your setting it up on the right drive (da0 assuming you have IDE hardrives) Not so good advice - flash memory has limited write count. Instead you can look at Frenzy 1.0 and then use it as template. http://www.frenzy.org.ua/eng/ It has versions for CD and USB. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Fair enough, but if it was a USB Hard drive then my advice should be ok correct??? I'm just wondering because one of the yaks I gotta shave is making a bootable recovery system with one of my USB hardrives. Even with a flash disk you should be ok for 10,000 writes which should be adequate to bring up a test system to play around with. Although I will admit it isn't the most reliable system waiting for the transistors to go bad. brian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
boot FreeBSD from USB external drive
Is it possible to boot FreeBSD from external USB drive? Have my XP PC from the office with many IT restrictions. I'm however capable to boot from USB. If so, can you provide me some reference as on how to do the installation? Thanks in advance, Alain ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: boot FreeBSD from USB external drive
--- Alain G. Fabry [EMAIL PROTECTED] wrote: Is it possible to boot FreeBSD from external USB drive? Have my XP PC from the office with many IT restrictions. I'm however capable to boot from USB. If so, can you provide me some reference as on how to do the installation? Thanks in advance, Alain as long as you have adequate capacity to install whatever amount of FreeBSD on your USB device, and the computer supports booting it it shouldn't be a problem. Worst case a simple grub boot disk to load the USB device might be in order. I say this only because my laptop doesn't always detect bootable USB devices. just try running the installation cd with the USB device and see what happens. Make sure your setting it up on the right drive (da0 assuming you have IDE hardrives) 5 gigs or so should be enough to install a system with some packages for the ports your installing. Building your own generally requires more space, at least this is what I seem to get away with for a minumum install. you can go less if all your want is console use. good luck -brian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: USB external drive size limitations?
I faced the exact same problem recently with my 250GB iOmega external harddisk with a single FAT32 partition which I needed mounted on my FreeBSD 6.0 Release system. I needed this to be mounted rw, so the MSDOSFS_LARGE option was no help. After some cajoling, iomega folks confirmed that partitioning the disk into multiple partitions should present no issues (although for some reason best known to themselves, on their support website they explicitly discourage users doing this). To cut the long story short, I chose to partition the 256GB disk into 2 128GB FAT32 partitions. Both the partitions show up (as /dev/da*) and mount rw nicely on FreeBSD (and also on Windoze as usual). To be on the safe side, I moved the data back and forth between my fixed harddisks and the external disk before and after repartitioning the external HDD, but iomega said that using content-preserving repartitioning software such as partitionmagic should be possible to use without any issues on their disk. Chandan JHorne wrote: Well im fairly certain that my filesystem has less than a million files, its mostly just large .iso files from my ftp server. I can defiantly quickly check it out against a windows computer before I plug it back in the next time im at my colo. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
USB external drive size limitations?
Last night I plugged in a 300GB Maxtor USB drive into my FreeBSD 6.0 server (with a fat filesystem), and it told me it was too big!! Haha, its full of my backups from my previous operating system (fedora) and now im going to have a fun time getting those files onto my new FreeBSD server! Can someone recommend a course of action for me here? Google isn't really turning up anything interesting relating to size of external drives. Thanks, jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: USB external drive size limitations?
Haha, its full of my backups from my previous operating system (fedora) and now im going to have a fun time getting those files onto my new FreeBSD server! Can someone recommend a course of action for me here? Google isn't really turning up anything interesting relating to size of external drives. some ideas: check the fs-type if possible the version of the fs on your usb-hdd (maybe compat probs?) try attaching the drive b4 you power-on the box and boot try to explicitly (mount_xy and mount-args) mount the drive (ro!) check if the builtin hdd inside your drive can be attached directly on the ata/s-ata/whatever bus inside your machine; copy directly attach your usb-hdd to a working machine, copy via lan check for bios/fw-updates for your hw, maybe usb-support get's better hth good luck! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: USB external drive size limitations?
Jonathan Horne [EMAIL PROTECTED] wrote: Last night I plugged in a 300GB Maxtor USB drive into my FreeBSD 6.0 server (with a fat filesystem), and it told me it was too big!! Haha, its full of my backups from my previous operating system (fedora) and now im going to have a fun time getting those files onto my new FreeBSD server! Can someone recommend a course of action for me here? Google isn't really turning up anything interesting relating to size of external drives. Do you already have options MSDOSFS_LARGE in your kernel? Fabian -- http://www.fabiankeil.de/ signature.asc Description: PGP signature
Re: USB external drive size limitations?
Fabian Keil [EMAIL PROTECTED] wrote: Jonathan Horne [EMAIL PROTECTED] wrote: Last night I plugged in a 300GB Maxtor USB drive into my FreeBSD 6.0 server (with a fat filesystem), and it told me it was too big!! Haha, its full of my backups from my previous operating system (fedora) and now im going to have a fun time getting those files onto my new FreeBSD server! Can someone recommend a course of action for me here? Google isn't really turning up anything interesting relating to size of external drives. Do you already have options MSDOSFS_LARGE in your kernel? Forgot to mention that it isn't perfect. I believe the limitations described in http://www.freebsd.org/releases/5.3R/relnotes-i386.html are still true: |The MSDOSFS_LARGE kernel option has been added to support FAT32 file |systems bigger than 128GB. This option is disabled by default. It uses |at least 32 bytes of kernel memory for each file on disk; furthermore |it is only safe to use in certain controlled situations, such as |read-only mount with less than 1 million files and so on. Exporting |these large file systems over NFS is not supported. Fabian -- http://www.fabiankeil.de/ signature.asc Description: PGP signature
RE: USB external drive size limitations?
Well im fairly certain that my filesystem has less than a million files, its mostly just large .iso files from my ftp server. I can defiantly quickly check it out against a windows computer before I plug it back in the next time im at my colo. Ok, so since im about to recompile and force myself to reboot, other than the options SMP that I already added in, is there anything else I really need to look at before I do it again? What about the scheduler? Is the ULE over 4BSD really a big deal? The article I read said that SMP machines really prefer it, is that the case? If there is anything else you would have wanted to teach the last new person you instructed in the finer points of kernel compiling, but didn't... now's your chance!!! cheers, jonathan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Fabian Keil Sent: Saturday, March 25, 2006 12:13 PM To: Jonathan Horne Cc: freebsd-questions@freebsd.org Subject: Re: USB external drive size limitations? Fabian Keil [EMAIL PROTECTED] wrote: Jonathan Horne [EMAIL PROTECTED] wrote: Last night I plugged in a 300GB Maxtor USB drive into my FreeBSD 6.0 server (with a fat filesystem), and it told me it was too big!! Haha, its full of my backups from my previous operating system (fedora) and now im going to have a fun time getting those files onto my new FreeBSD server! Can someone recommend a course of action for me here? Google isn't really turning up anything interesting relating to size of external drives. Do you already have options MSDOSFS_LARGE in your kernel? Forgot to mention that it isn't perfect. I believe the limitations described in http://www.freebsd.org/releases/5.3R/relnotes-i386.html are still true: |The MSDOSFS_LARGE kernel option has been added to support FAT32 file |systems bigger than 128GB. This option is disabled by default. It uses |at least 32 bytes of kernel memory for each file on disk; furthermore |it is only safe to use in certain controlled situations, such as |read-only mount with less than 1 million files and so on. Exporting |these large file systems over NFS is not supported. Fabian -- http://www.fabiankeil.de/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: usb2 external drive gets different designations
dave [EMAIL PROTECTED] writes: I've got a working usb2 external IDE hard drive running on a 5.4-stable box. My problem is sometimes when i connect it it is given a designation of da0 while other times it is given a designation of da1 or da2. I'd like to create a fstab entry for this drive so that when it is connected it is mounted and when disconnected it is unmounted cleanly. I was wondering if this was possible or if not if there was a way of giving it da0 or da1 everytime the drive was connected? That's possible, but I can't find the way to do it right now. You may find it easier to set up usbd.conf(5) to automatically mount the device when it's detected. Or, alternatively, to make a symbolic link from a constant name in /dev (which is pretty close to what you asked for originally). Be well. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: usb2 external drive gets different designations
On Thu, Jun 16, 2005 at 10:19:59AM -0400, Lowell Gilbert wrote: dave [EMAIL PROTECTED] writes: I've got a working usb2 external IDE hard drive running on a 5.4-stable box. My problem is sometimes when i connect it it is given a designation of da0 while other times it is given a designation of da1 or da2. I'd like to create a fstab entry for this drive so that when it is connected it is mounted and when disconnected it is unmounted cleanly. I was wondering if this was possible or if not if there was a way of giving it da0 or da1 everytime the drive was connected? That's possible, but I can't find the way to do it right now. I think the GEOM label class could be of help here, see glabel(8). The strange thing is that the manual page for glabel says at the top that it cannot set the label, but later it gives the label option for creating a label. With a USB thumbdrive I gave the command glabel label hsteno64 /dev/da0s4 Next time I plugged it in, there was a device /dev/label/hsteno64. With this done, you can use devfs.rules to set the permissions for this node, e.g. 'add path label/hsteno64 mode 0660 user rsmith' After that you can mount the device with amd(8). You may find it easier to set up usbd.conf(5) to automatically mount the device when it's detected. The thing is that usbd only sees the umass* device, not the da*s* device. You could make a script that looks through /var/log/messages for lines that link the umass device to the da device, line this: Jun 12 22:55:57 slackbox kernel: da0 at umass-sim0 bus 0 target 0 lun 0 When you see this you know that the event for umass0 has resulted in a da0 device. A simple 'ls /dev/da0s?' should give you the slice (if there is only one. Or, alternatively, to make a symbolic link from a constant name in /dev (which is pretty close to what you asked for originally). Be well. -- R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text. public key: http://www.xs4all.nl/~rsmith/pubkey.txt pgpAO5NYhrPcr.pgp Description: PGP signature
Re: usb2 external drive gets different designations
Hi, Thanks, do you have a usbd.conf entry that does this? I'm also seeing my cd-roms moving, they use scsi emulation and whenever the drive goes in they move as well and it makes it so i have to edit 4 scripts for custom burning. Thanks. Dave. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
usb2 external drive gets different designations
Hello, I've got a working usb2 external IDE hard drive running on a 5.4-stable box. My problem is sometimes when i connect it it is given a designation of da0 while other times it is given a designation of da1 or da2. I'd like to create a fstab entry for this drive so that when it is connected it is mounted and when disconnected it is unmounted cleanly. I was wondering if this was possible or if not if there was a way of giving it da0 or da1 everytime the drive was connected? Thanks. Dave. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
USB External Drive
Hi, I'm trying to get a USB external drive working on FreeBSD-4.8 Plugging it in gives all the expected kernel messages. camcontrol devlist gives: USB 2.0 Storage Device 0100 at scbus0 target 0 lun 0 (da0,pass0) fdisk -I /dev/da0 gives: fdisk: can't open device /dev/da0 fdisk: cannot open disk /dev/da0: Input/output error with /var/log/messages showing: Jul 10 16:19:34 enterprise /kernel: da0: reading primary partition table: error reading fsbn 0 Jul 10 16:19:34 enterprise /kernel: da0: reading primary partition table: error reading fsbn 0 Any help would be appreciated. Cheers, Richard ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
re: USB External Drive
Hi, I have the same problem with USB flash drive, the kernel recognizes it, but sometimes it works, sometimes not with the same messages: /kernel: da0: reading primary partition table: error reading fsbn 0 The device works fine under Win2k/XP, so i'm sure, that this is not a hardware problem. Best regards, Dmitry Kroupenier. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]