Cannot  mount USB disk in SIngle-user mode (solaris 10)

Hi all ,
I need some help please :
I can read/write to my USB disks when i'm in muti-user mode but when to I swith to single-user mode ( init S ), I cannot mount it.
in Single-user mode , i started volume management daemon :
#/etc/init.d/volgmt start
#volcheck
but i'm still not able to mount it.
I tried to mount manually:
#mount /dev/dsk/c2t0d0p0 /testpoint , i have this error: < mount : not a UFS magic number ( 0x0) , dev/dsk/c2t0d0p0 is not of this fstype.
My system recognizes the USB device though in single-user mode:
This is an output of #iostat -En
c2t0d0 Soft Errors: 1 Hard Errors: 0 Transport Errors: 0
Vendor: BUFFALO Product: ClipDrive Revision: 2.00 Serial No:
Size:0.07GB <65339392 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 1 Predictive Failure Analysis: 0

Hi ,
thanks for your advice. My problem is resolved.
The USB drive was actually a FAT filesystem.
so I did # mount -F pcfs /dev/dsk/c2t0d0p0:c /testpoint and everything went fine
I can read/write to my USB disks when i'm in
muti-user mode but when to I swith to single-user
mode ( init S ), I cannot mount it.
in Single-user mode , i started volume management
daemon :
/etc/init.d/volgmt start
#volcheck
but i'm still not able to mount it.It probably requires other items to be started
first.
I tried to mount manually:
#mount /dev/dsk/c2t0d0p0 /testpoint , i have
this
error: < mount : not a UFS magic number ( 0x0) ,
dev/dsk/c2t0d0p0 is not of this fstype.
Looks like it's assuming UFS. If this is a pcfs
filesystem, give it the type on the mount line.
# mount -F pcfs /dev/dsk/c2t0d0p0 /testpointYeah, this was the right command, I had to specify option < -F pcfs >.
but I read somethere on this forum i had to specify :c as the drive for FAT at the end of c2t0d0p0 , so the full command was:
# mount -F pcfs /dev/dsk/c2t0d0p0:c /testpoint
>
DarrenThanks,
Sakolan.

