How to solve about DataSource

hi
I'm getting problem when i'm creating a datasource in the JMF.
the below code written for the datasource
     ds = javax.media.Manager.createDataSource(locator);
calling the locator(MediaLocator) by using
locator = "c://CBRT/demp.wav"
looking forward for reponse
thanks in advance

I hope,
locator = new MediaLocator(" blablabla ");
try file:///c:/.... or file:/c:/......

Similar Messages

  • Who can tell how to solve about the apple ID, because my apple ID was been disabled since two last week. And, i tried change my password through iForgot. Anyone? Thanks.

    Anyone? Thanks ;) tell me
    How to solve about the "apple ID has been disabled"?

    I am having the same issue. I just got my Iphone4 on Friday and no matter what I do to confirm my AppleID, it says its been disabled. Anyone have any ideas?

  • How to solve about rollback segment fail to extend?

    I've a transaction about 50,000 records, then process fail in script. the error code is ORA-01562 FAIL TO EXTEND ROLLBACK SEGMENT = num. I'm use oracle database 7.3.4., form 4.5

    It would be better to have several small transactions instead of one huge transaction of 50000 records, like you say. You may use an additional log table to keep the log of how far you've got in processing those 50000 records, and pick up from where you've left in case something goes wrong.
    Anyway, one thing that may help would be to use:
    alter tablespace your_rbs_tablespace
    add datafile ...;
    to have more space for your rollback segment(s).
    Eventually, you may have a large rollback segment and set transaction use huge_rbs, in order to have your huge transaction use that huge rollback segment.
    null

  • I have an IMac 10.5.2 from about 5 years ago and recently my flash player stopped responding.  I tried to update my flash player but it tells me I need an updated system to install the player.  Can anyone help me figure out how to solve this problem?

    I have an imac osx 10.5.2 from about five years ago and recently my flash player stopped operating/responding.  Does anyone know if I have to install a new flash player?  I have attempted it several times and it won't let me.  I would appreciate any suggestions on how to solve this problem.  Do I need a new operating system?

    Why have you not updated to 10.5.8?
    You can check here:  http://www.adobe.com/products/flash/about/  to see which version you should install for your Mac and OS. Note that version 10,1,102,64 is the last version available to PPC Mac users*. The latest version,10.3.183.23 or later, is for Intel Macs only running Tiger or Leopard, as Adobe no longer support the PPC platform. Version 11.4.402.265 or later is for Snow Leopard onwards.
    * Unhelpfully, if you want the last version for PPC (G4 or G5) Macs, you need to go here:  http://kb2.adobe.com/cps/142/tn_14266.html  and scroll down to 'Archived Versions/Older Archives'. Flash Player 10.1.102.64 is the one you download. More information here:  http://kb2.adobe.com/cps/838/cpsid_83808.html
    You should first uninstall any previous version of Flash Player, using the uninstaller from here (make sure you use the correct one!):
    http://kb2.adobe.com/cps/909/cpsid_90906.html
    and also that you follow the instructions closely, such as closing ALL applications (including Safari) first before installing. You must also carry out a permission repair after installing anything from Adobe.
    After installing, reboot your Mac and relaunch Safari, then in Safari Preferences/Security enable ‘Allow Plugins’. If you are running 10.6.8 or later:

  • I see that many people have already complained about Itunes' backup encryption. I NEVER set a password for it (and the corresponding option is still unticked, as always) yet it asked me for a pwd when I upgraded my 3GS to the 5.0 OS. How to solve this?

    I see that many people have already complained about Itunes' backup encryption. I NEVER set a password for it (and the corresponding option is still unticked, as always) yet it asked me for a pwd when I upgraded my 3GS to the 5.0 OS. How to solve this?

    To prevent others from reading your mail, don't give them access to your account. If others need to use your computer for some reason, set up personal accounts, or a guest account, and switch to it before allowing them access. This is the simplest, and most effective, method.
    Email message files can be read as plain text in TextEdit or any word processor.
    To protect your email messages from being viewed by others while in your account, you would have to lock the folder, putting it into an encrypted disk image that required a password to be opened and mounted. You would have to double-click on the image and give your password to mount it before launching Mail then unmount it as soon as you're done. My guess is that you could replace the ~/Library/Mail folder with an alias pointing to the folder on the disk image.
    It may work, but it seems like a lot of unnecessary hassle.

  • I'm getting kernel panics each day as I shut down, the message of restarting by holding down the power button appears on the screen - it began about a month ago and. Do you have any ideas of how to solve the problem?

    I'm getting kernel panics each day as I shut down, the message of restarting by holding down the power button appears on the screen - it began about a month ago and. Do you have any ideas of how to solve the problem? I've copied the logs that I found for each kernel panic that still have the message logged. Please help if you can, I have read some of the other comments and perhaps it has something to do with my anti-virus software being on at start up. I have copied the log here. Any advice will be welcome.
    Interval Since Last Panic Report:  665204 sec
    Panics Since Last Report:          8
    Anonymous UUID: D6DCC90D-A5CA-4BBE-A435-3E64A512A51B
    Sat May 26 07:23:05 2012
    panic(cpu 3 caller 0xffffff80002b4f36): trying to interlock destroyed mutex (0xffffff801a489be0)
    Backtrace (CPU 3), Frame : Return Address
    0xffffff8160313b00 : 0xffffff8000220792
    0xffffff8160313b80 : 0xffffff80002b4f36
    0xffffff8160313b90 : 0xffffff8000227e68
    0xffffff8160313bd0 : 0xffffff7f80d14250
    0xffffff8160313c20 : 0xffffff7f80d14f73
    0xffffff8160313cc0 : 0xffffff800059a237
    0xffffff8160313d00 : 0xffffff8000586cbf
    0xffffff8160313d20 : 0xffffff800057e6e3
    0xffffff8160313df0 : 0xffffff800057ed06
    0xffffff8160313e20 : 0xffffff8000583c52
    0xffffff8160313e70 : 0xffffff8000583d05
    0xffffff8160313e90 : 0xffffff80005358b4
    0xffffff8160313ef0 : 0xffffff80005367c3
    0xffffff8160313f30 : 0xffffff8000536897
    0xffffff8160313f60 : 0xffffff80005ccfe8
    0xffffff8160313fb0 : 0xffffff80002da5e9
          Kernel Extensions in backtrace:
    com.intego.iokit.VBX6NKE(1.0)[211D5E46-3E43-C5DC-9C6A-8C3FFF0F4493]@0xffffff7f8 0d11000->0xffffff7f80d1bfff
    dependency: com.apple.iokit.IONetworkingFamily(2.1)[2FCC16E1-34AB-3908-98BD-CCBFA56FFDCE]@0 xffffff7f809b7000
    BSD process name corresponding to current thread: iStatLocalDaemon
    Mac OS version:
    11E53
    Kernel version:
    Darwin Kernel Version 11.4.0: Mon Apr  9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64
    Kernel UUID: A8ED611D-FB0F-3729-8392-E7A32C5E7D74
    System model name: iMac11,2 (Mac-F2238AC8)
    System uptime in nanoseconds: 69777074610
    last loaded kext at 58265763561: com.intego.iokit.VBX6NKE            1 (addr 0xffffff7f80d11000, size 45056)
    loaded kexts:
    com.intego.iokit.VBX6NKE            1
    com.intego.iokit.BehavioralKext            1
    com.intego.kext.VirusBarrier.AppBarrierKPI            10.6.8
    com.intego.kext.VirusBarrierKPI            10.6.8
    com.globaldelight.driver.BoomDevice            1.1
    com.huawei.driver.HuaweiDataCardACMData            4.2
    Model: iMac11,2, BootROM IM112.0057.B01, 2 processors, Intel Core i3, 3.2 GHz, 12 GB, SMC 1.64f5
    Graphics: ATI Radeon HD 5670, ATI Radeon HD 5670, PCIe, 512 MB
    Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1333 MHz, 0x802C, 0x31364A53463531323634485A2D3147344431
    Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1333 MHz, 0x802C, 0x31364A53463531323634485A2D3147344431
    Memory Module: BANK 0/DIMM1, 2 GB, DDR3, 1333 MHz, 0x80CE, 0x4D34373142353637334648302D4348392020
    Memory Module: BANK 1/DIMM1, 2 GB, DDR3, 1333 MHz, 0x80CE, 0x4D34373142353637334648302D4348392020
    AirPort: spairport_wireless_card_type_airport_extreme (0x168C, 0x8F), Atheros 9280: 4.0.64.8-P2P
    Bluetooth: Version 4.0.5f11, 2 service, 18 devices, 1 incoming serial ports
    Serial ATA Device: ST31000528AS, 1 TB
    Serial ATA Device: OPTIARC DVD RW AD-5680H
    USB Device: hub_device, 0x0424  (SMSC), 0x2514, 0xfa100000 / 2
    USB Device: USB2.0 Hub, 0x05e3  (Genesys Logic, Inc.), 0x0606, 0xfa140000 / 5
    USB Device: USB2.0 Hub, 0x05e3  (Genesys Logic, Inc.), 0x0606, 0xfa141000 / 9
    USB Device: Apple Optical USB Mouse, apple_vendor_id, 0x0304, 0xfa141100 / 8
    USB Device: CanoScan, 0x04a9  (Canon Inc.), 0x1904, 0xfa141200 / 6
    USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0xfa110000 / 4
    USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8215, 0xfa111000 / 7
    USB Device: Internal Memory Card Reader, apple_vendor_id, 0x8403, 0xfa120000 / 3
    USB Device: hub_device, 0x0424  (SMSC), 0x2514, 0xfd100000 / 2
    USB Device: HUAWEI Mobile, 0x12d1  (Huawei Technologies Co., Ltd.), 0x1001, 0xfd130000 / 5
    USB Device: My Passport 070A, 0x1058  (Western Digital Technologies, Inc.), 0x070a, 0xfd140000 / 6
    USB Device: Built-in iSight, apple_vendor_id, 0x8502, 0xfd110000 / 4
    USB Device: IR Receiver, apple_vendor_id, 0x8242, 0xfd120000 / 3

    Immediate suspects are the additions you added to you rsystem that installed kexts (drivers).  From above,
    com.intego.iokit.VBX6NKE            1
    com.intego.iokit.BehavioralKext            1
    com.intego.kext.VirusBarrier.AppBarrierKPI            10.6.8
    com.intego.kext.VirusBarrierKPI            10.6.8
    com.globaldelight.driver.BoomDevice            1.1
    com.huawei.driver.HuaweiDataCardACMData            4.2
    Two experiments you can try.
    1.  Boot in safe mode and see if you can shut down normally.  All thise additions won't be running in safe mode so this test would indicate it is one of them causing the problem.
    2. Uninstall all the intego VirusBarrier stuff.  That's my first guess and the troublemaker.

  • I downloaded what's app and snap chat and it keeps coming up about connect to I tunes to turn on push notifications. I'm connected and turned them on but it still says I haven't when I have opened the app. Any ideas how to solve it?

    I downloaded what's app and snap chat and it keeps coming up about connect to I tunes to turn on push notifications. I'm connected and turned them on but it still says I haven't when I have opened the app. Any ideas how to solve it?

    Hey did anyone get back to you on what you can do? I'm having the same problem, it's bugging me! Lol

  • How to solve illustrator cs6 save as cs5 problem about the stroke(when the stroke with clipping mask and color is gradient, save as cs5 will change to embed ).

    how to solve illustrator cs6 save as cs5 problem about the stroke(when the stroke with clipping mask and color is gradient, save as cs5 will change to embed ).

    Because it was not possible to apply a gradient to a stroke in CS5. When you open the file in CS5, it is reduced to something that can be rendered in CS5.

  • I want to ask company when user update to ios7 it stuck all of device and not clearly about apple id to active how to solve it or just keep all of device into recycle because can not use?

    i want to ask company when user update to ios7 it stuck all of device and not clearly about apple id to active how to solve it or just keep all of device into recycle because can not use?

    You need to enter the Apple ID and password that was used to set up/activate the phone. There is no way around this.

  • How to solve the problem "cannot create a datasink for **(datasource)"

    There is a forums that can send and receive RTP streams, and it can play on the client. Now I want to save it. I write the code according to the jmf2_0-guide, how ever it always throws the exception "cannot create a datasink for **(datasource)". The datasource is the RTP stream received from the server. Is there anything wrong with the data source or anything else?
    here is the code:
    public synchronized void update( ReceiveStreamEvent evt){
    if(evt instanceof NewReceiveStreamEvent){
    try{
    stream = ((NewReceiveStreamEvent)evt).getReceiveStream();
    DataSource ds = stream.getDataSource();
    MediaLocator f = new MediaLocator("file://foo.au");
    Manager.createDataSink(ds, f);
    RTPControl ctl = (RTPControl)ds.getControl("javax.media.rtp.RTPControl");
    if (ctl != null) {
         System.err.println(" - Recevied new RTP stream: " + ctl.getFormat());
         } else {
         System.err.println(" - Recevied new RTP stream");
         if (participant == null) {
         System.err.println(" The sender of this stream had yet to be identified.");
         } else {
         System.err.println(" The stream comes from: " + participant.getCNAME());
         // create a player by passing datasource to the Media Manager
         Player p = javax.media.Manager.createPlayer(ds);
         if (p == null) {
         return;
         p.addControllerListener(this);
         p.realize();
         PlayerWindow pw = new PlayerWindow(p, stream);
         playerWindows.addElement(pw);
         // Notify intialize() that a new stream had arrived.
         synchronized (dataSync) {
         dataReceived = true;
         dataSync.notifyAll();
         } catch (Exception e) {
         System.err.println("NewReceiveStreamEvent exception " + e.getMessage());
         return;
    Does any one know how to solve this problem? How to save or how to create a datasink? Please help! Thank you!!

    The complete error message:
    NewReceiveStreamEvent exception Cannot find a DataSink for: com.sun.media.protocol.rtp.DataSource@4741d6

  • Hello  Simple problem - don,t know how to solve it.  With Premiere CC when I try to do a selection (click... drag... release the click) very often it stop way before the end of the move I'm swinging the Magic Mouse. I taught that the mouse clicking was de

    Hello
    Simple problem - don,t know how to solve it.
    With Premiere CC when I try to do a selection (click... drag... release the click) very often it stop way before the end of the move I'm swinging the Magic Mouse. I taught that the mouse clicking was defective and went to get a new Magic Mouse after lots of frustration. Today, I have an edit to do it it does the SAME thing !!
    I was like ????#$%?&*(???
    Opened all the lights and taught I've trow the new mouse to the garbage and was using the defective mouse again... no !! - ??
    Actually, the bran new mouse is doing the same thing. What I understand after investigating on the motion and watching carefully my fingers !! -  is that when I click I have to keep my finger at the EXACT same place on the mouse... drag and release and it's fine. If I click by pushing on the mouse and my finder is moving of a 1/32th of a millimeter, it will release and my selection will be to redo. You can understand my frustration ! - 75$ later... same problem, but I know that if I click with about 5 pounds of pressure and trying to pass my finger through the plastic of the mouse, it you stay steady and make it !
    The problem is that scrolling is enable while clicking and it bugs.
    How to disable it ??
    Simple question - can't find the answer !

    Helllooo !?
    sorry but the Magic Mouse is just useless with the new Adobe Premiere CC and since I'm not the only one but can't find answer this is really disappointing. This mouse is just fantastic and now I have to swap from a USB mouse to the Magic Mouse every times I do some editing. My USB mouse if hurting my hand somehow and I want to got back to the Magic Mouse asap. Please - for sure there is a simple solution !
    Thanks !!

  • Does anyone know of a VI or how to go about writing one that will prevent the computers time/date from being disabled while an application is running.

    Does anyone know of a VI or how to go about writing one that will prevent the computers clock/time from being disabled while an application is running. The time and date can normally be reset while an application is running by clicking on the time/date in the lower right-hand corner of the computer screen. I have an application that runs over several days and it is critical that the time and date of the computer not be changed. Is there an easy way to lock this out from the user? Note that I am what I consider an advanced beginner in LV.
    Thank you,
    Chuck
    Solved!
    Go to Solution.

    That is not something you can do from LabVIEW, as it is an operating system operation, and it will depend on the operating system that you're using. On Windows you can use a group policy to control this. Please Google on "prevent time and date change in windows".
    Also, please try to refrain from stuffing your entire message in the subject block. Keep the subject short, but descriptive enough so it can be understood what you are basically asking. Thanks.

  • How to solve the error:  "lightroom could not import this catalog because of an unknown error" when trying to "import from catalog"?

    I have around 400,000 photos of 15 years so given the high number, I organized all my photos into 6 catalogs to avoid potential problems. All the photos and the catalogs are in a 4TB Seagate external hard drive. I use Adobe Lightroom 5 and I use a PC with the latest Windows Office 2013.
    I wanted to have a NEW Catalog of all my rated 1 Star+ photos of all the years in a single Catalog. So I created what I called Star+ Catalog and I was told the best option is to import a Catalog at a time and given that there is no means to filter importing only Stared photos, I would import all the photos and then delete all the UnStared photos. I did that for Catalog Year 2014 but at the end gave me the message: "lightroom could not import this catalog because of an unknown error". It actually had imported around 40k photos from about 50k total. I tried again and again and every time I end up with the same thing. I created another new Catalog and stared from scratch and the same ting happened: the ONLY EXACT 40k or so photos were imported and the rest were not!! When I imported Catalog Year 2013 of around 45k photos, it worked perfectly. But when I imported Catalog Year 2012 of 35k photos, the same thing happened!! 
    Any advice: 1) on how to solve this? and 2) if there is a better and easier way to create this Master Catalog of All Stared Photos of All my Catalogs?

    OK, my starting point is that LR can happily contain 400000+ photos, and it's a mistake to create a 1 star plus catalogue as you suggest. Instead, I'd recommend you create a master catalogue of all your photos, which you can then query however you want - 2 star, or a certain keyword, or with "xyz" in the title etc.
    If you are intent on going that way, you could try a slight change from what you've done so far. Instead of trying to import an entire catalogue and then delete no-star pictures, take the 2014 and 2012 catalogues and select only the 1 star photos. Then do an Export as Catalog for these items, and import the 2014-1star and 2012-1star into your new catalogue. That may get you past the problem images which I suspect are the problem.
    If that doesn't work, or if you follow my initial advice, you're going to need to identify the image where the failure occurs. You may have a corrupt image file, and replacing it from your backup may be sufficient to resolve the problem. Alternatively, it may be a corrupt record in the catalogue, and in this case it may be sufficient to remove the image from the catalogue and import it again. You might try selecting everything in the 2014 catalogue and seeing if you can do an Export as Catalog, creating a clean 2014, and deleting 2014's previews folder might also get rid of a potential problem. Something else is to try the Export as Catalog for images 1-40000, then a second Export as Catalog for images 40002-50k.
    So a few things you'll need to try, rather than a magic bullet, and a recommendation to change the underlying direction.
    John

  • ORA-24335 - cannot support more than 1000 columns - How to solve this?

    Hi,
    I got error message 'ORA-24335 - cannot support more than 1000 columns ' when i try to insert x no of rows for a table with following code:
    INSERT ALL
    INTO tableA Values ('A', 'B', 'C', 1, 2, 3)
    INTO tableA Values ('D', 'E', 'F', 4, 5, 6)
    INTO tableA Values ('G', 'H', 'I', 7, 8, 9)
    SELECT *
    FROM DUAL
    How to solve above?
    What does it really mean? It's not as easy as if my table has 10 columns than I can't insert more than 100 rows (1000 columns divided with 10 columns = maximun 100 rows to insert), or?
    Is there a better/more appropriate way to do insert many rows?
    Should I do my inserts with an OracleTransaction (My application is developed with C# and asp.net), as ~follows
    BEGIN
    INSERT INTO tableA Values ('A', 'B', 'C', 1, 2, 3)
    INSERT INTO tableA Values ('D', 'E', 'F', 4, 5, 6)
    INSERT INTO tableA Values ('G', 'H', 'I', 7, 8, 9)
    COMMIT
    END
    Thx in advance!
    Edited by: user8819407 on 2010-mar-07 15:40

    Hi,
    So how did you solve the problem? Can you please give an example?
    I have the same problem inserting over 1000 values into my Oracle DB. The table only has 51 columns but to speed up the insert command, I use bulk inserts via insert all command. I need to insert 100 rows at a time for a total of 5100 values.
    Example:
    SQLCmd = INSERT ALL INTO MYTABLE (VAL_ID,VAL_NAME,VAL_NUM,VAL_TIME,VAL_CMM,VAL_TIME1,VAL_TRIP,VAL_REMAINING,VAL_AGE,VAL_COUNT,VAL_RSTS,VAL_VOLT,VAL_RF,VAL_DC,VAL_HOPS,VAL_STATUS,VAL_ELAPSED,MODIFY_TIME) VALUES (?,?,?,TO_DATE(?,?),?,TO_DATE(?,?),?,?,?,?,?,?,?,?,?,?,?,SYSTIMESTAMP)
    INTO MYTABLE (VAL_ID,VAL_NAME,VAL_NUM,VAL_TIME,VAL_CMM,VAL_TIME1,VAL_TRIP,VAL_REMAINING,VAL_AGE,VAL_COUNT,VAL_RSTS,VAL_VOLT,VAL_RF,VAL_DC,VAL_HOPS,VAL_STATUS,VAL_ELAPSED,MODIFY_TIME) VALUES (?,?,?,TO_DATE(?,?),?,TO_DATE(?,?),?,?,?,?,?,?,?,?,?,?,?,SYSTIMESTAMP)
    INTO MYTABLE (VAL_ID,VAL_NAME,VAL_NUM,VAL_TIME,VAL_CMM,VAL_TIME1,VAL_TRIP,VAL_REMAINING,VAL_AGE,VAL_COUNT,VAL_RSTS,VAL_VOLT,VAL_RF,VAL_DC,VAL_HOPS,VAL_STATUS,VAL_ELAPSED,MODIFY_TIME) VALUES (?,?,?,TO_DATE(?,?),?,TO_DATE(?,?),?,?,?,?,?,?,?,?,?,?,?,SYSTIMESTAMP)
    INTO MYTABLE (VAL_ID,VAL_NAME,VAL_NUM,VAL_TIME,VAL_CMM,VAL_TIME1,VAL_TRIP,VAL_REMAINING,VAL_AGE,VAL_COUNT,VAL_RSTS,VAL_VOLT,VAL_RF,VAL_DC,VAL_HOPS,VAL_STATUS,VAL_ELAPSED,MODIFY_TIME) VALUES (?,?,?,TO_DATE(?,?),?,TO_DATE(?,?),?,?,?,?,?,?,?,?,?,?,?,SYSTIMESTAMP)
    SELECT 1 FROM DUAL
    SQLVals = 1 22C38299 80700334 04-19-2012 13:55:33 mm-dd-yyyy hh24:mi:ss MCC93000 04/19/2012 13:55:42 mm-dd-yyyy hh24:mi:ss 12 4 0.792191 23 1 0.00 -113.50 13.48 9 1 9
    1 36PR7038 8070EDC2 04-19-2012 12:24:35 mm-dd-yyyy hh24:mi:ss MCC60360 04/19/2012 12:24:41 mm-dd-yyyy hh24:mi:ss 7 4 0.757501 3 2 13.88 -114.80 14.06 5 1 6
    1 42C63512 8050166F 04-19-2012 16:02:50 mm-dd-yyyy hh24:mi:ss MCC52420 04/19/2012 16:02:57 mm-dd-yyyy hh24:mi:ss 10 4 0.778471 8 1 0.00 -122.30 13.05 8 1 7
    1 33MR3076 80803E75 04-19-2012 13:13:16 mm-dd-yyyy hh24:mi:ss MCC60330 04/19/2012 13:13:22 mm-dd-yyyy hh24:mi:ss 13 5 0.636721 28 3 0.00 -122.19 0.70 8 1 6
    Then I call: &DBInsert($sqlCmd, @sqlVals);
    This is the error I get: ORA-24335: cannot support more than 1000 columns.
    I need to insert about 879,500 rows (51 cols per row). The values I read from a text file in sets of about 48,000 and put them into a hash. I tried inserting one row at a time, but it takes too long, about 28 hrs! Then, I tried the bulk update with only 6 rows and the total time was about 25 minutes. Which is acceptable to us.
    Thanks!

  • Backing up - how to solve after copying whole system - login incorrect

    Hello,
    I have done an script to backup the whole filesystem and restore it. I am making tests before using forever.
    For Windows I use ntfsclone and it works perfect, but for ArchLinux I am doing:
    I use Knoppix cd-live to manage everything. I load the script from /dev/sda4 (data partition in ntfs) and the main commands to backup and restore are:
    Without doing chroot (because it is not possible)
    sudo mount /dev/sda5 /media/sda5 #This is the / of ArchLinux
    sudo rsync -aAXv /media/sda5/* /media/sda4/seccopy/ --exclude={/media/sda5/dev/*,/media/sda5/proc/*,/media/sda5/tmp/*,/media/sda5/run/*,/media/sda5/mnt/*,/media/sda5/media/*,/media/sda5/lost+found,/media/sda5/home/*,/media/sda5/var/lib/pacman/sync/*}
    cd /media/sda4/seccopy/
    sudo tar -zcvf /media/sda4/arch_copy.tar.gz ./*
    To restore:
    sudo mount /dev/sda5 /media/sda5
    sudo rm -r /media/sda5/*
    sudo tar -zxvf /media/sda4/arch_copy.tar.gz -C /media/sda5
    I can check that the files are copied correctly.
    I can do (and really do) the same with the home partition, same process but changing sda5 by sda6, and instead of arch_copy.tar.gz, arch_home_copy.tar.gz
    When I restart to boot in the new copied system... the problem:
    I go to the normal grub option for Arch Linux and I try again to put the password for ussr1, and nothing.
    I type it, enter, wait some seconds and prompt me again.
    I try with the root user, and its password, and the same problem. Not access to the system.
    I try in tty1, and the same problem, it says:
    Login incorrect
    First question: How to solve this situation?
    I think maybe the problem is something about /etc/passwd or /etc/shadow, and also I try to make chroot to see if it works.
    If I try to do chroot from Knoppix to the ArchLinux restored, it is not possible, everything goes ok from this wiki:
    https://wiki.archlinux.org/index.php/Change_Root
    but fails in this:
    Note: If you see the error chroot: cannot run command '/bin/bash': Exec format error, it is likely that the two architectures do not match.
    I don't know what is "architectures". I installed x86_64 in ArchLinux.
    Second question: Is because the Knoppix 7.0.4 (debian based) uses other? Like i686?
    I see in Internet this:
    http://www.cyberciti.biz/tips/recoverin … -file.html
    It is not my problem, but maybe it is a way to know if is correct or not,...-
    mode "recovery", edit, add to linux line after "ro single": init=/bin/bash
    Ctrl+x
    Logged as root automatically:
    Third question: Why is not prompted the password? And illegitimate user can see everything doing this.
    $ mount -rw -o remount /
    $ mount -rw -o remount /home
    mount: /home not mounted or bad option
    In some cases useful info is found in syslog -try
    dmesg | tail or so
    Fourth question: Why i cannot mount the home? It is in the /dev/sda6, but for the / it didn't say anything to me. I cannot see the /home directory.
    $ cat /etc/passwd
    #- Has the root user and the ussr1 user
    $ cat /etc/shadow
    #- Has the root and ussr1 password coded.
    $ passwd
    Enter new UNIX password:
    Retype new UNIX password:
    Fifth question: Why is not prompted for the before password?     (following the steps i can imagine that this doesn't work, so, is not a security problem)
    $ passwd ussr1
    Enter new UNIX password:
    Retype new UNIX password:
    $ sudo reboot:
    sudo: /usr/lib/sudoers.so must be only be writable by owner
    sudo: fatal error, unable to laod plugins
    $ reboot
    Failed to talk to init daemon.
    $ exit
    exit
    [ 377.105707] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
    [ 377.105707]
    Sixth question: Why I cannot exit correctly? It also happen if I use the Arch in Live mode (and try to exit).
    The only way to avoid this problem is unpluging from electrical power (not even with the power button).
    I start the system again, I go to the normal grub option for Arch Linux and I try again to put the password for ussr1, and nothing.
    I type it, enter, wait some seconds and prompt me again.
    The same as first question: How to solve this situation?
    My idea is only use Knoppix live-cd to use as backup/restore system, but if it is not possible, I would like to know how to solve.
    The idea of using rsync instead of dd is because I want to save only the data, and not all the sectors (not enough space in the hard disk).
    I don't mind to have to use arch linux usb installation media as it is "knoppix live-cd", the only thing I would like to use is the same media to do all the operations, because I want to teach normal users how to do it by themselves.

    cfr wrote:What's the exit value when you run passwd? (man passwd will show what the exit values mean.)
    value 0 -> success
    cfr wrote:Have you tried changing the password to something *other* than the existing password?
    tried for example with "something" for both, "root" and "ussr1"
    but if I go to /etc/shadow, I see that the passwords coded for root and ussr1 are not the same, so must be coded with other things too.
    cfr wrote:Have you tried creating a new user and logging in as that user?
    I added another user, for example "try"
    useradd -m -g users -s /bin/bash try
    passwd try & echo "$?"
    .. (something)
    0
    Ok, after just add the user, if I go to /home/ I can see some files created automatically, and if I compare those files with the files that I pasted in my ussr1 account, there are two that are missed:
    .xinitrc
    .xsession
    xinitrc is executed by startx (so, it is because the X11..)
    and..ok, xsession the same (xdm/gdm/kdm). So nothing here.
    I also add "try" to the groups: lp, games, video, audio, optical, storage, scanner   with:
    gpasswd -a try lp
    cfr wrote:Have you run pwck and grpck to check the integrity of the files? (I doubt this is the issue but it seems an easy step to do just on the off chance.)
    Ok, if I do:
    $ pwck; echo "$?"
    0
    $ pwck /etc/passwd; echo "$?"
    0
    $ pwck /etc/shadow; echo "$?"
    invalid password file entry
    delete line 'root:ahskldfhajksdfkahsjkdhf...asdkfhjashdkfjh:15795::::::'?
    invalid password file entry
    delete line 'bin:x:14871::::::'?
    so forth..with: root, bin, daemon, mail, ftp, http, uuidd, dbus and nobody
    user 'ussr1': directory '7' does not exist
    user 'polkitd': directory '7' does not exist
    user 'usbmux': directory '7' does not exist
    user 'mysql': directory '7' does not exist
    invalid password file entry
    delete line 'kdm:!:15793::::::'?
    invalid password file entry
    delete line 'avahi:!:15793::::::'?
    user 'try': directory '7' does not exist
    pwck: no changes
    2
    $grpck /etc/group; echo "$?"
    0
    $grpck /etc/gshadow; echo "$?"
    invalid group file entry
    delete line 'root:::root'?
    invalid group file entry
    delete line 'root:::root'?
    invalid group file entry
    delete line 'root:::root'?
    ...so forth
    with: root, bin, daemon, sys, adm, tty, disk, lp, mem, kmem, wheel, ftp, mail, uucp, log, utmp, locate, rfkill, smmsp, http, games, lock, uuidd, dbus, network, video, audio, optical, floppy, storage, scanner, power, nobody, users, systemd-journal, polkitd, usbmux, mysql, kdm, avahi
    grpck: no changes
    2
    So, cat /etc/gshadow | wc -l    = 40 lines
    And grpck /etc/gshadow | wc -l  = 40 lines
    And the same for /etc/shadow = 16 lines and the pwck were 11 "delete line" and 5 "directory '7' does not exist"
    But as we see, even the try has some error... in this case with directory '7'.
    I don't understand why errors... theoretically they were copied and pasted without modifications
    NOTE** Ok, my fault, I have to execute the command like this: $ pwck -r /etc/passwd /etc/shadow; echo "$?"    and now it answers: 0         So, the integrity of both files are correct! And the same with group and gshadow
    ewaller wrote:
    Inside the chroot, run pacman -Qk | grep -v ", 0 missing"
    And see if there are any packages that should be reinstalled.
    If not, reinstall pam, just for good measure
    With
    $pacman -Qk | grep -v ", 0 missing"
    no results.
    I execute it without doing anything before with pacman, no updating, absolutely nothing.
    pam?
    i search for pam, and i find "pam mount", something like "encrypted home". But Was it activated by default?
    Last edited by Zzipo (2013-03-31 21:57:57)

Maybe you are looking for