Similar Messages

  • Mount USB Device in Single User Mode

    Hi All,
    Can anyone give me any assistance of mounting a USB stick in single user mode?
    I am trying to use the command:
    $ mount -uw /dev/disk2s1 /Volumes/usb
    But it get the error:
    --specified device does not match mounted device
    If I put the USB stick in normal OSX mode, then run 'df -k' in terminal, it is mounted by automounter, but I can't seem to get it to mount in single user mode.
    Thanks,
    Nik

    Hi Nik,
       I don't believe that there are enough services started in Single User Mode to do this; you'll have to start the services yourself. However, I haven't tested this so I don't know. Wanna be a Guinea Pig?
       If your going to need to write to the boot drive, mount it read/write with:
    /sbin/mount -uw /
    Next, start the basic services, including diskarbitrationd:
    /usr/libexec/registermach_bootstrapservers /etc/mach_init.d
    The above should be one line, modulo wrapping. Then start diskarbitrationd:
    /sbin/SystemStarter start Disks
    You should probably check /dev and see what disks are already mounted. (without the USB stick) I assume that the services that mount removable media are now started so insert the stick and see if it appears mounted in /Volumes. Otherwise, check /dev and see if there's a new disk. If it only appears in /dev, you can use the standard mount command to mount it. If it doesn't appear in /dev then you might reboot into Single User Mode and repeat the procedure with the USB stick already inserted. If none of that works then this must not be the right method and you have my apologies.
    Gary
    ~~~~
       Computers are like air conditioners. Both stop working
       if you open windows.
          -- Adam Heath

  • Mounting Windows Disk within Single User Mode

    A Windows machine I administer kacked and the users didn't back up all their data. Windows won't touch the drive, so I popped it in a 10.3.9 Mac... I can copy a handful of files and folders from the Finder, but some directories won't read -- there may be physical damage to the drive (if the kernel panics are any indication).
    When I boot into Single User Mode, I can't get into the disk.... the disk(s) show up under /Volumes, but you can't actually get into them... only a file named .autodiskmounted shows up for each Windows partition. I'm guessing this is a product of the disk being formatted as a NTFS drive (I'm thinking that's probably what Windows XP Home used on this drive).
    Can you mount a NTFS or FAT32 disk from Single User Mode? How?
    Many thanks!

    Everett
    To mount a disk in 10.3.9, look at the first part of this FAQ: Resetting the System Immutable Flag in 10.3.
    You will need to replace the "mount -t hfs" with "mount -t msdos", but I don't know if you would need further options.
    If you can find a 10.4 system, it may be easier, since "autodiskmount" appears to work again. See: kmosx4: Resetting the System Immutable Flag in OS X 10.4

  • Mounting USB Drive in Single user mode

    My Intel Imac fails to boot up. fsck -y fails too ... can't think of any other way to get my data out ...
    I am left with the only option to copy my data into my usb drive in the terminal mode .
    But I am unable to mount my USB drive. I also need to know the mount point. can anyone provide me with help.

    The mountpoint can be anything you want. The tricky part is figuring out the device your drive is using. I don't know for sure (can't test it right now), but dmesg or one of the system logs might have that information in it if you boot to SUM with the external drive attached. The logs also might have a record of what device this drive used in the past when connected. It will likely use the same device every time.
    If not, you can guess. I have seen one of my external disks mount using the device disk1s2. If I were to attach that to my machine in SUM, I could then mount it like this:
    mount_hfs /dev/disk1s2 /Volumes/recover
    where the mount point /Volumes/recover is something I created (i.e. just a simple "mkdir /Volumes/recover"). This could be anything you want.

  • Mounting a dmg in single user mode

    When ever I try to mount a .dmg in single user mode using "hdiutil mount /path/to/dmg" I get no errors but I can't actually access the mounted dmg, it never appears in /Volumes
    My question is how do you access a mounted dmg is single user mode

    I've run into similar difficulties. I don't know about 10.6, but in 10.5.8 the HDI driver appears to load fine. (You can check that with the kextstat utility.)
    In fact, my 10.5 Install CD uses hdik to create RAM disks early in startup. However, the same calls to hdik fail when I try them in single-user mode.

  • How to mount USB & CDROM drives from single user mode - Solaris boot disk?

    Hi All,
    I need to carry out ufsrestore on a single newly replaced system disk (no redundancy / mirroring) from either USB or CDROM drives from the following steps:
    ( i ) GRUB => e, e, cdrom –s, Enter, b (boot from Solaris 10 x86 media).
    ( ii ) Choose menu 1 for Install Solaris Interactive Mode to reach single user mode.Below are the commands that I have tried in single user mode without success:
    mount –r –F pcfs /dev/dsk/c1t0d0p0 /cdrom (after unmount Solaris CD)
      mount: /dev/dsk/c1t0d0p0 is not a DOS filesystem.
    svcadm –v enable smserver
      svcadm: Pattern ‘smserver’ doesn’t match any instances
    svcadm enable autofs
      svcadm: Pattern ‘autofs’ doesn’t match any instances
    devfsadm
      devfsadm: mkdir failed for /dev 0s1ed: Read-only file system
    mkdir /mnt
      mkdir: Failed to make directory “/mnt”; Read-only file systemPart of the problem is due to the current READ ONLY filesystems which does not allow the creation of mount point such as /mnt.
    I have been able to create both / root (/dev/dsk/c1t0d0s0) and /export/home (/dev/dsk/c1t0d0s0) filesystems with newfs that are awaiting for restore using ufsrestore.
    The only option I am left with is to attach a secondary disk to install Solaris 10 on either of them before bring the system to multi-user mode so that service such as volmgt, autofs, volfs are available to access USB & CDROM drives.
    Any suggestion on how to resolve this issue?
    Many thanks,
    Jack

    Hi JKGN,
    Is the directory a located under the root filesystem. ie /a? Are there any other mount point for say USB drive as well? I am not in a position to try it out right now but will get back
    to you soon on whether /a exist or not.
    Btw, the last thing I managed to do on this system at the time was added a secondary 1TB internal disk with the intention to restore both / and /export/home data onto this disk while
    making use of all the disk device management services such as the following services only available in a fully installed Solaris system (both single & multi-user modes) installed on the
    primary disk:
    # svcs smserver
    STATE          STIME    FMRI
    online         Jun_08   svc:/network/rpc/smserver:default
    # svcs autofs
    STATE          STIME    FMRI
    online         Jun_08   svc:/system/filesystem/autofs:default
    # devfsadm
    # iostat -En
    c1t0d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
    Vendor: ATA      Product: SAMSUNG HD321KJ  Revision: 0-11 Serial No: 
    Size: 320.07GB <320072932864 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 41 Predictive Failure Analysis: 0
    c0t0d0           Soft Errors: 0 Hard Errors: 5 Transport Errors: 0
    Vendor: PHILIPS  Product: DVD+-RW DVD8801  Revision: AD21 Serial 
    Size: 17.54GB <17538875392 bytes>
    Media Error: 0 Device Not Ready: 5 No Device: 0 Recoverable: 0
    Illegal Request: 10 Predictive Failure Analysis: 0
    c2t0d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
    Vendor: JetFlash Product: Transcend 16GB   Revision: 1100 Serial No: 
    Size: 0.00GB <0 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 7 Predictive Failure Analysis: 0
    # rmformat
    Looking for devices...
         1. Volmgt Node: /vol/dev/aliases/cdrom0
            Logical Node: /dev/rdsk/c0t0d0s2
            Physical Node: /pci@0,0/pci-ide@1f,1/ide@0/sd@0,0
            Connected Device: PHILIPS  DVD+-RW DVD8801  AD21
            Device Type: DVD Reader/WriterHowever, I was disappointed that "iostat -En" has not found the secondary disk (1 TB) even though it was available earlier, for Solaris installation as the only disk on the same system.
    As a result, I am left with no option but the need to rebuild this system with only a single primary disk while in single user mode. However, the single user mode that I am in is the
    one from Solaris installation disk with restrictive (_cannot create folder for mount point or running disk management utilities_) capability such as those services just covered, compared to one from a completed Solaris installation system with full access to all filesystems and utilities / commands in general.
    I would very much value your assistance on how to mount both CD & USB in this restrictive limited Read Only OS (assume that it is running from memory) in order to get complete access to
    the blank primary disk so that full restore with ufsrestore could take place.
    Thanks in advance,
    Jack
    Edited by: 797805 on 9/06/2012 04:15

  • Mounting external drives in single-user mode?

    Sigh. What were the odds of the HD on my month-old MacBook Pro and the HD on my somewhat older one (which was filling in for the moment as a backup) failing on the same night? Pretty low, I'm guessing, but that's what has happened. The Genius Bar has confirmed that the new drive is completely toast, and Apple is replacing it now, but of course they can't salvage the data. As for the old drive, while it won't boot and isn't visible to other machines in target disk mode, I am able to mount it in single-user mode and even view text files. What I can't seem to do is mount my external FireWire/USB2 drive so that I can try actually copying the files off.
    I've re-read the man page for "mount" in hopes of discovering the correct incantation, but so far it has eluded me. I've been trying things like "/sbin/mount -w /dev/disk1 /Volumes" and "/sbin/mount -w /dev/disk1 /Volumes/rescue", which return "Permission denied" and "No such file or directory" respectively...not sure that's the right device, but finding an acceptable mount point seems to be an issue regardless. Hoping someone can point me in the right direction, and thanks for reading.

    Thanks, macbig...no joy yet, but definitely a helpful link.
    I've confirmed via System Profiler on laptop #3 that my external USB drive is formatted as MS-DOS FAT32, so mount_msdos seems like the right utility to use. (The drive shows up there as /dev/disk1s1.) Meanwhile, "ls /dev/disk*" on the problem machine returns the following:
    /dev/disk0 /dev/disk0s1 /dev/disk0s2 /dev/disk1 /dev/disk1s1 /dev/disk1s2 /dev/disk1s3 /dev/disk2 /dev/disk2s1
    I've created /Volumes/rescue as a mount point and tried most of those devices with "/sbin/mount_msdos [device] /Volumes/rescue", with the following results:
    /dev/disk1:
    mount_msdos: Unsupported sector size (0)
    /dev/disk1s1:
    mount_msdos: Unsupported sector size (1)
    /dev/disk1s2:
    mount_msdos: /dev/disk1s2: Bad file descriptor
    /dev/disk1s3:
    mount_msdos: Unsupported sector size (0)
    /dev/disk2:
    mount_msdos: Unsupported sector size (64543)
    /dev/disk2s1:
    kextload: cannot resolve dependencies for kernel extension /System/Library/Extensions/msdosfs.kext
    error loading extension /System/Library/Extensions/msdosfs.kext
    mount_msdos: msdos filesystem is not available
    Based on this, I'm guessing that disk2s1 is the device I want. Unfortunately, when I try to poke around in /System/Library/Extensions, I'm getting I/O errors...gah. I have a bad feeling about this.

  • Cannot edit sudoers file in single user mode.

    I did not back up my sudoers file on my pro.
    I made a change to it, adding my "test" user to be able to use sudo, but upon restarting, it didn't work, and I cannot edit the file via cd in single user mode.
    I mounted the drive, changed permissions, but it seems that I don't have the option to use vi, visudo, vim.
    Thanks for the help.

    I mounted the hdd using the command below.
    I then made sure I could get to the file by cd to it.
    Then once I was there, i would attempt to type vis <tab> to complete, and visudo does not show up. Typed in visudo, nothing. This was on a brand new mb pro. I can wipe it out, but I would rather figure out why its not working.
    The reason for all this is I have to give it to a user at my job. We don't want them to have admin rights to install anything they want, but they need to use sudo in X11 for compiling and such. I read online that I can edit/add their username to the sudoers file, and allow them the right to sudo for compiling, starting apache on their laptops, etc.
    Thanks.

  • Mounting disk0s2 while in single user mode

    My mac mini wont boot.  The recovery mode tells that disk0s2 has I/O Error and more specificly, its a "Disk full error".  To delete some files and free up space, I booted mac into single user mode.  But how to month disk0s2 from here so that I can delete some files?

    An I/O error indicates either a corrupted file system or a physical disk failure. If you couldn't repair the boot volume (disk0s2) in recovery mode, it's most likely the latter and you need to get your HDD replaced. If you have access to another Mac, you can attempt to mount the mini as an external hard drive using Target Disk mode to salvage data. Hopefully you have a current back up. Best of luck.
    Transfer files between two computers using target disk mode

  • How do change boot disk from single user mode?

    My G5 hangs when booting at the blue screen while "Loading printing services...". Attempting to boot into safe mode only hangs at the grey gear screen. It will, however, successfully boot into single user mode. I've run fsck but no change in bootability. I have another disk in the machine that has Tiger on it. How do I change the boot disk from the single user prompt?

    You can hold c and boot off the installer disk and select disk utility repair disk/permissions
    or you can hold option to boot off Mac OS X on another drive, like a clone and run Data Rescue to recvoer your files.
    It does sound bad, you can try going through these
    http://docs.info.apple.com/article.html?artnum=106464
    But I think you'll need a fresh install, hopefully you have been backing up/cloning to a external drive.
    http://homepage.mac.com/hogfish/Personal11.html

  • Can boot to disk in single user mode.  But not regular boot.

    I setup an alias called md-rootdisk for booting my Solaris 10 System on a V440.
    I tried to reboot using the alias md-rootdisk twice. It only worked once.
    The first attempt was to single user mode. The sytem booted but there was a krtld error.
    The Second attempt was a regular boot.
    I'm trying to figure out why the first attempt "worked" and the 2nd didn't.
    The details are below.
    First Boot_
    {1} ok boot -s md-rootdisk
    Boot device: /pci@1f,700000/scsi@2/disk@0,0:a File and args: -s md-rootdisk
    krtld: Unused kernel arguments: `md-rootdisk'.
    SunOS Release 5.10 Version Generic_120011-14 64-bit
    Second boot_
    {1} ok boot md-rootdisk
    Boot device: pci@1f,700000/scsi@2/disk@0,0:a File and args:
    Can't locate boot device
    {1} ok boot md-rootdisk

    If the disk is a normal disk, this will get you to single user mode:
    boot disk -s
    In the second case, it looks like there is something wrong with the device path aliased.

  • How format the hard disk in single-user mode

    Hi all, i would like to format the internal hard disk of my macbook pro 13'' through single-user mode. How can I do it, please?

    Ok, to do that you need to hold c and boot off the 10.6 installer disk and second screen in under the Utilities Menu is Disk Utility.
    You can then select the hard drive makers name (your "bare metal") and peform the wipe/format of the entire drive or a "partition" on that drive.
    In the picture below there is only one partition, the Mac HD. In the picture above there are two partitions which both would show up under the hard drive makers name and both or either partition can be wiped in Disk Utility.
    Use the Security Option to Zero your hard drive of all lingering data.
    When you Quit Disk utiltiy, your back in the installer and can quit or install OS X.
    Note: messing with Disk utility will erase all data on the drive, if there is something you need to recover better stop and ask!
    If you don't see your internal boot drive in Disk Utility, the drive is dead.

  • [SOLVED][XFCE] Cannot mount usb disks & manage network connections

    Hi guys,
    I'm using XFCE with 3.3.1-1 kernel. Since yesterday I'm not able anymore to automatically mount usb disks,  manage my WiFi networks (networkmanage connects to the default access point but I can't select another AP nor editing my settings). I'm also prompted to type my password when I clik on the shutdown icon;
    So it seems I lost some privileges but I can't figured out why...
    I still belong to the same grousp as before:
    [root@archLaptop sclarckone]# groups sclarckone
    lp wheel games video audio optical storage scanner power users
    Does anybody has an idea where to take a look?
    Thanks
    Last edited by sclarckone (2012-04-15 20:54:38)

    Me too. Start a new thread?
    Edit; Nope, this worked for me https://bbs.archlinux.org/viewtopic.php?id=142110
    Last edited by Glinx (2012-05-25 11:44:47)

  • Single user mode USB support

    My macbook HD has broken, and Im attempting to recover my files through a USB drive.
    I've only been able to boot up in single user mode and I've ran fsck and its getting alot of I/O errors.
    I've followed the instructions here: http://www.macsage.com/mounting-usb-drive-in-single-user-mode/ but I dont seem to be able to my attached USB drive.
    I run [CODE]ls /dev/disk*[/CODE] by booting with usb drive attached and again without it attached and both times i get: disk0 disk0s1 disk0s2 disk0s3
    I'm pretty sure disk0s2 is my main HD as thats whats getting the errors from fsck.
    So I'm really needing to know how to mount the USB though I dont know which disk it is (by doing disk*)
    Any help is greatly appreciated!

    wonza wrote:
    its MS-DOS Fat32, as my other computer is a PC. I've tried
    oops, pressed post too soon! meant to delete the "I've tried"

  • Single-User Mode Copying Files/System Does not Boot Past Apple Logo Screen

    I have a Macbook 2.0GHZ, 2GB RAM, that recently tried to download a secuirty and keynot update. Following the download the system will no longer boot past the Apple Logo Screen with the spinning wheel. I do not have access to a OS disk yet or to a firewire cable either. I've have seen posts from others that describe how to use traget disk mode to reinstall the secuirty update manually and then they can boot their computer. Safe mode will not work. I did boot into single-user mode and run the disk utility there and it says my HD is OK. Since I do not have a firewire or an OS Disk, I am wondering if there is a way to copy those files i need to a USB pen stick then install them onto the computer via single-user mode, considering this is the only way I can boot and manipulate the machine at this time. If this is not possible please let me know so I can find a way to scrounge up a firewire cable or disk. Thank you in advance for any assistance.
    Ted K

    Thanks to Limnos and BDAqua I know you guys have helped others with these kind of problems from the other posts I read. I just want to list what I did exactly in case anyone wants to try to do this with a usb drive or does not have access to a boot disk or firewire cable.
    1: Install security update on a pen drive
    2: Boot in single user mode, CMD-S on startup
    3: /sbin/mount -uw /
    4: mkdir /Volumes/usb (usb can be any name, name of usb drive or anything you want)
    5: ls /dev (you need to get the drive listing for the usb drive to mount it appropriately, it should be disk#s# but this is close to what the HD and Cd drives are listed as so you may need to list once before you put the usb stick in and once ater. I had issues inserting the usb drive in single-user mode and it would freeze up the root drive)
    6: /sbin/mount_msdos /dev/disk1s1 /Volumes/usb (this mounts the usb drive, i had to use msdos because of how my usb drive was formatted, you may need to check your usb drive format, hfs is the apple format for usb drives but it did not work for me)
    7: cp /Volumes/usb/SecUpd2009-001Intel.dmg (this copies the files from the usb drive to the root drivel, at this point you no longer need the usb drive)
    8: hdiutil mount /SecUpd2009-001Intel.dmg (this mounts the disk image)
    9: cd /Volumes/"Security Update 2009-001" (after i mounted the image this is how it appeared in the Volumes directory, you might need to do ls /Volumes to get the name, the quotes are important to get the whole file directory changed)
    10: installer -pkg SecUpd2009-001Intel.pkg -target / (this installs the acutal update, i used the SecUpd2009-001Intel.pkg and it worked though I think you might be able to use "Security Update 2009-001" with quotes as well.)
    11: reboot
    i hope this helps anyone looking to do this. Thanks again to those who helpes and all the other posts that had information that helped me identify and then fix my issue! I still love my mac.

Maybe you are looking for